ports/164745: [PATCH] sysutils/ezjail should copy over ezjail.conf.sample
Chris Rees
crees at FreeBSD.org
Fri Feb 3 21:40:15 UTC 2012
>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 at 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 <bsd.port.mk>
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 @@
+ at unexec cmp -s %D/etc/ezjail.conf.sample %D/etc/ezjail.conf && rm -f %D/etc/ezjail.conf || true
etc/ezjail.conf.sample
+ at 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:
More information about the freebsd-ports-bugs
mailing list