summaryrefslogtreecommitdiff
path: root/sysutils/ups-nut
diff options
context:
space:
mode:
authorfredb <fredb@pkgsrc.org>2002-05-22 18:02:32 +0000
committerfredb <fredb@pkgsrc.org>2002-05-22 18:02:32 +0000
commit712ecd8e3c1a999b34f9b9b299ff476a8c0f9a3e (patch)
treedd46cc79073f2eb16676647fe4266e1f645b706e /sysutils/ups-nut
parentc050843fc2dda91207f4cf5a0e995a69b0632194 (diff)
downloadpkgsrc-712ecd8e3c1a999b34f9b9b299ff476a8c0f9a3e.tar.gz
On NetBSD, the drivers need to call msync() after writing to the memory
mmap()-ed shared with "upsd", so that "upsd" an read it back reliably. This keeps "upsd" from complaining about stale data. Bump PKGREVISION.
Diffstat (limited to 'sysutils/ups-nut')
-rw-r--r--sysutils/ups-nut/Makefile3
-rw-r--r--sysutils/ups-nut/distinfo3
-rw-r--r--sysutils/ups-nut/patches/patch-aa12
3 files changed, 16 insertions, 2 deletions
diff --git a/sysutils/ups-nut/Makefile b/sysutils/ups-nut/Makefile
index 9c5452a0504..720faad7b5b 100644
--- a/sysutils/ups-nut/Makefile
+++ b/sysutils/ups-nut/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.19 2002/05/13 14:40:51 lukem Exp $
+# $NetBSD: Makefile,v 1.20 2002/05/22 18:02:32 fredb Exp $
#
DISTNAME= nut-0.45.5
PKGNAME= ups-nut-0.45.5
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.exploits.org/nut/release/
diff --git a/sysutils/ups-nut/distinfo b/sysutils/ups-nut/distinfo
index 7f75d9ce569..3f83e98bdaf 100644
--- a/sysutils/ups-nut/distinfo
+++ b/sysutils/ups-nut/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.10 2002/05/13 14:40:51 lukem Exp $
+$NetBSD: distinfo,v 1.11 2002/05/22 18:02:33 fredb Exp $
SHA1 (nut-0.45.5.tar.gz) = 5cb08e27fb7e528a453d164d401410d341bf3bb3
Size (nut-0.45.5.tar.gz) = 386936 bytes
+SHA1 (patch-aa) = 4d67a9c655b4fa57aea5e5cf4d7754030b873fa3
SHA1 (patch-ab) = fac1a47430a2c2d692ecede2ac6ed78c60a82566
SHA1 (patch-ad) = 1132a678cc53882cc92764ed17bbd4cf4152c58d
SHA1 (patch-ag) = b6ae992f9b92d68683ac6adb7378d11158cc1fdc
diff --git a/sysutils/ups-nut/patches/patch-aa b/sysutils/ups-nut/patches/patch-aa
new file mode 100644
index 00000000000..66fff133194
--- /dev/null
+++ b/sysutils/ups-nut/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.4 2002/05/22 18:02:34 fredb Exp $
+
+--- models/upscommon.c.orig Fri May 17 00:27:55 2002
++++ models/upscommon.c
+@@ -588,6 +588,7 @@
+ }
+
+ memcpy(shared_info, info, info_size);
++ msync(shared_info, info_size, MS_INVALIDATE);
+
+ if (shmid >= 0) {
+ struct shmid_ds shmbuf;