diff options
author | Matthew Seaman <matthew@FreeBSD.org> | 2013-12-17 13:54:02 +0000 |
---|---|---|
committer | Matthew Seaman <matthew@FreeBSD.org> | 2013-12-17 13:54:02 +0000 |
commit | c089d48fb675c62eeb399fb4d3660b3200a934d9 (patch) | |
tree | ba9c73a790fec69313bc89ed513a94f9f540c2d4 /net/phpldapadmin/Makefile | |
parent | ec0051c414bc970a087a0650c927358d88f02cab (diff) |
Notes
Diffstat (limited to 'net/phpldapadmin/Makefile')
-rw-r--r-- | net/phpldapadmin/Makefile | 62 |
1 files changed, 13 insertions, 49 deletions
diff --git a/net/phpldapadmin/Makefile b/net/phpldapadmin/Makefile index f33a492bdfec..68bbe36265f8 100644 --- a/net/phpldapadmin/Makefile +++ b/net/phpldapadmin/Makefile @@ -3,7 +3,7 @@ PORTNAME= phpldapadmin PORTVERSION= 1.2.3 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= net www MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-php5/${PORTVERSION} @@ -19,24 +19,8 @@ NO_BUILD= yes USE_PHP= gettext ldap openssl pcre session xml iconv hash DEFAULT_PHP_VER= 5 -OPTIONS_DEFINE= SUPHP -SUPHP_DESCR= suPHP support - -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MSUPHP} - -PKGNAMESUFFIX+= -suphp -RUN_DEPENDS+= ${LOCALBASE}/sbin/suphp:${PORTSDIR}/www/suphp -WANT_PHP_CGI= yes - -.else - WANT_PHP_WEB= yes -.endif - -# USERS is only used when SUPHP option selected GROUPS?= ${WWWGRP} CFGDIR= config CFGFILE= config.php @@ -44,16 +28,6 @@ CFGFILE= config.php PLIST= ${WRKDIR}/plist PLIST_SUB+= PLA_GRP=${GROUPS} -.if ${PORT_OPTIONS:MSUPHP} - -USERS?= _pla - -SUB_LIST+= PLA_USR=${USERS} \ - PLA_GRP=${GROUPS} -SUB_FILES+= pkg-install pkg-deinstall - -.endif - SUB_LIST+= PKGNAME=${PKGNAME} SUB_FILES+= pkg-message @@ -62,34 +36,24 @@ SUB_FILES+= pkg-message post-patch: cd ${WRKSRC} ; \ ${FIND} . ! -type d ! -name ${CFGFILE}.example ! -name .cvsignore \ - ! -name .gitignore | ${SORT} | ${SED} -e "s!^\.!%%WWWDIR%%!" \ - >${PLIST} ; \ + ! -name .gitignore ! -name *.orig | ${SORT} | \ + ${SED} -e "s!^\.!%%WWWDIR%%!" >${PLIST} ; \ ${CAT} ${PKGDIR}/pkg-plist-chunk >>${PLIST} ; \ ${FIND} . -type d | ${SORT} -r | ${SED} \ -e 's!^\./${CFGDIR}$$!@dirrmtry %%WWWDIR%%/${CFGDIR}!' \ -e 's!^\.$$!@dirrmtry %%WWWDIR%%!' \ -e 's!^\.!@dirrm %%WWWDIR%%!' >>${PLIST} -do-install: install-app install-conf - -install-app: - cd ${WRKSRC} ; \ - for src in $$( ${FIND} . ! -name .cvsignore \ - ! -name .gitignore ) ; do \ - dst=${STAGEDIR}${WWWDIR}$${src#.} ; \ - if ${TEST} -d $$src ; then \ - ${MKDIR} $$dst ; \ - else \ - ${INSTALL_DATA} $$src $$dst ; \ - fi \ +do-install: + cd ${WRKSRC} ; \ + for src in $$( ${FIND} . ! -name .cvsignore \ + ! -name .gitignore ! -name *.orig ) ; do \ + dst=${STAGEDIR}${WWWDIR}$${src#.} ; \ + if ${TEST} -d $$src ; then \ + ${MKDIR} $$dst ; \ + else \ + ${INSTALL_DATA} $$src $$dst ; \ + fi \ done -install-conf: - cd ${STAGEDIR}${WWWDIR}/${CFGDIR} ; \ - ${CHMOD} 0640 ${CFGFILE}.example ; \ - ${CHGRP} ${GROUPS} ${CFGFILE}.example ; \ - if ${TEST} ! -f ${CFGFILE} ; then \ - ${CP} -p ${CFGFILE}.example ${CFGFILE} ; \ - fi - .include <bsd.port.mk> |