-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
61 lines (54 loc) · 1.82 KB
/
Makefile
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
51
52
53
54
55
56
57
58
59
60
61
.include <bsd.own.mk> # for configuration variables.
SUBDIR= lib libexec sbin usr.bin usr.sbin share
#build:
# $(MAKE) includes
# $(MAKE)
# $(MAKE) install
includes:
(cd ${.CURDIR}/include; $(MAKE))
install-includes:
(cd ${.CURDIR}/include; $(MAKE) install)
PREFIX= /usr/local/v6
DIRS= $(PREFIX) $(PREFIX)/bin $(PREFIX)/sbin $(PREFIX)/lib $(PREFIX)/etc \
$(PREFIX)/libexec $(PREFIX)/man $(PREFIX)/share/doc/kame
SECTIONS=1 2 3 4 5 6 7 8 9 n
beforeinstall:
for i in $(DIRS); do \
[ -d ${DESTDIR}$$i ] || mkdir -p $${DESTDIR}$$i; \
done
for i in $(SECTIONS); do \
[ -d ${DESTDIR}$(PREFIX)/man/man$$i ] || \
mkdir -p ${DESTDIR}$(PREFIX)/man/man$$i; \
[ -d ${DESTDIR}$(PREFIX)/man/cat$$i ] ||\
mkdir -p ${DESTDIR}$(PREFIX)/man/cat$$i; \
done
afterinstall:
cp ${.CURDIR}/kame/rtadvd/rtadvd.conf \
${DESTDIR}$(PREFIX)/etc/rtadvd.conf.sample
cp ${.CURDIR}/kame/bgpd/bgpd.conf \
${DESTDIR}$(PREFIX)/etc/bgpd.conf.sample
cp ${.CURDIR}/kame/racoon/samples/racoon.conf.sample \
${DESTDIR}$(PREFIX)/etc/
cp ${.CURDIR}/kame/racoon/samples/psk.txt.sample \
${DESTDIR}$(PREFIX)/etc/
if test -x ${DESTDIR}$(PREFIX)/sbin/inet6d || \
test -x ${DESTDIR}$(PREFIX)/sbin/inet46d; then \
cp ${.CURDIR}/kame/inet6d/inet6d.conf \
${DESTDIR}$(PREFIX)/etc/inet6d.conf.sample; \
fi
cp ${.CURDIR}/kame/etc/rc.net6 \
${DESTDIR}$(PREFIX)/etc/rc.net6.sample
for i in $(DOCS); do \
if test -f ${.CURDIR}/../$$i; then \
cp ${.CURDIR}/../$$i \
${DESTDIR}$(PREFIX)/share/doc/kame; \
fi \
done
cp ${.CURDIR}/INSTALL ${PREFIX}/share/doc/kame/INSTALL.freebsd3
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
${.CURDIR}/kame/etc/MAKEDEV.altq ${DESTDIR}/dev
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
${.CURDIR}/kame/send-pr/send-pr \
${DESTDIR}${PREFIX}/bin/kame-send-pr
.include <bsd.subdir.mk>
.include "../Makefile.inc"