Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: openvpn 2.5.0-1: new upstream release
Browse files Browse the repository at this point in the history
git-svn-id: file:///srv/repos/svn-packages/svn@398953 eb2447ed-0c53-47e4-bac8-5bc4a241df78
  • Loading branch information
eworm authored and svntogit committed Oct 27, 2020
1 parent df60feb commit e3e9b45
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions trunk/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,40 +1,38 @@
# Maintainer: Christian Hesse <mail@eworm.de>

pkgname=openvpn
pkgver=2.4.9
pkgrel=2
_tag='8c3dc0551390e92bfd5b2dc83d7502e7095b7325' # git rev-parse v${pkgver}
pkgver=2.5.0
pkgrel=1
pkgdesc='An easy-to-use, robust and highly configurable VPN (Virtual Private Network)'
arch=('x86_64')
url='https://openvpn.net/index.php/open-source.html'
depends=('openssl' 'lzo' 'iproute2' 'systemd-libs' 'pkcs11-helper')
depends=('openssl' 'lzo' 'lz4' 'systemd-libs' 'libsystemd.so' 'pkcs11-helper' 'libpkcs11-helper.so')
optdepends=('easy-rsa: easy CA and certificate handling'
'pam: authenticate via PAM')
makedepends=('git' 'systemd')
makedepends=('git' 'systemd' 'python-docutils')
license=('custom')
validpgpkeys=('F554A3687412CFFEBDEFE0A312F5F7B42F2B01E7' # OpenVPN - Security Mailing List <security@openvpn.net>
'B62E6A2B4E56570B7BDC6BE01D829EFECA562812') # Gert Doering <gert@v6.de>
source=("git+https://github.com/OpenVPN/openvpn.git#tag=v${pkgver}?signed")
source=("git+https://github.com/OpenVPN/openvpn.git#tag=${_tag}?signed")
sha256sums=('SKIP')

prepare() {
cd "${srcdir}"/${pkgname}

# https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19302.html
sed -i '/^CONFIGURE_DEFINES=/s/set/env/g' configure.ac

autoreconf --force --install
}

build() {
mkdir "${srcdir}"/build
cd "${srcdir}"/build

# for reproducibility we force bash for build system:
# https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19302.html
# https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Defining-Variables.html

CONFIG_SHELL=/bin/bash "${srcdir}"/${pkgname}/configure \
CONFIG_SHELL=/bin/bash \
"${srcdir}"/openvpn/configure \
--prefix=/usr \
--sbindir=/usr/bin \
--enable-iproute2 \
--enable-pkcs11 \
--enable-plugins \
--enable-systemd \
Expand Down Expand Up @@ -70,9 +68,10 @@ package() {
# Install contrib
for FILE in $(find contrib -type f); do
case "$(file --brief --mime-type --no-sandbox "${FILE}")" in
"text/x-shellscript") install -D -m0755 "${FILE}" "${pkgdir}/usr/share/openvpn/${FILE}" ;;
*) install -D -m0644 "${FILE}" "${pkgdir}/usr/share/openvpn/${FILE}" ;;
"text/x-shellscript")
install -D -m0755 "${FILE}" "${pkgdir}/usr/share/openvpn/${FILE}" ;;
*)
install -D -m0644 "${FILE}" "${pkgdir}/usr/share/openvpn/${FILE}" ;;
esac
done
}

0 comments on commit e3e9b45

Please sign in to comment.