Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/blocklist/freebsd-changes.sh
96277 views
1
#!/bin/sh
2
3
#
4
# FreeBSD-specific changes from upstream
5
#
6
7
# Remove Debian port
8
rm -fr port/debian
9
10
# /libexec -> /usr/libexec
11
sed -i "" -e 's| /libexec| /usr/libexec|g' bin/blocklistd.8
12
sed -i "" -e 's|"/libexec|"/usr/libexec|g' bin/internal.h
13
14
# NetBSD: RT_ROUNDUP -> FreeBSD: SA_SIZE (from net/route.h)
15
sed -i "" -e 's/RT_ROUNDUP/SA_SIZE/g' bin/conf.c
16
17
# npfctl(8) -> ipf(8), ipfw(8), pfctl(8)
18
sed -i "" -e 's/npfctl 8 ,/ipf 8 ,\n.Xr ipfw 8 ,\n.Xr pfctl 8 ,/g' bin/blocklistd.8
19
20