From c657c8d84e845311b84d65a21ff6f41bf82b254f Mon Sep 17 00:00:00 2001
From: erdgeist <de@gsmk.de>
Date: Tue, 10 Jun 2014 05:17:04 +0200
Subject: Do not preserve users and permissions when copying examples, then we
 don't need to fix ownership later. Examples only belong to root

---
 Makefile | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

(limited to 'Makefile')

diff --git a/Makefile b/Makefile
index 9f5705b..0dd9501 100755
--- a/Makefile
+++ b/Makefile
@@ -9,15 +9,14 @@ all:
 
 install:
 	mkdir -p ${DST}/etc/ezjail/ ${DST}/man/man5/ ${DST}/man/man7 ${DST}/man/man8 ${DST}/etc/rc.d/ ${DST}/bin/ ${DST}/share/examples/ezjail ${DST}/share/zsh/site-functions
-	cp -p ezjail.conf.sample ${DST}/etc/
-	cp -R -p examples/example ${DST}/share/examples/ezjail/
-	cp -R -p examples/nullmailer-example ${DST}/share/examples/ezjail/
-	cp -R -p share/zsh/site-functions/ ${DST}/share/zsh/site-functions/
+	cp ezjail.conf.sample ${DST}/etc/
+	cp -R examples/example ${DST}/share/examples/ezjail/
+	cp -R examples/nullmailer-example ${DST}/share/examples/ezjail/
+	cp -R share/zsh/site-functions/ ${DST}/share/zsh/site-functions/
 	sed s:EZJAIL_PREFIX:${PREFIX}: ezjail.sh > ${DST}/etc/rc.d/ezjail
 	sed s:EZJAIL_PREFIX:${PREFIX}: ezjail-admin > ${DST}/bin/ezjail-admin
 	sed s:EZJAIL_PREFIX:${PREFIX}: man8/ezjail-admin.8 > ${DST}/man/man8/ezjail-admin.8
 	sed s:EZJAIL_PREFIX:${PREFIX}: man5/ezjail.conf.5 > ${DST}/man/man5/ezjail.conf.5
 	sed s:EZJAIL_PREFIX:${PREFIX}: man7/ezjail.7 > ${DST}/man/man7/ezjail.7
 	chmod 755 ${DST}/etc/rc.d/ezjail ${DST}/bin/ezjail-admin
-	chown -R root:wheel ${DST}/man/man8/ezjail-admin.8 ${DST}/man/man5/ezjail.conf.5 ${DST}/man/man7/ezjail.7 ${DST}/share/examples/ezjail/
 	chmod 0440 ${DST}/share/examples/ezjail/example/usr/local/etc/sudoers
-- 
cgit v1.2.3