diff options
author | erdgeist <erdgeist@erdgeist.org> | 2005-11-17 00:30:15 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2005-11-17 00:30:15 +0000 |
commit | 9becc61bb321fc16d3ba5778e2ef5078efd07d22 (patch) | |
tree | f35b6cf8c41ea0bc834e83256fa1dd53fdf136fc /Makefile | |
parent | e73cd9344284a5bb99a4977c0e4b6b278f051a2e (diff) |
Default PREFIX provided, flavour stuff added
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,8 +1,16 @@ | |||
1 | # I know, this is ain't nice but an empty prefix leads to much confusion | ||
2 | # In most cases ezjail is being installed from ports anyway. If you REALLY REALLY | ||
3 | # want / as your install location, DO set PREFIX before invoking this Makefile | ||
4 | |||
5 | PREFIX?=/usr/local | ||
6 | |||
1 | all: | 7 | all: |
2 | 8 | ||
3 | install: | 9 | install: |
4 | mkdir -p ${PREFIX}/etc/ezjail/ ${PREFIX}/man/man1/ ${PREFIX}/man/man5/ ${PREFIX}/etc/rc.d/ ${PREFIX}/bin/ | 10 | mkdir -p ${PREFIX}/etc/ezjail/ ${PREFIX}/man/man1/ ${PREFIX}/man/man5/ ${PREFIX}/etc/rc.d/ ${PREFIX}/bin/ ${PREFIX}/share/ezjail ${PREFIX}/share/examples/ezjail |
5 | cp -p ezjail.conf.sample ${PREFIX}/etc/ | 11 | cp -p ezjail.conf.sample ${PREFIX}/etc/ |
12 | cp -p ezjail-config.sh ${PREFIX}/share/ezjail/ | ||
13 | cp -p ezjail.flavour.default ${PREFIX}/share/examples/ezjail/ | ||
6 | sed s:EZJAIL_PREFIX:${PREFIX}: ezjail.sh > ${PREFIX}/etc/rc.d/ezjail.sh | 14 | sed s:EZJAIL_PREFIX:${PREFIX}: ezjail.sh > ${PREFIX}/etc/rc.d/ezjail.sh |
7 | sed s:EZJAIL_PREFIX:${PREFIX}: ezjail-admin > ${PREFIX}/bin/ezjail-admin | 15 | sed s:EZJAIL_PREFIX:${PREFIX}: ezjail-admin > ${PREFIX}/bin/ezjail-admin |
8 | sed s:EZJAIL_PREFIX:${PREFIX}: man1/ezjail-admin.1 > ${PREFIX}/man/man1/ezjail-admin.1 | 16 | sed s:EZJAIL_PREFIX:${PREFIX}: man1/ezjail-admin.1 > ${PREFIX}/man/man1/ezjail-admin.1 |