blob: 65ce225d724d8b423ba688ee2198dd4ba5187b26 (
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
|
# New ports collection makefile for: sancp
# Date created: 10 Feb 2005
# Whom: Paul Schmehl <pauls@utdallas.edu>
#
# $FreeBSD$
#
PORTNAME= sancp
PORTVERSION= 1.6.1
CATEGORIES= security
MASTER_SITES= http://www.metre.net/files/
MAINTAINER= pauls@utdallas.edu
COMMENT= A network connection profiler
ALL_TARGET= final
USE_REINPLACE= yes
USE_RC_SUBR= yes
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
PORTDOCS= CHANGES INSTALL ISSUES README SETUP fields.LIST
.include <bsd.port.pre.mk>
post-patch:
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/sancp.sh > ${WRKDIR}/sancp.sh
post-install:
${SH} ${PKGINSTALL}
${INSTALL_PROGRAM} ${WRKSRC}/sancp ${PREFIX}/bin
${INSTALL_SCRIPT} -m 755 ${WRKDIR}/sancp.sh ${PREFIX}/etc/rc.d/sancp.sh
.for f in sancp.conf
${INSTALL_DATA} ${WRKSRC}/etc/sancp/${f} ${PREFIX}/etc/${f}-sample
[ -f ${PREFIX}/etc/${f} ] || \
${INSTALL_DATA} ${WRKSRC}/etc/sancp/${f} ${PREFIX}/etc/${f}
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} LICENSE ${DOCSDIR}
cd ${WRKSRC}/docs/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
@${SED} 's|%%PREFIX%%|${PREFIX}|' ${PKGMESSAGE}
.include <bsd.port.post.mk>
|