From owner-freebsd-ports-bugs@FreeBSD.ORG Mon May 12 21:30:01 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 32DAA8F1 for ; Mon, 12 May 2014 21:30:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (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 0959322E9 for ; Mon, 12 May 2014 21:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s4CLU04G021291 for ; Mon, 12 May 2014 21:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s4CLU0a1021289; Mon, 12 May 2014 21:30:00 GMT (envelope-from gnats) Resent-Date: Mon, 12 May 2014 21:30:00 GMT Resent-Message-Id: <201405122130.s4CLU0a1021289@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tim Bishop Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 43DDA890; Mon, 12 May 2014 21:23:20 +0000 (UTC) Received: from mx1.kent.ac.uk (mx1.kent.ac.uk [129.12.21.39]) (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 06A6C22A8; Mon, 12 May 2014 21:23:20 +0000 (UTC) Received: from hathor.ukc.ac.uk ([129.12.4.12]) by mx1.kent.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1WjxMa-0001ez-Jr; Mon, 12 May 2014 22:02:20 +0100 Received: from aberfal.kent.ac.uk ([129.12.41.25]) by hathor.ukc.ac.uk with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1WjxMZ-0002bJ-RH; Mon, 12 May 2014 22:02:20 +0100 Received: from aberfal.kent.ac.uk (localhost [127.0.0.1]) by aberfal.kent.ac.uk (8.14.8/8.14.8) with ESMTP id s4CKHkvN094790 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 12 May 2014 21:17:46 +0100 (BST) (envelope-from tdb@aberfal.kent.ac.uk) Received: (from tdb@localhost) by aberfal.kent.ac.uk (8.14.8/8.14.8/Submit) id s4CKHkAS094789; Mon, 12 May 2014 21:17:46 +0100 (BST) (envelope-from tdb) Message-Id: <201405122017.s4CKHkAS094789@aberfal.kent.ac.uk> Date: Mon, 12 May 2014 21:17:46 +0100 (BST) From: Tim Bishop To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/189739: [PATCH] sysutils/swapd: update to 1.0.5 Cc: leeym@FreeBSD.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2014 21:30:01 -0000 >Number: 189739 >Category: ports >Synopsis: [PATCH] sysutils/swapd: update to 1.0.5 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon May 12 21:30:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Tim Bishop >Release: FreeBSD 10.0-STABLE amd64 >Organization: >Environment: System: FreeBSD aberfal.kent.ac.uk 10.0-STABLE FreeBSD 10.0-STABLE #0 r264471: Wed Apr 16 12:43:29 BST >Description: - Update to 1.0.5 - Stage support - Use new LIB_DEPENDS format Update to 1.0.5 is required to support the new libstatgrab 0.90 API. Until this update is applied this port will be broken. I (tdb@) am happy to handle committing this if approved. Port maintainer (leeym@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 1.02 (mode: update, diff: SVN) >How-To-Repeat: >Fix: --- swapd-1.0.5.patch begins here --- Index: Makefile =================================================================== --- Makefile (revision 353892) +++ Makefile (working copy) @@ -2,30 +2,26 @@ # $FreeBSD$ PORTNAME= swapd -PORTVERSION= 1.0.3 -PORTREVISION= 1 +PORTVERSION= 1.0.5 CATEGORIES= sysutils -MASTER_SITES= http://www.rkeene.org/files/oss/swapd/source/ +MASTER_SITES= http://www.rkeene.org/files/oss/swapd/ MAINTAINER= leeym@FreeBSD.org COMMENT= A daemon that watches free memory and manages swap files -LIB_DEPENDS= statgrab:${PORTSDIR}/devel/libstatgrab +LIB_DEPENDS= libstatgrab.so:${PORTSDIR}/devel/libstatgrab USES= gmake pkgconfig GNU_CONFIGURE= yes USE_RC_SUBR= swapd -MAN5= swapd.conf.5 -MAN8= swapd.8 -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/${CONFIGURE_SCRIPT} post-install: .for f in swapd_swapon swapd_swapoff - ${INSTALL_SCRIPT} ${FILESDIR}/${f} ${PREFIX}/sbin + ${INSTALL_SCRIPT} ${FILESDIR}/${f} ${STAGEDIR}${PREFIX}/sbin .endfor .include Index: distinfo =================================================================== --- distinfo (revision 353892) +++ distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (swapd-1.0.3.tar.gz) = 28e61c243268185a60e4012a612c054ebe9fd65215961df5e69fb32735984628 -SIZE (swapd-1.0.3.tar.gz) = 90981 +SHA256 (swapd-1.0.5.tar.gz) = a9c25251ad4b1eb163266cd44969975db5a872be68cf7bca66367d43875ccbc6 +SIZE (swapd-1.0.5.tar.gz) = 94713 Index: files/patch-Makefile.in =================================================================== --- files/patch-Makefile.in (revision 353892) +++ files/patch-Makefile.in (working copy) @@ -1,11 +1,22 @@ ---- Makefile.in.orig 2004-10-17 22:05:24.000000000 -0700 -+++ Makefile.in 2007-08-24 09:08:55.000000000 -0700 -@@ -35,6 +35,7 @@ - -$(INSTALL) -d $(mandir)/man8 - -$(INSTALL) -d $(mandir)/man5 - $(INSTALL) -m 755 swapd$(EXEEXT) $(sbindir)/swapd$(EXEEXT) +--- ./Makefile.in.orig 2004-10-18 06:05:24.000000000 +0100 ++++ ./Makefile.in 2013-11-22 22:33:19.141103774 +0000 +@@ -30,11 +30,11 @@ + rm -f Makefile config.h config.status config.log swapd.8 swapd.conf.5 + + install: all +- -$(INSTALL) -d $(sbindir) +- -$(INSTALL) -d $(sysconfdir) +- -$(INSTALL) -d $(mandir)/man8 +- -$(INSTALL) -d $(mandir)/man5 +- $(INSTALL) -m 755 swapd$(EXEEXT) $(sbindir)/swapd$(EXEEXT) - $(INSTALL) -m 644 swapd.conf $(sysconfdir)/swapd.conf -+ $(INSTALL) -m 644 swapd.conf $(sysconfdir)/swapd.conf.sample -+ if [ ! -f "$(sysconfdir)/swapd.conf" ]; then $(INSTALL) -m 644 swapd.conf $(sysconfdir)/swapd.conf; fi - $(INSTALL) -m 644 swapd.8 $(mandir)/man8/swapd.8 - $(INSTALL) -m 644 swapd.conf.5 $(mandir)/man5/swapd.conf.5 +- $(INSTALL) -m 644 swapd.8 $(mandir)/man8/swapd.8 +- $(INSTALL) -m 644 swapd.conf.5 $(mandir)/man5/swapd.conf.5 ++ -$(INSTALL) -d $(DESTDIR)$(sbindir) ++ -$(INSTALL) -d $(DESTDIR)$(sysconfdir) ++ -$(INSTALL) -d $(DESTDIR)$(mandir)/man8 ++ -$(INSTALL) -d $(DESTDIR)$(mandir)/man5 ++ $(INSTALL) -m 755 swapd$(EXEEXT) $(DESTDIR)$(sbindir)/swapd$(EXEEXT) ++ $(INSTALL) -m 644 swapd.conf $(DESTDIR)$(sysconfdir)/swapd.conf.sample ++ $(INSTALL) -m 644 swapd.8 $(DESTDIR)$(mandir)/man8/swapd.8 ++ $(INSTALL) -m 644 swapd.conf.5 $(DESTDIR)$(mandir)/man5/swapd.conf.5 Index: files/patch-configure =================================================================== --- files/patch-configure (revision 353892) +++ files/patch-configure (working copy) @@ -1,24 +1,24 @@ ---- configure.orig 2005-02-18 20:34:16.000000000 -0800 -+++ configure 2010-06-25 00:26:06.000000000 -0700 -@@ -11435,6 +11435,7 @@ - rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - fi -+eval "$as_ac_var=no" - echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 - echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 - if test `eval echo '${'$as_ac_var'}'` = yes; then -@@ -11535,6 +11536,7 @@ - rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - fi +--- ./configure.orig 2013-10-06 17:11:43.000000000 +0100 ++++ ./configure 2013-11-22 21:48:41.875104078 +0000 +@@ -4850,6 +4850,7 @@ + for ac_func in swapoff + do : + ac_fn_c_check_func "$LINENO" "swapoff" "ac_cv_func_swapoff" ++ac_cv_func_swapoff=no + if test "x$ac_cv_func_swapoff" = xyes; then : + cat >>confdefs.h <<_ACEOF + #define HAVE_SWAPOFF 1 +@@ -4861,6 +4862,7 @@ + + + ac_fn_c_check_func "$LINENO" "swapon" "ac_cv_func_swapon" +ac_cv_func_swapon=no - echo "$as_me:$LINENO: result: $ac_cv_func_swapon" >&5 - echo "${ECHO_T}$ac_cv_func_swapon" >&6 - if test $ac_cv_func_swapon = yes; then -@@ -12170,6 +12172,17 @@ - _ACEOF + if test "x$ac_cv_func_swapon" = xyes; then : + +@@ -5114,6 +5116,17 @@ + $as_echo "#define SWAPD_SWAPOFF_CMDLINE \"/sbin/swapctl -d \\\"%s\\\"\"" >>confdefs.h + ;; + freebsd*) + Index: pkg-plist =================================================================== --- pkg-plist (revision 353892) +++ pkg-plist (working copy) @@ -1,3 +1,5 @@ +man/man5/swapd.conf.5.gz +man/man8/swapd.8.gz sbin/swapd sbin/swapd_swapon sbin/swapd_swapoff --- swapd-1.0.5.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: