summaryrefslogtreecommitdiff
path: root/security/sancp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/sancp/Makefile')
-rw-r--r--security/sancp/Makefile25
1 files changed, 13 insertions, 12 deletions
diff --git a/security/sancp/Makefile b/security/sancp/Makefile
index 65ce225d724d..a841f7ae6d56 100644
--- a/security/sancp/Makefile
+++ b/security/sancp/Makefile
@@ -7,39 +7,40 @@
PORTNAME= sancp
PORTVERSION= 1.6.1
+PORTREVISION= 1
CATEGORIES= security
-MASTER_SITES= http://www.metre.net/files/
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= sancp
+
+PATCH_SITES= http://sancp.sourceforge.net/
+PATCHFILES= sancp-1.6.1.fix200511.a.patch \
+ sancp-1.6.1.fix200511.b.patch
+PATCH_DIST_STRIP=-p1
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}
+USE_RC_SUBR= sancp.sh
+SUB_FILES= pkg-message
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
+ ${INSTALL_DATA} ${WRKSRC}/etc/sancp/${f} ${PREFIX}/etc/${f}-dist
[ -f ${PREFIX}/etc/${f} ] || \
- ${INSTALL_DATA} ${WRKSRC}/etc/sancp/${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}
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>