freebsd-ports/net-mgmt/phpipam/Makefile
Michael Scheidell 27cffc23d4 Addport: net-mgmt/phpipam. An open-source web IP address management application.
Its goal is to provide light and simple IP address management
application. It is ajax-based using jQuery libraries, it uses php
scripts and javascript and some HTML5/CSS3 features, so some modern
browser is preferred to be able to display javascript quickly and
correctly. [1]

- Fixes to Makefile, removed Apache Dependency, optionsng [2]

PR:		ports/168932
Submitted by:	Jake Smith <jake@xz.cx> [1]
Submitted by:	Mark Felder <feld@feld.me> [2]
2012-06-16 09:39:54 +00:00

63 lines
1.1 KiB
Makefile

# New ports collection makefile for: phpipam
# Date created: 10 June 2012
# Whom: Jake Smith <jake@xz.cx>
#
# $FreeBSD$
#
PORTNAME= phpipam
PORTVERSION= 0.6
CATEGORIES= net-mgmt
MASTER_SITES= SF
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX= .tar
MAINTAINER= jake@xz.cx
COMMENT= PHPIPAM: PHP IP Address Management IPv4/IPv6
LICENSE= GPLv3
RUN_DEPENDS= ${LOCALBASE}/share/pear/System.php:${PORTSDIR}/devel/pear
FETCH_ARGS= -Fpr
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
CFGFILE= config.php
SUB_FILES= pkg-message
SUB_LIST= DISTNAME=${DISTNAME}
OPTIONS_DEFINE= LDAP
USE_MYSQL= yes
USE_PHP= ctype mysqli session gmp
WANT_PHP_WEB= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLDAP}
USE_PHP+= ldap
.endif
.include <bsd.port.pre.mk>
pre-install:
@${MV} ${WRKSRC}/${CFGFILE} ${WRKSRC}/${CFGFILE}.sample
do-install:
cd ${WRKSRC} ; \
for src in $$( ${FIND} . ! -name '*.orig') ; do \
dst=${WWWDIR}$${src#.} ; \
if ${TEST} -d "$$src" ; then \
${MKDIR} "$$dst" ; \
else \
${INSTALL_DATA} -o root -g wheel "$$src" "$$dst" ; \
fi \
done
post-install:
${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>