summaryrefslogtreecommitdiff
path: root/x11/xscreensaver/patches/patch-af
diff options
context:
space:
mode:
authoratatat <atatat>2003-12-18 13:49:17 +0000
committeratatat <atatat>2003-12-18 13:49:17 +0000
commit19422cb548df221411db5532f379c49b58484047 (patch)
treec068968a863556e074bb1c6d422a4d8a454ecd08 /x11/xscreensaver/patches/patch-af
parent457f784ddc4d2753328d95aa5afaa4adbc3005b0 (diff)
downloadpkgsrc-19422cb548df221411db5532f379c49b58484047.tar.gz
Make the password dialogue banner display the netbsd PKGREVISION
number, if there was one (which, of course, makes me bump PKGREVISION to 1 for all three xscreensaver pkgs (are we really supposed to bump PKGREVISION for each pkg individually?)). This eliminates the confusion where pkg_info says version "4.14nb1" is installed, yet the dialogue says it's onlu version "4.14". Also, fix the conflicts for the screensaver pkg so that it properly conflicts with xscreensaver-gnome<4.14 (not <1.14).
Diffstat (limited to 'x11/xscreensaver/patches/patch-af')
-rw-r--r--x11/xscreensaver/patches/patch-af22
1 files changed, 22 insertions, 0 deletions
diff --git a/x11/xscreensaver/patches/patch-af b/x11/xscreensaver/patches/patch-af
new file mode 100644
index 00000000000..b16cba1ab0c
--- /dev/null
+++ b/x11/xscreensaver/patches/patch-af
@@ -0,0 +1,22 @@
+$NetBSD: patch-af,v 1.13 2003/12/18 13:49:17 atatat Exp $
+
+Make the password dialogue banner display the netbsd PKGREVISION
+number, if there was one.
+
+--- driver/xscreensaver.c.orig 2003-10-07 04:59:40.000000000 -0400
++++ driver/xscreensaver.c
+@@ -478,9 +478,13 @@ set_version_string (saver_info *si, int
+ *s = '_';
+ }
+
+- si->version = (char *) malloc (5);
++ si->version = (char *) malloc (32);
+ memcpy (si->version, screensaver_id + 17, 4);
+ si->version [4] = 0;
++
++#if PKGREVISION > 0
++ (void)snprintf(si->version, 10, "%.4snb%d", screensaver_id + 17, PKGREVISION);
++#endif
+ }
+
+