summaryrefslogtreecommitdiff
path: root/www/adzapper/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/adzapper/Makefile')
-rw-r--r--www/adzapper/Makefile43
1 files changed, 23 insertions, 20 deletions
diff --git a/www/adzapper/Makefile b/www/adzapper/Makefile
index cabdce771915..6e6b1deaa6d8 100644
--- a/www/adzapper/Makefile
+++ b/www/adzapper/Makefile
@@ -1,40 +1,43 @@
-# New ports collection makefile for: adzapper
-# Date created: 01 Oct 1999
-# Whom: Dominik Rothert <dr@domix.de>
+# New ports collection makefile for: adzapper
+# Date created: 01 Oct 1999
+# Whom: Dominik Rothert <dr@domix.de>
#
# $FreeBSD$
#
PORTNAME= adzapper
-PORTVERSION= 0.1.30
+PORTVERSION= 0.3.0
CATEGORIES= www
-MASTER_SITES= http://www.halcyon.com/adamf/adzapper/
-EXTRACT_SUFX= .tgz
+MASTER_SITES= http://www.zaplet.org/adzapper/ \
+ ftp://ftp.aquezada.com/pub/distrib/adzapper/
-MAINTAINER= dr@domix.de
+MAINTAINER= jdunn@aquezada.com
-BUILD_DEPENDS= python:${PORTSDIR}/lang/python
-RUN_DEPENDS= python:${PORTSDIR}/lang/python
+USE_PYTHON= yes
-NO_BUILD= yes
-
-post-extract:
- @${RM} -rf ${WRKSRC}/src/medusa/CVS
+do-configure:
@${SED} -e 's,__PREFIX__,${PREFIX},g' ${FILESDIR}/adzapper.sh > \
${WRKSRC}/adzapper.sh
- @${SED} -e 's,__PREFIX__,${PREFIX},g' ${FILESDIR}/adzapper.sh > \
+ @${SED} -e 's,__PREFIX__,${PREFIX},g' ${FILESDIR}/rc.adzapper.sh > \
${WRKSRC}/rc.adzapper.sh
+do-build:
+ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
+
do-install:
${MKDIR} ${PREFIX}/share/adzapper
${INSTALL_SCRIPT} ${WRKSRC}/adzapper.sh ${PREFIX}/sbin/adzapper
${INSTALL_SCRIPT} ${WRKSRC}/adzapper.py ${PREFIX}/share/adzapper/
- ${INSTALL_SCRIPT} ${WRKSRC}/rc.adzapper.sh ${PREFIX}/etc/rc.d/adzapper.sh
- ${CP} -Rp ${WRKSRC}/zaplets ${PREFIX}/share/adzapper
- ${CP} -Rp ${WRKSRC}/doc ${PREFIX}/share/adzapper
- ${CP} -Rp ${WRKSRC}/src ${PREFIX}/share/adzapper
+ ${INSTALL_SCRIPT} ${WRKSRC}/rc.adzapper.sh ${PREFIX}/etc/rc.d/adzapper.sh.sample
+ @if [ -d ${PREFIX}/share/adzapper/zaplets ]; then \
+ ${MV} -f ${PREFIX}/share/adzapper/zaplets ${PREFIX}/share/adzapper/zaplets.old; \
+ fi
+.for dir in doc dtml src zaplets
+ ${CP} -Rp ${WRKSRC}/${dir} ${PREFIX}/share/adzapper
+.endfor
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/adzapper
- ${INSTALL_DATA} ${WRKSRC}/adzapper.conf ${PREFIX}/etc
- ${INSTALL_DATA} ${WRKSRC}/adzapper.conf ${PREFIX}/etc/adzapper.conf.sample
+ ${INSTALL_DATA} ${WRKSRC}/adzapper.conf ${PREFIX}/etc/adzapper.conf.default
+ @${ECHO_MSG} "===> Copy the ${PREFIX}/etc/adzapper.conf.default to ${PREFIX}/etc/adzapper.conf,"
+ @${ECHO_MSG} "===> adding your own customizations, before starting adzapperd."
.include <bsd.port.mk>