Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2ef74fe29e
Fetching contributors…

Cannot retrieve contributors at this time

file 49 lines (42 sloc) 1.486 kb
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
.include <bsd.own.mk> # for configuration variables.

SUBDIR= lib include bin sbin usr.bin usr.sbin share

#build:
# $(MAKE) includes
# $(MAKE)
# $(MAKE) install

includes:
(cd $(.CURDIR)/include; $(MAKE) includes)

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 $$i ] || mkdir -p $$i; \
done
for i in $(SECTIONS); do \
[ -d $(PREFIX)/man/man$$i ] || mkdir -p $(PREFIX)/man/man$$i; \
[ -d $(PREFIX)/man/cat$$i ] || mkdir -p $(PREFIX)/man/cat$$i; \
done

afterinstall:
cp kame/rtadvd/rtadvd.conf $(PREFIX)/etc/rtadvd.conf.sample
cp kame/bgpd/bgpd.conf $(PREFIX)/etc/bgpd.conf.sample
cp kame/racoon/samples/racoon.conf.sample $(PREFIX)/etc/
cp kame/ip6addrctl/ip6addrctl.conf.sample $(PREFIX)/etc/
cp kame/racoon/samples/psk.txt.sample $(PREFIX)/etc/
if test -x $(PREFIX)/sbin/inet6d; then \
cp kame/inet6d/inet6d.conf $(PREFIX)/etc/inet6d.conf.sample; \
fi
for i in $(DOCS); do \
if test -f ../$$i; then \
cp ../$$i $(PREFIX)/share/doc/kame; \
fi \
done
cp ${.CURDIR}/INSTALL ${PREFIX}/share/doc/kame/INSTALL.openbsd
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
kame/etc/MAKEDEV.altq /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"
Something went wrong with that request. Please try again.