mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
- Update to 1.2.5
Notes: Please read the UPDATING! PR: ports/105107 Submitted by: Lupe Christoph <lupe@lupe-christoph.de> (maintainer)
This commit is contained in:
parent
94b229537b
commit
2946e4e824
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=176658
@ -6,8 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= munin
|
||||
PORTVERSION= 1.2.4
|
||||
PORTREVISION= 2
|
||||
PORTVERSION= 1.2.5
|
||||
CATEGORIES= sysutils perl5
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= munin
|
||||
@ -35,7 +34,7 @@ PATCH_STRIP= -p1
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.r/rc/}
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
ALL_TARGET= DATADIR=${DATADIR} PERL=${PERL} build build-man
|
||||
INSTALL_TARGET= DATADIR=${DATADIR} PERL=${PERL} install-node install-node-plugins
|
||||
INSTALL_TARGET= DATADIR=${DATADIR} PERL=${PERL} SITE_PERL_REL=$(SITE_PERL_REL) install-node install-node-plugins
|
||||
MAKE_ENV= LANG=C
|
||||
|
||||
MAN5= munin-node.conf.5
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (munin_1.2.4.tar.gz) = f91f5d96c01d8527db1d2f4b3f0f4cc5
|
||||
SHA256 (munin_1.2.4.tar.gz) = 23a6404ad84776446b7af0c4d27c57f8a06ab74602f4304e0745c35621ae7f7c
|
||||
SIZE (munin_1.2.4.tar.gz) = 345821
|
||||
MD5 (munin_1.2.5.tar.gz) = e863d11693c02bde1c593a6c701e64fd
|
||||
SHA256 (munin_1.2.5.tar.gz) = 2d1ea4aa3f0eaf11a5beb0b90f9bbee63e184249e06274fcc9d4c17b70b47a5e
|
||||
SIZE (munin_1.2.5.tar.gz) = 353005
|
||||
|
@ -38,7 +38,7 @@
|
||||
# Server only - Output directory
|
||||
-HTMLDIR = $(PREFIX)/var/www
|
||||
-CGIDIR = $(HTMLDIR)/cgi
|
||||
+HTMLDIR = $(PREFIX)/www/data/munin
|
||||
+HTMLDIR = $(PREFIX)/www/munin
|
||||
+CGIDIR = $(PREFIX)/www/cgi-bin
|
||||
|
||||
# Client only - Where to put RRD files and other intenal data
|
||||
@ -67,7 +67,7 @@
|
||||
|
||||
# Server only - Where to install the perl libraries
|
||||
-PERLLIB = $(DESTDIR)$(shell $(PERL) -V:sitelib | cut -d= -f2 | sed "s/[\';]//g")
|
||||
+PERLLIB = $(shell $(PERL) -V:sitelib | cut -d= -f2 | sed "s/[\';]//g")
|
||||
+PERLLIB = $(PREFIX)/$(SITE_PERL_REL)
|
||||
|
||||
# Client only - Install plugins for this architecture
|
||||
OSTYPE = $(shell uname | tr '[A-Z]' '[a-z]')
|
||||
|
@ -5,7 +5,7 @@ ask() {
|
||||
|
||||
question=$1
|
||||
default=$2
|
||||
if [ -z "${PACKAGE_BUILDING}" ]; then
|
||||
if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
|
||||
read -p "${question} [${default}]? " answer
|
||||
fi
|
||||
if [ x${answer} = x ]; then
|
||||
@ -83,9 +83,11 @@ Do you want me to delete it?" y; then
|
||||
|
||||
case $2 in
|
||||
DEINSTALL)
|
||||
delete_crontab_entries ${PKG_PREFIX}/bin/munin-node-revive
|
||||
stop_process
|
||||
newsyslog
|
||||
if [ -z "${PACKAGE_BUILDING}" ]; then
|
||||
delete_crontab_entries ${PKG_PREFIX}/bin/munin-node-revive
|
||||
stop_process
|
||||
newsyslog
|
||||
fi
|
||||
;;
|
||||
POST-DEINSTALL)
|
||||
delete_group munin
|
||||
|
@ -5,7 +5,7 @@ ask() {
|
||||
|
||||
question=$1
|
||||
default=$2
|
||||
if [ -z "${PACKAGE_BUILDING}" ]; then
|
||||
if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
|
||||
read -p "${question} [${default}]? " answer
|
||||
fi
|
||||
if [ x${answer} = x ]; then
|
||||
@ -112,8 +112,10 @@ case $2 in
|
||||
make_group munin
|
||||
;;
|
||||
POST-INSTALL)
|
||||
init_plugins
|
||||
${PKG_PREFIX}/etc/rc.d/munin-node.sh start
|
||||
newsyslog
|
||||
if [ -z "${PACKAGE_BUILDING}" ]; then
|
||||
init_plugins
|
||||
${PKG_PREFIX}/etc/rc.d/munin-node.sh start
|
||||
newsyslog
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
@ -2,7 +2,7 @@
|
||||
@exec mkdir -p %D/etc/munin/plugin-conf.d && chmod 755 %D/etc/munin/plugin-conf.d
|
||||
@exec mkdir -p %D/var/munin/plugin-state && chgrp munin %D/var/munin/plugin-state && chmod 775 %D/var/munin/plugin-state
|
||||
@unexec rm %D/bin/munin-node-revive 2>/dev/null || true
|
||||
@comment etc/munin/VERSION.node must remain for upgrade version check
|
||||
@unexec if [ -n "$PACKAGE_BUILDING" ]; then rm -f %D/etc/munin/VERSION.node; fi
|
||||
@unexec if cmp -s %D/etc/munin/munin-node.conf %D/etc/munin/munin-node.conf.sample; then rm -f %D/etc/munin/munin-node.conf; fi
|
||||
etc/munin/munin-node.conf.sample
|
||||
@unexec if cmp -s %D/etc/munin/plugin-conf.d/plugins.conf %D/etc/munin/plugin-conf.d/plugins.conf.sample; then rm -f %D/etc/munin/plugin-conf.d/plugins.conf; fi
|
||||
@ -113,9 +113,12 @@ sbin/munin-run
|
||||
@dirrmtry %%DATADIR%%/plugins
|
||||
@dirrmtry %%DATADIR%%
|
||||
@dirrmtry etc/munin/plugin-conf.d
|
||||
@dirrmtry etc/munin/plugins
|
||||
@dirrmtry etc/munin
|
||||
@unexec rmdir %%LOCALBASE%%/%%SITE_PERL%%/Munin/Plugin 2>/dev/null || true
|
||||
@unexec rmdir %%LOCALBASE%%/%%SITE_PERL%%/Munin 2>/dev/null || true
|
||||
@unexec echo remove %%SITE_PERL%%/Munin/Plugin
|
||||
@unexec echo remove %%SITE_PERL%%/Munin
|
||||
@dirrmtry %%SITE_PERL%%/Munin/Plugin
|
||||
@dirrmtry %%SITE_PERL%%/Munin
|
||||
@unexec echo
|
||||
@unexec echo '********************************************************************'
|
||||
@unexec echo "If you want to *completely* remove munin-node, you have to"
|
||||
|
Loading…
Reference in New Issue
Block a user