mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
- Fixed left-over directory problem
- Added entries for logcheck user in UIDs and GIDs - Fixed package building problems (perms and empty dir creation) Reported by: QA Tindy Approved by: portmgr (erwin)
This commit is contained in:
parent
51123aa453
commit
9121e42567
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=220297
1
GIDs
1
GIDs
@ -132,3 +132,4 @@ bacula:*:910:
|
||||
iserv:*:911:
|
||||
_relayd:*:913:
|
||||
bitlbee:*:914:
|
||||
logcheck:*:915:
|
||||
|
1
UIDs
1
UIDs
@ -144,3 +144,4 @@ iserv:*:911:911::0:0:Iserv Daemon:/nonexistent:/usr/sbin/nologin
|
||||
_sj3:*:912:912::0:0:SJ3 Daemon:/nonexistent:/usr/sbin/nologin
|
||||
_relayd:*:913:913::0:0:Relay Daemon:/var/empty:/usr/sbin/nologin
|
||||
bitlbee:*:914:914::0:0:Bitlbee pseudo-user:/nonexistent:/sbin/nologin
|
||||
logcheck:*:915:915::0:0:Logcheck system account:/var/lib/logcheck:/sbin/nologin
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= logcheck
|
||||
PORTVERSION= 1.2.54
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ftp://ftp.debian.org/debian/pool/main/l/logcheck/ \
|
||||
http://ftp.de.debian.org/debian/pool/main/l/logcheck/
|
||||
@ -30,6 +31,9 @@ DOCS= AUTHORS CHANGES CREDITS LICENSE TODO docs/README*
|
||||
PORTDOCS= ${DOCS:T}
|
||||
MAN8= logcheck.8 logtail.8
|
||||
|
||||
LOGCHECK_USER= logcheck
|
||||
LOGCHECK_GROUP= ${LOGCHECK_USER}
|
||||
|
||||
do-build:
|
||||
${REINPLACE_CMD} -e 's!/var/log/syslog!/var/log/messages!' \
|
||||
${WRKSRC}/etc/logcheck.logfiles
|
||||
@ -44,8 +48,12 @@ do-install:
|
||||
@PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
||||
@${INSTALL} -d /var/lib/logcheck
|
||||
@${INSTALL} -d /var/run/logcheck
|
||||
${CHOWN} logcheck:logcheck /var/lib/logcheck
|
||||
${CHOWN} logcheck:logcheck /var/run/logcheck
|
||||
${CHOWN} ${LOGCHECK_USER}:${LOGCHECK_GROUP} /var/lib/logcheck
|
||||
@${ECHO_CMD} '@exec ${CHOWN} -R ${LOGCHECK_USER}:${LOGCHECK_GROUP} \
|
||||
/var/lib/logcheck' >> ${TMPPLIST}
|
||||
${CHOWN} ${LOGCHECK_USER}:${LOGCHECK_GROUP} /var/run/logcheck
|
||||
@${ECHO_CMD} '@exec ${CHOWN} -R ${LOGCHECK_USER}:${LOGCHECK_GROUP} \
|
||||
/var/run/logcheck' >> ${TMPPLIST}
|
||||
@${INSTALL} -d ${ETCDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/etc/logcheck.conf ${ETCDIR}/logcheck.conf.sample
|
||||
@${INSTALL_DATA} ${WRKSRC}/etc/logcheck.logfiles ${ETCDIR}/logcheck.logfiles.sample
|
||||
@ -53,12 +61,13 @@ do-install:
|
||||
@${INSTALL} -d ${ETCDIR}/${i}
|
||||
@${INSTALL_DATA} ${WRKSRC}/rulefiles/linux/${i}/* ${ETCDIR}/${i}
|
||||
.endfor
|
||||
@${INSTALL} -d ${DOCSDIR}
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
@${INSTALL} -d ${EXAMPLESDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/debian/logcheck.cron.d ${EXAMPLESDIR}/crontab.in
|
||||
.endif
|
||||
${CHOWN} -R root:logcheck ${ETCDIR}
|
||||
${CHOWN} -R root:${LOGCHECK_GROUP} ${ETCDIR}
|
||||
@${ECHO_CMD} '@exec ${CHOWN} -R root:${LOGCHECK_GROUP} \
|
||||
${ETCDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
|
||||
@PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
@${INSTALL_MAN} ${WRKSRC}/docs/*.8 ${MAN8PREFIX}/man/man8
|
||||
|
||||
|
@ -182,3 +182,7 @@ sbin/logtail
|
||||
@dirrm %%ETCDIR%%/ignore.d.paranoid
|
||||
@dirrm %%ETCDIR%%/cracking.d
|
||||
@dirrm %%ETCDIR%%
|
||||
@exec mkdir -p /var/lib/logcheck
|
||||
@unexec rm -rf /var/lib/logcheck 2> /dev/null || true
|
||||
@exec mkdir -p /var/run/logcheck
|
||||
@unexec rm -rf /var/run/logcheck 2> /dev/null || true
|
||||
|
Loading…
Reference in New Issue
Block a user