add amneziawg-tools
This commit is contained in:
parent
b22f4a14ed
commit
fc7547ffa0
3 changed files with 44 additions and 0 deletions
7
srcpkgs/amneziawg-tools/files/amneziawg/finish
Normal file
7
srcpkgs/amneziawg-tools/files/amneziawg/finish
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
for conf in /etc/amnezia/amneziawg/*.conf; do
|
||||
[ -e "$conf" ] || continue;
|
||||
awg-quick down "$conf"
|
||||
done
|
10
srcpkgs/amneziawg-tools/files/amneziawg/run
Normal file
10
srcpkgs/amneziawg-tools/files/amneziawg/run
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
exec 2>&1
|
||||
set -e
|
||||
|
||||
for conf in /etc/amnezia/amneziawg/*.conf; do
|
||||
[ -e "$conf" ] || continue;
|
||||
awg-quick up "$conf"
|
||||
done
|
||||
|
||||
exec chpst -b amneziawg pause
|
27
srcpkgs/amneziawg-tools/template
Normal file
27
srcpkgs/amneziawg-tools/template
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Template file for 'amneziawg-tools'
|
||||
pkgname=wireguard-tools
|
||||
version=1.0.20240213
|
||||
revision=1
|
||||
build_wrksrc="src"
|
||||
build_style=gnu-makefile
|
||||
make_install_args="WITH_BASHCOMPLETION=yes WITH_AWGQUICK=yes"
|
||||
depends="openresolv"
|
||||
checkdepends="clang-analyzer"
|
||||
short_desc="Fast, modern, secure VPN tunnel - userland tools"
|
||||
maintainer="CringeTech Team <team@cringetech.net>"
|
||||
license="GPL-2.0-only"
|
||||
homepage="https://github.com/amnezia-vpn/amneziawg-tools"
|
||||
distfiles="https://github.com/amnezia-vpn/amneziawg-tools/archive/refs/tags/v${version}.tar.gz"
|
||||
checksum="4bde122630c9ddb1ec013c3e958f2c613b9eea56834674dda92fcb423c6f4d10"
|
||||
make_dirs="/etc/amnezia/amneziawg 0700 root root"
|
||||
|
||||
post_patch() {
|
||||
vsed -i 's/^CFLAGS /override &/' Makefile
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vsv amneziawg
|
||||
|
||||
vmkdir usr/share/$pkgname/examples
|
||||
vcopy ../contrib/* usr/share/$pkgname/examples
|
||||
}
|
Loading…
Add table
Reference in a new issue