- Make NETWORKING depend on DNS/FIREWALL

- Make local_unbound provide DNS
- Make ipfs, ipfw, and pf provide FIREWALL
- Make securelevel require FIREWALL
- Remove ipfs/ipfilter requirement from netif to avoid circular dependency
  with those services
This commit is contained in:
Enji Cooper 2014-11-30 11:14:49 +00:00
parent 270847f1b2
commit 98b9c9cef1
8 changed files with 31 additions and 16 deletions

View File

@ -40,11 +40,6 @@ FILES= DAEMON \
hostid_save \
hostname \
${_inetd} \
ipfilter \
ipfs \
ipfw \
ipmon \
ipnat \
ipsec \
${_kadmind} \
${_kdc} \
@ -76,9 +71,6 @@ FILES= DAEMON \
nsswitch \
${_opensm} \
${_othermta} \
pf \
pflog \
pfsync \
pwcheck \
quota \
random \
@ -201,6 +193,17 @@ FILES+= rtsold
FILES+= static_ndp
.endif
.if ${MK_IPFILTER} != "no"
FILES+= ipfilter
FILES+= ipmon
FILES+= ipnat
FILES+= ipfs
.endif
.if ${MK_IPFW} != "no"
FILES+= ipfw
.endif
.if ${MK_ISCSI} != "no"
FILES+= iscsictl
FILES+= iscsid
@ -242,6 +245,16 @@ FILES+= nfsd
FILES+= nfsuserd
.endif
.if ${MK_NIS} != "no"
FILES+= nisdomain
FILES+= ypbind
FILES+= yppasswdd
FILES+= ypserv
FILES+= ypset
FILES+= ypupdated
FILES+= ypxfrd
.endif
.if ${MK_NTP} != "no"
FILES+= ntpd
FILES+= ntpdate
@ -261,6 +274,9 @@ _sshd= sshd
.if ${MK_PF} != "no"
FILES+= ftp-proxy
FILES+= pf
FILES+= pflog
FILES+= pfsync
.endif
.if ${MK_PPP} != "no"

View File

@ -4,7 +4,7 @@
#
# PROVIDE: NETWORKING NETWORK
# REQUIRE: netif netoptions routing ipfw
# REQUIRE: netif netoptions routing DNS FIREWALL
# REQUIRE: defaultroute resolv bridge
# REQUIRE: static_arp

View File

@ -3,7 +3,7 @@
# $FreeBSD$
#
# PROVIDE: ipfs
# PROVIDE: ipfs FIREWALL
# REQUIRE: ipnat
# KEYWORD: nojail shutdown

View File

@ -3,7 +3,8 @@
# $FreeBSD$
#
# PROVIDE: ipfw
# PROVIDE: ipfw FIREWALL
# REQUIRE: defaultroute
# KEYWORD: nojailvnet
. /etc/rc.subr

View File

@ -3,9 +3,8 @@
# $FreeBSD$
#
# PROVIDE: local_unbound
# PROVIDE: local_unbound DNS
# REQUIRE: FILESYSTEMS netif resolv routing
# BEFORE: NETWORKING
# KEYWORD: shutdown
. /etc/rc.subr

View File

@ -27,7 +27,6 @@
# PROVIDE: netif
# REQUIRE: FILESYSTEMS serial sysctl
# REQUIRE: ipfilter ipfs
# KEYWORD: nojailvnet
. /etc/rc.subr

View File

@ -3,7 +3,7 @@
# $FreeBSD$
#
# PROVIDE: pf
# PROVIDE: pf FIREWALL
# REQUIRE: FILESYSTEMS netif pflog pfsync
# BEFORE: routing
# KEYWORD: nojail

View File

@ -4,7 +4,7 @@
#
# PROVIDE: securelevel
# REQUIRE: adjkerntz ipfw ipfilter pf
# REQUIRE: adjkerntz FIREWALL
. /etc/rc.subr