diff options
-rw-r--r-- | 10-appgate-tun.network | 5 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/10-appgate-tun.network b/10-appgate-tun.network new file mode 100644 index 000000000000..8a0e3c34d9c9 --- /dev/null +++ b/10-appgate-tun.network @@ -0,0 +1,5 @@ +[Match] +Name=tun* + +[Link] +Unmanaged=yes @@ -15,10 +15,12 @@ options=(staticlibs !strip !emptydirs) source=( "https://bin.${pkgname}.com/${pkgver%.*}/client/${pkgname}_${pkgver}_amd64.deb" "${pkgname%%-*}driver.service.patch" + "10-appgate-tun.network" ) sha256sums=( "f0aed1aa4c69c91b10dd01c621f4dc84b699efffa4d216e225d97bb9cfbebd8b" "0789aa07d6a7af44187e407696d930e78c50370c19b8399722ebecb0655ffcdb" + "2eb0daa10429e67d703cceccd34069da3044d99c5652658ec73c7a01c88b64e9" ) prepare() { @@ -40,6 +42,9 @@ package() { # Install service files install -dm755 "${pkgdir}/usr/lib/systemd/system" install -Dm644 "${srcdir}/${pkgname}/lib/systemd/system/"* "${pkgdir}/usr/lib/systemd/system/" + # Make systemd-networkd not manage tun interfaces + install -dm755 "${pkgdir}/usr/lib/systemd/network" + install -Dm644 "${srcdir}/10-appgate-tun.network" "${pkgdir}/usr/lib/systemd/network/" # Install license files install -Dm644 "${srcdir}/${pkgname}/usr/share/doc/${pkgname/-sdp/}/copyright" "${pkgdir}/usr/share/licenses/${pkgname}/copyright" |