Date: Sun, 2 Feb 2014 12:25:24 +0000 (UTC) From: Lars Engels <lme@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r342278 - head/security/fcheck Message-ID: <201402021225.s12CPOF9028535@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lme Date: Sun Feb 2 12:25:24 2014 New Revision: 342278 URL: http://svnweb.freebsd.org/changeset/ports/342278 QAT: https://qat.redports.org/buildarchive/r342278/ Log: - Stagify - Add license - Use dos2unix on fcheck.cfg - Add a pkg-plist - Switch to sha512 in fcheck.cfg - Bump PORTREVISION Added: head/security/fcheck/pkg-plist (contents, props changed) Modified: head/security/fcheck/Makefile Modified: head/security/fcheck/Makefile ============================================================================== --- head/security/fcheck/Makefile Sun Feb 2 12:13:06 2014 (r342277) +++ head/security/fcheck/Makefile Sun Feb 2 12:25:24 2014 (r342278) @@ -3,6 +3,7 @@ PORTNAME= fcheck PORTVERSION= 2.07.59 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://www.sourcefiles.org/Networking/Security/Intrusion_Detection/ \ http://bsd-geek.de/FreeBSD/distfiles/ @@ -11,34 +12,32 @@ DISTNAME= FCheck_${PORTVERSION} MAINTAINER= lme@FreeBSD.org COMMENT= Intrusion detection and Policy enforcement / auditing software +LICENSE= GPLv2 GPLv3 +LICENSE_COMB= dual + WRKSRC= ${WRKDIR}/${PORTNAME} -PORTDOCS= * -PLIST_FILES= sbin/${PORTNAME} etc/${PORTNAME}.cfg.sample NO_BUILD= YES -USES= perl5 +USES= perl5 shebangfix dos2unix + +SHEBANG_FILES= ${WRKSRC}/${PORTNAME} +DOS2UNIX_FILES= ${WRKSRC}/${PORTNAME}.cfg -NO_STAGE= yes .include <bsd.port.pre.mk> post-patch: - @${REINPLACE_CMD} -e 's|/usr/bin/perl|${PREFIX}/bin/perl|' \ - -e 's|/usr/local/admtools/conf/|${PREFIX}/etc/|' ${WRKSRC}/${PORTNAME} + @${REINPLACE_CMD} -e 's|/usr/local/admtools/conf/|${PREFIX}/etc/|' \ + ${WRKSRC}/${PORTNAME} @${REINPLACE_CMD} -e 's|/usr/local/admtools/|/var/${PORTNAME}/|' \ - -e 's|/bin/file|/usr/bin/file|' -e 's|/bin/cksum|/sbin/md5|' \ + -e 's|/bin/file|/usr/bin/file|' -e 's|/bin/cksum|/sbin/sha512|' \ ${WRKSRC}/${PORTNAME}.cfg do-install: - ${MKDIR} /var/${PORTNAME} - ${MKDIR} /var/${PORTNAME}/logs - ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin - ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.cfg ${PREFIX}/etc/${PORTNAME}.cfg.sample - -post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR} - ${INSTALL_MAN} ${WRKSRC}/install ${DOCSDIR} -.endif + ${MKDIR} ${STAGEDIR}/var/${PORTNAME}/logs + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.cfg ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.cfg.sample + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/install ${STAGEDIR}${DOCSDIR} .include <bsd.port.post.mk> Added: head/security/fcheck/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/fcheck/pkg-plist Sun Feb 2 12:25:24 2014 (r342278) @@ -0,0 +1,10 @@ +@unexec if cmp -s %D/etc/fcheck.cfg %D/etc/fcheck.cfg.sample; then rm -f %D/etc/fcheck.cfg ; fi +etc/fcheck.cfg.sample +@exec if [ ! -f %D/etc/fcheck.cfg ]; then cp -p %D/%F %B/fcheck.cfg; fi +@exec mkdir -p /var/fcheck/logs +sbin/fcheck +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/install +%%PORTDOCS%%@dirrmtry %%DOCSDIR%% +@unexec rmdir /var/fcheck/logs +@unexec rmdir /var/fcheck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402021225.s12CPOF9028535>