diff options
author | erdgeist <de@gsmk.de> | 2014-04-30 20:11:05 +0200 |
---|---|---|
committer | erdgeist <de@gsmk.de> | 2014-04-30 20:14:01 +0200 |
commit | 33bb63dbb43a9dbeddcb031e783ee1e4c82931e1 (patch) | |
tree | c43a81d036aee5d7058407e2058866541e6938e0 | |
parent | c93dfec6f40f3aff3ffa3404e7886bdefbf4badb (diff) |
Do not substitute DESTDIR in our own substitution. Thanks to bdrewery
-rwxr-xr-x | Makefile | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -3,20 +3,21 @@ | |||
3 | # want / as your install location, DO set PREFIX before invoking this Makefile | 3 | # want / as your install location, DO set PREFIX before invoking this Makefile |
4 | 4 | ||
5 | PREFIX?=/usr/local | 5 | PREFIX?=/usr/local |
6 | DST= ${DESTDIR}${PREFIX} | ||
6 | 7 | ||
7 | all: | 8 | all: |
8 | 9 | ||
9 | install: | 10 | install: |
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 | 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 |
11 | cp -p ezjail.conf.sample ${DESTDIR}${PREFIX}/etc/ | 12 | cp -p ezjail.conf.sample ${DST}/etc/ |
12 | cp -R -p examples/example ${DESTDIR}${PREFIX}/share/examples/ezjail/ | 13 | cp -R -p examples/example ${DST}/share/examples/ezjail/ |
13 | cp -R -p examples/nullmailer-example ${DESTDIR}${PREFIX}/share/examples/ezjail/ | 14 | cp -R -p examples/nullmailer-example ${DST}/share/examples/ezjail/ |
14 | cp -R -p share/zsh/site-functions/ ${DESTDIR}${PREFIX}/share/zsh/site-functions/ | 15 | cp -R -p share/zsh/site-functions/ ${DST}/share/zsh/site-functions/ |
15 | sed s:EZJAIL_PREFIX:${DESTDIR}${PREFIX}: ezjail.sh > ${DESTDIR}${PREFIX}/etc/rc.d/ezjail | 16 | sed s:EZJAIL_PREFIX:${PREFIX}: ezjail.sh > ${DST}/etc/rc.d/ezjail |
16 | sed s:EZJAIL_PREFIX:${DESTDIR}${PREFIX}: ezjail-admin > ${DESTDIR}${PREFIX}/bin/ezjail-admin | 17 | sed s:EZJAIL_PREFIX:${PREFIX}: ezjail-admin > ${DST}/bin/ezjail-admin |
17 | sed s:EZJAIL_PREFIX:${DESTDIR}${PREFIX}: man8/ezjail-admin.8 > ${DESTDIR}${PREFIX}/man/man8/ezjail-admin.8 | 18 | sed s:EZJAIL_PREFIX:${PREFIX}: man8/ezjail-admin.8 > ${DST}/man/man8/ezjail-admin.8 |
18 | sed s:EZJAIL_PREFIX:${DESTDIR}${PREFIX}: man5/ezjail.conf.5 > ${DESTDIR}${PREFIX}/man/man5/ezjail.conf.5 | 19 | sed s:EZJAIL_PREFIX:${PREFIX}: man5/ezjail.conf.5 > ${DST}/man/man5/ezjail.conf.5 |
19 | sed s:EZJAIL_PREFIX:${DESTDIR}${PREFIX}: man7/ezjail.7 > ${DESTDIR}${PREFIX}/man/man7/ezjail.7 | 20 | sed s:EZJAIL_PREFIX:${PREFIX}: man7/ezjail.7 > ${DST}/man/man7/ezjail.7 |
20 | chmod 755 ${DESTDIR}${PREFIX}/etc/rc.d/ezjail ${DESTDIR}${PREFIX}/bin/ezjail-admin | 21 | chmod 755 ${DST}/etc/rc.d/ezjail ${DST}/bin/ezjail-admin |
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 | 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/ |
22 | chmod 0440 ${DESTDIR}${PREFIX}/share/examples/ezjail/example/usr/local/etc/sudoers | 23 | chmod 0440 ${DST}/share/examples/ezjail/example/usr/local/etc/sudoers |