2000-11-11 16:41:05 +00:00
|
|
|
# New ports collection makefile for: adzapper
|
|
|
|
# Date created: 01 Oct 1999
|
|
|
|
# Whom: Dominik Rothert <dr@domix.de>
|
1999-11-01 02:33:09 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-10 00:07:29 +00:00
|
|
|
PORTNAME= adzapper
|
2000-11-11 16:41:05 +00:00
|
|
|
PORTVERSION= 0.3.0
|
1999-11-01 02:33:09 +00:00
|
|
|
CATEGORIES= www
|
2000-11-11 16:41:05 +00:00
|
|
|
MASTER_SITES= http://www.zaplet.org/adzapper/ \
|
|
|
|
ftp://ftp.aquezada.com/pub/distrib/adzapper/
|
1999-11-01 02:33:09 +00:00
|
|
|
|
2000-11-11 16:41:05 +00:00
|
|
|
MAINTAINER= jdunn@aquezada.com
|
1999-11-01 02:33:09 +00:00
|
|
|
|
2000-11-11 16:41:05 +00:00
|
|
|
USE_PYTHON= yes
|
1999-11-01 02:33:09 +00:00
|
|
|
|
2000-11-11 16:41:05 +00:00
|
|
|
do-configure:
|
1999-11-01 02:33:09 +00:00
|
|
|
@${SED} -e 's,__PREFIX__,${PREFIX},g' ${FILESDIR}/adzapper.sh > \
|
|
|
|
${WRKSRC}/adzapper.sh
|
2000-11-11 16:41:05 +00:00
|
|
|
@${SED} -e 's,__PREFIX__,${PREFIX},g' ${FILESDIR}/rc.adzapper.sh > \
|
2000-03-11 03:02:21 +00:00
|
|
|
${WRKSRC}/rc.adzapper.sh
|
1999-11-01 02:33:09 +00:00
|
|
|
|
2000-11-11 16:41:05 +00:00
|
|
|
do-build:
|
|
|
|
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
|
|
|
|
|
1999-11-01 02:33:09 +00:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/share/adzapper
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/adzapper.sh ${PREFIX}/sbin/adzapper
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/adzapper.py ${PREFIX}/share/adzapper/
|
2000-11-11 16:41:05 +00:00
|
|
|
${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
|
1999-11-01 02:33:09 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/adzapper
|
2000-11-11 16:41:05 +00:00
|
|
|
${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."
|
1999-11-01 02:33:09 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|