Date: Tuesday, February 19, 2019 @ 20:59:00 Author: eworm Revision: 346563
upgpkg: openvpn 2.4.7-1 * new upstream release * build from git * build in build directory Modified: openvpn/trunk/PKGBUILD ----------+ PKGBUILD | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-02-19 20:53:44 UTC (rev 346562) +++ PKGBUILD 2019-02-19 20:59:00 UTC (rev 346563) @@ -1,7 +1,7 @@ # Maintainer: Christian Hesse <m...@eworm.de> pkgname=openvpn -pkgver=2.4.6 +pkgver=2.4.7 pkgrel=1 pkgdesc='An easy-to-use, robust and highly configurable VPN (Virtual Private Network)' arch=('x86_64') @@ -9,17 +9,24 @@ depends=('openssl' 'lzo' 'iproute2' 'systemd-libs' 'pkcs11-helper') optdepends=('easy-rsa: easy CA and certificate handling' 'pam: authenticate via PAM') -makedepends=('systemd') +makedepends=('git' 'systemd') license=('custom') -validpgpkeys=('F554A3687412CFFEBDEFE0A312F5F7B42F2B01E7') # OpenVPN - Security Mailing List <secur...@openvpn.net> -source=("https://swupdate.openvpn.net/community/releases/openvpn-${pkgver}.tar.gz"{,.asc}) -sha256sums=('738dbd37fcf8eb9382c53628db22258c41ba9550165519d9200e8bebaef4cbe2' - 'SKIP') +validpgpkeys=('F554A3687412CFFEBDEFE0A312F5F7B42F2B01E7' # OpenVPN - Security Mailing List <secur...@openvpn.net> + 'B62E6A2B4E56570B7BDC6BE01D829EFECA562812') # Gert Doering <g...@v6.de> +source=("git+git://github.com/OpenVPN/openvpn.git#tag=v${pkgver}?signed") +sha256sums=('SKIP') +prepare() { + cd "${srcdir}"/${pkgname} + + autoreconf -i +} + build() { - cd "${srcdir}"/${pkgname}-${pkgver} + mkdir "${srcdir}"/build + cd "${srcdir}"/build - ./configure \ + "${srcdir}"/${pkgname}/configure \ --prefix=/usr \ --sbindir=/usr/bin \ --enable-iproute2 \ @@ -31,13 +38,13 @@ } check() { - cd "${srcdir}"/${pkgname}-${pkgver} + cd "${srcdir}"/build make check } package() { - cd "${srcdir}"/${pkgname}-${pkgver} + cd "${srcdir}"/build # Install openvpn make DESTDIR="${pkgdir}" install @@ -45,14 +52,16 @@ # Create empty configuration directories install -d -m0750 -g 90 "${pkgdir}"/etc/openvpn/{client,server} + # Install license + install -d -m0755 "${pkgdir}"/usr/share/licenses/openvpn/ + ln -sf /usr/share/doc/openvpn/{COPYING,COPYRIGHT.GPL} "${pkgdir}"/usr/share/licenses/openvpn/ + + cd "${srcdir}"/${pkgname} + # Install examples install -d -m0755 "${pkgdir}"/usr/share/openvpn cp -r sample/sample-config-files "${pkgdir}"/usr/share/openvpn/examples - # Install license - install -d -m0755 "${pkgdir}"/usr/share/licenses/openvpn/ - ln -sf /usr/share/doc/openvpn/{COPYING,COPYRIGHT.GPL} "${pkgdir}"/usr/share/licenses/openvpn/ - # Install contrib for FILE in $(find contrib -type f); do case "$(file --brief --mime-type "${FILE}")" in