aboutsummaryrefslogtreecommitdiffstats
path: root/net/bld/Makefile
blob: 06c919b6e337fd2c12298aab4c0634f528729faf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# New ports collection makefile for:   bld
# Date created:        12 October 2004
# Whom:                ob
#
# $FreeBSD$
#

PORTNAME=   bld
PORTVERSION=    0.3.2
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>