mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
7230c54899
PR: ports/84045 Submitted by: Olivier Beyssac <obld@r14.freenix.org> (maintainer) Approved by: flz (mentor)
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# New ports collection makefile for: bld
|
|
# Date created: 12 October 2004
|
|
# Whom: ob
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= bld
|
|
PORTVERSION= 0.3.3
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.online.redhate.org/bld/
|
|
|
|
MAINTAINER= obld@r14.freenix.org
|
|
COMMENT= A blacklisting daemon
|
|
|
|
USE_RC_SUBR= yes
|
|
MANCOMPRESSED= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/bld
|
|
PORTDOCS= README README.postfix
|
|
MAN5= bld_whitelist.conf.5 bld_acl.conf.5 bld.conf.5
|
|
MAN8= bldsubmit.8 bld.8 bldquery.8 bldread.8 bldinsert.8 blddecr.8 \
|
|
bld-pf_policy.8 bld-pf_log.pl.8 bld-mrtg.pl.8 \
|
|
bld-will_spam_for_food.pl.8
|
|
|
|
SED_SCRIPT= -e 's|%%PREFIX%%|${PREFIX}|g'
|
|
RC_DIR= ${PREFIX}/etc/rc.d
|
|
RC_SUFX= .sh
|
|
SED_SCRIPT+= -e 's|%%RC_SUBR%%|${RC_SUBR}|g' \
|
|
-e 's|%%RC_DIR%%|${RC_DIR}|g' \
|
|
-e 's|%%RC_SUFX%%|${RC_SUFX}|g'
|
|
|
|
post-build:
|
|
${SED} ${SED_SCRIPT} ${FILESDIR}/bld.sh \
|
|
>${WRKDIR}/bld.sh
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for doc in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/bld.sh \
|
|
${RC_DIR}/bld${RC_SUFX}
|
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
.include <bsd.port.mk>
|