summaryrefslogtreecommitdiff
path: root/data/launchd
diff options
context:
space:
mode:
Diffstat (limited to 'data/launchd')
-rw-r--r--data/launchd/_metadata/description1
-rwxr-xr-xdata/launchd/_metadata/extrainst_12
-rw-r--r--data/launchd/_metadata/homepage1
l---------data/launchd/_metadata/license1
l---------data/launchd/_metadata/maintainer1
-rw-r--r--data/launchd/_metadata/name1
l---------data/launchd/_metadata/ncurses.dep1
-rw-r--r--data/launchd/_metadata/priority1
l---------data/launchd/_metadata/readline.dep1
-rw-r--r--data/launchd/_metadata/role1
-rw-r--r--data/launchd/_metadata/section1
-rw-r--r--data/launchd/_metadata/tags1
-rw-r--r--data/launchd/_metadata/version1
-rw-r--r--data/launchd/launchd-258.18.tar.gzbin0 -> 238625 bytes
-rw-r--r--data/launchd/make.sh6
-rw-r--r--data/launchd/port.diff107
16 files changed, 137 insertions, 0 deletions
diff --git a/data/launchd/_metadata/description b/data/launchd/_metadata/description
new file mode 100644
index 000000000..cd862cbac
--- /dev/null
+++ b/data/launchd/_metadata/description
@@ -0,0 +1 @@
+replaces init, rc, inetd, atd, crond
diff --git a/data/launchd/_metadata/extrainst_ b/data/launchd/_metadata/extrainst_
new file mode 100755
index 000000000..7caedc653
--- /dev/null
+++ b/data/launchd/_metadata/extrainst_
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [[ $1 == install || $1 == upgrade ]]; then
+ declare -a cydia
+ cydia=($CYDIA)
+
+ if [[ ${CYDIA+@} ]]; then
+ eval "echo 'finish:reboot' >&${cydia[0]}"
+ fi
+fi
+
+exit 0
diff --git a/data/launchd/_metadata/homepage b/data/launchd/_metadata/homepage
new file mode 100644
index 000000000..0a9377a9e
--- /dev/null
+++ b/data/launchd/_metadata/homepage
@@ -0,0 +1 @@
+http://developer.apple.com/macosx/launchd.html
diff --git a/data/launchd/_metadata/license b/data/launchd/_metadata/license
new file mode 120000
index 000000000..d0b14a610
--- /dev/null
+++ b/data/launchd/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/apache-2.0 \ No newline at end of file
diff --git a/data/launchd/_metadata/maintainer b/data/launchd/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/launchd/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/launchd/_metadata/name b/data/launchd/_metadata/name
new file mode 100644
index 000000000..99a630b3c
--- /dev/null
+++ b/data/launchd/_metadata/name
@@ -0,0 +1 @@
+Launch Daemon
diff --git a/data/launchd/_metadata/ncurses.dep b/data/launchd/_metadata/ncurses.dep
new file mode 120000
index 000000000..a395fad08
--- /dev/null
+++ b/data/launchd/_metadata/ncurses.dep
@@ -0,0 +1 @@
+../../ncurses \ No newline at end of file
diff --git a/data/launchd/_metadata/priority b/data/launchd/_metadata/priority
new file mode 100644
index 000000000..1c96b78c1
--- /dev/null
+++ b/data/launchd/_metadata/priority
@@ -0,0 +1 @@
++important
diff --git a/data/launchd/_metadata/readline.dep b/data/launchd/_metadata/readline.dep
new file mode 120000
index 000000000..f35c9185b
--- /dev/null
+++ b/data/launchd/_metadata/readline.dep
@@ -0,0 +1 @@
+../../readline \ No newline at end of file
diff --git a/data/launchd/_metadata/role b/data/launchd/_metadata/role
new file mode 100644
index 000000000..52b4d7301
--- /dev/null
+++ b/data/launchd/_metadata/role
@@ -0,0 +1 @@
+hacker
diff --git a/data/launchd/_metadata/section b/data/launchd/_metadata/section
new file mode 100644
index 000000000..00b394251
--- /dev/null
+++ b/data/launchd/_metadata/section
@@ -0,0 +1 @@
+System
diff --git a/data/launchd/_metadata/tags b/data/launchd/_metadata/tags
new file mode 100644
index 000000000..9f0f19684
--- /dev/null
+++ b/data/launchd/_metadata/tags
@@ -0,0 +1 @@
+purpose::daemon
diff --git a/data/launchd/_metadata/version b/data/launchd/_metadata/version
new file mode 100644
index 000000000..bb6d31c0c
--- /dev/null
+++ b/data/launchd/_metadata/version
@@ -0,0 +1 @@
+258.18
diff --git a/data/launchd/launchd-258.18.tar.gz b/data/launchd/launchd-258.18.tar.gz
new file mode 100644
index 000000000..b5e4ffc67
--- /dev/null
+++ b/data/launchd/launchd-258.18.tar.gz
Binary files differ
diff --git a/data/launchd/make.sh b/data/launchd/make.sh
new file mode 100644
index 000000000..cf4270d30
--- /dev/null
+++ b/data/launchd/make.sh
@@ -0,0 +1,6 @@
+pkg:setup
+cd launchd
+pkg:configure --bindir=/bin --sbindir=/sbin --sysconfdir=/etc
+export SDKROOT=${PKG_ROOT}
+make
+pkg:install
diff --git a/data/launchd/port.diff b/data/launchd/port.diff
new file mode 100644
index 000000000..4bf2ee0af
--- /dev/null
+++ b/data/launchd/port.diff
@@ -0,0 +1,107 @@
+diff -ru launchd-258.18/launchd/configure launchd-258.18+iPhone/launchd/configure
+--- launchd-258.18/launchd/configure 2008-01-28 18:20:19.000000000 +0000
++++ launchd-258.18+iPhone/launchd/configure 2008-11-24 10:24:21.000000000 +0000
+@@ -7863,13 +7863,8 @@
+ LIBS_ONLY_FALSE=
+ fi
+
+- if test $(tconf --test TARGET_OS_EMBEDDED) = YES; then
+ DO_EMBEDDED_MAGIC_TRUE=
+ DO_EMBEDDED_MAGIC_FALSE='#'
+-else
+- DO_EMBEDDED_MAGIC_TRUE='#'
+- DO_EMBEDDED_MAGIC_FALSE=
+-fi
+
+
+
+diff -ru launchd-258.18/launchd/src/launchctl.c launchd-258.18+iPhone/launchd/src/launchctl.c
+--- launchd-258.18/launchd/src/launchctl.c 2008-07-18 21:25:03.000000000 +0000
++++ launchd-258.18+iPhone/launchd/src/launchctl.c 2008-11-24 10:27:33.000000000 +0000
+@@ -20,6 +20,8 @@
+
+ static const char *const __rcs_file_version__ = "$Revision: 23642 $";
+
++#define PRIVATE
++
+ #include "liblaunch_public.h"
+ #include "liblaunch_private.h"
+ #include "libbootstrap_public.h"
+@@ -74,6 +76,9 @@
+ #include <sysexits.h>
+ #include <util.h>
+
++#include <sys/sockio.h>
++#include <mach/mach_error.h>
++#include <sys/ioctl.h>
+
+ #define LAUNCH_SECDIR "/tmp/launch-XXXXXX"
+
+diff -ru launchd-258.18/launchd/src/launchd_runtime.c launchd-258.18+iPhone/launchd/src/launchd_runtime.c
+--- launchd-258.18/launchd/src/launchd_runtime.c 2008-03-04 17:48:07.000000000 +0000
++++ launchd-258.18+iPhone/launchd/src/launchd_runtime.c 2008-11-24 10:37:16.000000000 +0000
+@@ -75,6 +75,8 @@
+ static mach_port_t launchd_internal_port;
+ static int mainkq;
+
++extern void mach_msg_destroy(mach_msg_header_t *mh);
++
+ #define BULK_KEV_MAX 100
+ static struct kevent *bulk_kev;
+ static int bulk_kev_i;
+diff -ru launchd-258.18/launchd/src/Makefile.am launchd-258.18+iPhone/launchd/src/Makefile.am
+--- launchd-258.18/launchd/src/Makefile.am 2008-01-28 18:20:19.000000000 +0000
++++ launchd-258.18+iPhone/launchd/src/Makefile.am 2008-11-24 10:32:27.000000000 +0000
+@@ -46,7 +46,7 @@
+ sysconf_DATA = hostconfig rc.common rc.netboot
+
+ launchctl_CFLAGS = $(AM_CFLAGS) -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
+-launchctl_LDFLAGS = $(AM_LDFLAGS) -framework CoreFoundation -framework IOKit $(LIBS_SECURITY) -weak_library /usr/lib/libedit.dylib
++launchctl_LDFLAGS = $(AM_LDFLAGS) -framework CoreFoundation -framework IOKit $(LIBS_SECURITY) -weak_library $(SDKROOT)/usr/lib/libedit.dylib
+
+ if DO_EMBEDDED_MAGIC
+ else
+@@ -64,11 +64,11 @@
+
+ launchproxy_LDFLAGS = $(AM_LDFLAGS) $(WEAKLIBS_SECURITY)
+
+-notifyServer.c notifyServer.h: /usr/include/mach/notify.defs
+- mig $(MIGFLAGS) -header /dev/null -user /dev/null -sheader notifyServer.h /usr/include/mach/notify.defs
++notifyServer.c notifyServer.h: $(SDKROOT)/usr/include/mach/notify.defs
++ mig $(MIGFLAGS) -header /dev/null -user /dev/null -sheader notifyServer.h $(SDKROOT)/usr/include/mach/notify.defs
+
+-mach_excServer.c mach_excServer.h: /usr/include/mach/mach_exc.defs
+- mig $(MIGFLAGS) -header /dev/null -user /dev/null -sheader mach_excServer.h /usr/include/mach/mach_exc.defs
++mach_excServer.c mach_excServer.h: $(SDKROOT)/usr/include/mach/mach_exc.defs
++ mig $(MIGFLAGS) -header /dev/null -user /dev/null -sheader mach_excServer.h $(SDKROOT)/usr/include/mach/mach_exc.defs
+
+ job_replyUser.c job_reply.h: $(srcdir)/protocol_job_reply.defs
+ mig $(MIGFLAGS) -sheader /dev/null -server /dev/null $(srcdir)/protocol_job_reply.defs
+diff -ru launchd-258.18/launchd/src/Makefile.in launchd-258.18+iPhone/launchd/src/Makefile.in
+--- launchd-258.18/launchd/src/Makefile.in 2008-01-28 18:20:19.000000000 +0000
++++ launchd-258.18+iPhone/launchd/src/Makefile.in 2008-11-24 10:32:41.000000000 +0000
+@@ -254,7 +254,7 @@
+ @LIBS_ONLY_TRUE@liblaunch_profile_a_SOURCES = liblaunch.c libvproc.c libbootstrap.c protocol_vprocUser.c __version.c
+ @LIBS_ONLY_FALSE@sysconf_DATA = hostconfig rc.common rc.netboot
+ @LIBS_ONLY_FALSE@launchctl_CFLAGS = $(AM_CFLAGS) -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
+-@LIBS_ONLY_FALSE@launchctl_LDFLAGS = $(AM_LDFLAGS) -framework CoreFoundation -framework IOKit $(LIBS_SECURITY) -weak_library /usr/lib/libedit.dylib
++@LIBS_ONLY_FALSE@launchctl_LDFLAGS = $(AM_LDFLAGS) -framework CoreFoundation -framework IOKit $(LIBS_SECURITY) -weak_library $(SDKROOT)/usr/lib/libedit.dylib
+ @DO_EMBEDDED_MAGIC_FALSE@@LIBS_ONLY_FALSE@SystemStarter_CFLAGS = -mdynamic-no-pic $(AM_CFLAGS)
+ @DO_EMBEDDED_MAGIC_FALSE@@LIBS_ONLY_FALSE@SystemStarter_LDFLAGS = $(AM_LDFLAGS) -framework CoreFoundation -framework IOKit
+ @DO_EMBEDDED_MAGIC_FALSE@@LIBS_ONLY_FALSE@SystemStarter_SOURCES = StartupItems.c IPC.c SystemStarter.c
+@@ -1174,11 +1174,11 @@
+ @LIBS_ONLY_FALSE@launchd_runtime.c:: notifyServer.h launchd_internal.h mach_excServer.h
+ @LIBS_ONLY_FALSE@launchd_core_logic.c:: protocol_vproc.h job_reply.h protocol_vprocServer.h
+
+-@LIBS_ONLY_FALSE@notifyServer.c notifyServer.h: /usr/include/mach/notify.defs
+-@LIBS_ONLY_FALSE@ mig $(MIGFLAGS) -header /dev/null -user /dev/null -sheader notifyServer.h /usr/include/mach/notify.defs
++@LIBS_ONLY_FALSE@notifyServer.c notifyServer.h: $(SDKROOT)/usr/include/mach/notify.defs
++@LIBS_ONLY_FALSE@ mig $(MIGFLAGS) -header /dev/null -user /dev/null -sheader notifyServer.h $(SDKROOT)/usr/include/mach/notify.defs
+
+-@LIBS_ONLY_FALSE@mach_excServer.c mach_excServer.h: /usr/include/mach/mach_exc.defs
+-@LIBS_ONLY_FALSE@ mig $(MIGFLAGS) -header /dev/null -user /dev/null -sheader mach_excServer.h /usr/include/mach/mach_exc.defs
++@LIBS_ONLY_FALSE@mach_excServer.c mach_excServer.h: $(SDKROOT)/usr/include/mach/mach_exc.defs
++@LIBS_ONLY_FALSE@ mig $(MIGFLAGS) -header /dev/null -user /dev/null -sheader mach_excServer.h $(SDKROOT)/usr/include/mach/mach_exc.defs
+
+ @LIBS_ONLY_FALSE@job_replyUser.c job_reply.h: $(srcdir)/protocol_job_reply.defs
+ @LIBS_ONLY_FALSE@ mig $(MIGFLAGS) -sheader /dev/null -server /dev/null $(srcdir)/protocol_job_reply.defs