Do not preserve users and permissions when copying examples, then we don't need to fix ownership later. Examples only belong to root

This commit is contained in:
erdgeist 2014-06-10 05:17:04 +02:00
parent 8c232a30f4
commit c657c8d84e

View File

@ -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