diff options
author | adrianp <adrianp> | 2005-09-06 21:47:09 +0000 |
---|---|---|
committer | adrianp <adrianp> | 2005-09-06 21:47:09 +0000 |
commit | 371f70e3d808430d182d278e4a776ad5927c8f93 (patch) | |
tree | 73339c9aeebd10bf70becb955256cb1c4ffc3975 /databases/phpldapadmin | |
parent | 3bb5d036b6108b503bde372038decf5f18378e7b (diff) | |
download | pkgsrc-371f70e3d808430d182d278e4a776ad5927c8f93.tar.gz |
Remove dependency on apache
Introduce a BUILD_DEFS for using a www server other than apache
Use ROOT_GROUP
Bump to nb5
Diffstat (limited to 'databases/phpldapadmin')
-rw-r--r-- | databases/phpldapadmin/Makefile | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/databases/phpldapadmin/Makefile b/databases/phpldapadmin/Makefile index 9e30f07080f..4fbc2ceef16 100644 --- a/databases/phpldapadmin/Makefile +++ b/databases/phpldapadmin/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.13 2005/09/04 10:08:14 adrianp Exp $ +# $NetBSD: Makefile,v 1.14 2005/09/06 21:47:09 adrianp Exp $ DISTNAME= phpldapadmin-${VERSION} -PKGREVISION= 4 +PKGREVISION= 5 CATEGORIES= databases www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=phpldapadmin/} @@ -14,17 +14,25 @@ DEPENDS+= php-ldap>=4.1.2:../../databases/php-ldap VERSION= 0.9.6c NO_BUILD= YES USE_PKGINSTALL= YES -APACHE_USER?= www +BUILD_DEFS+= WWW_USER CONF_FILES= ${PREFIX}/share/examples/phpldapadmin/config.php.example \ ${PREFIX}/share/phpldapadmin/config.php CONF_FILES+= ${PREFIX}/share/examples/phpldapadmin/phpldapadmin.conf \ - ${PKG_SYSCONFDIR}/httpd/phpldapadmin.conf + ${PKG_SYSCONFDIR}/phpldapadmin.conf SPECIAL_PERMS= ${PREFIX}/share/phpldapadmin/config.php \ - ${APACHE_USER} wheel 0600 + ${WWW_USER} ${ROOT_GROUP} 0600 INSTALLATION_DIRS= ${PREFIX}/share/phpldapadmin +# NOTE: If you're running apache under an account other than www or +# are running a different web server under a specific user account +# you should set WWW_USER in your mk.conf. +# +.if !defined(WWW_USER) +WWW_USER= ${APACHE_USER} +.endif + do-configure: @${SED} -e "s|@LDAPADMINDIR@|${PREFIX}/share/phpldapadmin|g" \ ${FILESDIR}/phpldapadmin.conf > ${WRKDIR}/phpldapadmin.conf @@ -45,5 +53,4 @@ do-install: -s /\.\*.example// \ -rwppm . ${PREFIX}/share/phpldapadmin -.include "../../mk/apache.mk" .include "../../mk/bsd.pkg.mk" |