Browse Source

[testing] -> [core] 'openvpn-2.4.7-1' move

master
artoo 7 months ago
parent
commit
3be9c10b46
Signed by: artoo <artoo@artixlinux.org> GPG Key ID: 3292CD0BB0DB310B
2 changed files with 24 additions and 89 deletions
  1. 24
    16
      openvpn/repos/core-x86_64/PKGBUILD
  2. 0
    73
      openvpn/repos/testing-x86_64/PKGBUILD

+ 24
- 16
openvpn/repos/core-x86_64/PKGBUILD View File

@@ -1,26 +1,32 @@
# $Id$
# Maintainer: Christian Hesse <mail@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')
url='http://openvpn.net/index.php/open-source.html'
url='https://openvpn.net/index.php/open-source.html'
depends=('openssl' 'lzo' 'iproute2' 'libeudev' 'pkcs11-helper')
optdepends=('easy-rsa: easy CA and certificate handling'
'pam: authenticate via PAM')
makedepends=('eudev')
makedepends=('git' 'eudev')
license=('custom')
validpgpkeys=('F554A3687412CFFEBDEFE0A312F5F7B42F2B01E7') # OpenVPN - Security Mailing List <security@openvpn.net>
source=("https://swupdate.openvpn.net/community/releases/openvpn-${pkgver}.tar.gz"{,.asc})
sha256sums=('738dbd37fcf8eb9382c53628db22258c41ba9550165519d9200e8bebaef4cbe2'
'SKIP')
validpgpkeys=('F554A3687412CFFEBDEFE0A312F5F7B42F2B01E7' # OpenVPN - Security Mailing List <security@openvpn.net>
'B62E6A2B4E56570B7BDC6BE01D829EFECA562812') # Gert Doering <gert@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 \
@@ -32,13 +38,13 @@ build() {
}

check() {
cd "${srcdir}"/${pkgname}-${pkgver}
cd "${srcdir}"/build

make check
}

package() {
cd "${srcdir}"/${pkgname}-${pkgver}
cd "${srcdir}"/build

# Install openvpn
make DESTDIR="${pkgdir}" install
@@ -46,14 +52,16 @@ package() {
# Create empty configuration directories
install -d -m0750 -g 90 "${pkgdir}"/etc/openvpn/{client,server}

# 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/

cd "${srcdir}"/${pkgname}

# Install examples
install -d -m0755 "${pkgdir}"/usr/share/openvpn
cp -r sample/sample-config-files "${pkgdir}"/usr/share/openvpn/examples

# Install contrib
for FILE in $(find contrib -type f); do
case "$(file --brief --mime-type "${FILE}")" in

+ 0
- 73
openvpn/repos/testing-x86_64/PKGBUILD View File

@@ -1,73 +0,0 @@
# Maintainer: Christian Hesse <mail@eworm.de>

pkgname=openvpn
pkgver=2.4.7
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' 'libeudev' 'pkcs11-helper')
optdepends=('easy-rsa: easy CA and certificate handling'
'pam: authenticate via PAM')
makedepends=('git' 'eudev')
license=('custom')
validpgpkeys=('F554A3687412CFFEBDEFE0A312F5F7B42F2B01E7' # OpenVPN - Security Mailing List <security@openvpn.net>
'B62E6A2B4E56570B7BDC6BE01D829EFECA562812') # Gert Doering <gert@v6.de>
source=("git+git://github.com/OpenVPN/openvpn.git#tag=v${pkgver}?signed")
sha256sums=('SKIP')

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

autoreconf -i
}

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

"${srcdir}"/${pkgname}/configure \
--prefix=/usr \
--sbindir=/usr/bin \
--enable-iproute2 \
--enable-pkcs11 \
--enable-plugins \
--disable-systemd \
--enable-x509-alt-username
make
}

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

make check
}

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

# Install openvpn
make DESTDIR="${pkgdir}" install

# 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 contrib
for FILE in $(find contrib -type f); do
case "$(file --brief --mime-type "${FILE}")" in
"text/x-shellscript") install -D -m0755 "${FILE}" "${pkgdir}/usr/share/openvpn/${FILE}" ;;
*) install -D -m0644 "${FILE}" "${pkgdir}/usr/share/openvpn/${FILE}" ;;
esac
done
}


Loading…
Cancel
Save