pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/mantis - Simplify the package by removing variou...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2f7ced05be62
branches: trunk
changeset: 486485:2f7ced05be62
user: adrianp <adrianp%pkgsrc.org@localhost>
date: Tue Dec 28 22:14:34 2004 +0000
description:
- Simplify the package by removing various BUILD_DEFS that are not required
- Fix CONF_FILES handling
diffstat:
devel/mantis/Makefile | 25 ++++++++-----------------
devel/mantis/PLIST | 5 ++---
2 files changed, 10 insertions(+), 20 deletions(-)
diffs (85 lines):
diff -r e8b394ce9718 -r 2f7ced05be62 devel/mantis/Makefile
--- a/devel/mantis/Makefile Tue Dec 28 22:05:13 2004 +0000
+++ b/devel/mantis/Makefile Tue Dec 28 22:14:34 2004 +0000
@@ -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 @@
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 @@
${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 -r e8b394ce9718 -r 2f7ced05be62 devel/mantis/PLIST
--- a/devel/mantis/PLIST Tue Dec 28 22:05:13 2004 +0000
+++ b/devel/mantis/PLIST Tue Dec 28 22:14:34 2004 +0000
@@ -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_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
Home |
Main Index |
Thread Index |
Old Index