freebsd-ports/net/bld/Makefile
Anton Berezin 4ccc6ca0d9 Fix build on 4.X. Bump portrevision.
Noticed by:	kris
Submitted by:	maintainer
2004-11-04 12:22:21 +00:00

49 lines
1.1 KiB
Makefile

# New ports collection makefile for: bld
# Date created: 12 October 2004
# Whom: ob
#
# $FreeBSD$
#
PORTNAME= bld
PORTVERSION= 0.3.1
PORTREVISION= 1
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
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>