From 9becc61bb321fc16d3ba5778e2ef5078efd07d22 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 17 Nov 2005 00:30:15 +0000 Subject: Default PREFIX provided, flavour stuff added --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6d0e141..9618d7d 100755 --- a/Makefile +++ b/Makefile @@ -1,8 +1,16 @@ +# I know, this is ain't nice but an empty prefix leads to much confusion +# In most cases ezjail is being installed from ports anyway. If you REALLY REALLY +# want / as your install location, DO set PREFIX before invoking this Makefile + +PREFIX?=/usr/local + all: install: - mkdir -p ${PREFIX}/etc/ezjail/ ${PREFIX}/man/man1/ ${PREFIX}/man/man5/ ${PREFIX}/etc/rc.d/ ${PREFIX}/bin/ + mkdir -p ${PREFIX}/etc/ezjail/ ${PREFIX}/man/man1/ ${PREFIX}/man/man5/ ${PREFIX}/etc/rc.d/ ${PREFIX}/bin/ ${PREFIX}/share/ezjail ${PREFIX}/share/examples/ezjail cp -p ezjail.conf.sample ${PREFIX}/etc/ + cp -p ezjail-config.sh ${PREFIX}/share/ezjail/ + cp -p ezjail.flavour.default ${PREFIX}/share/examples/ezjail/ sed s:EZJAIL_PREFIX:${PREFIX}: ezjail.sh > ${PREFIX}/etc/rc.d/ezjail.sh sed s:EZJAIL_PREFIX:${PREFIX}: ezjail-admin > ${PREFIX}/bin/ezjail-admin sed s:EZJAIL_PREFIX:${PREFIX}: man1/ezjail-admin.1 > ${PREFIX}/man/man1/ezjail-admin.1 -- cgit v1.2.3