From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Oct 28 12:00:14 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B9B610656A7 for ; Wed, 28 Oct 2009 12:00:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 762318FC24 for ; Wed, 28 Oct 2009 12:00:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9SC08Ei058000 for ; Wed, 28 Oct 2009 12:00:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9SC08cx057999; Wed, 28 Oct 2009 12:00:08 GMT (envelope-from gnats) Resent-Date: Wed, 28 Oct 2009 12:00:08 GMT Resent-Message-Id: <200910281200.n9SC08cx057999@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, Anonymous Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A5F8106566B for ; Wed, 28 Oct 2009 11:56:38 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mx1.freebsd.org (Postfix) with ESMTP id 0ECF18FC19 for ; Wed, 28 Oct 2009 11:56:37 +0000 (UTC) Received: by ewy18 with SMTP id 18so634522ewy.43 for ; Wed, 28 Oct 2009 04:56:37 -0700 (PDT) Received: by 10.211.130.13 with SMTP id h13mr629457ebn.13.1256730997087; Wed, 28 Oct 2009 04:56:37 -0700 (PDT) Received: from localhost (h81-88-124-10.rev.domonet.ru [81.88.124.10]) by mx.google.com with ESMTPS id 7sm2758177eyg.25.2009.10.28.04.56.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 28 Oct 2009 04:56:36 -0700 (PDT) Message-Id: <86bpjrivf4.fsf@gmail.com> Date: Wed, 28 Oct 2009 14:56:31 +0300 From: Anonymous To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/140045: [patch] sysutils/zfs-snapshot-mgmt: respect ${PREFIX} and ${LOCALBASE} X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2009 12:00:14 -0000 >Number: 140045 >Category: ports >Synopsis: [patch] sysutils/zfs-snapshot-mgmt: respect ${PREFIX} and ${LOCALBASE} >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 28 12:00:08 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Anonymous >Release: FreeBSD 9.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD 9.0-CURRENT #0 198464M: Sun Oct 25 10:34:20 UTC 2009 holo@raphael.local:/a/objdir/a/dirty_build/sys/PHOENIX amd64 >Description: The port assumes that LOCALBASE is /usr/local: - it'll not find ruby installed under different LOCALBASE - it'll not find config file installed under different PREFIX >How-To-Repeat: >Fix: --- respect_PREFIX_and_LOCALBASE.diff begins here --- Index: sysutils/zfs-snapshot-mgmt/Makefile =================================================================== RCS file: /a/.cvsup/ports/sysutils/zfs-snapshot-mgmt/Makefile,v retrieving revision 1.3 diff -u -p -r1.3 Makefile --- sysutils/zfs-snapshot-mgmt/Makefile 31 Jul 2009 17:47:57 -0000 1.3 +++ sysutils/zfs-snapshot-mgmt/Makefile 28 Oct 2009 11:39:36 -0000 @@ -22,6 +22,12 @@ MAN8= zfs-snapshot-mgmt.8 SUB_FILES= pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message +post-patch: .SILENT + ${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} \ + -e 's|/usr/local|${PREFIX}|g' \ + -e 's|${PREFIX}\(/bin/ruby\)|${LOCALBASE}\1|g' \ + {} + + do-install: @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MANPREFIX}/man/man8 Index: sysutils/zfs-snapshot-mgmt/files/pkg-message.in =================================================================== RCS file: /a/.cvsup/ports/sysutils/zfs-snapshot-mgmt/files/pkg-message.in,v retrieving revision 1.1 diff -u -p -r1.1 pkg-message.in --- sysutils/zfs-snapshot-mgmt/files/pkg-message.in 16 Jul 2008 21:30:30 -0000 1.1 +++ sysutils/zfs-snapshot-mgmt/files/pkg-message.in 28 Oct 2009 11:22:34 -0000 @@ -3,7 +3,7 @@ To actually turn on the automatic snapsh 1. Add an appropriate crontab entry, e.g.: - echo "*/5 * * * * root /usr/local/bin/zfs-snapshot-mgmt" >> /etc/crontab + echo "*/5 * * * * root %%PREFIX%%/bin/zfs-snapshot-mgmt" >> /etc/crontab See zfs-snapshot-mgmt(8) manpage for more details. --- respect_PREFIX_and_LOCALBASE.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: