2005-01-20 17:49:52 +01:00
|
|
|
# New ports collection makefile for: poweradmin
|
2009-07-04 21:28:37 +02:00
|
|
|
# Date created: 19 January 2005
|
2005-01-20 17:49:52 +01:00
|
|
|
# Whom: geo
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2009-02-16 00:27:36 +01:00
|
|
|
PORTNAME= poweradmin
|
2010-04-09 12:58:14 +02:00
|
|
|
PORTVERSION= 2.1.4
|
2009-02-16 00:27:36 +01:00
|
|
|
CATEGORIES= dns www
|
|
|
|
MASTER_SITES= https://www.poweradmin.org/download/
|
|
|
|
EXTRACT_SUFX= .tgz
|
2005-01-20 17:49:52 +01:00
|
|
|
|
2009-02-16 00:27:36 +01:00
|
|
|
MAINTAINER= eg@fbsd.lt
|
|
|
|
COMMENT= A set of PHP-scripts to manage PowerDNS over the web
|
2005-01-20 17:49:52 +01:00
|
|
|
|
2010-04-09 12:58:14 +02:00
|
|
|
USE_PHP= gettext session
|
2005-01-20 17:49:52 +01:00
|
|
|
WANT_PHP_WEB= yes
|
|
|
|
NO_BUILD= yes
|
2009-02-16 00:27:36 +01:00
|
|
|
PEARDIR= ${PREFIX}/share/pear
|
|
|
|
|
2010-04-09 12:58:14 +02:00
|
|
|
OPTIONS= MYSQL "Use Mysql database support" on \
|
|
|
|
PGSQL "Use Pgsql database support" off
|
2009-02-16 00:27:36 +01:00
|
|
|
|
2005-01-20 17:49:52 +01:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2009-07-04 21:28:37 +02:00
|
|
|
CFGDIR= inc
|
|
|
|
CFGFILE= config.inc.php
|
|
|
|
|
|
|
|
PLIST= ${WRKDIR}/plist
|
|
|
|
|
2009-02-16 00:27:36 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2010-04-09 12:58:14 +02:00
|
|
|
.if defined(WITH_MYSQL)
|
2009-02-16 00:27:36 +01:00
|
|
|
RUN_DEPENDS+= ${PEARDIR}/MDB2/Driver/mysql.php:${PORTSDIR}/databases/pear-MDB2_Driver_mysql
|
|
|
|
.endif
|
|
|
|
|
2010-04-09 12:58:14 +02:00
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
RUN_DEPENDS+= ${PEARDIR}/MDB2/Driver/pgsql.php:${PORTSDIR}/databases/pear-MDB2_Driver_pgsql
|
|
|
|
.endif
|
|
|
|
|
2009-02-16 00:27:36 +01:00
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} && ${RM} -rf "install"
|
|
|
|
|
2009-07-04 21:28:37 +02:00
|
|
|
post-patch:
|
|
|
|
cd ${WRKSRC} ; \
|
|
|
|
${FIND} . ! -type d ! -name config-me.inc.php | ${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} . ) ; do \
|
|
|
|
dst=${WWWDIR}$${src#.} ; \
|
|
|
|
if ${TEST} -d $$src ; then \
|
|
|
|
${MKDIR} $$dst ; \
|
|
|
|
else \
|
|
|
|
${INSTALL_DATA} $$src $$dst ; \
|
|
|
|
fi \
|
|
|
|
done
|
|
|
|
|
|
|
|
install-conf: install-app
|
|
|
|
cd ${WWWDIR}/${CFGDIR} ; \
|
2010-04-09 12:58:14 +02:00
|
|
|
${CHMOD} 0644 config-me.inc.php ; \
|
2009-07-04 21:28:37 +02:00
|
|
|
if ${TEST} ! -f ${CFGFILE} ; then \
|
|
|
|
${CP} -p config-me.inc.php ${CFGFILE} ; \
|
|
|
|
fi
|
2005-01-20 17:49:52 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2009-02-16 00:27:36 +01:00
|
|
|
.include <bsd.port.post.mk>
|