diff options
author | adrianp <adrianp@pkgsrc.org> | 2004-12-28 22:14:34 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2004-12-28 22:14:34 +0000 |
commit | 93b1ab414241208be4930b53ec5b1528816c5e62 (patch) | |
tree | 97bda4fc63c7069cb6ff70d0b9751af83a95e7f3 /devel/mantis | |
parent | fa211d15bbf4a17ffb6c2c176ecfaaccf1bf79e6 (diff) | |
download | pkgsrc-93b1ab414241208be4930b53ec5b1528816c5e62.tar.gz |
- Simplify the package by removing various BUILD_DEFS that are not required
- Fix CONF_FILES handling
Diffstat (limited to 'devel/mantis')
-rw-r--r-- | devel/mantis/Makefile | 25 | ||||
-rw-r--r-- | devel/mantis/PLIST | 5 |
2 files changed, 10 insertions, 20 deletions
diff --git a/devel/mantis/Makefile b/devel/mantis/Makefile index 190bec1c2a7..5fd01079ebe 100644 --- a/devel/mantis/Makefile +++ b/devel/mantis/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.2 2004/11/08 19:11:18 adrianp Exp $ +# $NetBSD: Makefile,v 1.3 2004/12/28 22:14:34 adrianp Exp $ DISTNAME= mantis-0.19.1 +PKGREVISION= 1 CATEGORIES= devel www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mantisbt/} @@ -30,35 +31,25 @@ BUILDLINK_DEPENDS.mysql-client+= mysql-client>=3.23.2 PHP_VERSIONS_ACCEPTED= 4 MYSQL_VERSIONS_ACCEPTED= 30 40 -M_DB_HOST?= localhost -M_DB_USER?= root -M_DB_PASS?= -M_DB_DATABASE?= bugtracker -M_DOMAIN?= example.com APACHE_USER?= www -BUILD_DEFS+= M_DB_HOST M_DB_USER M_DB_PASS M_DB_DATABASE M_DOMAIN APACHE_USER +BUILD_DEFS+= APACHE_USER MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} MANTIS_HOME= ${PREFIX}/share/mantis EGDIR= ${PREFIX}/share/examples/mantis -CONF_FILES+= ${EGDIR}/mantis.conf ${PKG_SYSCONFDIR}/mantis.conf +CONF_FILES+= ${EGDIR}/mantis.conf ${PKG_SYSCONFDIR}/mantis.conf \ + ${EGDIR}/config_inc.php ${MANTIS_HOME}/config_inc.php SPECIAL_PERMS= ${MANTIS_HOME}/config_inc.php ${APACHE_USER} ${SHAREGRP} 0400 SUBST_CLASSES= conf SUBST_STAGE.conf= pre-install -SUBST_FILES.conf= config_inc.php mantis.conf -SUBST_SED.conf= -e "s|localhost|${M_DB_HOST}|g" \ - -e "s|root|${M_DB_USER}|g" \ - -e "s|\"\"|\"${M_DB_PASS}\"|g" \ - -e "s|bugtracker|${M_DB_DATABASE}|g" \ - -e "s|example.com|${M_DOMAIN}|g" \ - -e "s|@MANTIS_HOME@|${MANTIS_HOME}|g" +SUBST_FILES.conf= mantis.conf +SUBST_SED.conf= -e "s|@MANTIS_HOME@|${MANTIS_HOME}|g" SUBST_MESSAGE.conf= "Fixing configuration files." post-extract: @${CP} ${FILESDIR}/mantis.conf ${WRKSRC} - @${CP} ${WRKSRC}/config_inc.php.sample ${WRKSRC}/config_inc.php do-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mantis @@ -109,7 +100,7 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/javascript/*.js ${MANTIS_HOME}/javascript ${INSTALL_DATA} ${WRKSRC}/lang/*.txt ${MANTIS_HOME}/lang ${INSTALL_DATA} ${WRKSRC}/sql/*.sql ${EGDIR} - ${INSTALL_DATA} ${WRKSRC}/config_inc.php.sample ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/config_inc.php.sample ${EGDIR}/config_inc.php ${INSTALL_DATA} ${WRKSRC}/mantis_offline.php.sample ${EGDIR} ${INSTALL_DATA} ${WRKSRC}/mantis.conf ${EGDIR} diff --git a/devel/mantis/PLIST b/devel/mantis/PLIST index 86e91d128b3..420c523e93e 100644 --- a/devel/mantis/PLIST +++ b/devel/mantis/PLIST @@ -1,9 +1,9 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/08 19:05:33 adrianp Exp $ +@comment $NetBSD: PLIST,v 1.2 2004/12/28 22:14:34 adrianp Exp $ share/doc/mantis/CUSTOMIZATION share/doc/mantis/INSTALL share/doc/mantis/README share/doc/mantis/UPGRADING -share/examples/mantis/config_inc.php.sample +share/examples/mantis/config_inc.php share/examples/mantis/db_generate.sql share/examples/mantis/mantis.conf share/examples/mantis/mantis_offline.php.sample @@ -88,7 +88,6 @@ share/mantis/bugnote_update.php share/mantis/bugnote_view_inc.php share/mantis/changelog_page.php share/mantis/config_defaults_inc.php -share/mantis/config_inc.php share/mantis/core.php share/mantis/core/access_api.php share/mantis/core/adodb/adodb-cryptsession.php |