freebsd-ports/net/phpldapadmin/Makefile
Steve Wills 6b6cf5b105 net/phpldapadmin: enable php73
PR:		237013
Submitted by:	Krzysztof <ports@bsdserwis.com> (maintainer)
2019-04-08 20:13:01 +00:00

55 lines
1.3 KiB
Makefile

# Created by: Matthew Seaman
# $FreeBSD$
PORTNAME= phpldapadmin
PORTVERSION= 1.2.3
PORTREVISION= 10
PORTEPOCH= 1
CATEGORIES= net www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-php5/${PORTVERSION}
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
MAINTAINER= ports@bsdserwis.com
COMMENT= PHP application to administer LDAP over the web
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cpe php:web,flavors tar:tgz
USE_PHP= gettext ldap openssl pcre session xml iconv hash
NO_ARCH= yes
NO_BUILD= yes
CPE_VENDOR= deon_george
GROUPS?= ${WWWGRP}
CFGDIR= config
CFGFILE= config.php
PLIST= ${WRKDIR}/plist
PLIST_FILES= '@sample(,${GROUPS},640) ${WWWDIR_REL}/config/config.php.example ${WWWDIR_REL}/config/config.php'
SUB_LIST+= PKGNAME=${PKGNAME}
SUB_FILES+= pkg-message
.SILENT:
post-patch:
cd ${WRKSRC} ; \
${FIND} . ! -type d ! -name ${CFGFILE}.example ! -name .cvsignore \
! -name .gitignore ! -name *.orig | ${SORT} | \
${SED} -e "s!^\.!${WWWDIR_REL}!" >${PLIST} ;
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
.include <bsd.port.mk>