1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/net/phamm/Makefile
Rong-En Fan fdf270740a - Update to 0.4.11
PR:		ports/109420
Submitted by:	Gustavo Fukao <gustavofukao at gmail.com> (maintainer)
2007-02-22 05:41:39 +00:00

58 lines
1.5 KiB
Makefile

# New ports collection makefile for: phamm
# Date created: 2006-02-15
# Whom: Gustavo Fukao <gustavofukao@gmail.com>
#
# $FreeBSD$
#
PORTNAME= phamm
PORTVERSION= 0.4.11
CATEGORIES= net www
MASTER_SITES= http://open.rhx.it/phamm/
MAINTAINER= gustavofukao@gmail.com
COMMENT= Front-end written in PHP to manage virtual service
NO_BUILD= yes
USE_PHP= gettext ldap openssl pcre session
PHAMMDIR?= www/${PORTNAME}
SCHEMADIR= ${WRKSRC}/schema
SUB_FILES= pkg-message
SUB_LIST= PHAMMDIR=${PHAMMDIR} PKGNAME=${PKGNAME}
PLIST_SUB= PHAMMDIR=${PHAMMDIR}
PORTDOCS= AUTHORS CHANGELOG INSTALL README README.plugins \
DOCS.LICENSE IMAGES.LICENSE LICENSE THANKS
.include <bsd.port.pre.mk>
do-install:
@${MKDIR} ${PREFIX}/${PHAMMDIR}
@${MKDIR} ${EXAMPLESDIR}
@${CP} -Rv ${WRKSRC}/examples/* ${EXAMPLESDIR}
@${CP} -Rv ${SCHEMADIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/index.php ${PREFIX}/${PHAMMDIR}
@${INSTALL_DATA} ${WRKSRC}/en_GB.php ${PREFIX}/${PHAMMDIR}
@${INSTALL_DATA} ${WRKSRC}/config.inc.php.template \
${PREFIX}/${PHAMMDIR}/config.inc.php.sample
@[ -f ${PREFIX}/${PHAMMDIR}/config.inc.php ] || \
${INSTALL_DATA} ${WRKSRC}/config.inc.php.template \
${PREFIX}/${PHAMMDIR}/config.inc.php
@for d in `${FIND} ${WRKSRC} -type d -depth 1 | ${SORT} -r | \
${EGREP} -v '(examples|cfg|schema|debian|server)'` ; do \
${CP} -Rv $$d ${PREFIX}/${PHAMMDIR}; \
done;
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>