aboutsummaryrefslogtreecommitdiff
path: root/sysutils/ezjail
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2012-02-09 18:08:28 +0000
committerChris Rees <crees@FreeBSD.org>2012-02-09 18:08:28 +0000
commit1d5821c53aeeedbf9d0fcfbb71033f42f00b9668 (patch)
treedaa5d3f935667ebe67fe028dec12dda08452958f /sysutils/ezjail
parent545e40290c29f331b815405a78ef1d87ff4dcb89 (diff)
downloadports-1d5821c53aeeedbf9d0fcfbb71033f42f00b9668.tar.gz
ports-1d5821c53aeeedbf9d0fcfbb71033f42f00b9668.zip
Notes
Diffstat (limited to 'sysutils/ezjail')
-rw-r--r--sysutils/ezjail/Makefile6
-rw-r--r--sysutils/ezjail/pkg-plist2
2 files changed, 8 insertions, 0 deletions
diff --git a/sysutils/ezjail/Makefile b/sysutils/ezjail/Makefile
index 0e777d7cb86a..affee4fc7d21 100644
--- a/sysutils/ezjail/Makefile
+++ b/sysutils/ezjail/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ezjail
PORTVERSION= 3.2.1
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://erdgeist.org/arts/software/ezjail/
@@ -19,4 +20,9 @@ MAN5= ezjail.conf.5
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>
diff --git a/sysutils/ezjail/pkg-plist b/sysutils/ezjail/pkg-plist
index b979db9464f0..156c8cc4c1fc 100644
--- a/sysutils/ezjail/pkg-plist
+++ b/sysutils/ezjail/pkg-plist
@@ -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