opnsense-src/libexec/rc/rc.d/Makefile
Gleb Smirnoff 6aae3517ed Retire synchronous PPP kernel driver sppp(4).
The last two drivers that required sppp are cp(4) and ce(4).

These devices are still produced and can be purchased
at Cronyx <http://cronyx.ru/hardware/wan.html>.

Since Roman Kurakin <rik@FreeBSD.org> has quit them, they no
longer support FreeBSD officially.  Later they have dropped
support for Linux drivers to.  As of mid-2020 they don't even
have a developer to maintain their Windows driver.  However,
their support verbally told me that they could provide aid to
a FreeBSD developer with documentaion in case if there appears
a new customer for their devices.

These drivers have a feature to not use sppp(4) and create an
interface, but instead expose the device as netgraph(4) node.
Then, you can attach ng_ppp(4) with help of ports/net/mpd5 on
top of the node and get your synchronous PPP.  Alternatively
you can attach ng_frame_relay(4) or ng_cisco(4) for HDLC.
Actually, last time I used cp(4) back in 2004, using netgraph(4)
instead of sppp(4) was already the right way to do.

Thus, remove the sppp(4) related part of the drivers and enable
by default the negraph(4) part.  Further maintenance of these
drivers in the tree shouldn't be a big deal.

While doing that, remove some cruft and enable cp(4) compilation
on amd64.  The ce(4) for some unknown reason marks its internal
DDK functions with __attribute__ fastcall, which most likely is
safe to remove, but without hardware I'm not going to do that, so
ce(4) remains i386-only.

Reviewed by:		emaste, imp, donner
Differential Revision:	https://reviews.freebsd.org/D32590
See also:		https://reviews.freebsd.org/D23928
2021-10-22 11:41:36 -07:00

335 lines
4.2 KiB
Makefile

# $FreeBSD$
.include <src.opts.mk>
CONFDIR= /etc/rc.d
CONFGROUPS= CONFS
CONFSPACKAGE= rc
CONFS= DAEMON \
FILESYSTEMS \
LOGIN \
NETWORKING \
SERVERS \
adjkerntz \
bgfsck \
${_blacklistd} \
bridge \
cfumass \
cleanvar \
cleartmp \
cron \
ctld \
ddb \
defaultroute \
devd \
devfs \
devmatch \
dhclient \
dmesg \
dumpon \
fsck \
gbde \
geli \
geli2 \
gptboot \
growfs \
hostid \
hostid_save \
hostname \
iovctl \
ip6addrctl \
ipsec \
${_kadmind} \
${_kdc} \
${_kfd} \
kld \
kldxref \
${_kpasswdd} \
ldconfig \
linux \
local \
localpkg \
lockd \
mixer \
motd \
mountcritlocal \
mountcritremote \
mountlate \
mdconfig \
mdconfig2 \
mountd \
msgs \
natd \
netif \
netoptions \
netwait \
newsyslog \
nfsclient \
nfscbd \
nfsd \
nfsuserd \
nisdomain \
${_nscd} \
ntpdate \
${_opensm} \
os-release \
pf \
pflog \
pfsync \
powerd \
ppp \
pppoed \
pwcheck \
quota \
random \
rarpd \
rctl \
resolv \
root \
route6d \
routing \
rpcbind \
rtadvd \
rtsold \
rwho \
savecore \
securelevel \
serial \
statd \
static_arp \
static_ndp \
stf \
swap \
swaplate \
sysctl \
sysctl_lastload \
syslogd \
sysvipc \
tmp \
ugidfw \
${_utx} \
var \
watchdogd
.if ${MK_NIS} != "no"
CONFS+= ypbind \
ypldap \
yppasswdd \
ypserv \
ypset \
ypupdated \
ypxfrd
.endif
.if ${MK_ACCT} != "no"
CONFGROUPS+= ACCT
ACCT+= accounting
ACCTPACKAGE= acct
.endif
.if ${MK_ACPI} != "no"
CONFGROUPS+= ACPI
ACPI= power_profile
ACPIPACKAGE= acpi
.endif
.if ${MK_APM} != "no"
CONFGROUPS+= APM
APM+= apm
.if ${MACHINE} == "i386"
APM+= apmd
.endif
APMPACKAGE= apm
.endif
.if ${MK_AUDIT} != "no"
CONFGROUPS+= AUDIT
AUDIT+= auditd
AUDIT+= auditdistd
AUDITPACKAGE= rc
.endif
.if ${MK_AUTOFS} != "no"
CONFS+= automount
CONFS+= automountd
CONFS+= autounmountd
.endif
.if ${MK_BLACKLIST} != "no"
_blacklistd+= blacklistd
.endif
.if ${MK_BLUETOOTH} != "no"
CONFGROUPS+= BLUETOOTH
BLUETOOTH+= bluetooth \
bthidd \
hcsecd \
rfcomm_pppd_server \
sdpd \
ubthidhci
BLUETOOTHPACKAGE= bluetooth
.endif
.if ${MK_BOOTPARAMD} != "no"
CONFS+= bootparams
.endif
.if ${MK_BSNMP} != "no"
CONFGROUPS+= BSNMP
BSNMP+= bsnmpd
BSNMPPACKAGE= bsnmp
.endif
.if ${MK_CCD} != "no"
CONFS+= ccd
.endif
.if ${MK_FTP} != "no"
CONFS+= ftpd
.endif
.if ${MK_GSSAPI} != "no"
CONFGROUPS+= GSSD
GSSD= gssd
GSSDPACKAGE= kerberos
.endif
.if ${MK_HAST} != "no"
CONFGROUPS+= HAST
HAST= hastd
HASTPACKAGE= hast
.endif
.if ${MK_INETD} != "no"
CONFS+= inetd
.endif
.if ${MK_IPFILTER} != "no"
CONFS+= ipfilter \
ipfs \
ipmon \
ipnat \
ippool
.endif
.if ${MK_IPFW} != "no"
CONFS+= ipfw
.if ${MK_NETGRAPH} != "no"
CONFS+= ipfw_netflow
.endif
.endif
.if ${MK_ISCSI} != "no"
CONFS+= iscsictl
CONFS+= iscsid
.endif
.if ${MK_JAIL} != "no"
CONFGROUPS+= JAIL
JAIL+= jail
JAILPACKAGE= jail
.endif
.if ${MK_LEGACY_CONSOLE} != "no"
CONFS+= moused
CONFS+= syscons
.endif
.if ${MK_LPR} != "no"
CONFS+= lpd
.endif
.if ${MK_KERBEROS} != "no"
CONFS+= ipropd_master
CONFS+= ipropd_slave
_kadmind= kadmind
_kdc= kdc
_kfd= kfd
_kpasswdd= kpasswdd
DIRS+= VAR_HEMIDAL
VAR_HEMIDAL= /var/heimdal
VAR_HEMIDAL_MODE= 700
.endif
.if ${MK_MAIL} != "no"
CONFS+= othermta
.endif
.if ${MK_NS_CACHING} != "no"
_nscd= nscd
.endif
.if ${MK_NTP} != "no"
CONFS+= ntpd
.endif
.if ${MK_OFED} != "no"
_opensm= opensm
.endif
.if ${MK_OPENSSL} != "no"
CONFS+= keyserv
.if ${MK_OPENSSL_KTLS} != "no"
CONFS+= tlsclntd \
tlsservd
.endif
.endif
.if ${MK_OPENSSH} != "no"
CONFGROUPS+= SSH
SSH= sshd
SSHPACKAGE= ssh
.endif
.if ${MK_PF} != "no"
CONFS+= ftp-proxy
.endif
.if ${MK_ROUTED} != "no"
CONFS+= routed
.endif
.if ${MK_SENDMAIL} != "no"
CONFGROUPS+= SMRCD
SMRCD= sendmail
SMRCDPACKAGE= sendmail
.endif
.if ${MK_UNBOUND} != "no"
CONFGROUPS+= UNBOUND
UNBOUND+= local_unbound
UNBOUNDPACKAGE= unbound
.endif
.if ${MK_UTMPX} != "no"
_utx= utx
.endif
.if ${MK_VI} != "no"
CONFGROUPS+= VI
VI+= virecover
VIPACKAGE= vi
.endif
.if ${MK_WIRELESS} != "no"
CONFS+= hostapd
CONFS+= wpa_supplicant
.endif
.if ${MK_ZFS} != "no"
CONFGROUPS+= ZFS
ZFS+= zfs
ZFS+= zfsbe
ZFS+= zfsd
ZFS+= zpool
ZFS+= zvol
ZFSPACKAGE= rc
.endif
.for fg in ${CONFGROUPS}
${fg}MODE?= ${BINMODE}
.endfor
.include <bsd.prog.mk>