mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
wireguard-tools: include contrib/ contents in package.
Other distros are putting them in /usr/share/wireguard-tools/examples, so we also do that for consistency. Also move patching to post_patch and use vsed.
This commit is contained in:
parent
6339588ee9
commit
a2d667d996
1 changed files with 8 additions and 3 deletions
|
@ -1,11 +1,13 @@
|
||||||
# Template file for 'wireguard-tools'
|
# Template file for 'wireguard-tools'
|
||||||
pkgname=wireguard-tools
|
pkgname=wireguard-tools
|
||||||
version=1.0.20210424
|
version=1.0.20210424
|
||||||
revision=1
|
revision=2
|
||||||
build_wrksrc="src"
|
build_wrksrc="src"
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
make_install_args="WITH_BASHCOMPLETION=yes WITH_WGQUICK=yes"
|
make_install_args="WITH_BASHCOMPLETION=yes WITH_WGQUICK=yes"
|
||||||
depends="openresolv"
|
depends="openresolv"
|
||||||
|
# FIXME: clang-analyzer should depend on perl
|
||||||
|
checkdepends="clang-analyzer perl"
|
||||||
short_desc="Fast, modern, secure VPN tunnel - userland tools"
|
short_desc="Fast, modern, secure VPN tunnel - userland tools"
|
||||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
license="GPL-2.0-only"
|
license="GPL-2.0-only"
|
||||||
|
@ -14,10 +16,13 @@ distfiles="https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-${vers
|
||||||
checksum=b288b0c43871d919629d7e77846ef0b47f8eeaa9ebc9cedeee8233fc6cc376ad
|
checksum=b288b0c43871d919629d7e77846ef0b47f8eeaa9ebc9cedeee8233fc6cc376ad
|
||||||
make_dirs="/etc/wireguard 0700 root root"
|
make_dirs="/etc/wireguard 0700 root root"
|
||||||
|
|
||||||
post_extract() {
|
post_patch() {
|
||||||
sed -i 's/^CFLAGS /override &/' ${build_wrksrc}/Makefile
|
vsed -i 's/^CFLAGS /override &/' Makefile
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vsv wireguard
|
vsv wireguard
|
||||||
|
|
||||||
|
vmkdir usr/share/$pkgname/examples
|
||||||
|
vcopy ../contrib/* usr/share/$pkgname/examples
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue