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
|
|
|
|
2016-05-10 00:51:50 +00:00
|
|
|
PACKAGE=examples
|
|
|
|
FILESDIR= ${SHAREDIR}/examples
|
|
|
|
|
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 \
|
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 \
|
2016-06-06 02:43:41 +00:00
|
|
|
ypldap
|
1994-11-08 03:58:52 +00:00
|
|
|
|
|
|
|
|
2018-05-09 13:53:10 +00:00
|
|
|
SE_DIRS+= BSD_daemon
|
|
|
|
SE_BSD_DAEMON= \
|
|
|
|
FreeBSD.pfa \
|
|
|
|
README \
|
|
|
|
beastie.eps \
|
|
|
|
beastie.fig \
|
|
|
|
eps.patch \
|
|
|
|
poster.sh
|
|
|
|
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
|
|
.if ${MK_BHYVE} != "no"
|
|
|
|
LDIRS+= bhyve
|
|
|
|
SE_DIRS+= bhyve
|
|
|
|
SE_BHYVE= vmrun.sh
|
|
|
|
PACKAGE_bhyve/vmrun.sh= bhyve
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SE_DIRS+= FreeBSD_version
|
|
|
|
SE_FREEBSD_VERSION= \
|
|
|
|
FreeBSD_version.c \
|
|
|
|
Makefile \
|
|
|
|
README
|
|
|
|
|
|
|
|
SE_DIRS+= IPv6
|
|
|
|
SE_IPV6= USAGE
|
|
|
|
|
|
|
|
SE_DIRS+= bootforth
|
|
|
|
SE_BOOTFORTH= \
|
|
|
|
README \
|
|
|
|
boot.4th \
|
|
|
|
frames.4th \
|
|
|
|
loader.rc \
|
|
|
|
menu.4th \
|
|
|
|
menuconf.4th \
|
|
|
|
screen.4th
|
|
|
|
|
|
|
|
SE_DIRS+= csh
|
|
|
|
SE_CSH= dot.cshrc
|
|
|
|
|
|
|
|
SE_DIRS+= diskless
|
|
|
|
SE_DISKLESS= \
|
|
|
|
ME \
|
|
|
|
README.BOOTP \
|
|
|
|
README.TEMPLATING \
|
|
|
|
clone_root
|
|
|
|
|
|
|
|
SE_DIRS+= drivers
|
|
|
|
SE_DRIVERS= \
|
|
|
|
README \
|
|
|
|
make_device_driver.sh \
|
|
|
|
make_pseudo_driver.sh
|
|
|
|
|
|
|
|
SE_DIRS+= etc
|
|
|
|
SE_ETC= \
|
|
|
|
README.examples \
|
|
|
|
bsd-style-copyright \
|
|
|
|
make.conf
|
|
|
|
|
|
|
|
SE_DIRS+= find_interface
|
|
|
|
SE_FIND_INTERFACE= \
|
|
|
|
Makefile \
|
|
|
|
README \
|
|
|
|
find_interface.c
|
|
|
|
|
|
|
|
SE_DIRS+= indent
|
|
|
|
SE_INDENT= indent.pro
|
|
|
|
|
|
|
|
.if ${MK_IPFILTER} != "no"
|
|
|
|
SUBDIR+= ipfilter
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SE_DIRS+= ipfw
|
|
|
|
SE_IPFW= change_rules.sh
|
|
|
|
|
|
|
|
SE_DIRS+= jails
|
|
|
|
SE_JAILS= \
|
|
|
|
README \
|
|
|
|
VIMAGE \
|
|
|
|
jail.xxx.conf \
|
|
|
|
jib \
|
|
|
|
jng \
|
|
|
|
rc.conf.jails \
|
|
|
|
rcjail.xxx.conf
|
|
|
|
|
|
|
|
SE_DIRS+= kld
|
|
|
|
SE_KLD= Makefile
|
|
|
|
|
|
|
|
SE_DIRS+= kld/cdev
|
|
|
|
SE_KLD_CDEV= \
|
|
|
|
Makefile \
|
|
|
|
README \
|
|
|
|
|
|
|
|
SE_DIRS+= kld/cdev/module
|
|
|
|
SE_KLD_CDEV_MODULE= \
|
|
|
|
Makefile \
|
|
|
|
cdev.c \
|
|
|
|
cdev.h \
|
|
|
|
cdevmod.c
|
|
|
|
|
|
|
|
SE_DIRS+= kld/cdev/test
|
|
|
|
SE_KLD_CDEV_TEST= \
|
|
|
|
Makefile \
|
|
|
|
testcdev.c
|
|
|
|
|
|
|
|
SE_DIRS+= kld/dyn_sysctl
|
|
|
|
SE_KLD_DYN_SYSCTL= \
|
|
|
|
Makefile \
|
|
|
|
README \
|
|
|
|
dyn_sysctl.c
|
|
|
|
|
|
|
|
SE_DIRS+= kld/firmware
|
|
|
|
SE_KLD_FIRMWARE= \
|
|
|
|
Makefile \
|
|
|
|
README
|
|
|
|
|
|
|
|
SE_DIRS+= kld/firmware/fwconsumer
|
|
|
|
SE_KLD_FIRMWARE_FWCONSUMER= \
|
|
|
|
Makefile \
|
|
|
|
fw_consumer.c
|
|
|
|
|
|
|
|
SE_DIRS+= kld/firmware/fwimage
|
|
|
|
SE_KLD_FIRMWARE_FWIMAGE= \
|
|
|
|
Makefile \
|
|
|
|
firmware.img.uu
|
|
|
|
|
|
|
|
SE_DIRS+= kld/khelp
|
|
|
|
SE_KLD_KHELP= \
|
|
|
|
Makefile \
|
|
|
|
README \
|
|
|
|
h_example.c
|
|
|
|
|
|
|
|
SE_DIRS+= kld/syscall
|
|
|
|
SE_KLD_SYSCALL= Makefile
|
|
|
|
|
|
|
|
SE_DIRS+= kld/syscall/module
|
|
|
|
SE_KLD_SYSCALL_MODULE= \
|
|
|
|
Makefile \
|
|
|
|
syscall.c
|
|
|
|
|
|
|
|
SE_DIRS+= kld/syscall/test
|
|
|
|
SE_KLD_SYSCALL_TEST= \
|
|
|
|
Makefile \
|
|
|
|
call.c
|
|
|
|
|
|
|
|
SE_DIRS+= libvgl
|
|
|
|
SE_LIBVGL= \
|
|
|
|
Makefile \
|
|
|
|
demo.c
|
|
|
|
|
|
|
|
SE_DIRS+= mdoc
|
|
|
|
SE_MDOC= \
|
|
|
|
POSIX-copyright \
|
|
|
|
deshallify.sh \
|
|
|
|
example.1 \
|
|
|
|
example.3 \
|
|
|
|
example.4 \
|
|
|
|
example.9
|
|
|
|
|
|
|
|
SE_DIRS+= netgraph
|
|
|
|
SE_NETGRAPH= \
|
|
|
|
ether.bridge \
|
|
|
|
frame_relay \
|
|
|
|
ngctl \
|
|
|
|
raw \
|
|
|
|
udp.tunnel \
|
|
|
|
virtual.chain \
|
|
|
|
virtual.lan \
|
|
|
|
|
|
|
|
SE_DIRS+= perfmon
|
|
|
|
SE_PERFMON= \
|
|
|
|
Makefile \
|
|
|
|
README \
|
|
|
|
perfmon.c \
|
|
|
|
|
|
|
|
.if ${MK_PF} != "no"
|
|
|
|
SE_DIRS+= pf
|
|
|
|
SE_PF= \
|
|
|
|
ackpri \
|
|
|
|
faq-example1 \
|
|
|
|
faq-example2 \
|
|
|
|
faq-example3 \
|
|
|
|
pf.conf \
|
|
|
|
queue1 \
|
|
|
|
queue2 \
|
|
|
|
queue3 \
|
|
|
|
queue4 \
|
|
|
|
spamd
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SE_DIRS+= ppi
|
|
|
|
SE_PPI= \
|
|
|
|
Makefile \
|
|
|
|
ppilcd.c
|
|
|
|
|
|
|
|
SE_DIRS+= ppp
|
|
|
|
SE_PPP= \
|
|
|
|
chap-auth \
|
|
|
|
login-auth \
|
|
|
|
ppp.conf.sample \
|
|
|
|
ppp.conf.span-isp \
|
|
|
|
ppp.conf.span-isp.working \
|
|
|
|
ppp.linkdown.sample \
|
|
|
|
ppp.linkdown.span-isp \
|
|
|
|
ppp.linkdown.span-isp.working \
|
|
|
|
ppp.linkup.sample \
|
|
|
|
ppp.linkup.span-isp \
|
|
|
|
ppp.linkup.span-isp.working \
|
|
|
|
ppp.secret.sample \
|
|
|
|
ppp.secret.span-isp \
|
|
|
|
ppp.secret.span-isp.working
|
|
|
|
|
|
|
|
SE_DIRS+= printing
|
|
|
|
SE_PRINTING= \
|
|
|
|
diablo-if-net \
|
|
|
|
hpdf \
|
|
|
|
hpif \
|
|
|
|
hpof \
|
|
|
|
hprf \
|
|
|
|
hpvf \
|
|
|
|
if-simple \
|
|
|
|
if-simpleX \
|
|
|
|
ifhp \
|
|
|
|
make-ps-header \
|
|
|
|
netprint \
|
|
|
|
psdf \
|
|
|
|
psdfX \
|
|
|
|
psif \
|
|
|
|
pstf \
|
|
|
|
pstfX
|
|
|
|
|
|
|
|
SE_DIRS+= ses
|
|
|
|
SE_SES= \
|
|
|
|
Makefile \
|
|
|
|
Makefile.inc
|
|
|
|
|
|
|
|
SE_DIRS+= ses/getencstat
|
|
|
|
SE_SES_GETENCSTAT= \
|
|
|
|
Makefile \
|
|
|
|
getencstat.0
|
|
|
|
|
|
|
|
SE_DIRS+= ses/sesd
|
|
|
|
SE_SES_SESD= \
|
|
|
|
Makefile \
|
|
|
|
sesd.0
|
|
|
|
|
|
|
|
SE_DIRS+= ses/setencstat
|
|
|
|
SE_SES_SETENCSTAT= \
|
|
|
|
Makefile \
|
|
|
|
setencstat.0
|
|
|
|
|
|
|
|
SE_DIRS+= ses/setobjstat
|
|
|
|
SE_SES_SETOBJSTAT= \
|
|
|
|
Makefile \
|
|
|
|
setobjstat.0
|
|
|
|
|
|
|
|
SE_DIRS+= ses/srcs
|
|
|
|
SE_SES_SRCS= \
|
|
|
|
chpmon.c \
|
|
|
|
eltsub.c \
|
|
|
|
eltsub.h \
|
|
|
|
getencstat.c \
|
|
|
|
getnobj.c \
|
|
|
|
getobjmap.c \
|
|
|
|
getobjstat.c \
|
|
|
|
inienc.c \
|
|
|
|
sesd.c \
|
|
|
|
setencstat.c \
|
|
|
|
setobjstat.c
|
|
|
|
|
|
|
|
SE_DIRS+= scsi_target
|
|
|
|
SE_SCSI_TARGET= \
|
|
|
|
Makefile \
|
|
|
|
scsi_target.c \
|
|
|
|
scsi_target.h \
|
|
|
|
scsi_target.8 \
|
|
|
|
scsi_cmds.c
|
|
|
|
|
|
|
|
SE_DIRS+= sunrpc
|
|
|
|
SE_SUNRPC= Makefile
|
|
|
|
|
|
|
|
SE_DIRS+= sunrpc/dir
|
|
|
|
SE_SUNRPC_DIR= \
|
|
|
|
Makefile \
|
|
|
|
dir.x \
|
|
|
|
dir_proc.c \
|
|
|
|
rls.c
|
|
|
|
|
|
|
|
SE_DIRS+= sunrpc/msg
|
|
|
|
SE_SUNRPC_MSG= \
|
|
|
|
Makefile \
|
|
|
|
msg.x \
|
|
|
|
msg_proc.c \
|
|
|
|
printmsg.c \
|
|
|
|
rprintmsg.c
|
|
|
|
|
|
|
|
SE_DIRS+= sunrpc/sort
|
|
|
|
SE_SUNRPC_SORT= \
|
|
|
|
Makefile \
|
|
|
|
rsort.c \
|
|
|
|
sort.x \
|
|
|
|
sort_proc.c
|
|
|
|
|
2018-06-19 21:07:25 +00:00
|
|
|
.if ${MK_EFI} != "no"
|
|
|
|
LDIRS+= uefisign
|
2018-05-09 13:53:10 +00:00
|
|
|
SE_DIRS+= uefisign
|
|
|
|
SE_UEFISIGN= uefikeys
|
2018-06-19 21:07:25 +00:00
|
|
|
.endif
|
2018-05-09 13:53:10 +00:00
|
|
|
|
|
|
|
SE_DIRS+= ypldap
|
|
|
|
SE_YPLDAP= ypldap.conf
|
2002-07-19 07:51:58 +00:00
|
|
|
|
2015-01-26 06:27:07 +00:00
|
|
|
.if ${MK_HAST} != "no"
|
|
|
|
LDIRS+= hast
|
2018-05-09 13:53:10 +00:00
|
|
|
SE_DIRS+= hast
|
|
|
|
SE_HAST= ucarp.sh \
|
|
|
|
ucarp_down.sh \
|
|
|
|
ucarp_up.sh \
|
|
|
|
vip-down.sh \
|
|
|
|
vip-up.sh
|
2015-01-26 06:27:07 +00:00
|
|
|
.endif
|
|
|
|
|
2014-11-26 21:18:52 +00:00
|
|
|
.if ${MK_USB} != "no"
|
|
|
|
LDIRS+= libusb20
|
2018-05-09 13:53:10 +00:00
|
|
|
SE_DIRS+= libusb20
|
|
|
|
SE_LIBUSB20= \
|
|
|
|
Makefile \
|
|
|
|
README \
|
|
|
|
util.c \
|
|
|
|
util.h \
|
|
|
|
bulk.c \
|
|
|
|
control.c
|
2014-11-26 21:18:52 +00:00
|
|
|
.endif
|
|
|
|
|
2015-01-26 06:44:48 +00:00
|
|
|
|
2018-05-09 13:53:10 +00:00
|
|
|
# Setup the FILES_GROUPS for all DIRS variables above.
|
|
|
|
# The variables are prefixed by 'SE_' to prevent variable collision in
|
|
|
|
# other parts of the system
|
|
|
|
.for d in ${SE_DIRS}
|
|
|
|
.for f in ${SE_${d:tu:C/\//_/g}}
|
|
|
|
SER_${d:tu:C/\//_/g}+= ${d}/${f}
|
|
|
|
.endfor
|
|
|
|
FILESGROUPS+= SER_${d:tu:C/\//_/g}
|
|
|
|
SER_${d:tu:C/\//_/g}DIR+= ${SHAREDIR}/examples/${d}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
BINDIR= ${SHAREDIR}/examples
|
1999-12-09 09:35:36 +00:00
|
|
|
|
2019-05-22 07:23:03 +00:00
|
|
|
beforeinstall: copies
|
2018-05-09 13:53:10 +00:00
|
|
|
META_TARGETS+= copies
|
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
|
1999-12-09 09:35:36 +00:00
|
|
|
|
2018-05-09 13:53:10 +00:00
|
|
|
SUBDIR+= smbfs
|
2001-10-20 04:18:13 +00:00
|
|
|
|
2017-08-02 08:50:42 +00:00
|
|
|
HAS_TESTS=
|
2017-08-02 08:35:51 +00:00
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
2013-11-18 12:57:46 +00:00
|
|
|
|
2015-10-15 22:55:08 +00:00
|
|
|
SUBDIR_PARALLEL=
|
|
|
|
|
2016-03-11 23:45:09 +00:00
|
|
|
.include <bsd.prog.mk>
|