-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
51 lines (45 loc) · 1.65 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
.include <bsd.own.mk> # for configuration variables.
SUBDIR= lib include libexec sbin usr.bin usr.sbin share sys
#build:
# $(MAKE) includes
# $(MAKE)
# $(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/
cp ${.CURDIR}/kame/ip6addrctl/ip6addrctl.conf.sample \
${DESTDIR}$(PREFIX)/etc/
if test -x ${PREFIX}/sbin/inet6d; then \
cp ${.CURDIR}/kame/inet6d/inet6d.conf \
${DESTDIR}${PREFIX}/etc/inet6d.conf.sample; \
fi
for i in ${DOCS}; do \
if test -f ${.CURDIR}/../$$i; then \
cp ${.CURDIR}/../$$i ${DESTDIR}${PREFIX}/share/doc/kame; \
fi \
done
cp ${.CURDIR}/INSTALL ${DESTDIR}${PREFIX}/share/doc/kame/INSTALL.netbsd
${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>