diff options
author | glarkin <glarkin@FreeBSD.org> | 2012-10-18 03:14:19 +0800 |
---|---|---|
committer | glarkin <glarkin@FreeBSD.org> | 2012-10-18 03:14:19 +0800 |
commit | fd04a068b43be9aa56ffa486031e9a306d960b41 (patch) | |
tree | 24073a89342b562c174d741634db75d9a04961a0 | |
parent | 3500415f35c8424e878909b676fc77d835bb1c72 (diff) | |
download | freebsd-ports-gnome-fd04a068b43be9aa56ffa486031e9a306d960b41.tar.gz freebsd-ports-gnome-fd04a068b43be9aa56ffa486031e9a306d960b41.tar.zst freebsd-ports-gnome-fd04a068b43be9aa56ffa486031e9a306d960b41.zip |
- Updated to 1.3.15
PR: ports/172520
Submitted by: Takefu <takefu@airport.fm>
Feature safe: yes
-rw-r--r-- | security/logcheck/Makefile | 54 | ||||
-rw-r--r-- | security/logcheck/distinfo | 4 | ||||
-rw-r--r-- | security/logcheck/pkg-plist | 2 |
3 files changed, 29 insertions, 31 deletions
diff --git a/security/logcheck/Makefile b/security/logcheck/Makefile index b839069e7c5d..90de142a4286 100644 --- a/security/logcheck/Makefile +++ b/security/logcheck/Makefile @@ -6,8 +6,7 @@ # PORTNAME= logcheck -PORTVERSION= 1.3.14 -PORTREVISION= 1 +PORTVERSION= 1.3.15 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL} DISTNAME= ${PORTNAME}_${PORTVERSION} @@ -26,13 +25,14 @@ LOGCHECK_UID= 915 LOGCHECK_GROUP= ${LOGCHECK_USER} LOGCHECK_GID= ${LOGCHECK_UID} -DBDIR= /var/db/${PORTNAME} -RUNDIR= /var/run/${PORTNAME} +BASEDIR?= # None. portlint compliance +DBDIR= ${BASEDIR}/var/db/${PORTNAME} +RUNDIR= ${BASEDIR}/var/run/${PORTNAME} # Enable Perl dependency for logtail script USE_PERL5= 5.8.0+ -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +WRKSRC= ${WRKDIR}/${DISTNAME:S!_!-!} BINMODE= 755 SHAREMODE= 640 SUB_LIST+= LOGCHECK_USER=${LOGCHECK_USER} \ @@ -55,6 +55,8 @@ PATCH_LIST= extra-patch-debian__logcheck.cron.d \ extra-patch-src__logtail2 EXTRA_PATCHES= ${PATCH_LIST:C|^|${WRKDIR}/|g} +.include <bsd.port.pre.mk> + pre-patch: .for patch in ${PATCH_LIST} @${SED} ${_SUB_LIST_TEMP} ${FILESDIR}/${patch}.in > ${WRKDIR}/${patch} @@ -74,45 +76,39 @@ do-install: ${INSTALL_SCRIPT} ${WRKSRC}/src/logtail ${PREFIX}/sbin ${INSTALL_SCRIPT} ${WRKSRC}/src/logtail2 ${PREFIX}/sbin @PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - @${INSTALL} -d ${DBDIR} - @${INSTALL} -d ${RUNDIR} - ${CHOWN} ${LOGCHECK_USER}:${LOGCHECK_GROUP} ${DBDIR} - @${ECHO_CMD} '@exec ${CHOWN} -R ${LOGCHECK_USER}:${LOGCHECK_GROUP} \ - ${DBDIR}' >> ${TMPPLIST} - ${CHOWN} ${LOGCHECK_USER}:${LOGCHECK_GROUP} ${RUNDIR} + @${INSTALL} -d -o ${LOGCHECK_USER} -g ${LOGCHECK_GROUP} \ + ${DBDIR} ${RUNDIR} @${ECHO_CMD} '@exec ${CHOWN} -R ${LOGCHECK_USER}:${LOGCHECK_GROUP} \ - ${RUNDIR}' >> ${TMPPLIST} - @${INSTALL} -d ${ETCDIR} - @${INSTALL_DATA} ${WRKSRC}/etc/logcheck.conf \ + ${DBDIR} ${RUNDIR}' >> ${TMPPLIST} + @${INSTALL} -d -g ${LOGCHECK_GROUP} ${ETCDIR} + @${INSTALL_DATA} -g ${LOGCHECK_GROUP} ${WRKSRC}/etc/logcheck.conf \ ${ETCDIR}/logcheck.conf.sample - @${INSTALL_DATA} ${WRKSRC}/etc/logcheck.logfiles \ + @${INSTALL_DATA} -g ${LOGCHECK_GROUP} ${WRKSRC}/etc/logcheck.logfiles \ ${ETCDIR}/logcheck.logfiles.sample .for i in ${CONFIG_DIRS} - @${INSTALL} -d ${ETCDIR}/${i} - @${INSTALL_DATA} ${WRKSRC}/rulefiles/linux/${i}/* ${ETCDIR}/${i} + @${INSTALL} -d -g ${LOGCHECK_GROUP} ${ETCDIR}/${i} + @${INSTALL_DATA} -g ${LOGCHECK_GROUP} ${WRKSRC}/rulefiles/linux/${i}/* \ + ${ETCDIR}/${i} .endfor - @${INSTALL} -d ${DATADIR}/detectrotate - @${INSTALL_DATA} ${WRKSRC}/src/detectrotate/*.dtr ${DATADIR}/detectrotate + @${INSTALL} -d -g ${LOGCHECK_GROUP} ${DATADIR}/detectrotate + @${INSTALL_DATA} -g ${LOGCHECK_GROUP} ${WRKSRC}/src/detectrotate/*.dtr \ + ${DATADIR}/detectrotate .if !defined(NOPORTEXAMPLES) @${INSTALL} -d ${EXAMPLESDIR} - @${INSTALL_DATA} ${WRKSRC}/debian/logcheck.cron.d \ + @${INSTALL_DATA} -m 0644 ${WRKSRC}/debian/logcheck.cron.d \ ${EXAMPLESDIR}/crontab.in .endif - ${CHOWN} -R root:${LOGCHECK_GROUP} ${ETCDIR} - @${ECHO_CMD} '@exec ${CHOWN} -R root:${LOGCHECK_GROUP} \ - ${ETCDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST} - ${CHOWN} -R root:${LOGCHECK_GROUP} ${DATADIR} - @${ECHO_CMD} '@exec ${CHOWN} -R root:${LOGCHECK_GROUP} \ + @${ECHO_CMD} '@exec ${CHGRP} -R ${LOGCHECK_GROUP} \ + ${ETCDIR:S|^${PREFIX}/|%D/|} \ ${DATADIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST} @PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${INSTALL_MAN} ${WRKSRC}/docs/*.8 ${MAN8PREFIX}/man/man8 post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${INSTALL} -d ${DOCSDIR} - @cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} - @${CHMOD} 644 ${DOCSDIR}/* + @cd ${WRKSRC} && ${INSTALL_DATA} -m 0644 ${DOCS} ${DOCSDIR} .endif @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/security/logcheck/distinfo b/security/logcheck/distinfo index ac96a3ecea36..e51b06a8b5d5 100644 --- a/security/logcheck/distinfo +++ b/security/logcheck/distinfo @@ -1,2 +1,2 @@ -SHA256 (logcheck_1.3.14.tar.gz) = aba50525b075e6b3446e18ff70b85d0704c82bcf80a5e21e4a5d2c27c555f6b0 -SIZE (logcheck_1.3.14.tar.gz) = 161518 +SHA256 (logcheck_1.3.15.tar.gz) = b29b4753940a9130b5f19f60d2d89af23be220674625f4bd2fb1d40945d0b9e5 +SIZE (logcheck_1.3.15.tar.gz) = 162397 diff --git a/security/logcheck/pkg-plist b/security/logcheck/pkg-plist index e0e744ab3c31..58852e0e611e 100644 --- a/security/logcheck/pkg-plist +++ b/security/logcheck/pkg-plist @@ -49,6 +49,7 @@ %%ETCDIR%%/ignore.d.server/dkim-filter %%ETCDIR%%/ignore.d.server/dnsmasq %%ETCDIR%%/ignore.d.server/dovecot +%%ETCDIR%%/ignore.d.server/dropbear %%ETCDIR%%/ignore.d.server/dspam %%ETCDIR%%/ignore.d.server/epmd %%ETCDIR%%/ignore.d.server/exim4 @@ -159,6 +160,7 @@ %%ETCDIR%%/ignore.d.workstation/kdm %%ETCDIR%%/ignore.d.workstation/kernel %%ETCDIR%%/ignore.d.workstation/laptop-mode-tools +%%ETCDIR%%/ignore.d.workstation/libmtp-runtime %%ETCDIR%%/ignore.d.workstation/libpam-gnome-keyring %%ETCDIR%%/ignore.d.workstation/logcheck %%ETCDIR%%/ignore.d.workstation/login |