Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions srcpkgs/awsvpnclient/INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
case "${ACTION}" in
post)
# Generate FIPS module integrity config required by the bundled OpenSSL.
# fips.so uses musl, so we invoke it via the bundled musl linker.
/opt/awsvpnclient/Service/Resources/openvpn/ld-musl-x86_64.so.1 \
/opt/awsvpnclient/Service/Resources/openvpn/openssl fipsinstall \
-module /opt/awsvpnclient/Service/Resources/openvpn/fips.so \
-out /opt/awsvpnclient/Service/Resources/openvpn/fipsmodule.cnf \
>/dev/null 2>&1
echo "awsvpnclient: enable the service with: ln -s /etc/sv/awsvpnclient /var/service/"
;;
esac
3 changes: 3 additions & 0 deletions srcpkgs/awsvpnclient/files/awsvpnclient/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
export PATH=/usr/libexec/awsvpnclient:${PATH}
exec /opt/awsvpnclient/Service/ACVC.GTK.Service 2>&1
27 changes: 27 additions & 0 deletions srcpkgs/awsvpnclient/files/resolvectl
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/sh
action="${1}"
shift

case "${action}" in
dns)
shift # skip interface arg
for ns in "$@"; do
grep -q "nameserver ${ns}" /etc/resolv.conf 2>/dev/null || \
printf 'nameserver %s\n' "${ns}" >> /etc/resolv.conf
done
;;
domain)
shift # skip interface arg
for d in "$@"; do
grep -q "search ${d}" /etc/resolv.conf 2>/dev/null || \
printf 'search %s\n' "${d}" >> /etc/resolv.conf
done
;;
revert)
[ -f /etc/resolv.conf.awsvpn-bak ] && \
cp /etc/resolv.conf.awsvpn-bak /etc/resolv.conf
;;
status)
;;
esac
exit 0
11 changes: 11 additions & 0 deletions srcpkgs/awsvpnclient/patches/awsvpnclient.desktop.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/usr/share/applications/awsvpnclient.desktop
+++ b/usr/share/applications/awsvpnclient.desktop
@@ -3,7 +3,7 @@
Type=Application
Encoding=UTF-8
Name=AWS VPN Client
Comment=AWS VPN Client
-Exec="/opt/awsvpnclient/AWS\sVPN\sClient" %u
+Exec="/opt/awsvpnclient/AWS VPN Client" %u
Path=/opt/awsvpnclient
Icon=acvc-64.png
30 changes: 30 additions & 0 deletions srcpkgs/awsvpnclient/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Template file for 'awsvpnclient'
pkgname=awsvpnclient
version=5.4.0
revision=1
archs="x86_64"
depends="xdg-utils lsof"
short_desc="Official AWS VPN Client for Linux"
maintainer="Orphaned <orphan@voidlinux.org>"
license="custom:awsvpnclient"
homepage="https://aws.amazon.com/vpn/"
distfiles="https://d20adtppz83p9s.cloudfront.net/GTK/${version}/awsvpnclient_amd64.deb"
checksum="7dd9e28962bf64bf94ef41b8e1f68de5e0d0393d71300767698fb336c69276cc"
nostrip=yes
restricted=yes
repository=nonfree

do_install() {
vcopy opt /
vcopy usr /

# runit service for the VPN daemon
vsv awsvpnclient

# resolvectl shim — configure-dns calls resolvectl (systemd-resolved) which does not
# exist on Void. Installed to libexec; the runit run script prepends it to PATH so
# configure-dns finds it without modifying the integrity-checked configure-dns script.
vinstall ${FILESDIR}/resolvectl 755 usr/libexec/awsvpnclient

vlicense "${DESTDIR}/opt/awsvpnclient/Resources/LINUX-LICENSE.txt"
}