From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 3 21:40:15 2012 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 2A0D51065782 for ; Fri, 3 Feb 2012 21:40:15 +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 44E2F8FC15 for ; Fri, 3 Feb 2012 21:40:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q13LeAax043681 for ; Fri, 3 Feb 2012 21:40:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q13LeAn8043680; Fri, 3 Feb 2012 21:40:10 GMT (envelope-from gnats) Resent-Date: Fri, 3 Feb 2012 21:40:10 GMT Resent-Message-Id: <201202032140.q13LeAn8043680@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, Chris Rees Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F7BC106566B for ; Fri, 3 Feb 2012 21:38:19 +0000 (UTC) (envelope-from crees@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2A8918FC08 for ; Fri, 3 Feb 2012 21:38:19 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q13LcJvX043611 for ; Fri, 3 Feb 2012 21:38:19 GMT (envelope-from crees@freefall.freebsd.org) Received: (from crees@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q13LcJt0043610; Fri, 3 Feb 2012 21:38:19 GMT (envelope-from crees) Message-Id: <201202032138.q13LcJt0043610@freefall.freebsd.org> Date: Fri, 3 Feb 2012 21:38:19 GMT From: Chris Rees To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/164745: [PATCH] sysutils/ezjail should copy over ezjail.conf.sample X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Chris Rees List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2012 21:40:15 -0000 >Number: 164745 >Category: ports >Synopsis: [PATCH] sysutils/ezjail should copy over ezjail.conf.sample >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Feb 03 21:40:09 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Chris Rees >Release: FreeBSD 8.2-STABLE i386 >Organization: >Environment: System: FreeBSD freefall.freebsd.org 8.2-STABLE FreeBSD 8.2-STABLE #5 r227907: Wed Nov 23 21:55:50 UTC 2011 simon@freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL i386 General policy with ports is that sample config files are copied over for user's convenience. Please consider the attached patch which does so :) >Description: >How-To-Repeat: >Fix: --- patch.txt begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/sysutils/ezjail/Makefile,v retrieving revision 1.14 diff -u -r1.14 Makefile --- Makefile 3 Feb 2012 00:00:21 -0000 1.14 +++ Makefile 3 Feb 2012 21:35:57 -0000 @@ -19,4 +19,9 @@ MAN7= ezjail.7 MAN8= ezjail-admin.8 +post-install: + [ -f ${PREFIX}/etc/${PORTNAME}.conf ] || \ + ${CP} -p ${PREFIX}/etc/${PORTNAME}.conf.sample \ + ${PREFIX}/etc/${PORTNAME}.conf + .include Index: pkg-plist =================================================================== RCS file: /home/pcvs/ports/sysutils/ezjail/pkg-plist,v retrieving revision 1.8 diff -u -r1.8 pkg-plist --- pkg-plist 7 Jan 2012 17:20:32 -0000 1.8 +++ pkg-plist 3 Feb 2012 21:35:57 -0000 @@ -1,4 +1,6 @@ +@unexec cmp -s %D/etc/ezjail.conf.sample %D/etc/ezjail.conf && rm -f %D/etc/ezjail.conf || true etc/ezjail.conf.sample +@exec [ -f %B/ezjail.conf ] || cp -p %D/%F %B/ezjail.conf etc/rc.d/ezjail bin/ezjail-admin share/zsh/site-functions/ezjail-admin --- patch.txt ends here --- >Release-Note: >Audit-Trail: >Unformatted: