summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2005-11-17 00:30:15 +0000
committererdgeist <erdgeist@erdgeist.org>2005-11-17 00:30:15 +0000
commit9becc61bb321fc16d3ba5778e2ef5078efd07d22 (patch)
treef35b6cf8c41ea0bc834e83256fa1dd53fdf136fc /Makefile
parente73cd9344284a5bb99a4977c0e4b6b278f051a2e (diff)
Default PREFIX provided, flavour stuff added
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6d0e141..9618d7d 100755
--- a/Makefile
+++ b/Makefile
@@ -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
5PREFIX?=/usr/local
6
1all: 7all:
2 8
3install: 9install:
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