summaryrefslogblamecommitdiffstats
path: root/src/clean_patch.sh
blob: 64e55f630d7bbbb4985a261194ca7a4be6c96f09 (plain) (tree)
1
2
3
4
5
6
7
8
9

         
                  
 
      
 
                                                                         
                                                                                
 






                                                                                    
                                                                        
                                                             
 
                                                                       
                                                                             

                                                                          
 
                                                                           
                                                                             

                                     
                               
                                    
                                      
                                       
                                    
                                                  
                                                        

                                 
#!/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/mpq.h /usr/src/sys/sys/
cp $DIR/fixedmap.h /usr/src/sys/sys/
cp $DIR/antireplay.h /usr/src/sys/sys/
cp $DIR/bloombucket.h /usr/src/sys/sys/
cp $DIR/kern_wg.c /usr/src/sys/kern/
cp $DIR/if_wg.* $DIR/wireguard.* /usr/src/sys/net/
cp $DIR/blake2s.* $DIR/curve25519.* /usr/src/sys/crypto/

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