summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-06-12 16:41:30 +0000
committerjoerg <joerg@pkgsrc.org>2006-06-12 16:41:30 +0000
commite2f0dcac72aa85747f4ef421ad61d264d4a23ae5 (patch)
tree69446b703f480e5a6b1e3cdcd1fb709ece143302 /sysutils
parent2718a9eb07ad14360c86e93ffcff6fd138d7cc94 (diff)
downloadpkgsrc-e2f0dcac72aa85747f4ef421ad61d264d4a23ae5.tar.gz
Add DragonFly support.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/whowatch/distinfo4
-rw-r--r--sysutils/whowatch/patches/patch-aa19
-rw-r--r--sysutils/whowatch/patches/patch-ad16
3 files changed, 38 insertions, 1 deletions
diff --git a/sysutils/whowatch/distinfo b/sysutils/whowatch/distinfo
index 9eab261279e..dd2ee1b9e29 100644
--- a/sysutils/whowatch/distinfo
+++ b/sysutils/whowatch/distinfo
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 13:40:59 agc Exp $
+$NetBSD: distinfo,v 1.4 2006/06/12 16:41:30 joerg Exp $
SHA1 (whowatch-1.4.tar.gz) = 0d60c8ddb56b9bf9d2f3e1452832ccb2c862ff0c
RMD160 (whowatch-1.4.tar.gz) = da2ee1d52e2a1d5292713259e66b4e7dd39b8dfd
Size (whowatch-1.4.tar.gz) = 43084 bytes
+SHA1 (patch-aa) = a42dbcd3f9a7138a6ec2e52d34e616e7113b87e2
SHA1 (patch-ab) = f66829eaf7d148df10c2ca064ed81bdedf5c9adc
SHA1 (patch-ac) = 9482d1b1759858a83b1efeaa5fc9dd9ec49043c7
+SHA1 (patch-ad) = cd9a57e6b633927d8373c292a6b6d1ed265fc05c
diff --git a/sysutils/whowatch/patches/patch-aa b/sysutils/whowatch/patches/patch-aa
new file mode 100644
index 00000000000..1ebd19499f9
--- /dev/null
+++ b/sysutils/whowatch/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1 2006/06/12 16:41:30 joerg Exp $
+
+--- procinfo.h.orig 2006-06-12 16:36:59.000000000 +0000
++++ procinfo.h
+@@ -1,11 +1,13 @@
+ #ifdef HAVE_PROCESS_SYSCTL
+ #include <sys/param.h>
+ #include <sys/sysctl.h>
++#if !defined(__DragonFly__)
+ #include <sys/proc.h>
++#endif
+ #include <sys/stat.h>
+ #endif
+
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+ #include <sys/user.h>
+ #endif
+
diff --git a/sysutils/whowatch/patches/patch-ad b/sysutils/whowatch/patches/patch-ad
new file mode 100644
index 00000000000..0122e4ba308
--- /dev/null
+++ b/sysutils/whowatch/patches/patch-ad
@@ -0,0 +1,16 @@
+$NetBSD: patch-ad,v 1.1 2006/06/12 16:41:30 joerg Exp $
+
+--- procinfo.c.orig 2006-06-12 16:36:48.000000000 +0000
++++ procinfo.c
+@@ -85,7 +85,11 @@ void get_info(int pid, struct procinfo *
+
+ p->ppid = info.kp_eproc.e_ppid;
+ p->tpgid = info.kp_eproc.e_tpgid;
++#if defined(__DragonFly__)
++ p->euid = info.kp_eproc.e_ucred.cr_svuid;
++#else
+ p->euid = info.kp_eproc.e_pcred.p_svuid;
++#endif
+ p->stat = info.kp_proc.p_stat;
+ strncpy(p->exec_file, info.kp_proc.p_comm, EXEC_FILE);
+ p->cterm = info.kp_eproc.e_tdev;