summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Wright2016-08-10 20:31:13 +0100
committerJonathan Wright2016-08-10 20:31:13 +0100
commitdfa0b40b1f57aa3bf92d12921ee5b8b921bddb95 (patch)
tree363313712a1165cec17319cf7d0cf9100665a053
parentc991ccdd1615f942adcb441b725485e02f698eeb (diff)
downloadaur-dfa0b40b1f57aa3bf92d12921ee5b8b921bddb95.tar.gz
Update to 1.1.1-1 and add install notice script
Bump the package, and add an install script which outputs a note that you will have to access the script to your OpenVPN configuration in order to complete the installation of update-systemd-resolved.
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD7
-rw-r--r--openvpn-update-systemd-resolved.install21
3 files changed, 31 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index eabd66a13610..b877b4cbea9a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,20 @@
# Generated by mksrcinfo v8
-# Mon Aug 8 09:32:57 UTC 2016
+# Wed Aug 10 19:29:24 UTC 2016
pkgbase = openvpn-update-systemd-resolved
pkgdesc = OpenVPN systemd-resolved Updater
- pkgver = 1.1.0
+ pkgver = 1.1.1
pkgrel = 1
url = https://github.com/jonathanio/update-systemd-resolved
+ install = openvpn-update-systemd-resolved.install
arch = any
license = GPL
depends = openvpn
depends = bash
depends = iproute2
depends = systemd>229
- source = https://github.com/jonathanio/update-systemd-resolved/archive/v1.1.0.tar.gz
- sha256sums = c10e345108af772282292c764f163e6c954a2fec3e403f3933f0cb1f987c7317
- sha512sums = 18d910efc568b85f78ad3cbdd8c241fc42ff7dd8bb71d39e6b66025c274260780f8d14ef20111a31f4df80365d7b12ecb063866f6f9af7695c78dbf8f2292f8d
+ source = https://github.com/jonathanio/update-systemd-resolved/archive/v1.1.1.tar.gz
+ sha256sums = e922f27e24ad1e31826f725370eb0a24ff1dc264b02bbc75547600b709bbf65f
+ sha512sums = 2e3d4ec91dd18e34c199d1a6b639846ea8773b08a08e8a7ca1546de86192cd9cc694fad34ebeb2f910b88d040ca4dc13678d7c665f99d8e0a2987fc59c6dc88c
pkgname = openvpn-update-systemd-resolved
diff --git a/PKGBUILD b/PKGBUILD
index f09842c8930f..6d6a7d614bf8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
pkgname=openvpn-update-systemd-resolved
-pkgver=1.1.0
+pkgver=1.1.1
pkgrel=1
pkgdesc="OpenVPN systemd-resolved Updater"
arch=("any")
@@ -7,8 +7,9 @@ url="https://github.com/jonathanio/update-systemd-resolved"
license=("GPL")
depends=("openvpn" "bash" "iproute2" "systemd>229")
source=("https://github.com/jonathanio/update-systemd-resolved/archive/v${pkgver}.tar.gz")
-sha256sums=("c10e345108af772282292c764f163e6c954a2fec3e403f3933f0cb1f987c7317")
-sha512sums=("18d910efc568b85f78ad3cbdd8c241fc42ff7dd8bb71d39e6b66025c274260780f8d14ef20111a31f4df80365d7b12ecb063866f6f9af7695c78dbf8f2292f8d")
+install=$pkgname.install
+sha256sums=("e922f27e24ad1e31826f725370eb0a24ff1dc264b02bbc75547600b709bbf65f")
+sha512sums=("2e3d4ec91dd18e34c199d1a6b639846ea8773b08a08e8a7ca1546de86192cd9cc694fad34ebeb2f910b88d040ca4dc13678d7c665f99d8e0a2987fc59c6dc88c")
package() {
cd $srcdir/update-systemd-resolved-${pkgver}
diff --git a/openvpn-update-systemd-resolved.install b/openvpn-update-systemd-resolved.install
new file mode 100644
index 000000000000..cb17a8547d7b
--- /dev/null
+++ b/openvpn-update-systemd-resolved.install
@@ -0,0 +1,21 @@
+note() {
+ printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n"
+}
+
+all_off="$(tput sgr0)"
+bold="${all_off}$(tput bold)"
+blue="${bold}$(tput setaf 4)"
+yellow="${bold}$(tput setaf 3)"
+
+post_install() {
+ note "To complete the installation, please add this script to your OpenVPN"
+ note "settings for each of the VPNs you wish it to manage the DNS for:"
+ note " setenv PATH /usr/bin"
+ note " script-security 2"
+ note " up /etc/openvpn/update-systemd-resolved"
+ note " down-pre /etc/openvpn/update-systemd-resolved"
+}
+
+post_upgrade() {
+ post_install
+}