summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartoko2019-06-04 21:36:36 +0200
committerMartoko2019-06-04 21:36:36 +0200
commit43d6b839c9696e53aded8d8600b0403f56b272d5 (patch)
tree252f9c6532113c61d7bf983cf714a7fdf0ce98bd
parentcbe7fa2d4871d3ffb54bc2af237fa47a5c1691c3 (diff)
downloadaur-43d6b839c9696e53aded8d8600b0403f56b272d5.tar.gz
Update to 3.1.0-4
Add pre_remove hook to fix attributes for data files. This is dirty, but it is how nordvpn does upstream too. Adjust PKGBUILD as there is now only 1 systemd service again. Do not ship with the SysV files as arch is a systemd distro.
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD16
-rw-r--r--nordvpn-bin.install13
3 files changed, 22 insertions, 27 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 587ca0723d3d..60635dcbfb44 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = nordvpn-bin
pkgdesc = NordVPN CLI tool for Linux
- pkgver = 3.0.1_1
- pkgrel = 2
+ pkgver = 3.1.0_4
+ pkgrel = 1
url = https://nordvpn.com/download/linux/
install = nordvpn-bin.install
arch = i686
@@ -16,14 +16,14 @@ pkgbase = nordvpn-bin
depends = iproute2
provides = nordvpn
conflicts = openvpn-nordvpn
- source_i686 = https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_3.0.1-1_i386.deb
- sha256sums_i686 = 300c396d73ff7f779c776cdee4e3ff4078c712c11f29e2763f352dbae19566ac
- source_x86_64 = https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_3.0.1-1_amd64.deb
- sha256sums_x86_64 = 51b70b8af4593aa268fc3f51260351dcf44510a82f02c63d7f312441f19aa992
- source_armv7h = https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_3.0.1-1_armhf.deb
- sha256sums_armv7h = dce7aa7b7777206e4bb996ae96b76add658e11beabad35330876280b20fb146c
- source_aarch64 = https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_3.0.1-1_aarch64.deb
- sha256sums_aarch64 = e526eef4a8c67a5dff7ba163e8909feedda14b9750f6f642dc3cecb285127503
+ source_i686 = https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_3.1.0-4_i386.deb
+ sha256sums_i686 = 9afcdb23e58dbfffba23567e566f21951cce7508b5d278057f15095971638b86
+ source_x86_64 = https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_3.1.0-4_amd64.deb
+ sha256sums_x86_64 = 5d05b23afb6687ccf423f3cf8ad9f8fe297dcee7cfe3ae13d5973ce1c120305f
+ source_armv7h = https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_3.1.0-4_armhf.deb
+ sha256sums_armv7h = 225f4371d2895e67c91b7c95b08702718b182da70ee4d445390625f7fe2c26bc
+ source_aarch64 = https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_3.1.0-4_aarch64.deb
+ sha256sums_aarch64 = 843b290ce30a81768521f5cbc50b4b2f9f11cf6f1dc43873c72a4b7e0a0282ee
pkgname = nordvpn-bin
diff --git a/PKGBUILD b/PKGBUILD
index ff8b27315390..443b25c13b0b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,8 @@
# Maintainer: Martoko <mbastholm at gmail dot com>
pkgname=nordvpn-bin
-pkgver=3.0.1_1
-pkgrel=2
+pkgver=3.1.0_4
+pkgrel=1
pkgdesc="NordVPN CLI tool for Linux"
arch=('i686' 'x86_64' 'armv7h' 'aarch64' )
url="https://nordvpn.com/download/linux/"
@@ -17,15 +17,15 @@ source_i686=("https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${pk
source_x86_64=("https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${pkgver//_/-}_amd64.deb")
source_armv7h=("https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${pkgver//_/-}_armhf.deb")
source_aarch64=("https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${pkgver//_/-}_aarch64.deb")
-sha256sums_i686=('300c396d73ff7f779c776cdee4e3ff4078c712c11f29e2763f352dbae19566ac')
-sha256sums_x86_64=('51b70b8af4593aa268fc3f51260351dcf44510a82f02c63d7f312441f19aa992')
-sha256sums_armv7h=('dce7aa7b7777206e4bb996ae96b76add658e11beabad35330876280b20fb146c')
-sha256sums_aarch64=('e526eef4a8c67a5dff7ba163e8909feedda14b9750f6f642dc3cecb285127503')
+sha256sums_i686=('9afcdb23e58dbfffba23567e566f21951cce7508b5d278057f15095971638b86')
+sha256sums_x86_64=('5d05b23afb6687ccf423f3cf8ad9f8fe297dcee7cfe3ae13d5973ce1c120305f')
+sha256sums_armv7h=('225f4371d2895e67c91b7c95b08702718b182da70ee4d445390625f7fe2c26bc')
+sha256sums_aarch64=('843b290ce30a81768521f5cbc50b4b2f9f11cf6f1dc43873c72a4b7e0a0282ee')
package() {
bsdtar -O -xf *.deb data.tar.xz | bsdtar -C "${pkgdir}" -xJf -
- mv "${pkgdir}/usr/sbin/nordvpnsd" "${pkgdir}/usr/bin"
- mv "${pkgdir}/usr/sbin/nordvpnud" "${pkgdir}/usr/bin"
+ mv "${pkgdir}/usr/sbin/nordvpnd" "${pkgdir}/usr/bin"
+ rm -r "${pkgdir}/etc/init.d"
rm -r "${pkgdir}/usr/sbin"
}
diff --git a/nordvpn-bin.install b/nordvpn-bin.install
index af5e367edd0a..0400c445c8b4 100644
--- a/nordvpn-bin.install
+++ b/nordvpn-bin.install
@@ -1,13 +1,8 @@
post_install() {
- echo ':: In order to enable nordvpn you have to start two services:'
- echo ' sudo systemctl enable --now nordvpnsd'
- echo ' systemctl --user enable --now nordvpnud'
+ echo ':: In order to enable nordvpn you have to start the following service:'
+ echo ' sudo systemctl enable --now nordvpnd'
}
-post_upgrade() {
- if [ $(vercmp $2 3.0.0_4-1) -lt 0 ]; then
- echo ':: In order to enable nordvpn you have to start two services:'
- echo ' sudo systemctl enable --now nordvpnsd'
- echo ' systemctl --user enable --now nordvpnud'
- fi
+pre_remove() {
+ chattr -i /var/lib/nordvpn/data/*
}