summaryrefslogtreecommitdiffstats
path: root/src/clean_patch.sh
blob: 2215d0ddda23e9feda2aa944c0c3b34bf9ec4a38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh

DIR="`dirname $0`"

set -e

patch -uN /usr/src/sbin/ifconfig/ifconfig.c < $DIR/patches/ifconfig.patch
patch -uN /usr/src/sbin/ifconfig/Makefile < $DIR/patches/ifconfig_Makefile.patch

patch -uN /usr/src/sys/conf/GENERIC < $DIR/patches/CONFIG.patch
patch -uN /usr/src/sys/conf/files < $DIR/patches/files.patch
patch -uN /usr/src/sys/crypto/chacha_private.h < $DIR/patches/chacha_private.h.patch
patch -uN /usr/src/sys/crypto/chachapoly.h < $DIR/patches/chachapoly.h.patch
patch -uN /usr/src/sys/crypto/chachapoly.c < $DIR/patches/chachapoly.c.patch
patch -uN /usr/src/sys/netinet/in_pcb.h < $DIR/patches/in_pcb.h.patch
patch -uN /usr/src/sys/netinet/udp_usrreq.c < $DIR/patches/udp_usrreq.c.patch
patch -uN /usr/src/sys/kern/uipc_mbuf.c < $DIR/patches/uipc_mbuf.c.patch
patch -uN /usr/src/sys/sys/mbuf.h < $DIR/patches/mbuf.h.patch

patch -uN /usr/src/usr.bin/kdump/mkioctls < $DIR/patches/mkioctls.patch
patch -uN /usr/src/usr.bin/kdump/Makefile < $DIR/patches/kdump_Makefile.patch
patch -uN /usr/src/distrib/sets/lists/comp/mi < $DIR/patches/comp_mi.patch
patch -uN /usr/src/distrib/sets/lists/man/mi < $DIR/patches/man_mi.patch

patch -uN /usr/src/sbin/ifconfig/ifconfig.8 < $DIR/patches/ifconfig_8.patch
patch -uN /usr/src/share/man/man4/Makefile < $DIR/patches/man4_Makefile.patch
cp $DIR/wg.4 /usr/src/share/man/man4/

cp $DIR/if_wg.* $DIR/if_wg_vars.* /usr/src/sys/net/
cp $DIR/blake2s.* $DIR/curve25519.* /usr/src/sys/crypto/

cp $DIR/if_wg.h /usr/include/net/