From owner-svn-ports-head@FreeBSD.ORG Thu Dec 11 07:59:05 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 137D21A5; Thu, 11 Dec 2014 07:59:05 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F2E976AB61; Thu, 11 Dec 2014 07:59:04 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sBB7x4O9044347; Thu, 11 Dec 2014 07:59:04 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sBB7x4da044343; Thu, 11 Dec 2014 07:59:04 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201412110759.sBB7x4da044343@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Thu, 11 Dec 2014 07:59:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r374514 - head/sysutils/munin-node X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Dec 2014 07:59:05 -0000 Author: mat Date: Thu Dec 11 07:59:03 2014 New Revision: 374514 URL: https://svnweb.freebsd.org/changeset/ports/374514 QAT: https://qat.redports.org/buildarchive/r374514/ Log: Cleanup pkg-{,de}install, don't restart munin-node from here, pkg can do it itself. Sponsored by: Absolight Modified: head/sysutils/munin-node/Makefile head/sysutils/munin-node/pkg-deinstall head/sysutils/munin-node/pkg-install Modified: head/sysutils/munin-node/Makefile ============================================================================== --- head/sysutils/munin-node/Makefile Thu Dec 11 07:28:39 2014 (r374513) +++ head/sysutils/munin-node/Makefile Thu Dec 11 07:59:03 2014 (r374514) @@ -3,7 +3,7 @@ PORTNAME= munin PORTVERSION= ${MUNIN_VERSION} -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils perl5 MASTER_SITES= ${MUNIN_SITES} PKGNAMESUFFIX= -node Modified: head/sysutils/munin-node/pkg-deinstall ============================================================================== --- head/sysutils/munin-node/pkg-deinstall Thu Dec 11 07:28:39 2014 (r374513) +++ head/sysutils/munin-node/pkg-deinstall Thu Dec 11 07:59:03 2014 (r374514) @@ -1,13 +1,5 @@ #! /bin/sh -stop_process() { - STARTSTOP=${PKG_PREFIX}/etc/rc.d/munin-node - - if [ -x $STARTSTOP ]; then - $STARTSTOP stop - fi -} - delnewsyslog() { tmp="/etc/#munin-node$$" sed -e '/^\/var\/log\/munin\/munin-node.log[ ]/d' /etc/newsyslog.conf >${tmp} @@ -32,7 +24,6 @@ newsyslog() { case $2 in DEINSTALL) if [ -z "${PACKAGE_BUILDING}" ]; then - stop_process newsyslog fi ;; Modified: head/sysutils/munin-node/pkg-install ============================================================================== --- head/sysutils/munin-node/pkg-install Thu Dec 11 07:28:39 2014 (r374513) +++ head/sysutils/munin-node/pkg-install Thu Dec 11 07:59:03 2014 (r374514) @@ -1,34 +1,5 @@ #! /bin/sh -ask() { - local question default answer - - question=$1 - default=$2 - if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then - read -p "${question} [${default}]? " answer - fi - if [ x${answer} = x ]; then - answer=${default} - fi - echo ${answer} -} - -yesno() { - local dflt question answer - - question=$1 - dflt=$2 - while :; do - answer=$(ask "${question}" "${dflt}") - case "${answer}" in - [Yy]*) return 0;; - [Nn]*) return 1;; - esac - echo "Please answer yes or no." - done -} - init_plugins() { if [ -f /tmp/.munin-node.version ]; then prevver=$(cat /tmp/.munin-node.version) @@ -41,26 +12,6 @@ init_plugins() { echo "done." } -create_crontab_entries() { - local sched prog - sched=$1 - prog=$2 - - if grep -q "^[^#]*$prog" /etc/crontab; then - echo "It looks like your crontab is already set up, so I'll use that." - else - echo "It looks like your perl suffers from unsafe signals." - if yesno "Would you like me to set up your root crontab to restart munin-node" y; then - cat <>/etc/crontab -$sched root $prog -EOT - else - echo "You may suffer from munin-node crashing after log rotation." - echo "If you still want to restart munin-node, use $prog." - fi - fi -} - newsyslog() { if grep -q /var/log/munin/munin-node.log /etc/newsyslog.conf; then : @@ -80,7 +31,6 @@ case $2 in POST-INSTALL) if [ -z "${PACKAGE_BUILDING}" ]; then init_plugins - ${PKG_PREFIX}/etc/rc.d/munin-node start newsyslog fi ;;