2017-11-06 23:29:02 +01:00
|
|
|
|
# Tanım: Kernel modül destekli ileri seviye güvenli vpn uygulaması
|
|
|
|
|
# URL: https://www.wireguard.com
|
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: libmnl kernel
|
|
|
|
|
# Grup: güvenlik
|
|
|
|
|
|
|
|
|
|
isim=wireguard-kernel
|
2018-04-30 18:38:56 +02:00
|
|
|
|
surum=0.0.20180420
|
2017-11-06 23:29:02 +01:00
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(https://git.zx2c4.com/WireGuard/snapshot/WireGuard-$surum.tar.xz::WireGuard-$surum.tar.xz)
|
|
|
|
|
|
|
|
|
|
kernel_surum=$(ls /lib/modules/)
|
|
|
|
|
derle() {
|
|
|
|
|
cd "WireGuard-$surum"
|
|
|
|
|
unset LDFLAGS
|
|
|
|
|
mv /lib/modules/${kernel_surum}/build/vmlinux /lib/modules/${kernel_surum}/build/vmlinux.tmp
|
|
|
|
|
make -C src/ \
|
|
|
|
|
KERNELDIR=/lib/modules/${kernel_surum}/build module
|
|
|
|
|
cd "src"
|
|
|
|
|
local module
|
|
|
|
|
for module in *.ko; do
|
|
|
|
|
install -v -D -m644 ${module} \
|
|
|
|
|
"$PKG/lib/modules/$kernel_surum/extra/${module}"
|
|
|
|
|
done
|
|
|
|
|
mv /lib/modules/${kernel_surum}/build/vmlinux.tmp /lib/modules/${kernel_surum}/build/vmlinux
|
|
|
|
|
}
|