diff options
author | tron <tron@pkgsrc.org> | 2006-11-27 17:30:56 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2006-11-27 17:30:56 +0000 |
commit | cc10ab619abfa156458955759608d19bf3d586fc (patch) | |
tree | 59da733e179142df681d2378077ca1fea271d6f2 /databases | |
parent | 43a4c151f057b9940b1c5bcd55f890c59110fe2c (diff) | |
download | pkgsrc-cc10ab619abfa156458955759608d19bf3d586fc.tar.gz |
Fix various problems:
1.) Don't use hardcoded group "wheel". Use "APACHE_GROUP" instead which
defaults to "www".
2.) Create user and group if necessary. This fixces PR pkg/35141 by
Wouter Schoot.
3.) Fix path to Perl interpreter in helper script "convertcfg.pl" and
add missing dependence on Perl package.
Bump package revision because of these fixes.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/phpmyadmin/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/databases/phpmyadmin/Makefile b/databases/phpmyadmin/Makefile index 050f97f7ffc..9de70d16c97 100644 --- a/databases/phpmyadmin/Makefile +++ b/databases/phpmyadmin/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.55 2006/11/19 15:55:54 tron Exp $ +# $NetBSD: Makefile,v 1.56 2006/11/27 17:30:56 tron Exp $ DISTNAME= phpMyAdmin-${DIST_VERSION}-all-languages PKGNAME= phpmyadmin-${DIST_VERSION:S/-//} +PKGREVISION= 1 CATEGORIES= databases www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=phpmyadmin/} EXTRACT_SUFX= .tar.bz2 @@ -18,6 +19,7 @@ PLIST_SUBST+= CP=${CP:Q} DIST_VERSION=${DIST_VERSION:Q} \ MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q} \ PMCONFFILE=${PMCONFFILE:Q} PMDIR=${PMDIR:Q} \ EXDIR=${EXDIR:Q} +USE_TOOLS+= perl:run CONF_INC_PHP= ${PREFIX}/share/phpmyadmin/config.inc.php DIST_VERSION= 2.9.1.1 @@ -26,12 +28,18 @@ DOC_FILES= CREDITS ChangeLog \ RELEASE-DATE-${DIST_VERSION} TODO APACHE_USER?= www +APACHE_GROUP?= www +PKG_GROUPS= ${APACHE_GROUP} +PKG_USERS= ${APACHE_USER}:${APACHE_GROUP} +BUILD_DEFS+= APACHE_USER APACHE_GROUP + EXDIR= ${PREFIX}/share/examples/phpmyadmin PMCONFFILE= ${PKG_SYSCONFDIR}/config.inc.php PMDIR= ${PREFIX}/share/phpmyadmin CONF_FILES= ${EXDIR}/config.inc.php ${PKG_SYSCONFDIR}/config.inc.php -SPECIAL_PERMS= ${PKG_SYSCONFDIR}/config.inc.php ${APACHE_USER} wheel 0600 -BUILD_DEFS+= APACHE_USER +REPLACE_PERL+= scripts/convertcfg.pl +SPECIAL_PERMS= ${PKG_SYSCONFDIR}/config.inc.php ${APACHE_USER} \ + ${APACHE_GROUP} 0600 PKG_SYSCONFSUBDIR?= phpmyadmin |