summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <de@gsmk.de>2014-04-30 20:05:28 +0200
committererdgeist <de@gsmk.de>2014-04-30 20:05:28 +0200
commitc93dfec6f40f3aff3ffa3404e7886bdefbf4badb (patch)
treebbb911627b48e2291622524f455935973fe91301
parent8798063e84884f3263f9b7abd9913308b7950063 (diff)
Obey DESTDIR in Makefile
-rwxr-xr-xMakefile26
1 files changed, 13 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 7ca9db3..8f93f59 100755
--- a/Makefile
+++ b/Makefile
@@ -7,16 +7,16 @@ PREFIX?=/usr/local
7all: 7all:
8 8
9install: 9install:
10 mkdir -p ${PREFIX}/etc/ezjail/ ${PREFIX}/man/man5/ ${PREFIX}/man/man7 ${PREFIX}/man/man8 ${PREFIX}/etc/rc.d/ ${PREFIX}/bin/ ${PREFIX}/share/examples/ezjail ${PREFIX}/share/zsh/site-functions 10 mkdir -p ${DESTDIR}${PREFIX}/etc/ezjail/ ${DESTDIR}${PREFIX}/man/man5/ ${DESTDIR}${PREFIX}/man/man7 ${DESTDIR}${PREFIX}/man/man8 ${DESTDIR}${PREFIX}/etc/rc.d/ ${DESTDIR}${PREFIX}/bin/ ${DESTDIR}${PREFIX}/share/examples/ezjail ${DESTDIR}${PREFIX}/share/zsh/site-functions
11 cp -p ezjail.conf.sample ${PREFIX}/etc/ 11 cp -p ezjail.conf.sample ${DESTDIR}${PREFIX}/etc/
12 cp -R -p examples/example ${PREFIX}/share/examples/ezjail/ 12 cp -R -p examples/example ${DESTDIR}${PREFIX}/share/examples/ezjail/
13 cp -R -p examples/nullmailer-example ${PREFIX}/share/examples/ezjail/ 13 cp -R -p examples/nullmailer-example ${DESTDIR}${PREFIX}/share/examples/ezjail/
14 cp -R -p share/zsh/site-functions/ ${PREFIX}/share/zsh/site-functions/ 14 cp -R -p share/zsh/site-functions/ ${DESTDIR}${PREFIX}/share/zsh/site-functions/
15 sed s:EZJAIL_PREFIX:${PREFIX}: ezjail.sh > ${PREFIX}/etc/rc.d/ezjail 15 sed s:EZJAIL_PREFIX:${DESTDIR}${PREFIX}: ezjail.sh > ${DESTDIR}${PREFIX}/etc/rc.d/ezjail
16 sed s:EZJAIL_PREFIX:${PREFIX}: ezjail-admin > ${PREFIX}/bin/ezjail-admin 16 sed s:EZJAIL_PREFIX:${DESTDIR}${PREFIX}: ezjail-admin > ${DESTDIR}${PREFIX}/bin/ezjail-admin
17 sed s:EZJAIL_PREFIX:${PREFIX}: man8/ezjail-admin.8 > ${PREFIX}/man/man8/ezjail-admin.8 17 sed s:EZJAIL_PREFIX:${DESTDIR}${PREFIX}: man8/ezjail-admin.8 > ${DESTDIR}${PREFIX}/man/man8/ezjail-admin.8
18 sed s:EZJAIL_PREFIX:${PREFIX}: man5/ezjail.conf.5 > ${PREFIX}/man/man5/ezjail.conf.5 18 sed s:EZJAIL_PREFIX:${DESTDIR}${PREFIX}: man5/ezjail.conf.5 > ${DESTDIR}${PREFIX}/man/man5/ezjail.conf.5
19 sed s:EZJAIL_PREFIX:${PREFIX}: man7/ezjail.7 > ${PREFIX}/man/man7/ezjail.7 19 sed s:EZJAIL_PREFIX:${DESTDIR}${PREFIX}: man7/ezjail.7 > ${DESTDIR}${PREFIX}/man/man7/ezjail.7
20 chmod 755 ${PREFIX}/etc/rc.d/ezjail ${PREFIX}/bin/ezjail-admin 20 chmod 755 ${DESTDIR}${PREFIX}/etc/rc.d/ezjail ${DESTDIR}${PREFIX}/bin/ezjail-admin
21 chown -R root:wheel ${PREFIX}/man/man8/ezjail-admin.8 ${PREFIX}/man/man5/ezjail.conf.5 ${PREFIX}/man/man7/ezjail.7 ${PREFIX}/share/examples/ezjail/ 21 chown -R root:wheel ${DESTDIR}${PREFIX}/man/man8/ezjail-admin.8 ${DESTDIR}${PREFIX}/man/man5/ezjail.conf.5 ${DESTDIR}${PREFIX}/man/man7/ezjail.7 ${DESTDIR}${PREFIX}/share/examples/ezjail/
22 chmod 0440 ${PREFIX}/share/examples/ezjail/example/usr/local/etc/sudoers 22 chmod 0440 ${DESTDIR}${PREFIX}/share/examples/ezjail/example/usr/local/etc/sudoers