blob: 6cf76dc1a6ba0754a3590dfecdc4893400a53c42 (
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
49
50
|
# New ports collection makefile for: fwanalog
# Date created: 11 March 2002
# Whom: Kimura Fuyuki <fuyuki@mj.0038.net>
#
# $FreeBSD$
#
PORTNAME= fwanalog
PORTVERSION= 0.6
CATEGORIES= security
MASTER_SITES= http://tud.at/programm/fwanalog/
MAINTAINER= fuyuki@mj.0038.net
RUN_DEPENDS= analog:${PORTSDIR}/www/analog
ETCDIR= ${PREFIX}/etc/${PORTNAME}
PLIST_SUB+= ETCDIR=${ETCDIR}
CONFFILES= fwanalog-dom.tab \
fwanalog.analog.conf \
fwanalog.analog.conf.local \
fwanalog.lng \
fwanalog.opts \
services.conf
post-patch:
${PERL} -pi -e "s,the script's directory.*$$,${ETCDIR},;" \
-e 's,cd .*$$,cd ${ETCDIR},; s,sh\$$/,\$$/.,' \
${WRKSRC}/fwanalog.sh
${PERL} -pi -e 's/"freebsd/"ipf/; s/"ipflog/"messages/' \
${WRKSRC}/fwanalog.opts.freebsd
do-build:
${LN} ${WRKSRC}/fwanalog.opts.freebsd ${WRKSRC}/fwanalog.opts
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/fwanalog.sh ${PREFIX}/sbin/fwanalog
${MKDIR} ${ETCDIR}
.for i in ${CONFFILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${ETCDIR}/${i}-dist
${TEST} -f ${ETCDIR}/${i} || ${INSTALL_DATA} ${WRKSRC}/${i} ${ETCDIR}/${i}
.endfor
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>
|