mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
48 lines
933 B
Makefile
48 lines
933 B
Makefile
# Created by: Jake Smith <jake@xz.cx>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= phpipam
|
|
PORTVERSION= 1.0
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= SF/${PORTNAME}
|
|
|
|
MAINTAINER= jake@xz.cx
|
|
COMMENT= PHP IP Address Management IPv4/IPv6
|
|
|
|
LICENSE= GPLv3
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/pear/System.php:${PORTSDIR}/devel/pear
|
|
|
|
NO_BUILD= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
CFGFILE= config.php
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= DISTNAME=${DISTNAME}
|
|
|
|
OPTIONS_DEFINE= LDAP
|
|
|
|
USES= tar:
|
|
USE_PHP= ctype gettext gmp json mysqli pcntl session simplexml
|
|
LDAP_USE= PHP=ldap
|
|
WANT_PHP_WEB= yes
|
|
|
|
pre-install:
|
|
@if [ -f ${WRKSRC}/${CFGFILE} ]; then \
|
|
${MV} ${WRKSRC}/${CFGFILE} ${WRKSRC}/${CFGFILE}.sample ; \
|
|
fi
|
|
|
|
do-install:
|
|
cd ${WRKSRC} ; \
|
|
for src in $$( ${FIND} . ! -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>
|