1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- fix newsyslog entries, logs have been living in /var/log/munin for some

time now [1]
- drop MD5 checksum

Inspired by:	ports/151182 [1]
This commit is contained in:
Florian Smeets 2011-02-15 00:14:20 +00:00
parent 02c771df45
commit de626f2bc8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=269166
4 changed files with 6 additions and 7 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= munin
PORTVERSION= 1.4.5
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils perl5
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20stable/${PORTVERSION}
PKGNAMESUFFIX= -master

View File

@ -1,3 +1,2 @@
MD5 (munin-1.4.5.tar.gz) = 4ae84b9a27b686c3819d8d7b51d8cb4c
SHA256 (munin-1.4.5.tar.gz) = 4f8632713c5267e282b091cf7ef5163c5de321536e76dbaab2204aa23c957138
SIZE (munin-1.4.5.tar.gz) = 1231622

View File

@ -51,14 +51,14 @@ delete_crontab_entries() {
delnewsyslog() {
tmp="/etc/#munin-node$$"
sed -e '/^\/var\/log\/munin-master\/\*\.log[ ]/d' /etc/newsyslog.conf >${tmp}
sed -e '/^\/var\/log\/munin\/\*\.log[ ]/d' /etc/newsyslog.conf >${tmp}
cat ${tmp} > /etc/newsyslog.conf
rm ${tmp}
}
newsyslog() {
ENTRY=`fgrep '/var/log/munin-master/*' /etc/newsyslog.conf`
DEFAULT='/var/log/munin-master/*.log munin:munin 644 7 * @T00 GNWZ'
ENTRY=`fgrep '/var/log/munin/*' /etc/newsyslog.conf`
DEFAULT='/var/log/munin/*.log munin:munin 644 7 * @T00 GNWZ'
if [ -z "$ENTRY" ]; then
exit 0
elif [ "$ENTRY" = "$DEFAULT" ]; then

View File

@ -49,11 +49,11 @@ mklogdir() {
}
newsyslog() {
if fgrep -q '/var/log/munin-master/*' /etc/newsyslog.conf; then
if fgrep -q '/var/log/munin/*' /etc/newsyslog.conf; then
:
else
cat >> /etc/newsyslog.conf <<EOT
/var/log/munin-master/*.log munin:munin 644 7 * @T00 GNWZ
/var/log/munin/*.log munin:munin 644 7 * @T00 GNWZ
EOT
fi
}