1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1994-08-09 18:25:38 +00:00
|
|
|
#
|
|
|
|
# Doing a make install builds /usr/share/examples
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2002-07-19 07:51:58 +00:00
|
|
|
LDIRS= BSD_daemon \
|
|
|
|
FreeBSD_version \
|
|
|
|
IPv6 \
|
|
|
|
bootforth \
|
2012-03-24 18:43:18 +00:00
|
|
|
csh \
|
2002-07-19 07:51:58 +00:00
|
|
|
diskless \
|
|
|
|
drivers \
|
|
|
|
etc \
|
|
|
|
find_interface \
|
|
|
|
ibcs2 \
|
2010-04-21 12:17:01 +00:00
|
|
|
indent \
|
2002-07-19 07:51:58 +00:00
|
|
|
ipfw \
|
2010-10-24 23:25:14 +00:00
|
|
|
jails \
|
2002-07-19 07:51:58 +00:00
|
|
|
kld \
|
|
|
|
libvgl \
|
|
|
|
mdoc \
|
|
|
|
netgraph \
|
|
|
|
perfmon \
|
|
|
|
ppi \
|
|
|
|
ppp \
|
|
|
|
printing \
|
|
|
|
ses \
|
|
|
|
scsi_target \
|
2015-02-26 09:31:25 +00:00
|
|
|
sunrpc \
|
|
|
|
uefisign
|
1994-11-08 03:58:52 +00:00
|
|
|
|
2002-07-19 07:51:58 +00:00
|
|
|
XFILES= BSD_daemon/FreeBSD.pfa \
|
|
|
|
BSD_daemon/README \
|
|
|
|
BSD_daemon/beastie.eps \
|
|
|
|
BSD_daemon/beastie.fig \
|
|
|
|
BSD_daemon/eps.patch \
|
|
|
|
BSD_daemon/poster.sh \
|
|
|
|
FreeBSD_version/FreeBSD_version.c \
|
|
|
|
FreeBSD_version/Makefile \
|
|
|
|
FreeBSD_version/README \
|
|
|
|
IPv6/USAGE \
|
|
|
|
bootforth/README \
|
|
|
|
bootforth/boot.4th \
|
|
|
|
bootforth/frames.4th \
|
|
|
|
bootforth/loader.rc \
|
|
|
|
bootforth/menu.4th \
|
|
|
|
bootforth/menuconf.4th \
|
|
|
|
bootforth/screen.4th \
|
2012-03-24 18:43:18 +00:00
|
|
|
csh/dot.cshrc \
|
2002-07-19 07:51:58 +00:00
|
|
|
diskless/ME \
|
|
|
|
diskless/README.BOOTP \
|
|
|
|
diskless/README.TEMPLATING \
|
|
|
|
diskless/clone_root \
|
|
|
|
drivers/README \
|
|
|
|
drivers/make_device_driver.sh \
|
|
|
|
drivers/make_pseudo_driver.sh \
|
|
|
|
etc/README.examples \
|
|
|
|
etc/bsd-style-copyright \
|
|
|
|
etc/make.conf \
|
|
|
|
find_interface/Makefile \
|
|
|
|
find_interface/README \
|
|
|
|
find_interface/find_interface.c \
|
|
|
|
ibcs2/README \
|
|
|
|
ibcs2/hello.uu \
|
2010-04-21 12:17:01 +00:00
|
|
|
indent/indent.pro \
|
2002-07-19 07:51:58 +00:00
|
|
|
ipfw/change_rules.sh \
|
2010-10-24 23:25:14 +00:00
|
|
|
jails/README \
|
2002-07-19 07:51:58 +00:00
|
|
|
kld/Makefile \
|
|
|
|
kld/cdev/Makefile \
|
|
|
|
kld/cdev/README \
|
|
|
|
kld/cdev/module/Makefile \
|
|
|
|
kld/cdev/module/cdev.c \
|
|
|
|
kld/cdev/module/cdev.h \
|
|
|
|
kld/cdev/module/cdevmod.c \
|
|
|
|
kld/cdev/test/Makefile \
|
|
|
|
kld/cdev/test/testcdev.c \
|
|
|
|
kld/dyn_sysctl/Makefile \
|
|
|
|
kld/dyn_sysctl/README \
|
|
|
|
kld/dyn_sysctl/dyn_sysctl.c \
|
2009-12-12 17:04:36 +00:00
|
|
|
kld/firmware/Makefile \
|
|
|
|
kld/firmware/README \
|
|
|
|
kld/firmware/fwconsumer/Makefile \
|
|
|
|
kld/firmware/fwconsumer/fw_consumer.c \
|
|
|
|
kld/firmware/fwimage/Makefile \
|
2011-04-01 23:47:10 +00:00
|
|
|
kld/firmware/fwimage/firmware.img.uu \
|
2011-02-21 13:22:29 +00:00
|
|
|
kld/khelp/Makefile \
|
|
|
|
kld/khelp/README \
|
|
|
|
kld/khelp/h_example.c \
|
2002-07-19 07:51:58 +00:00
|
|
|
kld/syscall/Makefile \
|
|
|
|
kld/syscall/module/Makefile \
|
|
|
|
kld/syscall/module/syscall.c \
|
|
|
|
kld/syscall/test/Makefile \
|
|
|
|
kld/syscall/test/call.c \
|
|
|
|
libvgl/Makefile \
|
|
|
|
libvgl/demo.c \
|
2005-01-10 18:09:17 +00:00
|
|
|
mdoc/POSIX-copyright \
|
|
|
|
mdoc/deshallify.sh \
|
2002-07-19 07:51:58 +00:00
|
|
|
mdoc/example.1 \
|
|
|
|
mdoc/example.3 \
|
|
|
|
mdoc/example.4 \
|
2005-01-12 20:55:01 +00:00
|
|
|
mdoc/example.9 \
|
2002-07-19 07:51:58 +00:00
|
|
|
netgraph/ether.bridge \
|
|
|
|
netgraph/frame_relay \
|
|
|
|
netgraph/ngctl \
|
|
|
|
netgraph/raw \
|
|
|
|
netgraph/udp.tunnel \
|
2010-10-24 23:25:14 +00:00
|
|
|
netgraph/virtual.chain \
|
|
|
|
netgraph/virtual.lan \
|
2002-07-19 07:51:58 +00:00
|
|
|
perfmon/Makefile \
|
|
|
|
perfmon/README \
|
|
|
|
perfmon/perfmon.c \
|
|
|
|
ppi/Makefile \
|
|
|
|
ppi/ppilcd.c \
|
|
|
|
ppp/chap-auth \
|
|
|
|
ppp/login-auth \
|
|
|
|
ppp/ppp.conf.sample \
|
|
|
|
ppp/ppp.conf.span-isp \
|
|
|
|
ppp/ppp.conf.span-isp.working \
|
|
|
|
ppp/ppp.linkdown.sample \
|
|
|
|
ppp/ppp.linkdown.span-isp \
|
|
|
|
ppp/ppp.linkdown.span-isp.working \
|
|
|
|
ppp/ppp.linkup.sample \
|
|
|
|
ppp/ppp.linkup.span-isp \
|
|
|
|
ppp/ppp.linkup.span-isp.working \
|
|
|
|
ppp/ppp.secret.sample \
|
|
|
|
ppp/ppp.secret.span-isp \
|
|
|
|
ppp/ppp.secret.span-isp.working \
|
|
|
|
printing/README \
|
|
|
|
printing/diablo-if-net \
|
|
|
|
printing/hpdf \
|
|
|
|
printing/hpif \
|
|
|
|
printing/hpof \
|
|
|
|
printing/hprf \
|
|
|
|
printing/hpvf \
|
|
|
|
printing/if-simple \
|
|
|
|
printing/if-simpleX \
|
|
|
|
printing/ifhp \
|
|
|
|
printing/make-ps-header \
|
|
|
|
printing/netprint \
|
|
|
|
printing/psdf \
|
|
|
|
printing/psdfX \
|
|
|
|
printing/psif \
|
|
|
|
printing/pstf \
|
|
|
|
printing/pstfX \
|
|
|
|
ses/Makefile \
|
|
|
|
ses/Makefile.inc \
|
|
|
|
ses/getencstat/Makefile \
|
|
|
|
ses/getencstat/getencstat.0 \
|
|
|
|
ses/sesd/Makefile \
|
|
|
|
ses/sesd/sesd.0 \
|
|
|
|
ses/setencstat/Makefile \
|
|
|
|
ses/setencstat/setencstat.0 \
|
|
|
|
ses/setobjstat/Makefile \
|
|
|
|
ses/setobjstat/setobjstat.0 \
|
|
|
|
ses/srcs/chpmon.c \
|
|
|
|
ses/srcs/eltsub.c \
|
2011-05-27 03:27:28 +00:00
|
|
|
ses/srcs/eltsub.h \
|
2002-07-19 07:51:58 +00:00
|
|
|
ses/srcs/getencstat.c \
|
|
|
|
ses/srcs/getnobj.c \
|
|
|
|
ses/srcs/getobjmap.c \
|
|
|
|
ses/srcs/getobjstat.c \
|
|
|
|
ses/srcs/inienc.c \
|
|
|
|
ses/srcs/sesd.c \
|
|
|
|
ses/srcs/setencstat.c \
|
|
|
|
ses/srcs/setobjstat.c \
|
|
|
|
scsi_target/Makefile \
|
|
|
|
scsi_target/scsi_target.c \
|
2002-11-24 23:57:07 +00:00
|
|
|
scsi_target/scsi_target.h \
|
|
|
|
scsi_target/scsi_target.8 \
|
|
|
|
scsi_target/scsi_cmds.c \
|
2002-07-19 07:51:58 +00:00
|
|
|
sunrpc/Makefile \
|
|
|
|
sunrpc/dir/Makefile \
|
|
|
|
sunrpc/dir/dir.x \
|
|
|
|
sunrpc/dir/dir_proc.c \
|
|
|
|
sunrpc/dir/rls.c \
|
|
|
|
sunrpc/msg/Makefile \
|
|
|
|
sunrpc/msg/msg.x \
|
|
|
|
sunrpc/msg/msg_proc.c \
|
|
|
|
sunrpc/msg/printmsg.c \
|
|
|
|
sunrpc/msg/rprintmsg.c \
|
|
|
|
sunrpc/sort/Makefile \
|
|
|
|
sunrpc/sort/rsort.c \
|
|
|
|
sunrpc/sort/sort.x \
|
2015-02-26 09:31:25 +00:00
|
|
|
sunrpc/sort/sort_proc.c \
|
|
|
|
uefisign/uefikeys
|
1994-11-08 03:58:52 +00:00
|
|
|
|
2002-07-19 07:51:58 +00:00
|
|
|
BINDIR= ${SHAREDIR}/examples
|
|
|
|
|
2015-01-26 06:27:07 +00:00
|
|
|
.if ${MK_HAST} != "no"
|
|
|
|
LDIRS+= hast
|
|
|
|
XFILES+= hast/ucarp.sh \
|
|
|
|
hast/ucarp_down.sh \
|
|
|
|
hast/ucarp_up.sh \
|
|
|
|
hast/vip-down.sh \
|
|
|
|
hast/vip-up.sh
|
|
|
|
.endif
|
|
|
|
|
2015-02-04 11:43:19 +00:00
|
|
|
.if ${MK_USB} != "no"
|
|
|
|
LDIRS+= libusb20
|
|
|
|
XFILES+= libusb20/Makefile \
|
|
|
|
libusb20/README \
|
|
|
|
libusb20/util.c \
|
|
|
|
libusb20/util.h \
|
|
|
|
libusb20/bulk.c \
|
|
|
|
libusb20/control.c
|
|
|
|
.endif
|
|
|
|
|
2015-01-26 06:44:48 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
|
|
.if ${MK_BHYVE} != "no"
|
|
|
|
LDIRS+= bhyve
|
|
|
|
XFILES+= bhyve/vmrun.sh
|
2015-03-05 09:41:49 +00:00
|
|
|
PACKAGE_bhyve/vmrun.sh= bhyve
|
2015-01-26 06:44:48 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
1999-12-09 09:35:36 +00:00
|
|
|
# Define SHARED to indicate whether you want symbolic links to the system
|
|
|
|
# source (``symlinks''), or a separate copy (``copies''); (latter useful
|
|
|
|
# in environments where it's not possible to keep /sys publicly readable)
|
|
|
|
SHARED?= copies
|
|
|
|
|
2002-07-19 07:51:58 +00:00
|
|
|
beforeinstall: ${SHARED} etc-examples
|
2016-03-11 23:45:28 +00:00
|
|
|
META_TARGETS+= copies symlinks
|
2002-07-19 07:51:58 +00:00
|
|
|
.ORDER: ${SHARED} etc-examples
|
1994-08-09 18:25:38 +00:00
|
|
|
|
2016-04-14 21:04:42 +00:00
|
|
|
copies:
|
2002-07-19 07:51:58 +00:00
|
|
|
.for i in ${LDIRS}
|
2002-10-01 13:29:45 +00:00
|
|
|
if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
|
2002-07-19 07:51:58 +00:00
|
|
|
rm -f ${DESTDIR}${BINDIR}/$i; \
|
|
|
|
fi
|
1996-01-21 17:57:25 +00:00
|
|
|
.endfor
|
2002-07-19 07:51:58 +00:00
|
|
|
mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \
|
|
|
|
-f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr
|
|
|
|
.for file in ${XFILES}
|
2015-03-05 09:41:49 +00:00
|
|
|
${INSTALL} -T package=${PACKAGE_${file}:Uruntime} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
|
2002-07-19 07:51:58 +00:00
|
|
|
${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file}
|
1996-01-21 17:57:25 +00:00
|
|
|
.endfor
|
|
|
|
|
2016-04-14 21:04:42 +00:00
|
|
|
symlinks:
|
2002-07-19 07:51:58 +00:00
|
|
|
.for i in ${LDIRS}
|
|
|
|
rm -rf ${DESTDIR}${BINDIR}/$i
|
|
|
|
ln -s ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i
|
1999-12-09 09:35:36 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
etc-examples:
|
|
|
|
.if ${SHARED} != "symlinks"
|
2016-03-11 23:45:09 +00:00
|
|
|
${_+_}(cd ${.CURDIR}/../../etc; ${MAKE} etc-examples)
|
1999-12-09 09:35:36 +00:00
|
|
|
.endif
|
|
|
|
|
2001-10-20 04:18:13 +00:00
|
|
|
.if ${SHARED} != "symlinks"
|
2013-06-28 21:00:08 +00:00
|
|
|
SUBDIR= smbfs
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_IPFILTER} != "no"
|
2002-03-21 09:15:39 +00:00
|
|
|
SUBDIR+=ipfilter
|
|
|
|
.endif
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_PF} != "no"
|
2004-09-14 01:07:19 +00:00
|
|
|
SUBDIR+=pf
|
|
|
|
.endif
|
2001-10-20 04:18:13 +00:00
|
|
|
.endif
|
|
|
|
|
2013-11-18 12:57:46 +00:00
|
|
|
.if ${MK_TESTS} != "no"
|
|
|
|
SUBDIR+=tests
|
|
|
|
.endif
|
|
|
|
|
2015-10-15 22:55:08 +00:00
|
|
|
SUBDIR_PARALLEL=
|
|
|
|
|
2016-03-11 23:45:09 +00:00
|
|
|
.include <bsd.prog.mk>
|