summaryrefslogtreecommitdiff
path: root/sysutils/kapm
diff options
context:
space:
mode:
authorhubertf <hubertf>1999-11-11 02:04:19 +0000
committerhubertf <hubertf>1999-11-11 02:04:19 +0000
commit1ebd25cf735988523d4c50010949803804ea4087 (patch)
tree42d481b6b79d4d9c33e34e9bc7d0c07d3656e6f5 /sysutils/kapm
parenteb5f19719e28829248dc4f58d6d4e26bc3a0c4ef (diff)
downloadpkgsrc-1ebd25cf735988523d4c50010949803804ea4087.tar.gz
Teach this beast how we want our su(8) called.
Diffstat (limited to 'sysutils/kapm')
-rw-r--r--sysutils/kapm/files/patch-sum3
-rw-r--r--sysutils/kapm/patches/patch-ad20
2 files changed, 22 insertions, 1 deletions
diff --git a/sysutils/kapm/files/patch-sum b/sysutils/kapm/files/patch-sum
index a068f01cb14..3cf4c7f9978 100644
--- a/sysutils/kapm/files/patch-sum
+++ b/sysutils/kapm/files/patch-sum
@@ -1,5 +1,6 @@
-$NetBSD: patch-sum,v 1.2 1999/11/11 01:16:58 hubertf Exp $
+$NetBSD: patch-sum,v 1.3 1999/11/11 02:04:20 hubertf Exp $
MD5 (patch-aa) = be687ef1066d5f26b452d24c0c872de0
MD5 (patch-ab) = 54a1bd5334886e4e107a6b57715680b2
MD5 (patch-ac) = 1ab1c0c11b66e9922e2400350ac01b4c
+MD5 (patch-ad) = 48d9a15a215fcf122e1481a1a443df50
diff --git a/sysutils/kapm/patches/patch-ad b/sysutils/kapm/patches/patch-ad
new file mode 100644
index 00000000000..a2ec71d5753
--- /dev/null
+++ b/sysutils/kapm/patches/patch-ad
@@ -0,0 +1,20 @@
+$NetBSD: patch-ad,v 1.1 1999/11/11 02:04:19 hubertf Exp $
+
+--- kapm/sudlg.cpp.orig Thu Nov 11 02:28:45 1999
++++ kapm/sudlg.cpp Thu Nov 11 02:29:57 1999
+@@ -78,8 +78,15 @@
+
+ password = "\"" + password + "\"";
+
++#if defined(__linux__)
+ proc << "echo " << password.data() << " | ";
+ proc << "su" << "-c" << "true";
++#elif defined(__NetBSD__)
++ proc << "echo " << password.data() << " | ";
++ proc << "su" << "root" << "-c" << "true";
++#else
++#error man su
++#endif
+
+ proc.start(KProcess::Block);
+