summaryrefslogtreecommitdiff
path: root/data/psmisc
diff options
context:
space:
mode:
Diffstat (limited to 'data/psmisc')
-rw-r--r--data/psmisc/_metadata/description2
l---------data/psmisc/_metadata/license1
l---------data/psmisc/_metadata/maintainer1
-rw-r--r--data/psmisc/_metadata/priority1
-rw-r--r--data/psmisc/_metadata/section1
-rw-r--r--data/psmisc/_metadata/version1
-rw-r--r--data/psmisc/fuser.diff23
-rw-r--r--data/psmisc/getline.diff32
-rw-r--r--data/psmisc/make.sh7
-rw-r--r--data/psmisc/pathmax.diff11
-rw-r--r--data/psmisc/psmisc-22.6.tar.gzbin0 -> 283532 bytes
11 files changed, 80 insertions, 0 deletions
diff --git a/data/psmisc/_metadata/description b/data/psmisc/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/psmisc/_metadata/description
@@ -0,0 +1,2 @@
+this package isn't described yet
+This package, which I'm certain is incredibly interesting, has yet to be described. This is probably because Jay has spent days getting all kinds of bookkeeping issues, like copyright notifications, all in their correct places, and descriptions just aren't the most important thing he could be working on. If this is a problem, please come back later.
diff --git a/data/psmisc/_metadata/license b/data/psmisc/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/psmisc/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/psmisc/_metadata/maintainer b/data/psmisc/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/psmisc/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/psmisc/_metadata/priority b/data/psmisc/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/psmisc/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/psmisc/_metadata/section b/data/psmisc/_metadata/section
new file mode 100644
index 000000000..7fbe952b7
--- /dev/null
+++ b/data/psmisc/_metadata/section
@@ -0,0 +1 @@
+admin
diff --git a/data/psmisc/_metadata/version b/data/psmisc/_metadata/version
new file mode 100644
index 000000000..059080291
--- /dev/null
+++ b/data/psmisc/_metadata/version
@@ -0,0 +1 @@
+22.6
diff --git a/data/psmisc/fuser.diff b/data/psmisc/fuser.diff
new file mode 100644
index 000000000..20ac47f51
--- /dev/null
+++ b/data/psmisc/fuser.diff
@@ -0,0 +1,23 @@
+diff -r -u psmisc-22.6/src/Makefile.am psmisc-22.6+iPhone/src/Makefile.am
+--- psmisc-22.6/src/Makefile.am 2007-07-04 02:21:50.000000000 +0000
++++ psmisc-22.6+iPhone/src/Makefile.am 2007-12-27 13:27:03.000000000 +0000
+@@ -1,7 +1,7 @@
+
+ AM_CFLAGS = -Wall -DLOCALEDIR=\"/usr/share/locale\"
+
+-bin_PROGRAMS = fuser killall pstree oldfuser
++bin_PROGRAMS = killall pstree
+ if WANT_PEEKFD_I386
+ bin_PROGRAMS += peekfd
+ AM_CFLAGS += -DI386
+@@ -15,10 +15,6 @@
+ AM_CFLAGS += -DPPC
+ endif
+
+-oldfuser_SOURCES = oldfuser.c comm.h signals.c signals.h loop.h i18n.h
+-
+-fuser_SOURCES = fuser.c comm.h signals.c signals.h i18n.h fuser.h
+-
+ killall_SOURCES = killall.c comm.h signals.c signals.h i18n.h
+
+ killall_LDADD = @SELINUX_LIB@
diff --git a/data/psmisc/getline.diff b/data/psmisc/getline.diff
new file mode 100644
index 000000000..9b2b3d44d
--- /dev/null
+++ b/data/psmisc/getline.diff
@@ -0,0 +1,32 @@
+diff -r -u psmisc-22.6/src/killall.c psmisc-22.6+iPhone/src/killall.c
+--- psmisc-22.6/src/killall.c 2007-06-03 10:58:09.000000000 +0000
++++ psmisc-22.6+iPhone/src/killall.c 2007-12-27 13:28:53.000000000 +0000
+@@ -64,9 +64,8 @@
+ {
+ int res;
+ size_t len;
+- char *line;
++ char line[1024];
+
+- line = NULL;
+ len = 0;
+
+ do {
+@@ -79,16 +78,14 @@
+
+ fflush (stdout);
+
+- if (getline (&line, &len, stdin) < 0)
++ if (fgets(line, sizeof(line), stdin) == NULL)
+ return 0;
+ /* Check for default */
+ if (line[0] == '\n') {
+- free(line);
+ return 0;
+ }
+ res = rpmatch(line);
+ if (res >= 0) {
+- free(line);
+ return res;
+ }
+ } while(1);
diff --git a/data/psmisc/make.sh b/data/psmisc/make.sh
new file mode 100644
index 000000000..8337f63c8
--- /dev/null
+++ b/data/psmisc/make.sh
@@ -0,0 +1,7 @@
+tar -zxvf "${PKG_DATA}/psmisc-22.6.tar.gz"
+cd psmisc-22.6
+pkg:patch
+automake
+pkg:configure ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes
+make
+pkg:install
diff --git a/data/psmisc/pathmax.diff b/data/psmisc/pathmax.diff
new file mode 100644
index 000000000..23f83dd49
--- /dev/null
+++ b/data/psmisc/pathmax.diff
@@ -0,0 +1,11 @@
+diff -r -u psmisc-22.6/src/killall.c psmisc-22.6+iPhone/src/killall.c
+--- psmisc-22.6/src/killall.c 2007-06-03 10:58:09.000000000 +0000
++++ psmisc-22.6+iPhone/src/killall.c 2007-12-27 13:26:48.000000000 +0000
+@@ -36,6 +36,7 @@
+ #include <dirent.h>
+ #include <signal.h>
+ #include <errno.h>
++#include <sys/param.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <getopt.h>
diff --git a/data/psmisc/psmisc-22.6.tar.gz b/data/psmisc/psmisc-22.6.tar.gz
new file mode 100644
index 000000000..b9616e6b4
--- /dev/null
+++ b/data/psmisc/psmisc-22.6.tar.gz
Binary files differ