blob: 7f863fb49c69ddba47411ad07ea21bfe562f2225 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
$NetBSD: patch-aa,v 1.2 2009/12/17 20:56:46 abs Exp $
--- src/Makefile.orig 2008-01-10 22:31:39.000000000 +0000
+++ src/Makefile
@@ -108,17 +108,16 @@ spotless:
(cd core ; ${MAKE} distclean)
install: services
- test -d ${BINDEST} || mkdir ${BINDEST}
- $(INSTALL) services $(BINDEST)/services
- $(INSTALL) bin/anoperc $(BINDEST)/anoperc
- rm -f $(BINDEST)/listnicks $(BINDEST)/listchans
- ln $(BINDEST)/services $(BINDEST)/listnicks
- ln $(BINDEST)/services $(BINDEST)/listchans
+ test -d ${DESTDIR}${BINDEST} || mkdir ${DESTDIR}${BINDEST}
+ $(INSTALL) services ${DESTDIR}$(BINDEST)/services
+ $(INSTALL) bin/anoperc ${DESTDIR}$(BINDEST)/anoperc
+ rm -f ${DESTDIR}$(BINDEST)/listnicks ${DESTDIR}$(BINDEST)/listchans
+ ln ${DESTDIR}$(BINDEST)/services ${DESTDIR}$(BINDEST)/listnicks
+ ln ${DESTDIR}$(BINDEST)/services ${DESTDIR}$(BINDEST)/listchans
(cd ../lang ; $(MAKE) install)
- $(CP) ../data/* $(DATDEST)
- $(INSTALL) bin/mydbgen $(DATDEST)/mydbgen
- test -d $(DATDEST)/backups || mkdir $(DATDEST)/backups
- test -d $(DATDEST)/logs || mkdir $(DATDEST)/logs
+ $(INSTALL) bin/mydbgen ${DESTDIR}$(DATDEST)/mydbgen
+ test -d ${DESTDIR}$(DATDEST)/backups || mkdir ${DESTDIR}$(DATDEST)/backups
+ test -d ${DESTDIR}$(DATDEST)/logs || mkdir ${DESTDIR}$(DATDEST)/logs
@if [ "$(MODULE_PATH)" ] ; then \
test -d ${MODULE_PATH} || mkdir ${MODULE_PATH} ; \
test -d ${MODULE_PATH}/runtime || mkdir ${MODULE_PATH}/runtime ; \
@@ -127,12 +126,12 @@ install: services
(cd core ; ${MAKE} install) ; \
fi
@if [ "$(RUNGROUP)" ] ; then \
- echo chgrp -R $(RUNGROUP) $(DATDEST) ; \
- chgrp -R $(RUNGROUP) $(DATDEST) ; \
- echo chmod -R g+rw $(DATDEST) ; \
- chmod -R g+rw $(DATDEST) ; \
- echo find $(DATDEST) -type d -exec chmod g+xs \'\{\}\' \\\; ; \
- find $(DATDEST) -type d -exec chmod g+xs '{}' \; ; \
+ echo chgrp -R $(RUNGROUP) ${DESTDIR}$(DATDEST) ; \
+ chgrp -R $(RUNGROUP) ${DESTDIR}$(DATDEST) ; \
+ echo chmod -R g+rw ${DESTDIR}$(DATDEST) ; \
+ chmod -R g+rw ${DESTDIR}$(DATDEST) ; \
+ echo find ${DESTDIR}$(DATDEST) -type d -exec chmod g+xs \'\{\}\' \\\; ; \
+ find ${DESTDIR}$(DATDEST) -type d -exec chmod g+xs '{}' \; ; \
fi
DUMMY:
|