summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin2016-01-04 10:25:50 +0100
committerFlorian Bruhin2016-01-04 10:25:50 +0100
commitf916917c376e5dd7e3bb267fe479aa970a48d1a0 (patch)
treeba85af1759f046d5979063e59b8142a52d06cc43
parenteb101be638cfa7dc140bad2f785c9d490b1003a3 (diff)
downloadaur-f916917c376e5dd7e3bb267fe479aa970a48d1a0.tar.gz
Add patch for systemd unit issue.
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD14
2 files changed, 16 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1e485779fd6..809e465b9a0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,9 @@
+# Generated by mksrcinfo v8
+# Mon Jan 4 09:25:27 UTC 2016
pkgbase = network-ups-tools
pkgdesc = NUT is a collection of programs for monitoring and administering UPS hardware
pkgver = 2.7.3
- pkgrel = 2
+ pkgrel = 3
url = http://www.networkupstools.org/
install = nut.install
arch = i686
@@ -21,7 +23,9 @@ pkgbase = network-ups-tools
backup = etc/ups/upsmon.conf
backup = etc/ups/upssched.conf
source = http://www.networkupstools.org/source/2.7/nut-2.7.3.tar.gz
+ source = https://github.com/networkupstools/nut/commit/c98fab9f5dec993aa9f5e0a3e79de53ae9ecd32b.patch
sha256sums = ff44d95d06a51559a0a018eef7f8d17911c1002b6352a7d7580ff75acb12126b
+ sha256sums = 2227fedd3ad1c392d1a359f456b7d6889b4d0ca8e0e4df5ce6930c1f24e99a1f
pkgname = network-ups-tools
diff --git a/PKGBUILD b/PKGBUILD
index 1c7e5fb18c0..0c2660eaee6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
pkgname=network-ups-tools
pkgver=2.7.3
-pkgrel=2
+pkgrel=3
pkgdesc="NUT is a collection of programs for monitoring and administering UPS hardware"
arch=('i686' 'x86_64')
url="http://www.networkupstools.org/"
@@ -15,9 +15,17 @@ depends=('openssl' 'libusb-compat' 'libltdl' 'neon' 'net-snmp')
makedepends=('asciidoc')
backup=(etc/ups/{ups.conf,upsd.conf,upsd.users,upsmon.conf,upssched.conf})
install=nut.install
-source=("http://www.networkupstools.org/source/2.7/nut-${pkgver}.tar.gz")
+source=("http://www.networkupstools.org/source/2.7/nut-${pkgver}.tar.gz"
+ "https://github.com/networkupstools/nut/commit/c98fab9f5dec993aa9f5e0a3e79de53ae9ecd32b.patch")
options=('!emptydirs' '!libtool')
-sha256sums=('ff44d95d06a51559a0a018eef7f8d17911c1002b6352a7d7580ff75acb12126b')
+sha256sums=('ff44d95d06a51559a0a018eef7f8d17911c1002b6352a7d7580ff75acb12126b'
+ '2227fedd3ad1c392d1a359f456b7d6889b4d0ca8e0e4df5ce6930c1f24e99a1f')
+
+prepare() {
+ cd "$srcdir/nut-$pkgver"
+ # https://github.com/networkupstools/nut/issues/200
+ patch -p1 -i "$srcdir/c98fab9f5dec993aa9f5e0a3e79de53ae9ecd32b.patch"
+}
build() {
cd "$srcdir/nut-$pkgver"