Browse Source

openvpn-2.4.6-1.hyperbola5: enable TUN/TAP module from /etc/modules.d

tags/milky-way/v0.3
André Silva 10 months ago
parent
commit
c73fc93398
4 changed files with 10 additions and 17 deletions
  1. +7
    -5
      openvpn/PKGBUILD
  2. +1
    -6
      openvpn/openvpn-client.initd
  3. +1
    -6
      openvpn/openvpn-server.initd
  4. +1
    -0
      openvpn/openvpn.modulesd

+ 7
- 5
openvpn/PKGBUILD View File

@@ -6,7 +6,7 @@ pkgname=openvpn
pkgver=2.4.6
_debver=2.4.6
_debrel=1
pkgrel=1.hyperbola4
pkgrel=1.hyperbola5
pkgdesc='An easy-to-use, robust and highly configurable VPN (Virtual Private Network), with logger recommendation and libeudev, eudev, libressl and OpenRC support'
arch=('i686' 'x86_64')
url='https://openvpn.net/index.php/open-source.html'
@@ -24,14 +24,16 @@ source=("https://swupdate.openvpn.net/community/releases/openvpn-${pkgver}.tar.x
'openvpn-client.confd'
'openvpn-server.confd'
'openvpn-client.initd'
'openvpn-server.initd')
'openvpn-server.initd'
'openvpn.modulesd')
sha512sums=('da4301a4655a5bc224de59ba74fe15005ea856cc43b404aa32caa7065f49adc69f4747ba646f228554d5b6629323f434ee0e04ee71d2103964b9bab23d185ebe'
'SKIP'
'e3abf6ef448fca6f2b007a343e4d8d19a226c2c8741c6502f1fc5a427a849a8e73a43284923c0b551de8e6c346e7d5919db3c9e833d8a11a70e81191b9ffce1a'
'369dc2968aeeba7757784b2ab950f261cdcdaf79c16b96ebe8c16c51c21e7cc38e80c31e00a0a51299d5c27137fe806de42b22ffd1cdf3b0da9eb799c82852aa'
'a08ec66868369013013dd880672eabd6fe2a1d19ff03003cac2b4cb91b3e07955080f79cbaa556c5556a1153664b12388a42d47caf8828e7632c5125c6404935'
'6c9eb798efa9cde220bcf80c2255b10a630dd8385396dffdf5300867b319e8e057e0b0d1fe3a9913c4856c612d21e8f0322edee40a26170ea1b1ecdf01d8fe3f'
'd3a4980be5ed02d20fdee3e99e4662f8e7b61867db3954ad9f1d93b2b14190ad3ad5324f813aac9b0baf4e4776a1aa29349f07e537807a5a9ae53d19f295ad90')
'4d267bf0b1be6d2ac74ecbca8b7ee1192f82ad15f464585fbb7fa28c50caced6409c8297be409cdc7767889f3678572e4506487e8f908bbc4af48108f090af84'
'c9043822ea016cb166fe238089b5729c4f6f787d44f3f0a8b619faafb9e9e7a5efc91214bb6055db645385882aec471cb0584200361611f7c489755db49c7b3d'
'871b650ff982be061532b4c5fe4812f41e6e2c58fc69b24f8a745f9a43389da44e742a69b0467b3c3d9e2b031af0728e20f10fa4584695c4f5ac87768a1fd34e')

prepare() {
cd "${srcdir}"/${pkgname}-${pkgver}
@@ -104,5 +106,5 @@ package() {
install -Dm644 "${srcdir}"/$f.confd "${pkgdir}"/etc/conf.d/$f
install -Dm755 "${srcdir}"/$f.initd "${pkgdir}"/etc/init.d/$f
done
install -Dm644 "${srcdir}"/openvpn.modulesd "${pkgdir}"/etc/modules.d/openvpn
}


+ 1
- 6
openvpn/openvpn-client.initd View File

@@ -1,5 +1,5 @@
#!/sbin/openrc-run
# Copyright 2017-2018 Hyperbola Project
# Copyright 2017-2019 Hyperbola Project
# Distributed under the terms of the GNU General Public License v2

description="OpenVPN service (client)"
@@ -19,10 +19,5 @@ depend() {
}

start_pre() {
# Enable TUN/TAP module (for GNU/Linux only)
if [ $(uname -s) = "Linux" ]; then
/usr/sbin/modprobe tun
fi

checkpath --directory --mode 0755 /var/run/openvpn
}

+ 1
- 6
openvpn/openvpn-server.initd View File

@@ -1,5 +1,5 @@
#!/sbin/openrc-run
# Copyright 2017-2018 Hyperbola Project
# Copyright 2017-2019 Hyperbola Project
# Distributed under the terms of the GNU General Public License v2

description="OpenVPN service (server)"
@@ -19,10 +19,5 @@ depend() {
}

start_pre() {
# Enable TUN/TAP module (for GNU/Linux only)
if [ $(uname -s) = "Linux" ]; then
/usr/sbin/modprobe tun
fi

checkpath --directory --mode 0755 /var/run/openvpn
}

+ 1
- 0
openvpn/openvpn.modulesd View File

@@ -0,0 +1 @@
tun

Loading…
Cancel
Save