summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-01-01 05:58:43 +0000
committerJay Freeman <saurik@saurik.com>2008-01-01 05:58:43 +0000
commitea2670c18699e514ee1d65dfd35ad22c296a74e7 (patch)
tree6826a5266d78c22210c194772a8daed06ef0a19c
parenta45e85d54e8df7a333946cc52fec519fc6aa4d87 (diff)
Initial commit.
git-svn-id: http://svn.telesphoreo.org/trunk@2 514c082c-b64e-11dc-b46d-3d985efe055d
-rwxr-xr-xbootstrap.sh34
-rwxr-xr-xbuild.sh7
-rwxr-xr-xcontrol.sh67
-rw-r--r--data/adv-cmds/_metadata/description2
l---------data/adv-cmds/_metadata/license1
l---------data/adv-cmds/_metadata/maintainer1
-rw-r--r--data/adv-cmds/_metadata/priority1
-rw-r--r--data/adv-cmds/_metadata/section1
-rw-r--r--data/adv-cmds/_metadata/version1
-rw-r--r--data/adv-cmds/adv_cmds-118.tar.gzbin0 -> 319689 bytes
-rw-r--r--data/adv-cmds/make.sh5
l---------data/apr-util/_metadata/berkeleydb.dep1
-rw-r--r--data/apr-util/_metadata/description2
l---------data/apr-util/_metadata/expat.dep1
l---------data/apr-util/_metadata/license1
l---------data/apr-util/_metadata/maintainer1
-rw-r--r--data/apr-util/_metadata/priority1
-rw-r--r--data/apr-util/_metadata/section1
-rw-r--r--data/apr-util/_metadata/version1
-rw-r--r--data/apr-util/apr-util-1.2.12.tar.gzbin0 -> 668292 bytes
-rw-r--r--data/apr-util/make.sh5
-rw-r--r--data/apr/_metadata/description2
l---------data/apr/_metadata/license1
l---------data/apr/_metadata/maintainer1
-rw-r--r--data/apr/_metadata/priority1
-rw-r--r--data/apr/_metadata/section1
-rw-r--r--data/apr/_metadata/version1
-rw-r--r--data/apr/apr-1.2.12.tar.gzbin0 -> 1127522 bytes
-rw-r--r--data/apr/make.sh5
-rw-r--r--data/apt/_metadata/description2
l---------data/apt/_metadata/dpkg.dep1
-rw-r--r--data/apt/_metadata/license142
l---------data/apt/_metadata/maintainer1
-rw-r--r--data/apt/_metadata/priority1
-rw-r--r--data/apt/_metadata/section1
-rw-r--r--data/apt/_metadata/version1
-rw-r--r--data/apt/apt_0.6.46.4-0.1.tar.gzbin0 -> 1797866 bytes
-rw-r--r--data/apt/make.sh16
-rw-r--r--data/apt/port.diff525
-rw-r--r--data/base/_metadata/description2
l---------data/base/_metadata/license1
l---------data/base/_metadata/maintainer1
-rw-r--r--data/base/_metadata/priority1
-rw-r--r--data/base/_metadata/section1
-rw-r--r--data/base/_metadata/version1
-rw-r--r--data/base/base-1.tgzbin0 -> 1208 bytes
-rw-r--r--data/base/make.sh1
-rw-r--r--data/bash/_metadata/description2
l---------data/bash/_metadata/license1
l---------data/bash/_metadata/maintainer1
-rw-r--r--data/bash/_metadata/priority1
-rw-r--r--data/bash/_metadata/section1
-rw-r--r--data/bash/_metadata/version1
-rw-r--r--data/bash/bash-3.2.tar.gzbin0 -> 2529838 bytes
-rw-r--r--data/bash/make.sh7
-rw-r--r--data/basic-cmds/_metadata/description2
-rw-r--r--data/basic-cmds/_metadata/license143
l---------data/basic-cmds/_metadata/maintainer1
-rw-r--r--data/basic-cmds/_metadata/priority1
-rw-r--r--data/basic-cmds/_metadata/section1
-rw-r--r--data/basic-cmds/_metadata/version1
-rw-r--r--data/basic-cmds/basic_cmds-48.tar.gzbin0 -> 17334 bytes
-rw-r--r--data/basic-cmds/make.sh6
-rw-r--r--data/berkeleydb/_metadata/description2
-rw-r--r--data/berkeleydb/_metadata/license100
l---------data/berkeleydb/_metadata/maintainer1
-rw-r--r--data/berkeleydb/_metadata/priority1
-rw-r--r--data/berkeleydb/_metadata/section1
-rw-r--r--data/berkeleydb/_metadata/version1
-rw-r--r--data/berkeleydb/db-4.6.21.tar.gzbin0 -> 11881885 bytes
-rw-r--r--data/berkeleydb/make.sh5
-rw-r--r--data/bind/_metadata/description2
-rw-r--r--data/bind/_metadata/license30
l---------data/bind/_metadata/maintainer1
-rw-r--r--data/bind/_metadata/priority1
-rw-r--r--data/bind/_metadata/section1
-rw-r--r--data/bind/_metadata/version1
-rw-r--r--data/bind/bind-9.4.2.tar.gzbin0 -> 6574042 bytes
-rw-r--r--data/bind/gen.diff12
-rw-r--r--data/bind/make.sh5
-rw-r--r--data/boost/_metadata/description2
-rw-r--r--data/boost/_metadata/license23
l---------data/boost/_metadata/maintainer1
-rw-r--r--data/boost/_metadata/priority1
-rw-r--r--data/boost/_metadata/section1
-rw-r--r--data/boost/_metadata/version1
-rw-r--r--data/boost/boost_1_34_1.tar.gzbin0 -> 16017741 bytes
-rw-r--r--data/boost/make.sh14
-rw-r--r--data/boost/port.diff162
-rw-r--r--data/bootstrap-cmds/_metadata/description2
l---------data/bootstrap-cmds/_metadata/license1
l---------data/bootstrap-cmds/_metadata/maintainer1
-rw-r--r--data/bootstrap-cmds/_metadata/priority1
-rw-r--r--data/bootstrap-cmds/_metadata/section1
-rw-r--r--data/bootstrap-cmds/_metadata/version1
-rw-r--r--data/bootstrap-cmds/arm.diff12
-rw-r--r--data/bootstrap-cmds/bootstrap_cmds-60.tar.gzbin0 -> 145064 bytes
-rw-r--r--data/bootstrap-cmds/make.sh15
-rw-r--r--data/bzip2/_metadata/description2
-rw-r--r--data/bzip2/_metadata/license43
l---------data/bzip2/_metadata/maintainer1
-rw-r--r--data/bzip2/_metadata/priority1
-rw-r--r--data/bzip2/_metadata/section1
-rw-r--r--data/bzip2/_metadata/version1
-rw-r--r--data/bzip2/bzip2-1.0.4.tar.gzbin0 -> 841221 bytes
-rw-r--r--data/bzip2/make.sh5
-rw-r--r--data/classpath/_metadata/description2
l---------data/classpath/_metadata/license1
l---------data/classpath/_metadata/maintainer1
-rw-r--r--data/classpath/_metadata/priority1
-rw-r--r--data/classpath/_metadata/section1
-rw-r--r--data/classpath/_metadata/version1
-rw-r--r--data/classpath/classpath-0.96.1.tar.gzbin0 -> 10292454 bytes
-rw-r--r--data/classpath/make.sh5
-rw-r--r--data/coreutils/_metadata/description2
l---------data/coreutils/_metadata/license1
l---------data/coreutils/_metadata/maintainer1
-rw-r--r--data/coreutils/_metadata/priority1
-rw-r--r--data/coreutils/_metadata/section1
-rw-r--r--data/coreutils/_metadata/version1
-rw-r--r--data/coreutils/coreutils-6.9.tar.gzbin0 -> 8194001 bytes
-rw-r--r--data/coreutils/make.sh6
-rw-r--r--data/curl/_metadata/description2
-rw-r--r--data/curl/_metadata/license21
l---------data/curl/_metadata/maintainer1
l---------data/curl/_metadata/openssl.dep1
-rw-r--r--data/curl/_metadata/priority1
-rw-r--r--data/curl/_metadata/section1
-rw-r--r--data/curl/_metadata/version1
-rw-r--r--data/curl/curl-7.17.1.tar.gzbin0 -> 2225788 bytes
-rw-r--r--data/curl/make.sh7
-rw-r--r--data/curl/strerror.diff45
-rw-r--r--data/diskdev-cmds/_metadata/description2
l---------data/diskdev-cmds/_metadata/libutil.dep1
l---------data/diskdev-cmds/_metadata/license1
l---------data/diskdev-cmds/_metadata/maintainer1
-rw-r--r--data/diskdev-cmds/_metadata/priority1
-rw-r--r--data/diskdev-cmds/_metadata/section1
-rw-r--r--data/diskdev-cmds/_metadata/version1
-rw-r--r--data/diskdev-cmds/diskdev_cmds-419.tar.gzbin0 -> 693773 bytes
-rw-r--r--data/diskdev-cmds/make.sh20
-rw-r--r--data/dpkg/_metadata/description2
l---------data/dpkg/_metadata/license1
l---------data/dpkg/_metadata/maintainer1
-rw-r--r--data/dpkg/_metadata/priority1
-rw-r--r--data/dpkg/_metadata/section1
l---------data/dpkg/_metadata/tar.dep1
-rw-r--r--data/dpkg/_metadata/version1
-rw-r--r--data/dpkg/dpkg_1.13.25.tar.gzbin0 -> 3384618 bytes
-rw-r--r--data/dpkg/make.sh8
-rw-r--r--data/dpkg/port.diff81
-rw-r--r--data/expat/_metadata/description2
-rw-r--r--data/expat/_metadata/license22
l---------data/expat/_metadata/maintainer1
-rw-r--r--data/expat/_metadata/priority1
-rw-r--r--data/expat/_metadata/section1
-rw-r--r--data/expat/_metadata/version1
-rw-r--r--data/expat/expat-2.0.1.tar.gzbin0 -> 446456 bytes
-rw-r--r--data/expat/make.sh5
-rw-r--r--data/findutils/_metadata/description2
l---------data/findutils/_metadata/license1
l---------data/findutils/_metadata/maintainer1
-rw-r--r--data/findutils/_metadata/priority1
-rw-r--r--data/findutils/_metadata/section1
-rw-r--r--data/findutils/_metadata/version1
-rw-r--r--data/findutils/findutils-4.2.31.tar.gzbin0 -> 1326294 bytes
-rw-r--r--data/findutils/make.sh5
-rw-r--r--data/gawk/_metadata/description2
l---------data/gawk/_metadata/license1
l---------data/gawk/_metadata/maintainer1
-rw-r--r--data/gawk/_metadata/priority1
-rw-r--r--data/gawk/_metadata/section1
-rw-r--r--data/gawk/_metadata/version1
-rw-r--r--data/gawk/dynamic.diff19
-rw-r--r--data/gawk/gawk-3.1.6.tar.gzbin0 -> 2488684 bytes
-rw-r--r--data/gawk/make.sh7
-rw-r--r--data/grep/_metadata/description2
l---------data/grep/_metadata/license1
l---------data/grep/_metadata/maintainer1
-rw-r--r--data/grep/_metadata/priority1
-rw-r--r--data/grep/_metadata/section1
-rw-r--r--data/grep/_metadata/version1
-rw-r--r--data/grep/destdir.diff25
-rw-r--r--data/grep/grep-2.5.tar.gzbin0 -> 683116 bytes
-rw-r--r--data/grep/make.sh7
-rw-r--r--data/gzip/_metadata/description2
l---------data/gzip/_metadata/license1
l---------data/gzip/_metadata/maintainer1
-rw-r--r--data/gzip/_metadata/priority1
-rw-r--r--data/gzip/_metadata/section1
-rw-r--r--data/gzip/_metadata/version1
-rw-r--r--data/gzip/gzip-1.3.12.tar.gzbin0 -> 462169 bytes
-rw-r--r--data/gzip/make.sh6
-rw-r--r--data/iokittools/IOKitTools-76.tar.gzbin0 -> 17076 bytes
-rw-r--r--data/iokittools/_metadata/description2
l---------data/iokittools/_metadata/license1
l---------data/iokittools/_metadata/maintainer1
-rw-r--r--data/iokittools/_metadata/priority1
-rw-r--r--data/iokittools/_metadata/section1
-rw-r--r--data/iokittools/_metadata/version1
-rw-r--r--data/iokittools/make.sh8
l---------data/jamvm/_metadata/classpath.dep1
-rw-r--r--data/jamvm/_metadata/description2
l---------data/jamvm/_metadata/license1
l---------data/jamvm/_metadata/maintainer1
-rw-r--r--data/jamvm/_metadata/priority1
-rw-r--r--data/jamvm/_metadata/section1
-rw-r--r--data/jamvm/_metadata/version1
-rw-r--r--data/jamvm/jamvm-1.5.1b2.tar.gzbin0 -> 583822 bytes
-rw-r--r--data/jamvm/make.sh5
-rw-r--r--data/javasqlite/_metadata/description2
-rw-r--r--data/javasqlite/_metadata/license26
l---------data/javasqlite/_metadata/maintainer1
-rw-r--r--data/javasqlite/_metadata/priority1
-rw-r--r--data/javasqlite/_metadata/section1
-rw-r--r--data/javasqlite/_metadata/version1
-rw-r--r--data/javasqlite/dylib.diff15
-rw-r--r--data/javasqlite/javasqlite-20071108.tar.gzbin0 -> 354808 bytes
-rw-r--r--data/javasqlite/make.sh7
-rw-r--r--data/javasqlite/mkconst.diff15
-rw-r--r--data/kext-tools/_metadata/description2
l---------data/kext-tools/_metadata/license1
l---------data/kext-tools/_metadata/maintainer1
-rw-r--r--data/kext-tools/_metadata/priority1
-rw-r--r--data/kext-tools/_metadata/section1
-rw-r--r--data/kext-tools/_metadata/version1
-rw-r--r--data/kext-tools/getiopolicy_np.c93
-rw-r--r--data/kext-tools/kext_tools-117.tar.gzbin0 -> 208690 bytes
-rwxr-xr-xdata/kext-tools/make.sh18
-rw-r--r--data/less/_metadata/description2
l---------data/less/_metadata/license1
l---------data/less/_metadata/maintainer1
-rw-r--r--data/less/_metadata/priority1
-rw-r--r--data/less/_metadata/section1
-rw-r--r--data/less/_metadata/version1
-rw-r--r--data/less/less-416.tar.gzbin0 -> 294541 bytes
-rw-r--r--data/less/make.sh5
-rw-r--r--data/libffi/_metadata/description2
l---------data/libffi/_metadata/license1
l---------data/libffi/_metadata/maintainer1
-rw-r--r--data/libffi/_metadata/priority1
-rw-r--r--data/libffi/_metadata/section1
-rw-r--r--data/libffi/_metadata/version1
-rw-r--r--data/libffi/assembler.diff43
-rw-r--r--data/libffi/libffi-130618.tgzbin0 -> 982313 bytes
-rw-r--r--data/libffi/make.sh12
-rw-r--r--data/libffi/private.diff12
-rw-r--r--data/libpcap/_metadata/description2
l---------data/libpcap/_metadata/license1
l---------data/libpcap/_metadata/maintainer1
-rw-r--r--data/libpcap/_metadata/priority1
-rw-r--r--data/libpcap/_metadata/section1
-rw-r--r--data/libpcap/_metadata/version1
-rw-r--r--data/libpcap/libpcap-0.9.8.tar.gzbin0 -> 520526 bytes
-rw-r--r--data/libpcap/make.sh6
-rw-r--r--data/libutil/_metadata/description2
-rw-r--r--data/libutil/_metadata/license238
l---------data/libutil/_metadata/maintainer1
-rw-r--r--data/libutil/_metadata/priority1
-rw-r--r--data/libutil/_metadata/section1
-rw-r--r--data/libutil/_metadata/version1
-rw-r--r--data/libutil/libutil-11.tar.gzbin0 -> 24167 bytes
-rw-r--r--data/libutil/make.sh4
-rw-r--r--data/links/_metadata/description2
l---------data/links/_metadata/license1
l---------data/links/_metadata/maintainer1
l---------data/links/_metadata/openssl.dep1
-rw-r--r--data/links/_metadata/priority1
-rw-r--r--data/links/_metadata/section1
-rw-r--r--data/links/_metadata/version1
-rw-r--r--data/links/links-0.99.tar.gzbin0 -> 587574 bytes
-rw-r--r--data/links/make.sh5
-rw-r--r--data/make/_metadata/description2
l---------data/make/_metadata/license1
l---------data/make/_metadata/maintainer1
-rw-r--r--data/make/_metadata/priority1
-rw-r--r--data/make/_metadata/section1
-rw-r--r--data/make/_metadata/version1
-rw-r--r--data/make/make-3.81.tar.gzbin0 -> 1564560 bytes
-rw-r--r--data/make/make.sh5
-rw-r--r--data/nano/_metadata/description2
l---------data/nano/_metadata/license1
l---------data/nano/_metadata/maintainer1
-rw-r--r--data/nano/_metadata/priority1
-rw-r--r--data/nano/_metadata/section1
-rw-r--r--data/nano/_metadata/version1
-rw-r--r--data/nano/make.sh5
-rw-r--r--data/nano/nano-2.0.7.tar.gzbin0 -> 1363684 bytes
-rw-r--r--data/ncftp/_metadata/description2
-rw-r--r--data/ncftp/_metadata/license136
l---------data/ncftp/_metadata/maintainer1
-rw-r--r--data/ncftp/_metadata/priority1
-rw-r--r--data/ncftp/_metadata/section1
-rw-r--r--data/ncftp/_metadata/version1
-rw-r--r--data/ncftp/make.sh6
-rw-r--r--data/ncftp/ncftp-3.2.1-src.tar.gzbin0 -> 537768 bytes
-rw-r--r--data/ncurses/_metadata/description2
-rw-r--r--data/ncurses/_metadata/license27
l---------data/ncurses/_metadata/maintainer1
-rw-r--r--data/ncurses/_metadata/priority1
-rw-r--r--data/ncurses/_metadata/section1
-rw-r--r--data/ncurses/_metadata/version1
-rw-r--r--data/ncurses/make.sh5
-rw-r--r--data/ncurses/ncurses-5.6.tar.gzbin0 -> 2402592 bytes
-rw-r--r--data/neon/_metadata/description2
l---------data/neon/_metadata/expat.dep1
l---------data/neon/_metadata/license1
l---------data/neon/_metadata/maintainer1
l---------data/neon/_metadata/openssl.dep1
-rw-r--r--data/neon/_metadata/priority1
-rw-r--r--data/neon/_metadata/section1
-rw-r--r--data/neon/_metadata/version1
-rw-r--r--data/neon/make.sh8
-rw-r--r--data/neon/neon-0.26.4.tar.gzbin0 -> 794225 bytes
-rw-r--r--data/neon/nmedit.diff51
-rw-r--r--data/netcat/_metadata/description2
l---------data/netcat/_metadata/license1
l---------data/netcat/_metadata/maintainer1
-rw-r--r--data/netcat/_metadata/priority1
-rw-r--r--data/netcat/_metadata/section1
-rw-r--r--data/netcat/_metadata/version1
-rw-r--r--data/netcat/make.sh6
-rw-r--r--data/netcat/netcat-0.7.1.tar.gzbin0 -> 398872 bytes
-rw-r--r--data/network-cmds/_metadata/description2
l---------data/network-cmds/_metadata/license1
l---------data/network-cmds/_metadata/maintainer1
-rw-r--r--data/network-cmds/_metadata/priority1
-rw-r--r--data/network-cmds/_metadata/section1
-rw-r--r--data/network-cmds/_metadata/version1
-rw-r--r--data/network-cmds/make.sh10
-rw-r--r--data/network-cmds/network_cmds-306.tar.gzbin0 -> 505632 bytes
-rw-r--r--data/ngrep/_metadata/description2
-rw-r--r--data/ngrep/_metadata/license38
l---------data/ngrep/_metadata/maintainer1
-rw-r--r--data/ngrep/_metadata/priority1
-rw-r--r--data/ngrep/_metadata/section1
-rw-r--r--data/ngrep/_metadata/version1
-rw-r--r--data/ngrep/host.diff12
-rw-r--r--data/ngrep/make.sh10
-rw-r--r--data/ngrep/ngrep-1.45.tar.bz2bin0 -> 463361 bytes
-rw-r--r--data/nmap/_metadata/description2
l---------data/nmap/_metadata/libpcap.dep1
l---------data/nmap/_metadata/license1
l---------data/nmap/_metadata/maintainer1
l---------data/nmap/_metadata/openssl.dep1
-rw-r--r--data/nmap/_metadata/priority1
-rw-r--r--data/nmap/_metadata/section1
-rw-r--r--data/nmap/_metadata/version1
-rw-r--r--data/nmap/bsd.diff12
-rw-r--r--data/nmap/bsd.diff_24
-rw-r--r--data/nmap/exit.diff11
-rw-r--r--data/nmap/libpcap.diff27
-rw-r--r--data/nmap/make.sh10
-rw-r--r--data/nmap/nmap-4.50.tar.bz2bin0 -> 3128562 bytes
-rw-r--r--data/nvi/_metadata/description2
-rw-r--r--data/nvi/_metadata/license40
l---------data/nvi/_metadata/maintainer1
-rw-r--r--data/nvi/_metadata/priority1
-rw-r--r--data/nvi/_metadata/section1
-rw-r--r--data/nvi/_metadata/version1
-rw-r--r--data/nvi/make.sh7
-rw-r--r--data/nvi/nvi-1.79.tar.gzbin0 -> 1295401 bytes
-rw-r--r--data/nvi/subshell.diff16
-rw-r--r--data/odcctools/_metadata/description2
l---------data/odcctools/_metadata/license1
l---------data/odcctools/_metadata/maintainer1
-rw-r--r--data/odcctools/_metadata/priority1
-rw-r--r--data/odcctools/_metadata/section1
-rw-r--r--data/odcctools/_metadata/version1
-rw-r--r--data/odcctools/adrbxj.diff176
-rw-r--r--data/odcctools/archive64.diff21
-rw-r--r--data/odcctools/comm.diff35
-rw-r--r--data/odcctools/ifnc.diff225
-rw-r--r--data/odcctools/make.sh8
-rw-r--r--data/odcctools/odcctools-209.tgzbin0 -> 2200232 bytes
-rw-r--r--data/odcctools/word.diff12
-rw-r--r--data/openssl/_metadata/description2
-rw-r--r--data/openssl/_metadata/license127
l---------data/openssl/_metadata/maintainer1
-rw-r--r--data/openssl/_metadata/priority1
-rw-r--r--data/openssl/_metadata/section1
-rw-r--r--data/openssl/_metadata/version1
-rw-r--r--data/openssl/armnm.diff12
-rw-r--r--data/openssl/darwin.diff11
-rw-r--r--data/openssl/make.sh10
-rw-r--r--data/openssl/openssl-0.9.8g.tar.gzbin0 -> 3354792 bytes
-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
-rw-r--r--data/readline/_metadata/description2
l---------data/readline/_metadata/license1
l---------data/readline/_metadata/maintainer1
-rw-r--r--data/readline/_metadata/priority1
-rw-r--r--data/readline/_metadata/section1
-rw-r--r--data/readline/_metadata/version1
-rw-r--r--data/readline/archarm.diff49
-rw-r--r--data/readline/make.sh6
-rw-r--r--data/readline/readline-5.2.tar.gzbin0 -> 2037705 bytes
-rw-r--r--data/rsync/_metadata/description2
l---------data/rsync/_metadata/license1
l---------data/rsync/_metadata/maintainer1
-rw-r--r--data/rsync/_metadata/priority1
-rw-r--r--data/rsync/_metadata/section1
-rw-r--r--data/rsync/_metadata/version1
-rw-r--r--data/rsync/make.sh5
-rw-r--r--data/rsync/rsync-2.6.9.tar.gzbin0 -> 811841 bytes
-rw-r--r--data/sed/_metadata/description2
l---------data/sed/_metadata/license1
l---------data/sed/_metadata/maintainer1
-rw-r--r--data/sed/_metadata/priority1
-rw-r--r--data/sed/_metadata/section1
-rw-r--r--data/sed/_metadata/version1
-rw-r--r--data/sed/make.sh7
-rw-r--r--data/sed/obstack.diff83
-rw-r--r--data/sed/sed-4.1.5.tar.gzbin0 -> 799584 bytes
-rw-r--r--data/shell-cmds/_metadata/description2
l---------data/shell-cmds/_metadata/license1
l---------data/shell-cmds/_metadata/maintainer1
-rw-r--r--data/shell-cmds/_metadata/priority1
-rw-r--r--data/shell-cmds/_metadata/section1
-rw-r--r--data/shell-cmds/_metadata/version1
-rw-r--r--data/shell-cmds/make.sh8
-rw-r--r--data/shell-cmds/shell_cmds-116.tar.gzbin0 -> 173439 bytes
-rw-r--r--data/spidermonkey/_metadata/description2
l---------data/spidermonkey/_metadata/maintainer1
-rw-r--r--data/spidermonkey/_metadata/priority1
-rw-r--r--data/spidermonkey/_metadata/section1
-rw-r--r--data/spidermonkey/_metadata/version1
-rw-r--r--data/spidermonkey/js-1.7.0.tar.gzbin0 -> 1165607 bytes
-rw-r--r--data/spidermonkey/jsautocfg.h52
-rw-r--r--data/spidermonkey/make.sh10
-rw-r--r--data/spidermonkey/port.diff97
-rw-r--r--data/srelay/_metadata/description2
-rw-r--r--data/srelay/_metadata/license27
l---------data/srelay/_metadata/maintainer1
-rw-r--r--data/srelay/_metadata/priority1
-rw-r--r--data/srelay/_metadata/section1
-rw-r--r--data/srelay/_metadata/version1
-rw-r--r--data/srelay/bindaddr.diff21
-rw-r--r--data/srelay/filio.diff12
-rw-r--r--data/srelay/make.sh7
-rw-r--r--data/srelay/sigpoll.diff12
-rw-r--r--data/srelay/srelay-0.4.6.tar.gzbin0 -> 92950 bytes
-rw-r--r--data/srelay/thread.diff28
l---------data/subversion/_metadata/apr-util.dep1
l---------data/subversion/_metadata/apr.dep1
-rw-r--r--data/subversion/_metadata/description2
l---------data/subversion/_metadata/expat.dep1
-rw-r--r--data/subversion/_metadata/license57
l---------data/subversion/_metadata/maintainer1
l---------data/subversion/_metadata/neon.dep1
-rw-r--r--data/subversion/_metadata/priority1
-rw-r--r--data/subversion/_metadata/section1
-rw-r--r--data/subversion/_metadata/version1
-rw-r--r--data/subversion/make.sh7
-rw-r--r--data/subversion/neon.diff18
-rw-r--r--data/subversion/subversion-1.4.6.tar.bz2bin0 -> 4680316 bytes
-rw-r--r--data/subversion/svnversion.diff12
-rw-r--r--data/system-cmds/_metadata/description2
l---------data/system-cmds/_metadata/license1
l---------data/system-cmds/_metadata/maintainer1
-rw-r--r--data/system-cmds/_metadata/priority1
-rw-r--r--data/system-cmds/_metadata/section1
-rw-r--r--data/system-cmds/_metadata/version1
-rw-r--r--data/system-cmds/kextmanager.h615
-rw-r--r--data/system-cmds/kextmanagerServer.c2756
-rw-r--r--data/system-cmds/kextmanagerUser.c2844
-rw-r--r--data/system-cmds/make.sh16
-rw-r--r--data/system-cmds/system_cmds-431.tar.gzbin0 -> 453106 bytes
-rw-r--r--data/tar/_metadata/description2
l---------data/tar/_metadata/license1
l---------data/tar/_metadata/maintainer1
-rw-r--r--data/tar/_metadata/priority1
-rw-r--r--data/tar/_metadata/section1
-rw-r--r--data/tar/_metadata/version1
-rw-r--r--data/tar/make.sh7
-rw-r--r--data/tar/static.diff64
-rw-r--r--data/tar/tar-1.19.tar.gzbin0 -> 2726656 bytes
-rw-r--r--data/tcpdump/_metadata/description2
l---------data/tcpdump/_metadata/libpcap.dep1
l---------data/tcpdump/_metadata/license1
l---------data/tcpdump/_metadata/maintainer1
-rw-r--r--data/tcpdump/_metadata/priority1
-rw-r--r--data/tcpdump/_metadata/section1
-rw-r--r--data/tcpdump/_metadata/version1
-rw-r--r--data/tcpdump/make.sh5
-rw-r--r--data/tcpdump/tcpdump-3.9.8.tar.gzbin0 -> 938054 bytes
-rw-r--r--data/top/_metadata/description2
l---------data/top/_metadata/license1
l---------data/top/_metadata/maintainer1
-rw-r--r--data/top/_metadata/priority1
-rw-r--r--data/top/_metadata/section1
-rw-r--r--data/top/_metadata/version1
-rw-r--r--data/top/make.sh5
-rw-r--r--data/top/mvpath.diff11
-rw-r--r--data/top/strip.diff13
-rw-r--r--data/top/top-37.tar.gzbin0 -> 52240 bytes
-rw-r--r--data/unrar/_metadata/description2
-rw-r--r--data/unrar/_metadata/license40
l---------data/unrar/_metadata/maintainer1
-rw-r--r--data/unrar/_metadata/priority1
-rw-r--r--data/unrar/_metadata/section1
-rw-r--r--data/unrar/_metadata/version1
-rw-r--r--data/unrar/exceptions.diff39
-rw-r--r--data/unrar/make.sh5
-rw-r--r--data/unrar/unrarsrc-3.6.8.tar.gzbin0 -> 125045 bytes
-rw-r--r--data/unzip/_metadata/description2
-rw-r--r--data/unzip/_metadata/license55
l---------data/unzip/_metadata/maintainer1
-rw-r--r--data/unzip/_metadata/priority1
-rw-r--r--data/unzip/_metadata/section1
-rw-r--r--data/unzip/_metadata/version1
-rw-r--r--data/unzip/make.sh5
-rw-r--r--data/unzip/unzip552.tar.gzbin0 -> 1140291 bytes
-rw-r--r--data/vim/_metadata/description2
-rw-r--r--data/vim/_metadata/license78
l---------data/vim/_metadata/maintainer1
-rw-r--r--data/vim/_metadata/priority1
-rw-r--r--data/vim/_metadata/section1
-rw-r--r--data/vim/_metadata/version1
-rw-r--r--data/vim/cross.diff328
-rw-r--r--data/vim/make.sh9
-rw-r--r--data/vim/vim-7.1.tar.bz2bin0 -> 6876053 bytes
-rw-r--r--data/wget/_metadata/description2
l---------data/wget/_metadata/license1
l---------data/wget/_metadata/maintainer1
l---------data/wget/_metadata/openssl.dep1
-rw-r--r--data/wget/_metadata/priority1
-rw-r--r--data/wget/_metadata/section1
-rw-r--r--data/wget/_metadata/version1
-rw-r--r--data/wget/make.sh5
-rw-r--r--data/wget/wget-1.9.1.tar.gzbin0 -> 1322378 bytes
-rw-r--r--data/whois/_metadata/description2
l---------data/whois/_metadata/license1
l---------data/whois/_metadata/maintainer1
-rw-r--r--data/whois/_metadata/priority1
-rw-r--r--data/whois/_metadata/section1
-rw-r--r--data/whois/_metadata/version1
-rw-r--r--data/whois/make.sh4
-rw-r--r--data/whois/whois_4.7.24.tar.gzbin0 -> 61416 bytes
-rw-r--r--data/zip/_metadata/description2
-rw-r--r--data/zip/_metadata/license55
l---------data/zip/_metadata/maintainer1
-rw-r--r--data/zip/_metadata/priority1
-rw-r--r--data/zip/_metadata/section1
-rw-r--r--data/zip/_metadata/version1
-rw-r--r--data/zip/make.sh5
-rw-r--r--data/zip/zip232.zipbin0 -> 961121 bytes
-rwxr-xr-xhelper.sh37
-rw-r--r--licenses/apache-2.0297
-rw-r--r--licenses/apsl-2.0101
-rw-r--r--licenses/bsd17
-rw-r--r--licenses/gpl-2339
-rw-r--r--licenses/gpl-3676
-rw-r--r--licenses/lgpl-2482
-rw-r--r--licenses/modified-bsd17
-rwxr-xr-xmake.sh146
-rwxr-xr-xpackage.sh16
-rw-r--r--people/saurik1
-rw-r--r--saurik.list2
568 files changed, 13402 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
new file mode 100755
index 000000000..f68892018
--- /dev/null
+++ b/bootstrap.sh
@@ -0,0 +1,34 @@
+#!/bin/bash
+set -e
+shopt -s extglob nullglob
+
+export PKG_BASE=$(realpath "$(dirname "$0")")
+
+rm -rf "${PKG_BASE}/Packager"
+mkdir -p "${PKG_BASE}/Packager/var/lib/dpkg/info"
+
+PKG_REQS=($(grep required "${PKG_BASE}"/data/!(*_)/_metadata/priority -l))
+
+for PKG_NAME in "${PKG_REQS[@]}"; do
+ PKG_NAME=${PKG_NAME%/_metadata/priority}
+ PKG_NAME=${PKG_NAME##*/}
+
+ export PKG_DEST=${PKG_BASE}/dest/${PKG_NAME}
+
+ echo "merging ${PKG_NAME}..."
+ cp -a "${PKG_DEST}"/* "${PKG_BASE}/Packager"
+
+ "${PKG_BASE}/control.sh" "${PKG_NAME}" available >>"${PKG_BASE}/Packager/var/lib/dpkg/available"
+ "${PKG_BASE}/control.sh" "${PKG_NAME}" status >>"${PKG_BASE}/Packager/var/lib/dpkg/status"
+
+ (cd "${PKG_DEST}"; find | sed -e '
+ s/^\.\///
+ s/^/\//
+ ') >"${PKG_BASE}/Packager/var/lib/dpkg/info/${PKG_NAME}.list"
+done
+
+cp -a "${PKG_BASE}/saurik.list" "${PKG_BASE}/Packager/etc/apt/sources.list.d"
+cp -a "${PKG_BASE}/profile" "${PKG_BASE}/Packager/etc"
+cd "${PKG_BASE}"
+zip -ry Packager.zip Packager
+rm -rf "${PKG_BASE}/Packager"
diff --git a/build.sh b/build.sh
new file mode 100755
index 000000000..dbab3c3e8
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+set -e
+shopt -s extglob
+for package in data/!(*_); do
+ PKG_NAME=$(basename "${package}")
+ ./package.sh "${PKG_NAME}"
+done
diff --git a/control.sh b/control.sh
new file mode 100755
index 000000000..394b9bd43
--- /dev/null
+++ b/control.sh
@@ -0,0 +1,67 @@
+#!/bin/bash
+shopt -s extglob nullglob
+
+export PKG_NAME=$1
+shift
+
+export PKG_BASE=$(realpath "$(dirname "$0")")
+. "${PKG_BASE}/helper.sh"
+
+cat <<EOF
+Package: ${PKG_NAME}
+Essential: $([[ ${PKG_PRIO} == required ]] && echo yes || echo no)
+EOF
+
+if [[ $1 == status ]]; then
+ cat <<EOF
+Status: install ok installed
+EOF
+fi
+
+cat <<EOF
+Priority: ${PKG_PRIO}
+Section: $(cat "${PKG_DATA}/_metadata/section")
+EOF
+
+if [[ $1 == status || $1 == control ]]; then
+ cat <<EOF
+Installed-Size: $(du -s "${PKG_DEST}" | cut -d $'\t' -f 1)
+EOF
+fi
+
+cat <<EOF
+Maintainer: $(cat "${PKG_DATA}/_metadata/maintainer")
+Architecture: darwin-arm
+Version: ${PKG_VRSN}
+EOF
+
+if [[ $1 == available ]]; then
+ cat <<EOF
+Size: $(find "${PKG_DEST}" -type f -exec cat {} \; | gzip -c | wc -c | cut -d $'\t' -f 1)
+EOF
+fi
+
+unset comma
+for dep in "${PKG_DEPS[@]}"; do
+ if [[ ${comma+@} == @ ]]; then
+ echo -n ","
+ else
+ echo -n "Depends:"
+ comma=
+ fi
+
+ echo -n " $(basename "${dep}" .dep)"
+done
+
+if [[ ${comma+@} == @ ]]; then
+ echo
+fi
+
+cat <<EOF
+Description: $(head -n 1 "${PKG_DATA}/_metadata/description")
+$(tail -n +2 "${PKG_DATA}/_metadata/description" | fold -sw 72 | sed -e 's/^/ /')
+EOF
+
+if [[ $1 == status || $1 == available ]]; then
+ echo
+fi
diff --git a/data/adv-cmds/_metadata/description b/data/adv-cmds/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/adv-cmds/_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/adv-cmds/_metadata/license b/data/adv-cmds/_metadata/license
new file mode 120000
index 000000000..9e5e5e89d
--- /dev/null
+++ b/data/adv-cmds/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/apsl-2.0 \ No newline at end of file
diff --git a/data/adv-cmds/_metadata/maintainer b/data/adv-cmds/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/adv-cmds/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/adv-cmds/_metadata/priority b/data/adv-cmds/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/adv-cmds/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/adv-cmds/_metadata/section b/data/adv-cmds/_metadata/section
new file mode 100644
index 000000000..7fbe952b7
--- /dev/null
+++ b/data/adv-cmds/_metadata/section
@@ -0,0 +1 @@
+admin
diff --git a/data/adv-cmds/_metadata/version b/data/adv-cmds/_metadata/version
new file mode 100644
index 000000000..415196e47
--- /dev/null
+++ b/data/adv-cmds/_metadata/version
@@ -0,0 +1 @@
+118
diff --git a/data/adv-cmds/adv_cmds-118.tar.gz b/data/adv-cmds/adv_cmds-118.tar.gz
new file mode 100644
index 000000000..760601bca
--- /dev/null
+++ b/data/adv-cmds/adv_cmds-118.tar.gz
Binary files differ
diff --git a/data/adv-cmds/make.sh b/data/adv-cmds/make.sh
new file mode 100644
index 000000000..651693003
--- /dev/null
+++ b/data/adv-cmds/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/adv_cmds-118.tar.gz"
+cd adv_cmds-118
+arm-apple-darwin-gcc -o ps ps.tproj/*.c -D'__FBSDID(x)='
+mkdir -p "${PKG_DEST}/usr/bin"
+cp -a ps "${PKG_DEST}/usr/bin"
diff --git a/data/apr-util/_metadata/berkeleydb.dep b/data/apr-util/_metadata/berkeleydb.dep
new file mode 120000
index 000000000..f945cb1a2
--- /dev/null
+++ b/data/apr-util/_metadata/berkeleydb.dep
@@ -0,0 +1 @@
+../../berkeleydb \ No newline at end of file
diff --git a/data/apr-util/_metadata/description b/data/apr-util/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/apr-util/_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/apr-util/_metadata/expat.dep b/data/apr-util/_metadata/expat.dep
new file mode 120000
index 000000000..2100fb19e
--- /dev/null
+++ b/data/apr-util/_metadata/expat.dep
@@ -0,0 +1 @@
+../../expat \ No newline at end of file
diff --git a/data/apr-util/_metadata/license b/data/apr-util/_metadata/license
new file mode 120000
index 000000000..d0b14a610
--- /dev/null
+++ b/data/apr-util/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/apache-2.0 \ No newline at end of file
diff --git a/data/apr-util/_metadata/maintainer b/data/apr-util/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/apr-util/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/apr-util/_metadata/priority b/data/apr-util/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/apr-util/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/apr-util/_metadata/section b/data/apr-util/_metadata/section
new file mode 100644
index 000000000..f99e8394e
--- /dev/null
+++ b/data/apr-util/_metadata/section
@@ -0,0 +1 @@
+platform
diff --git a/data/apr-util/_metadata/version b/data/apr-util/_metadata/version
new file mode 100644
index 000000000..f2ae0b4a2
--- /dev/null
+++ b/data/apr-util/_metadata/version
@@ -0,0 +1 @@
+1.2.12
diff --git a/data/apr-util/apr-util-1.2.12.tar.gz b/data/apr-util/apr-util-1.2.12.tar.gz
new file mode 100644
index 000000000..a97916bee
--- /dev/null
+++ b/data/apr-util/apr-util-1.2.12.tar.gz
Binary files differ
diff --git a/data/apr-util/make.sh b/data/apr-util/make.sh
new file mode 100644
index 000000000..8aaa84de9
--- /dev/null
+++ b/data/apr-util/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/apr-util-1.2.12.tar.gz"
+cd apr-util-1.2.12
+pkg:configure --disable-static --with-apr="$(PKG_WORK_ apr)/apr-1.2.12" --with-berkeley-db="${PKG_ROOT}"
+make
+pkg:install
diff --git a/data/apr/_metadata/description b/data/apr/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/apr/_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/apr/_metadata/license b/data/apr/_metadata/license
new file mode 120000
index 000000000..d0b14a610
--- /dev/null
+++ b/data/apr/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/apache-2.0 \ No newline at end of file
diff --git a/data/apr/_metadata/maintainer b/data/apr/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/apr/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/apr/_metadata/priority b/data/apr/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/apr/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/apr/_metadata/section b/data/apr/_metadata/section
new file mode 100644
index 000000000..f99e8394e
--- /dev/null
+++ b/data/apr/_metadata/section
@@ -0,0 +1 @@
+platform
diff --git a/data/apr/_metadata/version b/data/apr/_metadata/version
new file mode 100644
index 000000000..f2ae0b4a2
--- /dev/null
+++ b/data/apr/_metadata/version
@@ -0,0 +1 @@
+1.2.12
diff --git a/data/apr/apr-1.2.12.tar.gz b/data/apr/apr-1.2.12.tar.gz
new file mode 100644
index 000000000..cd31d9615
--- /dev/null
+++ b/data/apr/apr-1.2.12.tar.gz
Binary files differ
diff --git a/data/apr/make.sh b/data/apr/make.sh
new file mode 100644
index 000000000..a472e891d
--- /dev/null
+++ b/data/apr/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/apr-1.2.12.tar.gz"
+cd apr-1.2.12
+pkg:configure --disable-static ac_cv_file__dev_zero=yes ac_cv_func_setpgrp_void=yes apr_cv_process_shared_works=yes apr_cv_mutex_robust_shared=no apr_cv_tcp_nodelay_with_cork=no
+make
+pkg:install
diff --git a/data/apt/_metadata/description b/data/apt/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/apt/_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/apt/_metadata/dpkg.dep b/data/apt/_metadata/dpkg.dep
new file mode 120000
index 000000000..3e57eea03
--- /dev/null
+++ b/data/apt/_metadata/dpkg.dep
@@ -0,0 +1 @@
+../../dpkg \ No newline at end of file
diff --git a/data/apt/_metadata/license b/data/apt/_metadata/license
new file mode 100644
index 000000000..9e277e57d
--- /dev/null
+++ b/data/apt/_metadata/license
@@ -0,0 +1,142 @@
+Apt is copyright 1997, 1998, 1999 Jason Gunthorpe and others.
+
+Apt is licened under the terms of the GNU General Public License (GPL),
+version 2.0 or later, as published by the Free Software Foundation. See
+the file COPYING.GPL [included], /usr/share/common-licenses/GPL, or
+<http://www.gnu.org/copyleft/gpl.txt> for the terms of the latest version
+of the GNU General Public License.
+
+In addition, prior to November 15th, 2000, apt may be distributed under
+terms identical to the above with the following addition:
+
+Works using apt may link against the GUI library "libqt", copyright by
+Troll Tech AS, Norway, provided that:
+
+1. The version of "libqt" is licensed under the terms of the "Qt Free Edition
+ License" published by Troll Tech AS. The license terms identified as
+ the Qt Free Edition License below are the only such terms under which
+ distribution of works derived from both apt and "libqt" are permitted;
+
+and
+
+2. The source code of the version of "libqt" used is
+
+ a) Distributed with the binary version;
+
+ or
+
+ b) Downloadable by anyone, without fee, using a publicly-announced
+ URL on the Internet, for a duration of at least three years
+ starting with distribution of the binary version.
+
+On and after November 15th, 2000, the above additional terms lose all
+force, and apt will be licensed only under the terms of the GNU General
+Public License, version 2.0 or later.
+
+ _______________________________________________________________
+
+The following text, up to the text of the Qt Free Edition License, is
+informational and not part of the license terms on apt.
+
+Modifications to apt in either source or compiled form must be licensed
+under the terms of the GNU General Public License, version 2.0 (or later),
+but need not include the above clause permitting usage of the "libqt"
+library under the Qt Free Edition License. Note that removal of this
+clause will result in software which is not licensed for binary
+redistribution linked against software governed by the Qt Free Edition
+License. In the event that a version of "libqt" is released that is
+licensed under terms that do not conflict with the GPL, the additional
+clause above is not required to grant permission for distribution of works
+that are derived from both apt and "libqt".
+
+No part of apt is licensed under the Qt Free Edition License. The terms
+below are provided to help identify the circumstances under which the
+"libqt" library may be used with apt (or a work derived from both). The
+terms below are copied from the LICENSE file of the qt-1.44 distribution,
+as of November 10th, 1999.
+
+ _______________________________________________________________
+
+ QT FREE EDITION LICENSE
+
+Copyright (C) 1992-1999 Troll Tech AS. All rights reserved.
+
+This is the license for Qt Free Edition version 1.44; it covers private use,
+use of third-party application programs based on Qt, and development of
+free software for the free software community.
+
+
+ COPYRIGHT AND RESTRICTIONS
+
+The Qt toolkit is a product of Troll Tech AS. The Qt Free Edition is limited
+to use with the X Window System.
+
+You may copy this version of the Qt Free Edition provided that the entire
+archive is distributed unchanged and as a whole, including this notice.
+
+You may use this version of the Qt Free Edition to compile, link and run
+application programs legally developed by third parties.
+
+You may use the Qt Free Edition to create application programs
+provided that:
+
+ You accept this license.
+ Your software does not require modifications to Qt Free Edition.
+ You satisfy ONE of the following three requirements
+ EITHER
+ Users of your software can freely obtain source code for the
+ software, freely modify the source code (possibly with
+ restrictions on copyright notices, attributions and legal
+ responsibility), and freely redistribute original or modified
+ versions of the software.
+ OR
+ Your software is distributed under the GNU GENERAL
+ PUBLIC LICENSE, version 2 or later, as defined by the
+ Free Software Foundation.
+ OR
+ Your software is distributed under the GNU LIBRARY
+ GENERAL PUBLIC LICENSE, version 2 or later, as
+ defined by the Free Software Foundation.
+
+If you are paid to develop something with Qt Free Edition or it is a part of
+your job the following conditions also apply:
+
+ Your software must not require libraries, programs, data or
+ documentation that are not available outside your organization in
+ order to compile or use.
+ If and when your organization starts using the software, you must
+ notify Troll Tech AS of the following:
+ Your organization's name and purpose.
+ The software's name and purpose.
+ The software's license.
+ That your organization considers the software to be free
+ software.
+
+You may also use the Qt Free Edition to create reusable components
+(such as libraries) provided that you accept the terms above, and in
+addition that:
+
+ Your components' license includes the following text:
+
+ [Your package] requires the Qt library, which is
+ copyright Troll Tech AS. Freely distributable
+ programs may generally use Qt Free Edition free of
+ charge, see [README.QT] for details.
+
+ README.QT is distributed along with your components.
+ Qt Free Edition is not distributed as an integral part of your
+ components.
+
+ LIMITATIONS OF LIABILITY
+
+Troll Tech AS makes no obligation under this license to support or
+upgrade Qt Free Edition, or assist in the use of Qt Free Edition.
+
+In no event shall Troll Tech AS be liable for any lost revenue or profits or
+other direct, indirect, special, incidental or consequential damages, even
+if Troll Tech has been advised of the possibility of such damages.
+
+QT FREE EDITION IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND,
+INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE.
+ _______________________________________________________________
diff --git a/data/apt/_metadata/maintainer b/data/apt/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/apt/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/apt/_metadata/priority b/data/apt/_metadata/priority
new file mode 100644
index 000000000..fad9e164a
--- /dev/null
+++ b/data/apt/_metadata/priority
@@ -0,0 +1 @@
+required
diff --git a/data/apt/_metadata/section b/data/apt/_metadata/section
new file mode 100644
index 000000000..7fbe952b7
--- /dev/null
+++ b/data/apt/_metadata/section
@@ -0,0 +1 @@
+admin
diff --git a/data/apt/_metadata/version b/data/apt/_metadata/version
new file mode 100644
index 000000000..f44089729
--- /dev/null
+++ b/data/apt/_metadata/version
@@ -0,0 +1 @@
+0.6.46.4-0.1
diff --git a/data/apt/apt_0.6.46.4-0.1.tar.gz b/data/apt/apt_0.6.46.4-0.1.tar.gz
new file mode 100644
index 000000000..99840a4ee
--- /dev/null
+++ b/data/apt/apt_0.6.46.4-0.1.tar.gz
Binary files differ
diff --git a/data/apt/make.sh b/data/apt/make.sh
new file mode 100644
index 000000000..83831e6ae
--- /dev/null
+++ b/data/apt/make.sh
@@ -0,0 +1,16 @@
+tar -zxvf "${PKG_DATA}/apt_0.6.46.4-0.1.tar.gz"
+cd apt-0.6.46.4.1
+pkg:patch
+autoconf
+pkg:configure
+make
+pkg:mkdir /etc/apt/sources.list.d
+pkg:mkdir /var/cache/apt/archives/partial
+pkg:mkdir /var/lib/apt/lists/partial
+pkg:mkdir /var/lib/apt/periodic
+pkg: mkdir -p /usr/bin /usr/lib/apt
+pkg: cp -a bin/apt-* /usr/bin
+pkg: cp -a bin/libapt-* /usr/lib
+pkg: cp -a bin/methods /usr/lib/apt
+pkg:mkdir /usr/lib/dpkg/methods
+cp -a scripts/dselect "${PKG_DEST}/usr/lib/dpkg/methods/apt"
diff --git a/data/apt/port.diff b/data/apt/port.diff
new file mode 100644
index 000000000..3ac2c0c6f
--- /dev/null
+++ b/data/apt/port.diff
@@ -0,0 +1,525 @@
+diff -ru apt-0.6.46.4.1/apt-inst/deb/dpkgdb.cc apt-0.6.46.4.1+iPhone/apt-inst/deb/dpkgdb.cc
+--- apt-0.6.46.4.1/apt-inst/deb/dpkgdb.cc 2006-12-04 14:37:34.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/apt-inst/deb/dpkgdb.cc 2007-12-31 01:46:53.000000000 +0000
+@@ -26,6 +26,7 @@
+
+ #include <stdio.h>
+ #include <errno.h>
++#include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/mman.h>
+ #include <fcntl.h>
+diff -ru apt-0.6.46.4.1/buildlib/environment.mak.in apt-0.6.46.4.1+iPhone/buildlib/environment.mak.in
+--- apt-0.6.46.4.1/buildlib/environment.mak.in 2006-12-04 14:37:35.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/buildlib/environment.mak.in 2007-12-29 10:58:41.000000000 +0000
+@@ -62,11 +62,11 @@
+
+ # Shared library things
+ HOST_OS = @host_os@
+-ifneq ($(words $(filter linux-gnu gnu% %gnu,$(HOST_OS))),0)
+- SONAME_MAGIC=-Wl,-soname -Wl,
++#ifneq ($(words $(filter linux-gnu gnu% %gnu,$(HOST_OS))),0)
++ SONAME_MAGIC=
+ LFLAGS_SO=
+-else
++#else
+ # Do not know how to create shared libraries here.
+- ONLYSTATICLIBS = yes
+-endif
++# ONLYSTATICLIBS = yes
++#endif
+
+diff -r -u apt-0.6.46.4/apt-inst/makefile apt-0.6.46.4.1+iPhone/apt-inst/makefile
+--- apt-0.6.46.4/apt-inst/makefile 2006-12-04 14:37:34.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/apt-inst/makefile 2007-12-25 06:42:18.000000000 +0000
+@@ -11,7 +11,8 @@
+
+ # The library name
+ LIBRARY=apt-inst
+-LIBEXT=$(GLIBC_VER)$(LIBSTDCPP_VER)
++LIBEXT=
++#$(GLIBC_VER)$(LIBSTDCPP_VER)
+ MAJOR=1.1
+ MINOR=0
+ SLIBS=$(PTHREADLIB) -lapt-pkg
+diff -r -u apt-0.6.46.4/apt-pkg/deb/dpkgpm.cc apt-0.6.46.4.1+iPhone/apt-pkg/deb/dpkgpm.cc
+--- apt-0.6.46.4/apt-pkg/deb/dpkgpm.cc 2006-12-04 16:33:53.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/apt-pkg/deb/dpkgpm.cc 2007-12-24 11:22:47.000000000 +0000
+@@ -511,6 +511,8 @@
+ clog << flush;
+ cerr << flush;
+
++ typedef void (*sighandler_t)(int);
++
+ /* Mask off sig int/quit. We do this because dpkg also does when
+ it forks scripts. What happens is that when you hit ctrl-c it sends
+ it to all processes in the group. Since dpkg ignores the signal
+diff -r -u apt-0.6.46.4/apt-pkg/init.cc apt-0.6.46.4.1+iPhone/apt-pkg/init.cc
+--- apt-0.6.46.4/apt-pkg/init.cc 2006-12-04 14:37:34.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/apt-pkg/init.cc 2007-12-25 05:36:40.000000000 +0000
+@@ -95,14 +95,6 @@
+ if (Cnf.FindB("Debug::pkgInitConfig",false) == true)
+ Cnf.Dump();
+
+-#ifdef APT_DOMAIN
+- if (Cnf.Exists("Dir::Locale"))
+- {
+- bindtextdomain(APT_DOMAIN,Cnf.FindDir("Dir::Locale").c_str());
+- bindtextdomain(textdomain(0),Cnf.FindDir("Dir::Locale").c_str());
+- }
+-#endif
+-
+ return true;
+ }
+ /*}}}*/
+diff -r -u apt-0.6.46.4/apt-pkg/makefile apt-0.6.46.4.1+iPhone/apt-pkg/makefile
+--- apt-0.6.46.4/apt-pkg/makefile 2006-12-04 14:37:34.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/apt-pkg/makefile 2007-12-25 06:42:27.000000000 +0000
+@@ -12,7 +12,8 @@
+ # The library name, don't forget to update init.h and the copy in
+ # methods/makefile - FIXME
+ LIBRARY=apt-pkg
+-LIBEXT=$(GLIBC_VER)$(LIBSTDCPP_VER)
++LIBEXT=
++#$(GLIBC_VER)$(LIBSTDCPP_VER)
+ MAJOR=3.11
+ MINOR=0
+ SLIBS=$(PTHREADLIB) $(INTLLIBS)
+diff -r -u apt-0.6.46.4/buildlib/library.mak apt-0.6.46.4.1+iPhone/buildlib/library.mak
+--- apt-0.6.46.4/buildlib/library.mak 2006-12-04 14:37:35.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/buildlib/library.mak 2007-12-25 05:46:57.000000000 +0000
+@@ -16,11 +16,11 @@
+ # See defaults.mak for information about LOCAL
+
+ # Some local definitions
+-LOCAL := lib$(LIBRARY)$(LIBEXT).so.$(MAJOR).$(MINOR)
++LOCAL := lib$(LIBRARY)$(LIBEXT).dylib.$(MAJOR).$(MINOR)
+ $(LOCAL)-OBJS := $(addprefix $(OBJ)/,$(addsuffix .opic,$(notdir $(basename $(SOURCE)))))
+ $(LOCAL)-DEP := $(addprefix $(DEP)/,$(addsuffix .opic.d,$(notdir $(basename $(SOURCE)))))
+ $(LOCAL)-HEADERS := $(addprefix $(INCLUDE)/,$(HEADERS))
+-$(LOCAL)-SONAME := lib$(LIBRARY)$(LIBEXT).so.$(MAJOR)
++$(LOCAL)-SONAME := lib$(LIBRARY)$(LIBEXT).dylib.$(MAJOR)
+ $(LOCAL)-SLIBS := $(SLIBS)
+ $(LOCAL)-LIBRARY := $(LIBRARY)
+
+@@ -29,7 +29,7 @@
+
+ # Install the command hooks
+ headers: $($(LOCAL)-HEADERS)
+-library: $(LIB)/lib$(LIBRARY).so $(LIB)/lib$(LIBRARY)$(LIBEXT).so.$(MAJOR)
++library: $(LIB)/lib$(LIBRARY).dylib $(LIB)/lib$(LIBRARY)$(LIBEXT).dylib.$(MAJOR)
+ clean: clean/$(LOCAL)
+ veryclean: veryclean/$(LOCAL)
+
+@@ -41,21 +41,21 @@
+ clean/$(LOCAL):
+ -rm -f $($(@F)-OBJS) $($(@F)-DEP)
+ veryclean/$(LOCAL): clean/$(LOCAL)
+- -rm -f $($(@F)-HEADERS) $(LIB)/lib$($(@F)-LIBRARY)*.so*
++ -rm -f $($(@F)-HEADERS) $(LIB)/lib$($(@F)-LIBRARY)*.dylib*
+
+ # Build rules for the two symlinks
+-.PHONY: $(LIB)/lib$(LIBRARY)$(LIBEXT).so.$(MAJOR) $(LIB)/lib$(LIBRARY).so
+-$(LIB)/lib$(LIBRARY)$(LIBEXT).so.$(MAJOR): $(LIB)/lib$(LIBRARY)$(LIBEXT).so.$(MAJOR).$(MINOR)
++.PHONY: $(LIB)/lib$(LIBRARY)$(LIBEXT).dylib.$(MAJOR) $(LIB)/lib$(LIBRARY).dylib
++$(LIB)/lib$(LIBRARY)$(LIBEXT).dylib.$(MAJOR): $(LIB)/lib$(LIBRARY)$(LIBEXT).dylib.$(MAJOR).$(MINOR)
+ ln -sf $(<F) $@
+-$(LIB)/lib$(LIBRARY).so: $(LIB)/lib$(LIBRARY)$(LIBEXT).so.$(MAJOR).$(MINOR)
++$(LIB)/lib$(LIBRARY).dylib: $(LIB)/lib$(LIBRARY)$(LIBEXT).dylib.$(MAJOR).$(MINOR)
+ ln -sf $(<F) $@
+
+ # The binary build rule
+-$(LIB)/lib$(LIBRARY)$(LIBEXT).so.$(MAJOR).$(MINOR): $($(LOCAL)-HEADERS) $($(LOCAL)-OBJS)
+- -rm -f $(LIB)/lib$($(@F)-LIBRARY)*.so* 2> /dev/null
++$(LIB)/lib$(LIBRARY)$(LIBEXT).dylib.$(MAJOR).$(MINOR): $($(LOCAL)-HEADERS) $($(LOCAL)-OBJS)
++ -rm -f $(LIB)/lib$($(@F)-LIBRARY)*.dylib* 2> /dev/null
+ echo Building shared library $@
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(PICFLAGS) $(LFLAGS) $(LFLAGS_SO)\
+- -o $@ $(SONAME_MAGIC)$($(@F)-SONAME) -shared \
++ -o $@ -dynamiclib \
+ $(filter %.opic,$^) \
+ $($(@F)-SLIBS)
+
+diff -r -u apt-0.6.46.4/buildlib/podomain.mak apt-0.6.46.4.1+iPhone/buildlib/podomain.mak
+--- apt-0.6.46.4/buildlib/podomain.mak 2006-12-04 14:37:35.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/buildlib/podomain.mak 2007-12-25 06:41:16.000000000 +0000
+@@ -14,7 +14,8 @@
+ $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list: SRC := $(addprefix $(SUBDIR)/,$(SOURCE))
+ $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list: makefile
+ (echo $(SRC) | xargs -n1 echo) > $@
+-binary program clean: $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list
++binary program clean:
++#$(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list
+
+ veryclean: veryclean/$(LOCAL)
+ veryclean/po/$(LOCAL): LIST := $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list
+diff -r -u apt-0.6.46.4/buildlib/program.mak apt-0.6.46.4.1+iPhone/buildlib/program.mak
+--- apt-0.6.46.4/buildlib/program.mak 2006-12-04 14:37:35.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/buildlib/program.mak 2007-12-25 05:26:04.000000000 +0000
+@@ -44,6 +44,7 @@
+ # The binary build rule
+ $($(LOCAL)-BIN): $($(LOCAL)-OBJS) $($(LOCAL)-MKS)
+ echo Building program $@
++ echo $(CXX) $(CXXFLAGS) $(LDFLAGS) $(LFLAGS) -o $@ $(filter %.o,$^) $($(@F)-SLIBS) $(LEFLAGS)
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(LFLAGS) -o $@ $(filter %.o,$^) $($(@F)-SLIBS) $(LEFLAGS)
+
+ # Compilation rules
+diff -r -u apt-0.6.46.4/cmdline/apt-cache.cc apt-0.6.46.4.1+iPhone/cmdline/apt-cache.cc
+--- apt-0.6.46.4/cmdline/apt-cache.cc 2006-12-04 14:37:35.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/cmdline/apt-cache.cc 2007-12-25 03:50:15.000000000 +0000
+@@ -1704,7 +1704,11 @@
+ }
+ /*}}}*/
+
+-int main(int argc,const char *argv[])
++int main_(int argc,const char *argv[]);
++int main(int argc,const char *argv[]) {
++ _exit(main_(argc, argv));
++}
++int main_(int argc,const char *argv[])
+ {
+ CommandLine::Args Args[] = {
+ {'h',"help","help",0},
+@@ -1748,7 +1752,7 @@
+
+ // Set up gettext support
+ setlocale(LC_ALL,"");
+- textdomain(PACKAGE);
++ //textdomain(PACKAGE);
+
+ // Parse the command line and initialize the package library
+ CommandLine CmdL(Args,_config);
+diff -r -u apt-0.6.46.4/cmdline/apt-cdrom.cc apt-0.6.46.4.1+iPhone/cmdline/apt-cdrom.cc
+--- apt-0.6.46.4/cmdline/apt-cdrom.cc 2006-12-04 14:37:35.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/cmdline/apt-cdrom.cc 2007-12-25 03:50:24.000000000 +0000
+@@ -165,7 +165,11 @@
+ }
+ /*}}}*/
+
+-int main(int argc,const char *argv[])
++int main_(int argc,const char *argv[]);
++int main(int argc,const char *argv[]) {
++ _exit(main_(argc, argv));
++}
++int main_(int argc,const char *argv[])
+ {
+ CommandLine::Args Args[] = {
+ {'h',"help","help",0},
+@@ -188,7 +192,7 @@
+
+ // Set up gettext support
+ setlocale(LC_ALL,"");
+- textdomain(PACKAGE);
++ //textdomain(PACKAGE);
+
+ // Parse the command line and initialize the package library
+ CommandLine CmdL(Args,_config);
+diff -r -u apt-0.6.46.4/cmdline/apt-config.cc apt-0.6.46.4.1+iPhone/cmdline/apt-config.cc
+--- apt-0.6.46.4/cmdline/apt-config.cc 2006-12-04 14:37:35.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/cmdline/apt-config.cc 2007-12-25 03:50:35.000000000 +0000
+@@ -89,7 +89,11 @@
+ }
+ /*}}}*/
+
+-int main(int argc,const char *argv[])
++int main_(int argc,const char *argv[]);
++int main(int argc,const char *argv[]) {
++ _exit(main_(argc, argv));
++}
++int main_(int argc,const char *argv[])
+ {
+ CommandLine::Args Args[] = {
+ {'h',"help","help",0},
+@@ -103,7 +107,7 @@
+
+ // Set up gettext support
+ setlocale(LC_ALL,"");
+- textdomain(PACKAGE);
++ //textdomain(PACKAGE);
+
+ // Parse the command line and initialize the package library
+ CommandLine CmdL(Args,_config);
+diff -r -u apt-0.6.46.4/cmdline/apt-extracttemplates.cc apt-0.6.46.4.1+iPhone/cmdline/apt-extracttemplates.cc
+--- apt-0.6.46.4/cmdline/apt-extracttemplates.cc 2006-12-04 14:37:35.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/cmdline/apt-extracttemplates.cc 2007-12-25 03:50:39.000000000 +0000
+@@ -349,7 +349,11 @@
+ }
+ /*}}}*/
+
+-int main(int argc, const char **argv)
++int main_(int argc,const char *argv[]);
++int main(int argc,const char *argv[]) {
++ _exit(main_(argc, argv));
++}
++int main_(int argc,const char *argv[])
+ {
+ CommandLine::Args Args[] = {
+ {'h',"help","help",0},
+@@ -361,7 +365,7 @@
+
+ // Set up gettext support
+ setlocale(LC_ALL,"");
+- textdomain(PACKAGE);
++ //textdomain(PACKAGE);
+
+ // Parse the command line and initialize the package library
+ CommandLine CmdL(Args,_config);
+diff -r -u apt-0.6.46.4/cmdline/apt-get.cc apt-0.6.46.4.1+iPhone/cmdline/apt-get.cc
+--- apt-0.6.46.4/cmdline/apt-get.cc 2006-12-04 14:37:35.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/cmdline/apt-get.cc 2007-12-26 09:03:07.000000000 +0000
+@@ -62,12 +62,13 @@
+ #include <sys/wait.h>
+ /*}}}*/
+
++#define _trace() printf("_trace(%s:%d)\n", __FILE__, __LINE__)
++
+ using namespace std;
+
+ ostream c0out(0);
+ ostream c1out(0);
+ ostream c2out(0);
+-ofstream devnull("/dev/null");
+ unsigned int ScreenWidth = 80 - 1; /* - 1 for the cursor */
+
+ // class CacheFile - Cover class for some dependency cache functions /*{{{*/
+@@ -2501,7 +2502,11 @@
+ }
+ /*}}}*/
+
+-int main(int argc,const char *argv[])
++int main_(int argc,const char *argv[]);
++int main(int argc,const char *argv[]) {
++ _exit(main_(argc, argv));
++}
++int main_(int argc,const char *argv[])
+ {
+ CommandLine::Args Args[] = {
+ {'h',"help","help",0},
+@@ -2560,7 +2565,7 @@
+
+ // Set up gettext support
+ setlocale(LC_ALL,"");
+- textdomain(PACKAGE);
++ //textdomain(PACKAGE);
+
+ // Parse the command line and initialize the package library
+ CommandLine CmdL(Args,_config);
+@@ -2588,6 +2593,8 @@
+ if (!isatty(STDOUT_FILENO) && _config->FindI("quiet",0) < 1)
+ _config->Set("quiet","1");
+
++ ofstream devnull("/dev/null");
++
+ // Setup the output streams
+ c0out.rdbuf(cout.rdbuf());
+ c1out.rdbuf(cout.rdbuf());
+diff -r -u apt-0.6.46.4/cmdline/apt-sortpkgs.cc apt-0.6.46.4.1+iPhone/cmdline/apt-sortpkgs.cc
+--- apt-0.6.46.4/cmdline/apt-sortpkgs.cc 2006-12-04 14:37:35.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/cmdline/apt-sortpkgs.cc 2007-12-25 03:50:52.000000000 +0000
+@@ -162,7 +162,11 @@
+ }
+ /*}}}*/
+
+-int main(unsigned int argc,const char *argv[])
++int main_(int argc,const char *argv[]);
++int main(int argc,const char *argv[]) {
++ _exit(main_(argc, argv));
++}
++int main_(int argc,const char *argv[])
+ {
+ CommandLine::Args Args[] = {
+ {'h',"help","help",0},
+@@ -174,7 +178,7 @@
+
+ // Set up gettext support
+ setlocale(LC_ALL,"");
+- textdomain(PACKAGE);
++ //textdomain(PACKAGE);
+
+ // Parse the command line and initialize the package library
+ CommandLine CmdL(Args,_config);
+diff -r -u apt-0.6.46.4/ftparchive/cachedb.cc apt-0.6.46.4.1+iPhone/ftparchive/cachedb.cc
+--- apt-0.6.46.4/ftparchive/cachedb.cc 2006-12-04 14:37:36.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/ftparchive/cachedb.cc 2007-12-24 11:27:03.000000000 +0000
+@@ -319,6 +319,14 @@
+ }
+ }
+
++void *memrchr(void *data, char value, int size) {
++ char *cdata = (char *) data;
++ for (int i = 0; i != size; ++i)
++ if (cdata[size - i - 1] == value)
++ return cdata + size - i - 1;
++ return NULL;
++}
++
+ // CacheDB::GetMD5 - Get the MD5 hash /*{{{*/
+ // ---------------------------------------------------------------------
+ /* */
+diff -r -u apt-0.6.46.4/ftparchive/contents.cc apt-0.6.46.4.1+iPhone/ftparchive/contents.cc
+--- apt-0.6.46.4/ftparchive/contents.cc 2006-12-04 14:37:36.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/ftparchive/contents.cc 2007-12-24 11:27:23.000000000 +0000
+@@ -41,7 +41,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <malloc.h>
++#include <memory.h>
+ /*}}}*/
+
+ // GenContents::~GenContents - Free allocated memory /*{{{*/
+diff -r -u apt-0.6.46.4/Makefile apt-0.6.46.4.1+iPhone/Makefile
+--- apt-0.6.46.4/Makefile 2006-12-04 14:37:34.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/Makefile 2007-12-25 05:49:13.000000000 +0000
+@@ -18,7 +18,6 @@
+ $(MAKE) -C ftparchive $@
+ $(MAKE) -C dselect $@
+ $(MAKE) -C doc $@
+- $(MAKE) -C po $@
+
+ # Some very common aliases
+ .PHONY: maintainer-clean dist-clean distclean pristine sanity
+diff -r -u apt-0.6.46.4/methods/cdrom.cc apt-0.6.46.4.1+iPhone/methods/cdrom.cc
+--- apt-0.6.46.4/methods/cdrom.cc 2006-12-04 14:37:36.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/methods/cdrom.cc 2007-12-25 03:53:13.000000000 +0000
+@@ -191,7 +191,11 @@
+ }
+ /*}}}*/
+
+-int main()
++int main_();
++int main() {
++ _exit(main_());
++}
++int main_()
+ {
+ setlocale(LC_ALL, "");
+
+diff -r -u apt-0.6.46.4/methods/copy.cc apt-0.6.46.4.1+iPhone/methods/copy.cc
+--- apt-0.6.46.4/methods/copy.cc 2006-12-04 14:37:36.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/methods/copy.cc 2007-12-25 03:53:07.000000000 +0000
+@@ -84,7 +84,11 @@
+ }
+ /*}}}*/
+
+-int main()
++int main_();
++int main() {
++ _exit(main_());
++}
++int main_()
+ {
+ setlocale(LC_ALL, "");
+
+diff -r -u apt-0.6.46.4/methods/file.cc apt-0.6.46.4.1+iPhone/methods/file.cc
+--- apt-0.6.46.4/methods/file.cc 2006-12-04 14:37:36.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/methods/file.cc 2007-12-25 03:53:02.000000000 +0000
+@@ -87,7 +87,11 @@
+ }
+ /*}}}*/
+
+-int main()
++int main_();
++int main() {
++_exit(main_());
++}
++int main_()
+ {
+ setlocale(LC_ALL, "");
+
+diff -r -u apt-0.6.46.4/methods/ftp.cc apt-0.6.46.4.1+iPhone/methods/ftp.cc
+--- apt-0.6.46.4/methods/ftp.cc 2006-12-04 14:37:36.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/methods/ftp.cc 2007-12-25 03:53:38.000000000 +0000
+@@ -1084,7 +1084,11 @@
+ }
+ /*}}}*/
+
+-int main(int argc,const char *argv[])
++int main_(int argc, const char *argv[]);
++int main(int argc, const char *argv[]) {
++ _exit(main_(argc, argv));
++}
++int main_(int argc, const char *argv[])
+ {
+ setlocale(LC_ALL, "");
+
+diff -r -u apt-0.6.46.4/methods/gpgv.cc apt-0.6.46.4.1+iPhone/methods/gpgv.cc
+--- apt-0.6.46.4/methods/gpgv.cc 2006-12-04 14:37:36.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/methods/gpgv.cc 2007-12-25 03:53:27.000000000 +0000
+@@ -300,7 +300,11 @@
+ }
+
+
+-int main()
++int main_();
++int main() {
++_exit(main_());
++}
++int main_()
+ {
+ setlocale(LC_ALL, "");
+
+diff -r -u apt-0.6.46.4/methods/gzip.cc apt-0.6.46.4.1+iPhone/methods/gzip.cc
+--- apt-0.6.46.4/methods/gzip.cc 2006-12-04 14:37:36.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/methods/gzip.cc 2007-12-25 03:53:44.000000000 +0000
+@@ -160,7 +160,11 @@
+ }
+ /*}}}*/
+
+-int main(int argc, char *argv[])
++int main_(int argc, const char *argv[]);
++int main(int argc, const char *argv[]) {
++ _exit(main_(argc, argv));
++}
++int main_(int argc, const char *argv[])
+ {
+ setlocale(LC_ALL, "");
+
+diff -r -u apt-0.6.46.4/methods/http.cc apt-0.6.46.4.1+iPhone/methods/http.cc
+--- apt-0.6.46.4/methods/http.cc 2006-12-04 14:37:36.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/methods/http.cc 2007-12-25 03:53:57.000000000 +0000
+@@ -1222,7 +1222,11 @@
+ }
+ /*}}}*/
+
+-int main()
++int main_();
++int main() {
++_exit(main_());
++}
++int main_()
+ {
+ setlocale(LC_ALL, "");
+
+diff -r -u apt-0.6.46.4/methods/rred.cc apt-0.6.46.4.1+iPhone/methods/rred.cc
+--- apt-0.6.46.4/methods/rred.cc 2006-12-04 14:37:36.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/methods/rred.cc 2007-12-25 03:54:23.000000000 +0000
+@@ -251,7 +251,11 @@
+ return true;
+ }
+
+-int main(int argc, char *argv[])
++int main_(int argc, const char *argv[]);
++int main(int argc, const char *argv[]) {
++_exit(main_(argc, argv));
++}
++int main_(int argc,const char *argv[])
+ {
+ RredMethod Mth;
+
+diff -r -u apt-0.6.46.4/methods/rsh.cc apt-0.6.46.4.1+iPhone/methods/rsh.cc
+--- apt-0.6.46.4/methods/rsh.cc 2006-12-04 14:37:36.000000000 +0000
++++ apt-0.6.46.4.1+iPhone/methods/rsh.cc 2007-12-25 03:54:38.000000000 +0000
+@@ -509,7 +509,11 @@
+ }
+ /*}}}*/
+
+-int main(int argc, const char *argv[])
++int main_(int argc, const char *argv[]);
++int main(int argc, const char *argv[]) {
++_exit(main_(argc, argv));
++}
++int main_(int argc,const char *argv[])
+ {
+ setlocale(LC_ALL, "");
+
diff --git a/data/base/_metadata/description b/data/base/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/base/_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/base/_metadata/license b/data/base/_metadata/license
new file mode 120000
index 000000000..8a4bc1936
--- /dev/null
+++ b/data/base/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/modified-bsd \ No newline at end of file
diff --git a/data/base/_metadata/maintainer b/data/base/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/base/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/base/_metadata/priority b/data/base/_metadata/priority
new file mode 100644
index 000000000..fad9e164a
--- /dev/null
+++ b/data/base/_metadata/priority
@@ -0,0 +1 @@
+required
diff --git a/data/base/_metadata/section b/data/base/_metadata/section
new file mode 100644
index 000000000..df967b96a
--- /dev/null
+++ b/data/base/_metadata/section
@@ -0,0 +1 @@
+base
diff --git a/data/base/_metadata/version b/data/base/_metadata/version
new file mode 100644
index 000000000..d00491fd7
--- /dev/null
+++ b/data/base/_metadata/version
@@ -0,0 +1 @@
+1
diff --git a/data/base/base-1.tgz b/data/base/base-1.tgz
new file mode 100644
index 000000000..3594c315e
--- /dev/null
+++ b/data/base/base-1.tgz
Binary files differ
diff --git a/data/base/make.sh b/data/base/make.sh
new file mode 100644
index 000000000..72290cbb2
--- /dev/null
+++ b/data/base/make.sh
@@ -0,0 +1 @@
+tar -zxvf "${PKG_DATA}/base-1.tgz" -C "${PKG_DEST}"
diff --git a/data/bash/_metadata/description b/data/bash/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/bash/_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/bash/_metadata/license b/data/bash/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/bash/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/bash/_metadata/maintainer b/data/bash/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/bash/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/bash/_metadata/priority b/data/bash/_metadata/priority
new file mode 100644
index 000000000..fad9e164a
--- /dev/null
+++ b/data/bash/_metadata/priority
@@ -0,0 +1 @@
+required
diff --git a/data/bash/_metadata/section b/data/bash/_metadata/section
new file mode 100644
index 000000000..1b96f7b4f
--- /dev/null
+++ b/data/bash/_metadata/section
@@ -0,0 +1 @@
+shell
diff --git a/data/bash/_metadata/version b/data/bash/_metadata/version
new file mode 100644
index 000000000..a3ec5a4bd
--- /dev/null
+++ b/data/bash/_metadata/version
@@ -0,0 +1 @@
+3.2
diff --git a/data/bash/bash-3.2.tar.gz b/data/bash/bash-3.2.tar.gz
new file mode 100644
index 000000000..59f992a1d
--- /dev/null
+++ b/data/bash/bash-3.2.tar.gz
Binary files differ
diff --git a/data/bash/make.sh b/data/bash/make.sh
new file mode 100644
index 000000000..2ac5e0236
--- /dev/null
+++ b/data/bash/make.sh
@@ -0,0 +1,7 @@
+tar -zxvf "${PKG_DATA}/bash-3.2.tar.gz"
+cd bash-3.2
+pkg:configure
+make
+pkg:install
+pkg:bin bash
+ln -s bash "${PKG_DEST}/bin/sh"
diff --git a/data/basic-cmds/_metadata/description b/data/basic-cmds/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/basic-cmds/_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/basic-cmds/_metadata/license b/data/basic-cmds/_metadata/license
new file mode 100644
index 000000000..d92742b42
--- /dev/null
+++ b/data/basic-cmds/_metadata/license
@@ -0,0 +1,143 @@
+mesg.c:
+/*
+ * Copyright (c) 1987, 1993
+ * The Regents of the University of California. All rights reserved.
+ * (c) UNIX System Laboratories, Inc.
+ * All or some portions of this file are derived from material licensed
+ * to the University of California by American Telephone and Telegraph
+ * Co. or Unix System Laboratories, Inc. and are reproduced herein with
+ * the permission of UNIX System Laboratories, Inc.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+uudecode.c:
+/*-
+ * Copyright (c) 1983, 1993
+ * The Regents of the University of California. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+uuencode.c:
+/*-
+ * Copyright (c) 1983, 1993
+ * The Regents of the University of California. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+write.c:
+/*
+ * Copyright (c) 1989, 1993
+ * The Regents of the University of California. All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Jef Poskanzer and Craig Leres of the Lawrence Berkeley Laboratory.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
diff --git a/data/basic-cmds/_metadata/maintainer b/data/basic-cmds/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/basic-cmds/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/basic-cmds/_metadata/priority b/data/basic-cmds/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/basic-cmds/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/basic-cmds/_metadata/section b/data/basic-cmds/_metadata/section
new file mode 100644
index 000000000..2ac05bdde
--- /dev/null
+++ b/data/basic-cmds/_metadata/section
@@ -0,0 +1 @@
+console
diff --git a/data/basic-cmds/_metadata/version b/data/basic-cmds/_metadata/version
new file mode 100644
index 000000000..21e72e8ac
--- /dev/null
+++ b/data/basic-cmds/_metadata/version
@@ -0,0 +1 @@
+48
diff --git a/data/basic-cmds/basic_cmds-48.tar.gz b/data/basic-cmds/basic_cmds-48.tar.gz
new file mode 100644
index 000000000..8913a0934
--- /dev/null
+++ b/data/basic-cmds/basic_cmds-48.tar.gz
Binary files differ
diff --git a/data/basic-cmds/make.sh b/data/basic-cmds/make.sh
new file mode 100644
index 000000000..5c580e3f2
--- /dev/null
+++ b/data/basic-cmds/make.sh
@@ -0,0 +1,6 @@
+tar -zxvf "${PKG_DATA}/basic_cmds-48.tar.gz"
+cd basic_cmds-48
+for bin in mesg write uudecode uuencode; do
+ arm-apple-darwin-gcc -o "${bin}/${bin}" "${bin}"/*.c
+ pkg:usrbin "${bin}/${bin}"
+done
diff --git a/data/berkeleydb/_metadata/description b/data/berkeleydb/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/berkeleydb/_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/berkeleydb/_metadata/license b/data/berkeleydb/_metadata/license
new file mode 100644
index 000000000..8bdd5c9d1
--- /dev/null
+++ b/data/berkeleydb/_metadata/license
@@ -0,0 +1,100 @@
+/*-
+ * $Id: LICENSE,v 12.7 2007/05/17 15:14:46 bostic Exp $
+ */
+
+The following is the license that applies to this copy of the Berkeley DB
+software. For a license to use the Berkeley DB software under conditions
+other than those described here, or to purchase support for this software,
+please contact Oracle at berkeleydb-info_us@oracle.com.
+
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+/*
+ * Copyright (c) 1990,2007 Oracle. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. Redistributions in any form must be accompanied by information on
+ * how to obtain complete source code for the DB software and any
+ * accompanying software that uses the DB software. The source code
+ * must either be included in the distribution or be available for no
+ * more than the cost of distribution plus a nominal fee, and must be
+ * freely redistributable under reasonable conditions. For an
+ * executable file, complete source code means the source code for all
+ * modules it contains. It does not include source code for modules or
+ * files that typically accompany the major components of the operating
+ * system on which the executable file runs.
+ *
+ * THIS SOFTWARE IS PROVIDED BY ORACLE ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
+ * NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL ORACLE BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+/*
+ * Copyright (c) 1990, 1993, 1994, 1995
+ * The Regents of the University of California. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+/*
+ * Copyright (c) 1995, 1996
+ * The President and Fellows of Harvard University. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY HARVARD AND ITS CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL HARVARD OR ITS CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
diff --git a/data/berkeleydb/_metadata/maintainer b/data/berkeleydb/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/berkeleydb/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/berkeleydb/_metadata/priority b/data/berkeleydb/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/berkeleydb/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/berkeleydb/_metadata/section b/data/berkeleydb/_metadata/section
new file mode 100644
index 000000000..aa0d57e89
--- /dev/null
+++ b/data/berkeleydb/_metadata/section
@@ -0,0 +1 @@
+database
diff --git a/data/berkeleydb/_metadata/version b/data/berkeleydb/_metadata/version
new file mode 100644
index 000000000..1529b5150
--- /dev/null
+++ b/data/berkeleydb/_metadata/version
@@ -0,0 +1 @@
+4.6.21
diff --git a/data/berkeleydb/db-4.6.21.tar.gz b/data/berkeleydb/db-4.6.21.tar.gz
new file mode 100644
index 000000000..47287abca
--- /dev/null
+++ b/data/berkeleydb/db-4.6.21.tar.gz
Binary files differ
diff --git a/data/berkeleydb/make.sh b/data/berkeleydb/make.sh
new file mode 100644
index 000000000..b3a332fa9
--- /dev/null
+++ b/data/berkeleydb/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/db-4.6.21.tar.gz"
+cd db-4.6.21/build_unix
+PKG_CONF=../dist/configure pkg:configure --enable-static=no
+make
+pkg:install
diff --git a/data/bind/_metadata/description b/data/bind/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/bind/_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/bind/_metadata/license b/data/bind/_metadata/license
new file mode 100644
index 000000000..48141e718
--- /dev/null
+++ b/data/bind/_metadata/license
@@ -0,0 +1,30 @@
+Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
+Copyright (C) 1996-2003 Internet Software Consortium.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+
+$Id: COPYRIGHT,v 1.9.18.4 2007/08/28 07:19:54 tbox Exp $
+
+Portions Copyright (C) 1996-2001 Nominum, Inc.
+
+Permission to use, copy, modify, and distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/data/bind/_metadata/maintainer b/data/bind/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/bind/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/bind/_metadata/priority b/data/bind/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/bind/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/bind/_metadata/section b/data/bind/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/bind/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/bind/_metadata/version b/data/bind/_metadata/version
new file mode 100644
index 000000000..3c40359d3
--- /dev/null
+++ b/data/bind/_metadata/version
@@ -0,0 +1 @@
+9.4.2
diff --git a/data/bind/bind-9.4.2.tar.gz b/data/bind/bind-9.4.2.tar.gz
new file mode 100644
index 000000000..b625049f8
--- /dev/null
+++ b/data/bind/bind-9.4.2.tar.gz
Binary files differ
diff --git a/data/bind/gen.diff b/data/bind/gen.diff
new file mode 100644
index 000000000..9816fafba
--- /dev/null
+++ b/data/bind/gen.diff
@@ -0,0 +1,12 @@
+diff -r -u bind-9.3.2-P2/lib/dns/Makefile.in bind-9.3.2-P2+iPhone/lib/dns/Makefile.in
+--- bind-9.3.2-P2/lib/dns/Makefile.in 2004-12-09 04:07:15.000000000 +0000
++++ bind-9.3.2-P2+iPhone/lib/dns/Makefile.in 2007-12-28 05:22:22.000000000 +0000
+@@ -156,7 +156,7 @@
+ ./gen -s ${srcdir} > code.h
+
+ gen: gen.c
+- ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o $@ ${srcdir}/gen.c ${LIBS}
++ gcc ${ALL_CFLAGS} ${LDFLAGS} -o $@ ${srcdir}/gen.c ${LIBS}
+
+ rbtdb64.@O@: rbtdb.c
+
diff --git a/data/bind/make.sh b/data/bind/make.sh
new file mode 100644
index 000000000..b8a32fc36
--- /dev/null
+++ b/data/bind/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/bind-9.4.2.tar.gz"
+cd bind-9.4.2
+pkg:configure --enable-shared=yes --enable-static=no --with-randomdev=/dev/random BUILD_CC=gcc
+make
+pkg:install
diff --git a/data/boost/_metadata/description b/data/boost/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/boost/_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/boost/_metadata/license b/data/boost/_metadata/license
new file mode 100644
index 000000000..36b7cd93c
--- /dev/null
+++ b/data/boost/_metadata/license
@@ -0,0 +1,23 @@
+Boost Software License - Version 1.0 - August 17th, 2003
+
+Permission is hereby granted, free of charge, to any person or organization
+obtaining a copy of the software and accompanying documentation covered by
+this license (the "Software") to use, reproduce, display, distribute,
+execute, and transmit the Software, and to prepare derivative works of the
+Software, and to permit third-parties to whom the Software is furnished to
+do so, all subject to the following:
+
+The copyright notices in the Software and this entire statement, including
+the above license grant, this restriction and the following disclaimer,
+must be included in all copies of the Software, in whole or in part, and
+all derivative works of the Software, unless such copies or derivative
+works are solely in the form of machine-executable object code generated by
+a source language processor.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
diff --git a/data/boost/_metadata/maintainer b/data/boost/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/boost/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/boost/_metadata/priority b/data/boost/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/boost/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/boost/_metadata/section b/data/boost/_metadata/section
new file mode 100644
index 000000000..f99e8394e
--- /dev/null
+++ b/data/boost/_metadata/section
@@ -0,0 +1 @@
+platform
diff --git a/data/boost/_metadata/version b/data/boost/_metadata/version
new file mode 100644
index 000000000..a95a46d9f
--- /dev/null
+++ b/data/boost/_metadata/version
@@ -0,0 +1 @@
+1.34.1
diff --git a/data/boost/boost_1_34_1.tar.gz b/data/boost/boost_1_34_1.tar.gz
new file mode 100644
index 000000000..da01fdb6b
--- /dev/null
+++ b/data/boost/boost_1_34_1.tar.gz
Binary files differ
diff --git a/data/boost/make.sh b/data/boost/make.sh
new file mode 100644
index 000000000..75f76d8a4
--- /dev/null
+++ b/data/boost/make.sh
@@ -0,0 +1,14 @@
+shopt -s extglob
+tar -zxvf "${PKG_DATA}/boost_1_34_1.tar.gz"
+cd boost_1_34_1
+pkg:patch
+./configure --prefix=/usr --without-icu --without-libraries=python
+echo 'using darwin ;' >user-config.jam
+make
+make install PREFIX="${PKG_DEST}/usr"
+rm -f "${PKG_DEST}"/usr/lib/*-d?(-+([0-9_])).@(a|dylib)
+for na in "${PKG_DEST}"/usr/lib/*-+([0-9_]).a; do
+ a=${na/-+([0-9_]).a/.a}
+ rm -f "$a"
+ ln -s "$(basename "$na")" "$a"
+done
diff --git a/data/boost/port.diff b/data/boost/port.diff
new file mode 100644
index 000000000..c1747eeb4
--- /dev/null
+++ b/data/boost/port.diff
@@ -0,0 +1,162 @@
+diff -ru boost_1_34_1/boost/test/impl/execution_monitor.ipp boost_1_34_1+iPhone/boost/test/impl/execution_monitor.ipp
+--- boost_1_34_1/boost/test/impl/execution_monitor.ipp 2006-02-22 16:14:45.000000000 +0000
++++ boost_1_34_1+iPhone/boost/test/impl/execution_monitor.ipp 2007-12-29 13:59:38.000000000 +0000
+@@ -85,7 +85,9 @@
+
+ # include <unistd.h>
+ # include <signal.h>
++extern "C" {
+ # include <setjmp.h>
++}
+
+ #else
+
+diff -ru boost_1_34_1/configure boost_1_34_1+iPhone/configure
+--- boost_1_34_1/configure 2007-05-09 22:09:39.000000000 +0000
++++ boost_1_34_1+iPhone/configure 2007-12-29 14:31:08.000000000 +0000
+@@ -339,8 +339,8 @@
+ @cd status && ../\$(BJAM) \$(BJAM_CONFIG) --user-config=../user-config.jam || echo "Some Boost regression tests failed. This is normal for many compilers."
+
+ install: .dummy
+- @echo "\$(BJAM) \$(BJAM_CONFIG) --user-config=user-config.jam --prefix=\$(PREFIX) --exec-prefix=\$(EPREFIX) --libdir=\$(LIBDIR) --includedir=\$(INCLUDEDIR) \$(LIBS) install"
+- @\$(BJAM) \$(BJAM_CONFIG) --user-config=user-config.jam --prefix=\$(PREFIX) --exec-prefix=\$(EPREFIX) --libdir=\$(LIBDIR) --includedir=\$(INCLUDEDIR) \$(LIBS) install || echo "Not all Boost libraries built properly."
++ @echo "\$(BJAM) \$(BJAM_CONFIG) --user-config=user-config.jam --prefix=\$(PREFIX) \$(LIBS) install"
++ @\$(BJAM) \$(BJAM_CONFIG) --user-config=user-config.jam --prefix=\$(PREFIX) \$(LIBS) install || echo "Not all Boost libraries built properly."
+
+ .dummy:
+
+diff -ru boost_1_34_1/libs/serialization/build/Jamfile.v2 boost_1_34_1+iPhone/libs/serialization/build/Jamfile.v2
+--- boost_1_34_1/libs/serialization/build/Jamfile.v2 2006-03-06 08:20:39.000000000 +0000
++++ boost_1_34_1+iPhone/libs/serialization/build/Jamfile.v2 2007-12-29 13:50:00.000000000 +0000
+@@ -60,11 +60,3 @@
+ :
+ : <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1
+ ;
+-
+-lib boost_wserialization
+- : $(WSOURCES).cpp boost_serialization
+- : <toolset>msvc:<cxxflags>/Gy
+- <link>shared:<define>BOOST_WSERIALIZATION_DYN_LINK=1
+- :
+- : <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1
+- ;
+diff -ru boost_1_34_1/tools/build/v2/test/BoostBuild.py boost_1_34_1+iPhone/tools/build/v2/test/BoostBuild.py
+--- boost_1_34_1/tools/build/v2/test/BoostBuild.py 2006-11-10 07:41:29.000000000 +0000
++++ boost_1_34_1+iPhone/tools/build/v2/test/BoostBuild.py 2007-12-29 09:35:11.000000000 +0000
+@@ -43,8 +43,7 @@
+ if toolset in ["gcc"]:
+ suffixes['.lib'] = '.a' # static libs have '.a' suffix with mingw...
+ suffixes['.obj'] = '.o'
+- if os.__dict__.has_key('uname') and os.uname()[0] == 'Darwin':
+- suffixes['.dll'] = '.dylib'
++ suffixes['.dll'] = '.dylib'
+
+ def re_remove(sequence,regex):
+ me = re.compile(regex)
+diff -ru boost_1_34_1/tools/build/v2/tools/darwin.jam boost_1_34_1+iPhone/tools/build/v2/tools/darwin.jam
+--- boost_1_34_1/tools/build/v2/tools/darwin.jam 2007-03-15 04:02:23.000000000 +0000
++++ boost_1_34_1+iPhone/tools/build/v2/tools/darwin.jam 2007-12-29 13:45:29.000000000 +0000
+@@ -31,7 +31,7 @@
+ rule init ( version ? : command * : options * )
+ {
+ local condition = [ common.check-init-parameters darwin : version $(version) ] ;
+- local command = [ common.get-invocation-command darwin : g++ : $(command) ] ;
++ local command = [ common.get-invocation-command darwin : arm-apple-darwin-g++ : $(command) ] ;
+
+ common.handle-options darwin : $(condition) : $(command) : $(options) ;
+
+@@ -42,6 +42,7 @@
+ flags darwin.compile.c++ OPTIONS : -fcoalesce-templates ;
+ }
+
++ #flags darwin.compile.c++ OPTIONS : -v ;
+ gcc.init-link-flags darwin darwin $(condition) ;
+
+ flags darwin.link NEED_STRIP $(condition)/<debug-symbols>off : "" ;
+@@ -86,7 +87,7 @@
+
+ actions link.dll bind LIBRARIES
+ {
+- $(CONFIG_COMMAND) -dynamiclib -L"$(LINKPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) $(FRAMEWORK_PATH) -framework$(_)$(FRAMEWORK:D=:S=) $(OPTIONS) $(USER_OPTIONS)
++ $(CONFIG_COMMAND) -dynamiclib -single_module -L"$(LINKPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) $(FRAMEWORK_PATH) -framework$(_)$(FRAMEWORK:D=:S=) $(OPTIONS) $(USER_OPTIONS)
+ }
+
+ actions piecemeal archive
+diff -ru boost_1_34_1/tools/build/v2/tools/gcc.jam boost_1_34_1+iPhone/tools/build/v2/tools/gcc.jam
+--- boost_1_34_1/tools/build/v2/tools/gcc.jam 2007-06-12 04:47:49.000000000 +0000
++++ boost_1_34_1+iPhone/tools/build/v2/tools/gcc.jam 2007-12-29 09:30:15.000000000 +0000
+@@ -62,7 +62,7 @@
+ {
+ # Information about the gcc command...
+ # The command.
+- local command = [ common.get-invocation-command gcc : g++ : $(command) ] ;
++ local command = [ common.get-invocation-command gcc : arm-apple-darwin-g++ : $(command) ] ;
+ # The root directory of the tool install.
+ local root = [ feature.get-values <root> : $(options) ] ;
+ # The bin directory where to find the command to execute.
+@@ -109,17 +109,7 @@
+ common.handle-options gcc : $(condition) : $(command) : $(options) ;
+
+ local linker = [ feature.get-values <linker-type> : $(options) ] ;
+- if ! $(linker) {
+-
+- if [ os.name ] = OSF
+- {
+- linker = osf ;
+- }
+- else
+- {
+- linker = gnu ;
+- }
+- }
++ linker = darwin ;
+ init-link-flags gcc $(linker) $(condition) ;
+
+
+@@ -310,14 +300,6 @@
+ # to implement and will increase target path length even more.
+ flags gcc.compile OPTIONS <link>shared : -fPIC ;
+ }
+-if [ os.name ] != NT && [ os.name ] != OSF
+-{
+- # OSF does have an option called -soname but it doesn't seem to work as
+- # expected, therefore it has been disabled.
+-
+- HAVE_SONAME = "" ;
+- SONAME_OPTION = -h ;
+-}
+
+
+
+@@ -629,7 +611,7 @@
+ # Differ from 'link' above only by -shared.
+ actions link.dll bind LIBRARIES
+ {
+- "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -Wl,$(RPATH_OPTION:E=-R)$(SPACE)-Wl,"$(RPATH)" "$(.IMPLIB-COMMAND)$(<[1])" -o "$(<[-1])" $(HAVE_SONAME)-Wl,$(SONAME_OPTION)$(SPACE)-Wl,$(<[-1]:D=) -shared $(START-GROUP) "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-ST) -l$(FINDLIBS-SA) $(END-GROUP) $(OPTIONS) $(USER_OPTIONS)
++ "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -Wl,$(RPATH_OPTION:E=-R)$(SPACE)-Wl,"$(RPATH)" "$(.IMPLIB-COMMAND)$(<[1])" -o "$(<[-1])" $(HAVE_SONAME)-Wl,$(SONAME_OPTION)$(SPACE)-Wl,$(<[-1]:D=) -dynamiclib $(START-GROUP) "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-ST) -l$(FINDLIBS-SA) $(END-GROUP) $(OPTIONS) $(USER_OPTIONS)
+ }
+
+ # Set up threading support. It's somewhat contrived, so perform it at the end,
+diff -ru boost_1_34_1/tools/jam/src/jam.c boost_1_34_1+iPhone/tools/jam/src/jam.c
+--- boost_1_34_1/tools/jam/src/jam.c 2005-11-15 05:44:03.000000000 +0000
++++ boost_1_34_1+iPhone/tools/jam/src/jam.c 2007-12-29 09:28:28.000000000 +0000
+@@ -375,7 +375,7 @@
+ list_new(
+ list_new(
+ list_new( L0,
+- newstr( u.sysname ) ),
++ newstr( "Darwin" ) ),
+ newstr( u.nodename ) ),
+ newstr( u.release ) ),
+ newstr( u.version ) ),
+diff -ru boost_1_34_1/tools/jam/src/jam.h boost_1_34_1+iPhone/tools/jam/src/jam.h
+--- boost_1_34_1/tools/jam/src/jam.h 2005-10-16 15:34:27.000000000 +0000
++++ boost_1_34_1+iPhone/tools/jam/src/jam.h 2007-12-29 09:42:21.000000000 +0000
+@@ -556,4 +556,7 @@
+ # define DEBUG_GRAPH ( globs.debug[ 12 ] ) /* debug dependencies */
+ # define DEBUG_FATE ( globs.debug[ 13 ] ) /* show changes to fate in make0() */
+
++# undef OSMINOR
++# define OSMINOR "OS=MACOSX"
++
+ #endif
diff --git a/data/bootstrap-cmds/_metadata/description b/data/bootstrap-cmds/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/bootstrap-cmds/_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/bootstrap-cmds/_metadata/license b/data/bootstrap-cmds/_metadata/license
new file mode 120000
index 000000000..9e5e5e89d
--- /dev/null
+++ b/data/bootstrap-cmds/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/apsl-2.0 \ No newline at end of file
diff --git a/data/bootstrap-cmds/_metadata/maintainer b/data/bootstrap-cmds/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/bootstrap-cmds/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/bootstrap-cmds/_metadata/priority b/data/bootstrap-cmds/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/bootstrap-cmds/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/bootstrap-cmds/_metadata/section b/data/bootstrap-cmds/_metadata/section
new file mode 100644
index 000000000..842ba4a9c
--- /dev/null
+++ b/data/bootstrap-cmds/_metadata/section
@@ -0,0 +1 @@
+toolchain
diff --git a/data/bootstrap-cmds/_metadata/version b/data/bootstrap-cmds/_metadata/version
new file mode 100644
index 000000000..abdfb053e
--- /dev/null
+++ b/data/bootstrap-cmds/_metadata/version
@@ -0,0 +1 @@
+60
diff --git a/data/bootstrap-cmds/arm.diff b/data/bootstrap-cmds/arm.diff
new file mode 100644
index 000000000..365f105f1
--- /dev/null
+++ b/data/bootstrap-cmds/arm.diff
@@ -0,0 +1,12 @@
+diff -ru bootstrap_cmds-60/migcom.tproj/mig_machine.h bootstrap_cmds-60+iPhone/migcom.tproj/mig_machine.h
+--- bootstrap_cmds-60/migcom.tproj/mig_machine.h 2000-01-11 00:36:17.000000000 +0000
++++ bootstrap_cmds-60+iPhone/migcom.tproj/mig_machine.h 2007-12-30 06:00:47.000000000 +0000
+@@ -4,6 +4,8 @@
+ #include "i386/mig_machine.h"
+ #elif defined(__ppc__)
+ #include "ppc/mig_machine.h"
++#elif defined(__arm__)
++#include "arm/mig_machine.h"
+ #else
+ #error Architecture not supported
+ #endif
diff --git a/data/bootstrap-cmds/bootstrap_cmds-60.tar.gz b/data/bootstrap-cmds/bootstrap_cmds-60.tar.gz
new file mode 100644
index 000000000..1061685da
--- /dev/null
+++ b/data/bootstrap-cmds/bootstrap_cmds-60.tar.gz
Binary files differ
diff --git a/data/bootstrap-cmds/make.sh b/data/bootstrap-cmds/make.sh
new file mode 100644
index 000000000..bc6273cd3
--- /dev/null
+++ b/data/bootstrap-cmds/make.sh
@@ -0,0 +1,15 @@
+tar -zxvf "${PKG_DATA}/bootstrap_cmds-60.tar.gz"
+cd bootstrap_cmds-60
+pkg:patch
+cd migcom.tproj
+cat >ident.c <<EOF
+char *MigGenerationDate = "`date`";
+char *MigMoreData = "`whoami`@`hostname`";
+EOF
+cp -a i386 arm
+yacc -d parser.y -o parser.c
+lex lexxer.l
+arm-apple-darwin-gcc -o migcom *.c
+pkg: mkdir -p /usr/bin /usr/libexec
+pkg: cp -a migcom /usr/libexec
+pkg: cp -a mig.sh /usr/bin/mig
diff --git a/data/bzip2/_metadata/description b/data/bzip2/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/bzip2/_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/bzip2/_metadata/license b/data/bzip2/_metadata/license
new file mode 100644
index 000000000..4458e35bb
--- /dev/null
+++ b/data/bzip2/_metadata/license
@@ -0,0 +1,43 @@
+
+--------------------------------------------------------------------------
+
+This program, "bzip2", the associated library "libbzip2", and all
+documentation, are copyright (C) 1996-2006 Julian R Seward. All
+rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+2. The origin of this software must not be misrepresented; you must
+ not claim that you wrote the original software. If you use this
+ software in a product, an acknowledgment in the product
+ documentation would be appreciated but is not required.
+
+3. Altered source versions must be plainly marked as such, and must
+ not be misrepresented as being the original software.
+
+4. The name of the author may not be used to endorse or promote
+ products derived from this software without specific prior written
+ permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Julian Seward, Cambridge, UK.
+jseward@bzip.org
+bzip2/libbzip2 version 1.0.4 of 20 December 2006
+
+--------------------------------------------------------------------------
diff --git a/data/bzip2/_metadata/maintainer b/data/bzip2/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/bzip2/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/bzip2/_metadata/priority b/data/bzip2/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/bzip2/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/bzip2/_metadata/section b/data/bzip2/_metadata/section
new file mode 100644
index 000000000..f1d43c641
--- /dev/null
+++ b/data/bzip2/_metadata/section
@@ -0,0 +1 @@
+archive
diff --git a/data/bzip2/_metadata/version b/data/bzip2/_metadata/version
new file mode 100644
index 000000000..ee90284c2
--- /dev/null
+++ b/data/bzip2/_metadata/version
@@ -0,0 +1 @@
+1.0.4
diff --git a/data/bzip2/bzip2-1.0.4.tar.gz b/data/bzip2/bzip2-1.0.4.tar.gz
new file mode 100644
index 000000000..8c1f3b66a
--- /dev/null
+++ b/data/bzip2/bzip2-1.0.4.tar.gz
Binary files differ
diff --git a/data/bzip2/make.sh b/data/bzip2/make.sh
new file mode 100644
index 000000000..3a1bb44fd
--- /dev/null
+++ b/data/bzip2/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/bzip2-1.0.4.tar.gz"
+cd bzip2-1.0.4
+make bzip2 bzip2recover CC=arm-apple-darwin-gcc
+pkg: mkdir -p /bin
+pkg: cp -a bzip2 bzip2recover /bin
diff --git a/data/classpath/_metadata/description b/data/classpath/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/classpath/_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/classpath/_metadata/license b/data/classpath/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/classpath/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/classpath/_metadata/maintainer b/data/classpath/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/classpath/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/classpath/_metadata/priority b/data/classpath/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/classpath/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/classpath/_metadata/section b/data/classpath/_metadata/section
new file mode 100644
index 000000000..f3d360b1c
--- /dev/null
+++ b/data/classpath/_metadata/section
@@ -0,0 +1 @@
+java
diff --git a/data/classpath/_metadata/version b/data/classpath/_metadata/version
new file mode 100644
index 000000000..483b77194
--- /dev/null
+++ b/data/classpath/_metadata/version
@@ -0,0 +1 @@
+0.96.1
diff --git a/data/classpath/classpath-0.96.1.tar.gz b/data/classpath/classpath-0.96.1.tar.gz
new file mode 100644
index 000000000..12b0e368d
--- /dev/null
+++ b/data/classpath/classpath-0.96.1.tar.gz
Binary files differ
diff --git a/data/classpath/make.sh b/data/classpath/make.sh
new file mode 100644
index 000000000..cdc300e7f
--- /dev/null
+++ b/data/classpath/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/classpath-0.96.1.tar.gz"
+cd classpath-0.96.1
+pkg:configure --disable-examples --disable-gconf-peer --disable-gtk-peer --disable-plugin
+make
+pkg:install
diff --git a/data/coreutils/_metadata/description b/data/coreutils/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/coreutils/_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/coreutils/_metadata/license b/data/coreutils/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/coreutils/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/coreutils/_metadata/maintainer b/data/coreutils/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/coreutils/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/coreutils/_metadata/priority b/data/coreutils/_metadata/priority
new file mode 100644
index 000000000..fad9e164a
--- /dev/null
+++ b/data/coreutils/_metadata/priority
@@ -0,0 +1 @@
+required
diff --git a/data/coreutils/_metadata/section b/data/coreutils/_metadata/section
new file mode 100644
index 000000000..2ac05bdde
--- /dev/null
+++ b/data/coreutils/_metadata/section
@@ -0,0 +1 @@
+console
diff --git a/data/coreutils/_metadata/version b/data/coreutils/_metadata/version
new file mode 100644
index 000000000..12e414129
--- /dev/null
+++ b/data/coreutils/_metadata/version
@@ -0,0 +1 @@
+6.9
diff --git a/data/coreutils/coreutils-6.9.tar.gz b/data/coreutils/coreutils-6.9.tar.gz
new file mode 100644
index 000000000..5cc79b61d
--- /dev/null
+++ b/data/coreutils/coreutils-6.9.tar.gz
Binary files differ
diff --git a/data/coreutils/make.sh b/data/coreutils/make.sh
new file mode 100644
index 000000000..d2caf157b
--- /dev/null
+++ b/data/coreutils/make.sh
@@ -0,0 +1,6 @@
+tar -zxvf "${PKG_DATA}/coreutils-6.9.tar.gz"
+cd coreutils-6.9
+./configure --prefix=/usr --host=arm-apple-darwin
+make
+pkg:install
+pkg:bin cat chgrp chmod chown cp date dd df dir echo false ln ls mkdir mknod mv pwd readlink rm rmdir vdir sleep stty sync touch true uname
diff --git a/data/curl/_metadata/description b/data/curl/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/curl/_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/curl/_metadata/license b/data/curl/_metadata/license
new file mode 100644
index 000000000..12a41cee6
--- /dev/null
+++ b/data/curl/_metadata/license
@@ -0,0 +1,21 @@
+COPYRIGHT AND PERMISSION NOTICE
+
+Copyright (c) 1996 - 2007, Daniel Stenberg, <daniel@haxx.se>.
+
+All rights reserved.
+
+Permission to use, copy, modify, and distribute this software for any purpose
+with or without fee is hereby granted, provided that the above copyright
+notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
+NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
+OR OTHER DEALINGS IN THE SOFTWARE.
+
+Except as contained in this notice, the name of a copyright holder shall not
+be used in advertising or otherwise to promote the sale, use or other dealings
+in this Software without prior written authorization of the copyright holder.
diff --git a/data/curl/_metadata/maintainer b/data/curl/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/curl/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/curl/_metadata/openssl.dep b/data/curl/_metadata/openssl.dep
new file mode 120000
index 000000000..9b58fd56b
--- /dev/null
+++ b/data/curl/_metadata/openssl.dep
@@ -0,0 +1 @@
+../../openssl \ No newline at end of file
diff --git a/data/curl/_metadata/priority b/data/curl/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/curl/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/curl/_metadata/section b/data/curl/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/curl/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/curl/_metadata/version b/data/curl/_metadata/version
new file mode 100644
index 000000000..1f4c47dc0
--- /dev/null
+++ b/data/curl/_metadata/version
@@ -0,0 +1 @@
+7.17.1
diff --git a/data/curl/curl-7.17.1.tar.gz b/data/curl/curl-7.17.1.tar.gz
new file mode 100644
index 000000000..a40636577
--- /dev/null
+++ b/data/curl/curl-7.17.1.tar.gz
Binary files differ
diff --git a/data/curl/make.sh b/data/curl/make.sh
new file mode 100644
index 000000000..c2ab49598
--- /dev/null
+++ b/data/curl/make.sh
@@ -0,0 +1,7 @@
+tar -zxvf "${PKG_DATA}/curl-7.17.1.tar.gz"
+cd curl-7.17.1
+pkg:patch
+autoconf
+pkg:configure --enable-static=no ac_cv_file___dev_urandom_=yes
+make
+pkg:install
diff --git a/data/curl/strerror.diff b/data/curl/strerror.diff
new file mode 100644
index 000000000..961a32d9e
--- /dev/null
+++ b/data/curl/strerror.diff
@@ -0,0 +1,45 @@
+diff -r -u curl-7.17.1/acinclude.m4 curl-7.17.1+iPhone/acinclude.m4
+--- curl-7.17.1/acinclude.m4 2007-10-24 20:08:45.000000000 +0000
++++ curl-7.17.1+iPhone/acinclude.m4 2007-12-28 11:24:03.000000000 +0000
+@@ -1944,41 +1944,8 @@
+ ) dnl with _THREAD_SAFE
+ ]) dnl plain cpp for it
+
+- dnl determine if this strerror_r() is glibc or POSIX
+- AC_MSG_CHECKING([for a glibc strerror_r API])
+- AC_TRY_RUN([
+-#include <string.h>
+-#include <errno.h>
+-int
+-main () {
+- char buffer[1024]; /* big enough to play with */
+- char *string =
+- strerror_r(EACCES, buffer, sizeof(buffer));
+- /* this should've returned a string */
+- if(!string || !string[0])
+- return 99;
+- return 0;
+-}
+-],
+ GLIBC_STRERROR_R="1"
+ AC_DEFINE(HAVE_GLIBC_STRERROR_R, 1, [we have a glibc-style strerror_r()])
+- AC_MSG_RESULT([yes]),
+- AC_MSG_RESULT([no]),
+-
+- dnl Use an inferior method of strerror_r detection while cross-compiling
+- AC_EGREP_CPP(yes, [
+-#include <features.h>
+-#ifdef __GLIBC__
+-yes
+-#endif
+-],
+- dnl looks like glibc, so assume a glibc-style strerror_r()
+- GLIBC_STRERROR_R="1"
+- AC_DEFINE(HAVE_GLIBC_STRERROR_R, 1, [we have a glibc-style strerror_r()])
+- AC_MSG_RESULT([yes]),
+- AC_MSG_NOTICE([cannot determine strerror_r() style: edit lib/config.h manually!])
+- ) dnl while cross-compiling
+- )
+
+ if test -z "$GLIBC_STRERROR_R"; then
+
diff --git a/data/diskdev-cmds/_metadata/description b/data/diskdev-cmds/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/diskdev-cmds/_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/diskdev-cmds/_metadata/libutil.dep b/data/diskdev-cmds/_metadata/libutil.dep
new file mode 120000
index 000000000..828c65dfc
--- /dev/null
+++ b/data/diskdev-cmds/_metadata/libutil.dep
@@ -0,0 +1 @@
+../../libutil \ No newline at end of file
diff --git a/data/diskdev-cmds/_metadata/license b/data/diskdev-cmds/_metadata/license
new file mode 120000
index 000000000..9e5e5e89d
--- /dev/null
+++ b/data/diskdev-cmds/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/apsl-2.0 \ No newline at end of file
diff --git a/data/diskdev-cmds/_metadata/maintainer b/data/diskdev-cmds/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/diskdev-cmds/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/diskdev-cmds/_metadata/priority b/data/diskdev-cmds/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/diskdev-cmds/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/diskdev-cmds/_metadata/section b/data/diskdev-cmds/_metadata/section
new file mode 100644
index 000000000..7fbe952b7
--- /dev/null
+++ b/data/diskdev-cmds/_metadata/section
@@ -0,0 +1 @@
+admin
diff --git a/data/diskdev-cmds/_metadata/version b/data/diskdev-cmds/_metadata/version
new file mode 100644
index 000000000..7b53aa000
--- /dev/null
+++ b/data/diskdev-cmds/_metadata/version
@@ -0,0 +1 @@
+419
diff --git a/data/diskdev-cmds/diskdev_cmds-419.tar.gz b/data/diskdev-cmds/diskdev_cmds-419.tar.gz
new file mode 100644
index 000000000..0ad8555e9
--- /dev/null
+++ b/data/diskdev-cmds/diskdev_cmds-419.tar.gz
Binary files differ
diff --git a/data/diskdev-cmds/make.sh b/data/diskdev-cmds/make.sh
new file mode 100644
index 000000000..469b34568
--- /dev/null
+++ b/data/diskdev-cmds/make.sh
@@ -0,0 +1,20 @@
+shopt -s extglob
+tar -zxvf "${PKG_DATA}/diskdev_cmds-419.tar.gz"
+cd diskdev_cmds-419
+cd disklib
+rm -f mntopts.h getmntopts.c
+arm-apple-darwin-gcc -c *.c
+arm-apple-darwin-ar -r libdisk.a *.o
+cd ..
+for tproj in !(fstyp|dev_mkdb|dump|fsck_hfs|fuser|mount_hfs|restore|quotacheck|ufs).tproj; do
+ tproj=$(basename "${tproj}" .tproj)
+ echo ${tproj}
+ arm-apple-darwin-gcc -Idisklib -o "${tproj}" $(find "${tproj}.tproj" -name '*.c') disklib/libdisk.a -framework IOKit -framework CoreFoundation -lutil
+ pkg:usrbin "${tproj}"
+done
+cd fstyp.tproj
+for c in *.c; do
+ bin=$(basename "${c}" .c)
+ arm-apple-darwin-gcc -o "${bin}" "${c}"
+ pkg:usrbin "${bin}"
+done
diff --git a/data/dpkg/_metadata/description b/data/dpkg/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/dpkg/_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/dpkg/_metadata/license b/data/dpkg/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/dpkg/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/dpkg/_metadata/maintainer b/data/dpkg/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/dpkg/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/dpkg/_metadata/priority b/data/dpkg/_metadata/priority
new file mode 100644
index 000000000..fad9e164a
--- /dev/null
+++ b/data/dpkg/_metadata/priority
@@ -0,0 +1 @@
+required
diff --git a/data/dpkg/_metadata/section b/data/dpkg/_metadata/section
new file mode 100644
index 000000000..7fbe952b7
--- /dev/null
+++ b/data/dpkg/_metadata/section
@@ -0,0 +1 @@
+admin
diff --git a/data/dpkg/_metadata/tar.dep b/data/dpkg/_metadata/tar.dep
new file mode 120000
index 000000000..0eab7f1b6
--- /dev/null
+++ b/data/dpkg/_metadata/tar.dep
@@ -0,0 +1 @@
+../../tar \ No newline at end of file
diff --git a/data/dpkg/_metadata/version b/data/dpkg/_metadata/version
new file mode 100644
index 000000000..e67bd845b
--- /dev/null
+++ b/data/dpkg/_metadata/version
@@ -0,0 +1 @@
+1.13.25
diff --git a/data/dpkg/dpkg_1.13.25.tar.gz b/data/dpkg/dpkg_1.13.25.tar.gz
new file mode 100644
index 000000000..535e9fdbd
--- /dev/null
+++ b/data/dpkg/dpkg_1.13.25.tar.gz
Binary files differ
diff --git a/data/dpkg/make.sh b/data/dpkg/make.sh
new file mode 100644
index 000000000..45da861e8
--- /dev/null
+++ b/data/dpkg/make.sh
@@ -0,0 +1,8 @@
+tar -zxvf "${PKG_DATA}/dpkg_1.13.25.tar.gz"
+cd dpkg-1.13.25
+pkg:patch
+autoconf
+cp -a getopt/obstack.c lib
+pkg:configure --with-admindir=/var/lib/dpkg --without-start-stop-daemon --without-dselect --disable-nls --sysconfdir=/etc --disable-linker-optimisations
+make
+pkg:install
diff --git a/data/dpkg/port.diff b/data/dpkg/port.diff
new file mode 100644
index 000000000..c53516c99
--- /dev/null
+++ b/data/dpkg/port.diff
@@ -0,0 +1,81 @@
+diff -ru dpkg-1.13.25/lib/Makefile.am dpkg-1.13.25+iPhone/lib/Makefile.am
+--- dpkg-1.13.25/lib/Makefile.am 2006-06-21 13:41:12.000000000 +0000
++++ dpkg-1.13.25+iPhone/lib/Makefile.am 2007-12-29 10:00:00.000000000 +0000
+@@ -34,4 +34,5 @@
+ tarfn.c tarfn.h \
+ utils.c \
+ varbuf.c \
+- vercmp.c
++ vercmp.c \
++ obstack.c
+diff -ru dpkg-1.13.25/lib/tarfn.c dpkg-1.13.25+iPhone/lib/tarfn.c
+--- dpkg-1.13.25/lib/tarfn.c 2006-06-21 13:41:12.000000000 +0000
++++ dpkg-1.13.25+iPhone/lib/tarfn.c 2007-12-29 09:51:34.000000000 +0000
+@@ -53,6 +53,13 @@
+ return n;
+ }
+
++int strnlen(const char *s, int size) {
++ for (int i = 0; i != size; ++i)
++ if (s[i] == '\0')
++ return i;
++ return size;
++}
++
+ /* String block to C null-terminated string */
+ char *
+ StoC(const char *s, int size)
+diff -ru dpkg-1.13.25/m4/funcs.m4 dpkg-1.13.25+iPhone/m4/funcs.m4
+--- dpkg-1.13.25/m4/funcs.m4 2006-06-04 15:45:45.000000000 +0000
++++ dpkg-1.13.25+iPhone/m4/funcs.m4 2007-12-29 09:51:34.000000000 +0000
+@@ -3,7 +3,7 @@
+ # Define HAVE_VA_COPY if we have va_copy, fail if they can't be assigned
+ AC_DEFUN([DPKG_FUNC_VA_COPY],
+ [AC_CACHE_CHECK([for va_copy], [dpkg_cv_va_copy],
+-[AC_TRY_RUN(
++[AC_TRY_COMPILE(
+ [#include <stdarg.h>
+ main() {
+ va_list v1, v2;
+diff -ru dpkg-1.13.25/src/help.c dpkg-1.13.25+iPhone/src/help.c
+--- dpkg-1.13.25/src/help.c 2006-06-19 01:22:03.000000000 +0000
++++ dpkg-1.13.25+iPhone/src/help.c 2007-12-29 09:51:34.000000000 +0000
+@@ -69,11 +69,8 @@
+
+ void checkpath(void) {
+ /* Verify that some programs can be found in the PATH. */
+- static const char *const checklist[]= { "ldconfig",
+-#ifdef WITH_START_STOP_DAEMON
+- "start-stop-daemon",
+-#endif
+- "install-info", "update-rc.d", 0
++ static const char *const checklist[]= {
++ "install-info", 0
+ };
+
+ struct stat stab;
+diff -ru dpkg-1.13.25/utils/start-stop-daemon.c dpkg-1.13.25+iPhone/utils/start-stop-daemon.c
+--- dpkg-1.13.25/utils/start-stop-daemon.c 2006-06-21 14:59:36.000000000 +0000
++++ dpkg-1.13.25+iPhone/utils/start-stop-daemon.c 2007-12-29 09:51:34.000000000 +0000
+@@ -32,7 +32,7 @@
+ # define OSOpenBSD
+ #elif defined(hpux)
+ # define OShpux
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || 1
+ # define OSFreeBSD
+ #elif defined(__NetBSD__)
+ # define OSNetBSD
+@@ -928,10 +928,10 @@
+ errx(1, "%s", errbuf);
+ if ((kp = kvm_getprocs(kd, KERN_PROC_PID, pid, &nentries)) == 0)
+ errx(1, "%s", kvm_geterr(kd));
+- if (kp->kp_proc.p_cred )
++ /*if (kp->kp_proc.p_cred )
+ kvm_read(kd, (u_long)&(kp->kp_proc.p_cred->p_ruid),
+ &proc_uid, sizeof(uid_t));
+- else
++ else*/
+ return 0;
+ return (proc_uid == (uid_t)uid);
+ }
diff --git a/data/expat/_metadata/description b/data/expat/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/expat/_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/expat/_metadata/license b/data/expat/_metadata/license
new file mode 100644
index 000000000..dcb450642
--- /dev/null
+++ b/data/expat/_metadata/license
@@ -0,0 +1,22 @@
+Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
+ and Clark Cooper
+Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Expat maintainers.
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/data/expat/_metadata/maintainer b/data/expat/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/expat/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/expat/_metadata/priority b/data/expat/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/expat/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/expat/_metadata/section b/data/expat/_metadata/section
new file mode 100644
index 000000000..a9fe5db96
--- /dev/null
+++ b/data/expat/_metadata/section
@@ -0,0 +1 @@
+xml
diff --git a/data/expat/_metadata/version b/data/expat/_metadata/version
new file mode 100644
index 000000000..38f77a65b
--- /dev/null
+++ b/data/expat/_metadata/version
@@ -0,0 +1 @@
+2.0.1
diff --git a/data/expat/expat-2.0.1.tar.gz b/data/expat/expat-2.0.1.tar.gz
new file mode 100644
index 000000000..f42c713f2
--- /dev/null
+++ b/data/expat/expat-2.0.1.tar.gz
Binary files differ
diff --git a/data/expat/make.sh b/data/expat/make.sh
new file mode 100644
index 000000000..395ac67cb
--- /dev/null
+++ b/data/expat/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/expat-2.0.1.tar.gz"
+cd expat-2.0.1
+pkg:configure
+make
+pkg:install
diff --git a/data/findutils/_metadata/description b/data/findutils/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/findutils/_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/findutils/_metadata/license b/data/findutils/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/findutils/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/findutils/_metadata/maintainer b/data/findutils/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/findutils/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/findutils/_metadata/priority b/data/findutils/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/findutils/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/findutils/_metadata/section b/data/findutils/_metadata/section
new file mode 100644
index 000000000..2ac05bdde
--- /dev/null
+++ b/data/findutils/_metadata/section
@@ -0,0 +1 @@
+console
diff --git a/data/findutils/_metadata/version b/data/findutils/_metadata/version
new file mode 100644
index 000000000..3ea600dc3
--- /dev/null
+++ b/data/findutils/_metadata/version
@@ -0,0 +1 @@
+4.2.31
diff --git a/data/findutils/findutils-4.2.31.tar.gz b/data/findutils/findutils-4.2.31.tar.gz
new file mode 100644
index 000000000..7569326c7
--- /dev/null
+++ b/data/findutils/findutils-4.2.31.tar.gz
Binary files differ
diff --git a/data/findutils/make.sh b/data/findutils/make.sh
new file mode 100644
index 000000000..fcd539415
--- /dev/null
+++ b/data/findutils/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/findutils-4.2.31.tar.gz"
+cd findutils-4.2.31
+pkg:configure
+make
+pkg:install
diff --git a/data/gawk/_metadata/description b/data/gawk/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/gawk/_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/gawk/_metadata/license b/data/gawk/_metadata/license
new file mode 120000
index 000000000..af4224931
--- /dev/null
+++ b/data/gawk/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-3 \ No newline at end of file
diff --git a/data/gawk/_metadata/maintainer b/data/gawk/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/gawk/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/gawk/_metadata/priority b/data/gawk/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/gawk/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/gawk/_metadata/section b/data/gawk/_metadata/section
new file mode 100644
index 000000000..2ac05bdde
--- /dev/null
+++ b/data/gawk/_metadata/section
@@ -0,0 +1 @@
+console
diff --git a/data/gawk/_metadata/version b/data/gawk/_metadata/version
new file mode 100644
index 000000000..9cec7165a
--- /dev/null
+++ b/data/gawk/_metadata/version
@@ -0,0 +1 @@
+3.1.6
diff --git a/data/gawk/dynamic.diff b/data/gawk/dynamic.diff
new file mode 100644
index 000000000..322b9acec
--- /dev/null
+++ b/data/gawk/dynamic.diff
@@ -0,0 +1,19 @@
+diff -r -u gawk-3.1.6/configure.ac gawk-3.1.6+iPhone/configure.ac
+--- gawk-3.1.6/configure.ac 2007-10-22 06:51:06.000000000 +0000
++++ gawk-3.1.6+iPhone/configure.ac 2007-12-27 12:18:29.000000000 +0000
+@@ -285,15 +285,6 @@
+ dnl This is known to be very primitive
+ AC_CHECK_HEADER(dlfcn.h,
+ [AC_DEFINE([DYNAMIC], 1, [dynamic loading is possible])
+- if test "$GCC" = yes
+- then
+- # Add others here as appropriate,
+- # one day use GNU libtool.
+- if uname | $EGREP -i 'linux|freebsd|cygwin' > /dev/null
+- then
+- LDFLAGS="$LDFLAGS -export-dynamic"
+- fi
+- fi
+
+ # Check this separately. Some systems have dlopen
+ # in libc. Notably freebsd and cygwin.
diff --git a/data/gawk/gawk-3.1.6.tar.gz b/data/gawk/gawk-3.1.6.tar.gz
new file mode 100644
index 000000000..36c324543
--- /dev/null
+++ b/data/gawk/gawk-3.1.6.tar.gz
Binary files differ
diff --git a/data/gawk/make.sh b/data/gawk/make.sh
new file mode 100644
index 000000000..ade52a1f8
--- /dev/null
+++ b/data/gawk/make.sh
@@ -0,0 +1,7 @@
+tar -zxvf "${PKG_DATA}/gawk-3.1.6.tar.gz"
+cd gawk-3.1.6
+pkg:patch
+pkg:configure
+make
+pkg:install
+rm -f "${PKG_DEST}"/usr/bin/{pgawk*,gawk-*}
diff --git a/data/grep/_metadata/description b/data/grep/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/grep/_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/grep/_metadata/license b/data/grep/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/grep/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/grep/_metadata/maintainer b/data/grep/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/grep/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/grep/_metadata/priority b/data/grep/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/grep/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/grep/_metadata/section b/data/grep/_metadata/section
new file mode 100644
index 000000000..2ac05bdde
--- /dev/null
+++ b/data/grep/_metadata/section
@@ -0,0 +1 @@
+console
diff --git a/data/grep/_metadata/version b/data/grep/_metadata/version
new file mode 100644
index 000000000..95e3ba819
--- /dev/null
+++ b/data/grep/_metadata/version
@@ -0,0 +1 @@
+2.5
diff --git a/data/grep/destdir.diff b/data/grep/destdir.diff
new file mode 100644
index 000000000..6c28ab173
--- /dev/null
+++ b/data/grep/destdir.diff
@@ -0,0 +1,25 @@
+diff -r -u grep-2.5/src/Makefile.am grep-2.5+iPhone/src/Makefile.am
+--- grep-2.5/src/Makefile.am 2002-03-13 15:20:13.000000000 +0000
++++ grep-2.5+iPhone/src/Makefile.am 2007-12-26 23:59:25.000000000 +0000
+@@ -18,5 +18,5 @@
+ vms_fab.c vms_fab.h
+
+ install-exec-local:
+- @SYMLINK@ @SYMLINKFROM@ $(bindir)/egrep
+- @SYMLINK@ @SYMLINKFROM@ $(bindir)/fgrep
++ @SYMLINK@ @SYMLINKFROM@ $(DESTDIR)$(bindir)/egrep
++ @SYMLINK@ @SYMLINKFROM@ $(DESTDIR)$(bindir)/fgrep
+diff -r -u grep-2.5/src/Makefile.in grep-2.5+iPhone/src/Makefile.in
+--- grep-2.5/src/Makefile.in 2002-03-13 15:23:51.000000000 +0000
++++ grep-2.5+iPhone/src/Makefile.in 2007-12-26 23:59:16.000000000 +0000
+@@ -354,8 +354,8 @@
+
+
+ install-exec-local:
+- @SYMLINK@ @SYMLINKFROM@ $(bindir)/egrep
+- @SYMLINK@ @SYMLINKFROM@ $(bindir)/fgrep
++ @SYMLINK@ @SYMLINKFROM@ $(DESTDIR)$(bindir)/egrep
++ @SYMLINK@ @SYMLINKFROM@ $(DESTDIR)$(bindir)/fgrep
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/data/grep/grep-2.5.tar.gz b/data/grep/grep-2.5.tar.gz
new file mode 100644
index 000000000..7787ac5f6
--- /dev/null
+++ b/data/grep/grep-2.5.tar.gz
Binary files differ
diff --git a/data/grep/make.sh b/data/grep/make.sh
new file mode 100644
index 000000000..6053ef5d6
--- /dev/null
+++ b/data/grep/make.sh
@@ -0,0 +1,7 @@
+tar -zxvf "${PKG_DATA}/grep-2.5.tar.gz"
+cd grep-2.5
+pkg:patch
+pkg:configure --disable-perl-regexp
+make
+pkg:install
+pkg:bin grep
diff --git a/data/gzip/_metadata/description b/data/gzip/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/gzip/_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/gzip/_metadata/license b/data/gzip/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/gzip/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/gzip/_metadata/maintainer b/data/gzip/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/gzip/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/gzip/_metadata/priority b/data/gzip/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/gzip/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/gzip/_metadata/section b/data/gzip/_metadata/section
new file mode 100644
index 000000000..f1d43c641
--- /dev/null
+++ b/data/gzip/_metadata/section
@@ -0,0 +1 @@
+archive
diff --git a/data/gzip/_metadata/version b/data/gzip/_metadata/version
new file mode 100644
index 000000000..90a7f6029
--- /dev/null
+++ b/data/gzip/_metadata/version
@@ -0,0 +1 @@
+1.3.12
diff --git a/data/gzip/gzip-1.3.12.tar.gz b/data/gzip/gzip-1.3.12.tar.gz
new file mode 100644
index 000000000..b5757314e
--- /dev/null
+++ b/data/gzip/gzip-1.3.12.tar.gz
Binary files differ
diff --git a/data/gzip/make.sh b/data/gzip/make.sh
new file mode 100644
index 000000000..c7939fef9
--- /dev/null
+++ b/data/gzip/make.sh
@@ -0,0 +1,6 @@
+tar -zxvf "${PKG_DATA}/gzip-1.3.12.tar.gz"
+cd gzip-1.3.12
+pkg:configure
+make
+pkg:install
+pkg:bin
diff --git a/data/iokittools/IOKitTools-76.tar.gz b/data/iokittools/IOKitTools-76.tar.gz
new file mode 100644
index 000000000..25b29a4f0
--- /dev/null
+++ b/data/iokittools/IOKitTools-76.tar.gz
Binary files differ
diff --git a/data/iokittools/_metadata/description b/data/iokittools/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/iokittools/_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/iokittools/_metadata/license b/data/iokittools/_metadata/license
new file mode 120000
index 000000000..9e5e5e89d
--- /dev/null
+++ b/data/iokittools/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/apsl-2.0 \ No newline at end of file
diff --git a/data/iokittools/_metadata/maintainer b/data/iokittools/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/iokittools/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/iokittools/_metadata/priority b/data/iokittools/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/iokittools/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/iokittools/_metadata/section b/data/iokittools/_metadata/section
new file mode 100644
index 000000000..7fbe952b7
--- /dev/null
+++ b/data/iokittools/_metadata/section
@@ -0,0 +1 @@
+admin
diff --git a/data/iokittools/_metadata/version b/data/iokittools/_metadata/version
new file mode 100644
index 000000000..dd475631b
--- /dev/null
+++ b/data/iokittools/_metadata/version
@@ -0,0 +1 @@
+76
diff --git a/data/iokittools/make.sh b/data/iokittools/make.sh
new file mode 100644
index 000000000..566b36f34
--- /dev/null
+++ b/data/iokittools/make.sh
@@ -0,0 +1,8 @@
+shopt -s extglob
+tar -zxvf "${PKG_DATA}/IOKitTools-76.tar.gz"
+cd IOKitTools-76
+for tproj in *.tproj; do
+ tproj=$(basename "${tproj}" .tproj)
+ arm-apple-darwin-gcc -lcurses -o "${tproj}" "${tproj}.tproj"/*.c -framework CoreFoundation -framework IOKit
+ pkg:usrbin "${tproj}"
+done
diff --git a/data/jamvm/_metadata/classpath.dep b/data/jamvm/_metadata/classpath.dep
new file mode 120000
index 000000000..1c19bc70d
--- /dev/null
+++ b/data/jamvm/_metadata/classpath.dep
@@ -0,0 +1 @@
+../../classpath \ No newline at end of file
diff --git a/data/jamvm/_metadata/description b/data/jamvm/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/jamvm/_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/jamvm/_metadata/license b/data/jamvm/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/jamvm/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/jamvm/_metadata/maintainer b/data/jamvm/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/jamvm/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/jamvm/_metadata/priority b/data/jamvm/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/jamvm/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/jamvm/_metadata/section b/data/jamvm/_metadata/section
new file mode 100644
index 000000000..f3d360b1c
--- /dev/null
+++ b/data/jamvm/_metadata/section
@@ -0,0 +1 @@
+java
diff --git a/data/jamvm/_metadata/version b/data/jamvm/_metadata/version
new file mode 100644
index 000000000..7404b5d17
--- /dev/null
+++ b/data/jamvm/_metadata/version
@@ -0,0 +1 @@
+1.5.1b2
diff --git a/data/jamvm/jamvm-1.5.1b2.tar.gz b/data/jamvm/jamvm-1.5.1b2.tar.gz
new file mode 100644
index 000000000..3be037659
--- /dev/null
+++ b/data/jamvm/jamvm-1.5.1b2.tar.gz
Binary files differ
diff --git a/data/jamvm/make.sh b/data/jamvm/make.sh
new file mode 100644
index 000000000..4c5f930ac
--- /dev/null
+++ b/data/jamvm/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/jamvm-1.5.1b2.tar.gz"
+cd jamvm-1.5.1
+CFLAGS=-O0 pkg:configure --with-classpath-install-dir=/usr
+make
+pkg:install
diff --git a/data/javasqlite/_metadata/description b/data/javasqlite/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/javasqlite/_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/javasqlite/_metadata/license b/data/javasqlite/_metadata/license
new file mode 100644
index 000000000..734b58705
--- /dev/null
+++ b/data/javasqlite/_metadata/license
@@ -0,0 +1,26 @@
+This software is copyrighted by Christian Werner <chw@ch-werner.de> and others.
+The following terms apply to all files associated with the software
+unless explicitly disclaimed in individual files.
+
+The authors hereby grant permission to use, copy, modify, distribute,
+and license this software and its documentation for any purpose, provided
+that existing copyright notices are retained in all copies and that this
+notice is included verbatim in any distributions. No written agreement,
+license, or royalty fee is required for any of the authorized uses.
+Modifications to this software may be copyrighted by their authors
+and need not follow the licensing terms described here, provided that
+the new terms are clearly indicated on the first page of each file where
+they apply.
+
+IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
+FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
+DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
+THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE
+IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
+NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
+MODIFICATIONS.
diff --git a/data/javasqlite/_metadata/maintainer b/data/javasqlite/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/javasqlite/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/javasqlite/_metadata/priority b/data/javasqlite/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/javasqlite/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/javasqlite/_metadata/section b/data/javasqlite/_metadata/section
new file mode 100644
index 000000000..f3d360b1c
--- /dev/null
+++ b/data/javasqlite/_metadata/section
@@ -0,0 +1 @@
+java
diff --git a/data/javasqlite/_metadata/version b/data/javasqlite/_metadata/version
new file mode 100644
index 000000000..c30809d4c
--- /dev/null
+++ b/data/javasqlite/_metadata/version
@@ -0,0 +1 @@
+20071108
diff --git a/data/javasqlite/dylib.diff b/data/javasqlite/dylib.diff
new file mode 100644
index 000000000..b921f9117
--- /dev/null
+++ b/data/javasqlite/dylib.diff
@@ -0,0 +1,15 @@
+diff -ru javasqlite-20071108/configure.in javasqlite-20071108+iPhone/configure.in
+--- javasqlite-20071108/configure.in 2007-10-25 06:29:14.000000000 +0000
++++ javasqlite-20071108+iPhone/configure.in 2007-11-22 05:04:05.000000000 +0000
+@@ -155,6 +155,11 @@
+ SQLITE3_LIB="$i/lib/libsqlite3.la"
+ SQLITE3_LIBDIR="$i/lib"
+ break
++ elif test -r $i/lib/libsqlite3.dylib ; then
++ SQLITE3_INC="$i/include"
++ SQLITE3_LIB="$i/lib/libsqlite3.dylib"
++ SQLITE3_LIBDIR="$i/lib"
++ break;
+ elif test -r $i/lib/libsqlite3.a ; then
+ SQLITE3_INC="$i/include"
+ SQLITE3_LIB="$i/lib/libsqlite3.a"
diff --git a/data/javasqlite/javasqlite-20071108.tar.gz b/data/javasqlite/javasqlite-20071108.tar.gz
new file mode 100644
index 000000000..ffebc0576
--- /dev/null
+++ b/data/javasqlite/javasqlite-20071108.tar.gz
Binary files differ
diff --git a/data/javasqlite/make.sh b/data/javasqlite/make.sh
new file mode 100644
index 000000000..db0ce749e
--- /dev/null
+++ b/data/javasqlite/make.sh
@@ -0,0 +1,7 @@
+tar -zxvf "${PKG_DATA}/javasqlite-20071108.tar.gz"
+cd javasqlite-20071108
+pkg:patch
+autoconf
+pkg:configure --with-sqlite="${PKG_ROOT}/usr" --with-sqlite3="${PKG_ROOT}/usr"
+make
+pkg:install
diff --git a/data/javasqlite/mkconst.diff b/data/javasqlite/mkconst.diff
new file mode 100644
index 000000000..96502c855
--- /dev/null
+++ b/data/javasqlite/mkconst.diff
@@ -0,0 +1,15 @@
+diff -ru javasqlite-20071108/Makefile.in javasqlite-20071108+iPhone/Makefile.in
+--- javasqlite-20071108/Makefile.in 2007-10-25 06:30:12.000000000 +0000
++++ javasqlite-20071108+iPhone/Makefile.in 2007-12-28 12:12:23.000000000 +0000
+@@ -125,9 +125,9 @@
+ -rpath $(NATIVE_LIB_DIR) $(LIBS)
+
+ native/mkconst: native/mkconst.c
+- $(LIBTOOL) $(CC) $(SQLITE_INC) $(SQLITE3_INC) \
++ $(LIBTOOL) gcc $(SQLITE_INC) $(SQLITE3_INC) \
+ -DHAVE_SQLITE2=@HAVE_SQLITE2@ -DHAVE_SQLITE3=@HAVE_SQLITE3@ \
+- -o native/mkconst native/mkconst.c $(LIBS)
++ -o native/mkconst native/mkconst.c
+
+ Makefile: Makefile.in configure config.status
+ ./config.status
diff --git a/data/kext-tools/_metadata/description b/data/kext-tools/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/kext-tools/_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/kext-tools/_metadata/license b/data/kext-tools/_metadata/license
new file mode 120000
index 000000000..9e5e5e89d
--- /dev/null
+++ b/data/kext-tools/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/apsl-2.0 \ No newline at end of file
diff --git a/data/kext-tools/_metadata/maintainer b/data/kext-tools/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/kext-tools/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/kext-tools/_metadata/priority b/data/kext-tools/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/kext-tools/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/kext-tools/_metadata/section b/data/kext-tools/_metadata/section
new file mode 100644
index 000000000..7fbe952b7
--- /dev/null
+++ b/data/kext-tools/_metadata/section
@@ -0,0 +1 @@
+admin
diff --git a/data/kext-tools/_metadata/version b/data/kext-tools/_metadata/version
new file mode 100644
index 000000000..5bc6609e3
--- /dev/null
+++ b/data/kext-tools/_metadata/version
@@ -0,0 +1 @@
+117
diff --git a/data/kext-tools/getiopolicy_np.c b/data/kext-tools/getiopolicy_np.c
new file mode 100644
index 000000000..5a4c842fe
--- /dev/null
+++ b/data/kext-tools/getiopolicy_np.c
@@ -0,0 +1,93 @@
+/*
+ * Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
+ *
+ * @APPLE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this
+ * file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_LICENSE_HEADER_END@
+ */
+#include <errno.h>
+#include <sys/resource.h>
+
+extern int __iopolicysys(int, struct _iopol_param_t *);
+
+int
+getiopolicy_np(int iotype, int scope)
+{
+ int policy, error;
+ struct _iopol_param_t iop_param;
+
+ if (iotype != IOPOL_TYPE_DISK ||
+ (scope != IOPOL_SCOPE_PROCESS && scope != IOPOL_SCOPE_THREAD)) {
+ errno = EINVAL;
+ policy = -1;
+ goto exit;
+ }
+
+ iop_param.iop_scope = scope;
+ iop_param.iop_iotype = iotype;
+ error = syscall(322, IOPOL_CMD_GET, &iop_param);
+ if (error != 0) {
+ errno = error;
+ policy = -1;
+ goto exit;
+ }
+
+ policy = iop_param.iop_policy;
+
+ exit:
+ return policy;
+}
+
+int
+setiopolicy_np(int iotype, int scope, int policy)
+{
+ int error;
+ struct _iopol_param_t iop_param;
+
+ if (iotype != IOPOL_TYPE_DISK ||
+ (scope != IOPOL_SCOPE_PROCESS && scope != IOPOL_SCOPE_THREAD)) {
+ errno = EINVAL;
+ error = -1;
+ goto exit;
+ }
+
+ switch (policy) {
+ case IOPOL_DEFAULT:
+ case IOPOL_NORMAL:
+ case IOPOL_THROTTLE:
+ case IOPOL_PASSIVE:
+ break;
+ default:
+ errno = EINVAL;
+ error = -1;
+ goto exit;
+ }
+
+ iop_param.iop_scope = scope;
+ iop_param.iop_iotype = iotype;
+ iop_param.iop_policy = policy;
+ error = syscall(322, IOPOL_CMD_SET, &iop_param);
+ if (error != 0) {
+ errno = error;
+ error = -1;
+ goto exit;
+ }
+
+ exit:
+ return error;
+}
diff --git a/data/kext-tools/kext_tools-117.tar.gz b/data/kext-tools/kext_tools-117.tar.gz
new file mode 100644
index 000000000..513cb7764
--- /dev/null
+++ b/data/kext-tools/kext_tools-117.tar.gz
Binary files differ
diff --git a/data/kext-tools/make.sh b/data/kext-tools/make.sh
new file mode 100755
index 000000000..5d02653d6
--- /dev/null
+++ b/data/kext-tools/make.sh
@@ -0,0 +1,18 @@
+tar -zxvf "${PKG_DATA}/kext_tools-117.tar.gz"
+cd kext_tools-117
+cp -a "${PKG_DATA}/getiopolicy_np.c" .
+#arm-apple-darwin-gcc -o kextload kextload_main.c -framework CoreFoundation utility.c -framework IOKit getiopolicy_np.c -DPRIVATE
+arm-apple-darwin-gcc -o kextstat kextstat_main.c
+arm-apple-darwin-gcc -o kextfind kextfind_*.c -framework IOKit -framework CoreFoundation QEQuery.c utility.c getiopolicy_np.c -DPRIVATE
+arm-apple-darwin-gcc -I. -o kextunload kextunload_main.c -framework CoreFoundation -framework IOKit utility.c getiopolicy_np.c -DPRIVATE
+arm-apple-darwin-gcc -o kextlibs kextlibs_main.c -framework IOKit -framework CoreFoundation utility.c getiopolicy_np.c -DPRIVATE
+arm-apple-darwin-gcc -o kextsymboltool kextsymboltool.c
+arm-apple-darwin-gcc -o mkextunpack mkextunpack_main.c -framework CoreFoundation compression.c
+#arm-apple-darwin-gcc -o kextd kextd_main.c -framework CoreFoundation -framework IOKit getiopolicy_np.c -DPRIVATE logging.c request.c PTLock.c watchvol.c bootcaches.c utility.c safecalls.c
+#arm-apple-darwin-gcc -o kextcache kextcache_main.c -framework CoreFoundation -framework IOKit utility.c prelink.c mkext_file.c logging.c arch.c bootcaches.c compression.c safecalls.c update_boot.c getiopolicy_np.c -DPRIVATE
+# XXX: these files shouldn't go in /usr/bin
+pkg: mkdir -p /sbin /usr/bin /usr/sbin
+pkg: cp -a kextfind kextlibs kextsymboltool /usr/bin
+#pkg: cp -a kextd /usr/libexec
+pkg: cp -a kextunload /sbin #kextload
+pkg: cp -a mkextunpack kextstat /usr/sbin #kextcache
diff --git a/data/less/_metadata/description b/data/less/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/less/_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/less/_metadata/license b/data/less/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/less/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/less/_metadata/maintainer b/data/less/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/less/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/less/_metadata/priority b/data/less/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/less/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/less/_metadata/section b/data/less/_metadata/section
new file mode 100644
index 000000000..2ac05bdde
--- /dev/null
+++ b/data/less/_metadata/section
@@ -0,0 +1 @@
+console
diff --git a/data/less/_metadata/version b/data/less/_metadata/version
new file mode 100644
index 000000000..1c105f1a6
--- /dev/null
+++ b/data/less/_metadata/version
@@ -0,0 +1 @@
+416
diff --git a/data/less/less-416.tar.gz b/data/less/less-416.tar.gz
new file mode 100644
index 000000000..d3c6f0cb0
--- /dev/null
+++ b/data/less/less-416.tar.gz
Binary files differ
diff --git a/data/less/make.sh b/data/less/make.sh
new file mode 100644
index 000000000..b956d398c
--- /dev/null
+++ b/data/less/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/less-416.tar.gz"
+cd less-416
+pkg:configure
+make
+pkg:install
diff --git a/data/libffi/_metadata/description b/data/libffi/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/libffi/_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/libffi/_metadata/license b/data/libffi/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/libffi/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/libffi/_metadata/maintainer b/data/libffi/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/libffi/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/libffi/_metadata/priority b/data/libffi/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/libffi/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/libffi/_metadata/section b/data/libffi/_metadata/section
new file mode 100644
index 000000000..842ba4a9c
--- /dev/null
+++ b/data/libffi/_metadata/section
@@ -0,0 +1 @@
+toolchain
diff --git a/data/libffi/_metadata/version b/data/libffi/_metadata/version
new file mode 100644
index 000000000..d83f6df35
--- /dev/null
+++ b/data/libffi/_metadata/version
@@ -0,0 +1 @@
+130618
diff --git a/data/libffi/assembler.diff b/data/libffi/assembler.diff
new file mode 100644
index 000000000..a6b6c6c18
--- /dev/null
+++ b/data/libffi/assembler.diff
@@ -0,0 +1,43 @@
+Index: src/arm/sysv.S
+===================================================================
+--- libffi/src/arm/sysv.S (revision 130618)
++++ libffi+iPhone/src/arm/sysv.S (working copy)
+@@ -38,7 +38,7 @@
+ #else
+ #define CNAME(x) x
+ #endif
+-#define ENTRY(x) .globl CNAME(x); .type CNAME(x),%function; CNAME(x):
++#define ENTRY(x) .globl CNAME(x); CNAME(x):
+ #endif
+
+ #ifdef __ELF__
+@@ -219,7 +219,7 @@
+
+ .ffi_call_SYSV_end:
+ UNWIND .fnend
+- .size CNAME(ffi_call_SYSV),.ffi_call_SYSV_end-CNAME(ffi_call_SYSV)
++@ .size CNAME(ffi_call_SYSV),.ffi_call_SYSV_end-CNAME(ffi_call_SYSV)
+
+ /*
+ unsigned int FFI_HIDDEN
+@@ -235,11 +235,11 @@
+ stmfd sp!, {ip, lr}
+ UNWIND .save {r0, lr}
+ add r2, sp, #8
+- .pad #16
++@ .pad #16
+ sub sp, sp, #16
+ str sp, [sp, #8]
+ add r1, sp, #8
+- bl ffi_closure_SYSV_inner
++ bl _ffi_closure_SYSV_inner
+ cmp r0, #FFI_TYPE_INT
+ beq .Lretint
+
+@@ -291,5 +291,5 @@
+
+ .ffi_closure_SYSV_end:
+ UNWIND .fnend
+- .size CNAME(ffi_closure_SYSV),.ffi_closure_SYSV_end-CNAME(ffi_closure_SYSV)
++@ .size CNAME(ffi_closure_SYSV),.ffi_closure_SYSV_end-CNAME(ffi_closure_SYSV)
+
diff --git a/data/libffi/libffi-130618.tgz b/data/libffi/libffi-130618.tgz
new file mode 100644
index 000000000..d1d035c7d
--- /dev/null
+++ b/data/libffi/libffi-130618.tgz
Binary files differ
diff --git a/data/libffi/make.sh b/data/libffi/make.sh
new file mode 100644
index 000000000..04d7f7dc2
--- /dev/null
+++ b/data/libffi/make.sh
@@ -0,0 +1,12 @@
+pkg:extract
+cd gcc/libffi
+pkg:patch
+cd ../..
+mkdir build
+cd build
+PKG_CONF=../gcc/libffi/configure
+pkg:configure --with-sysroot="${PKG_ROOT}"
+make
+pkg:install
+pkg: mv /usr/lib/gcc/arm-apple-darwin/include /usr/
+pkg: rm -rfv /usr/lib/gcc
diff --git a/data/libffi/private.diff b/data/libffi/private.diff
new file mode 100644
index 000000000..cd3ee23a7
--- /dev/null
+++ b/data/libffi/private.diff
@@ -0,0 +1,12 @@
+Index: src/arm/ffi.c
+===================================================================
+--- libffi/src/arm/ffi.c (revision 130618)
++++ libffi+iPhone/src/arm/ffi.c (working copy)
+@@ -199,6 +199,7 @@
+
+ /* This function is jumped to by the trampoline */
+
++__private_extern__
+ unsigned int
+ ffi_closure_SYSV_inner (closure, respp, args)
+ ffi_closure *closure;
diff --git a/data/libpcap/_metadata/description b/data/libpcap/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/libpcap/_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/libpcap/_metadata/license b/data/libpcap/_metadata/license
new file mode 120000
index 000000000..8a4bc1936
--- /dev/null
+++ b/data/libpcap/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/modified-bsd \ No newline at end of file
diff --git a/data/libpcap/_metadata/maintainer b/data/libpcap/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/libpcap/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/libpcap/_metadata/priority b/data/libpcap/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/libpcap/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/libpcap/_metadata/section b/data/libpcap/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/libpcap/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/libpcap/_metadata/version b/data/libpcap/_metadata/version
new file mode 100644
index 000000000..e3e180701
--- /dev/null
+++ b/data/libpcap/_metadata/version
@@ -0,0 +1 @@
+0.9.8
diff --git a/data/libpcap/libpcap-0.9.8.tar.gz b/data/libpcap/libpcap-0.9.8.tar.gz
new file mode 100644
index 000000000..14344a44d
--- /dev/null
+++ b/data/libpcap/libpcap-0.9.8.tar.gz
Binary files differ
diff --git a/data/libpcap/make.sh b/data/libpcap/make.sh
new file mode 100644
index 000000000..8ab25ab77
--- /dev/null
+++ b/data/libpcap/make.sh
@@ -0,0 +1,6 @@
+tar -zxvf "${PKG_DATA}/libpcap-0.9.8.tar.gz"
+cd libpcap-0.9.8
+pkg:configure --with-pcap=bpf
+make
+mkdir -p "${PKG_DEST}/usr/lib"
+make install-shared DESTDIR="${PKG_DEST}"
diff --git a/data/libutil/_metadata/description b/data/libutil/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/libutil/_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/libutil/_metadata/license b/data/libutil/_metadata/license
new file mode 100644
index 000000000..02cb9934f
--- /dev/null
+++ b/data/libutil/_metadata/license
@@ -0,0 +1,238 @@
+_secure_path.c:
+/*-
+ * Based on code copyright (c) 1995,1997 by
+ * Berkeley Software Design, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, is permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice immediately at the beginning of the file, without modification,
+ * this list of conditions, and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. This work was done expressly for inclusion into FreeBSD. Other use
+ * is permitted provided this notation is included.
+ * 4. Absolutely no warranty of function or purpose is made by the authors.
+ * 5. Modifications may be freely made to this file providing the above
+ * conditions are met.
+ */
+
+fparseln.c:
+/*
+ * Copyright (c) 1997 Christos Zoulas. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Christos Zoulas.
+ * 4. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+humanize_number.c:
+/*
+ * Copyright (c) 1997, 1998, 1999, 2002 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
+ * NASA Ames Research Center, by Luke Mewburn and by Tomas Svensson.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the NetBSD
+ * Foundation, Inc. and its contributors.
+ * 4. Neither the name of The NetBSD Foundation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+pidfile.c:
+/*-
+ * Copyright (c) 2005 Pawel Jakub Dawidek <pjd@FreeBSD.org>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+property.c:
+/*
+ *
+ * Simple property list handling code.
+ *
+ * Copyright (c) 1998
+ * Jordan "Perky" Hubbard. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer,
+ * verbatim and that no modifications are made prior to this
+ * point in the file.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR HIS PETS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+realhostname.c:
+/*-
+ * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+trimdomain.c:
+/*-
+ * Copyright (c) 2001 Brian Somers <brian@Awfulhak.org>
+ * Based on original work by Atsushi Murai <amurai@FreeBSD.org>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ */
+
+uucplock.c:
+/*
+ * Copyright (c) 1988, 1993
+ * The Regents of the University of California. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
diff --git a/data/libutil/_metadata/maintainer b/data/libutil/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/libutil/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/libutil/_metadata/priority b/data/libutil/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/libutil/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/libutil/_metadata/section b/data/libutil/_metadata/section
new file mode 100644
index 000000000..7fbe952b7
--- /dev/null
+++ b/data/libutil/_metadata/section
@@ -0,0 +1 @@
+admin
diff --git a/data/libutil/_metadata/version b/data/libutil/_metadata/version
new file mode 100644
index 000000000..b4de39476
--- /dev/null
+++ b/data/libutil/_metadata/version
@@ -0,0 +1 @@
+11
diff --git a/data/libutil/libutil-11.tar.gz b/data/libutil/libutil-11.tar.gz
new file mode 100644
index 000000000..d6cb5a3c3
--- /dev/null
+++ b/data/libutil/libutil-11.tar.gz
Binary files differ
diff --git a/data/libutil/make.sh b/data/libutil/make.sh
new file mode 100644
index 000000000..db247280f
--- /dev/null
+++ b/data/libutil/make.sh
@@ -0,0 +1,4 @@
+tar -zxvf "${PKG_DATA}/libutil-11.tar.gz"
+cd libutil-11
+make CC=arm-apple-darwin-gcc
+make install STRIP=arm-apple-darwin-strip DSTROOT="${PKG_DEST}"
diff --git a/data/links/_metadata/description b/data/links/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/links/_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/links/_metadata/license b/data/links/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/links/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/links/_metadata/maintainer b/data/links/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/links/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/links/_metadata/openssl.dep b/data/links/_metadata/openssl.dep
new file mode 120000
index 000000000..9b58fd56b
--- /dev/null
+++ b/data/links/_metadata/openssl.dep
@@ -0,0 +1 @@
+../../openssl \ No newline at end of file
diff --git a/data/links/_metadata/priority b/data/links/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/links/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/links/_metadata/section b/data/links/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/links/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/links/_metadata/version b/data/links/_metadata/version
new file mode 100644
index 000000000..0338f8d1a
--- /dev/null
+++ b/data/links/_metadata/version
@@ -0,0 +1 @@
+0.99
diff --git a/data/links/links-0.99.tar.gz b/data/links/links-0.99.tar.gz
new file mode 100644
index 000000000..2d25f73d9
--- /dev/null
+++ b/data/links/links-0.99.tar.gz
Binary files differ
diff --git a/data/links/make.sh b/data/links/make.sh
new file mode 100644
index 000000000..9a69a71dd
--- /dev/null
+++ b/data/links/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/links-0.99.tar.gz"
+cd links-0.99
+pkg:configure
+make
+pkg:install
diff --git a/data/make/_metadata/description b/data/make/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/make/_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/make/_metadata/license b/data/make/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/make/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/make/_metadata/maintainer b/data/make/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/make/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/make/_metadata/priority b/data/make/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/make/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/make/_metadata/section b/data/make/_metadata/section
new file mode 100644
index 000000000..842ba4a9c
--- /dev/null
+++ b/data/make/_metadata/section
@@ -0,0 +1 @@
+toolchain
diff --git a/data/make/_metadata/version b/data/make/_metadata/version
new file mode 100644
index 000000000..e004c8779
--- /dev/null
+++ b/data/make/_metadata/version
@@ -0,0 +1 @@
+3.81
diff --git a/data/make/make-3.81.tar.gz b/data/make/make-3.81.tar.gz
new file mode 100644
index 000000000..7395e0527
--- /dev/null
+++ b/data/make/make-3.81.tar.gz
Binary files differ
diff --git a/data/make/make.sh b/data/make/make.sh
new file mode 100644
index 000000000..2e15bb43c
--- /dev/null
+++ b/data/make/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/make-3.81.tar.gz"
+cd make-3.81
+pkg:configure
+make
+pkg:install
diff --git a/data/nano/_metadata/description b/data/nano/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/nano/_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/nano/_metadata/license b/data/nano/_metadata/license
new file mode 120000
index 000000000..af4224931
--- /dev/null
+++ b/data/nano/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-3 \ No newline at end of file
diff --git a/data/nano/_metadata/maintainer b/data/nano/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/nano/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/nano/_metadata/priority b/data/nano/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/nano/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/nano/_metadata/section b/data/nano/_metadata/section
new file mode 100644
index 000000000..85042acd1
--- /dev/null
+++ b/data/nano/_metadata/section
@@ -0,0 +1 @@
+editor
diff --git a/data/nano/_metadata/version b/data/nano/_metadata/version
new file mode 100644
index 000000000..f1547e6d1
--- /dev/null
+++ b/data/nano/_metadata/version
@@ -0,0 +1 @@
+2.0.7
diff --git a/data/nano/make.sh b/data/nano/make.sh
new file mode 100644
index 000000000..4b04980d0
--- /dev/null
+++ b/data/nano/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/nano-2.0.7.tar.gz"
+cd nano-2.0.7
+pkg:configure
+make
+pkg:install
diff --git a/data/nano/nano-2.0.7.tar.gz b/data/nano/nano-2.0.7.tar.gz
new file mode 100644
index 000000000..fd55d0f85
--- /dev/null
+++ b/data/nano/nano-2.0.7.tar.gz
Binary files differ
diff --git a/data/ncftp/_metadata/description b/data/ncftp/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/ncftp/_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/ncftp/_metadata/license b/data/ncftp/_metadata/license
new file mode 100644
index 000000000..c51327ab2
--- /dev/null
+++ b/data/ncftp/_metadata/license
@@ -0,0 +1,136 @@
+ The Clarified Artistic License
+
+ Preamble
+
+The intent of this document is to state the conditions under which a
+Package may be copied, such that the Copyright Holder maintains some
+semblance of artistic control over the development of the package,
+while giving the users of the package the right to use and distribute
+the Package in a more-or-less customary fashion, plus the right to make
+reasonable modifications.
+
+Definitions:
+
+ "Package" refers to the collection of files distributed by the
+ Copyright Holder, and derivatives of that collection of files
+ created through textual modification.
+
+ "Standard Version" refers to such a Package if it has not been
+ modified, or has been modified in accordance with the wishes
+ of the Copyright Holder as specified below.
+
+ "Copyright Holder" is whoever is named in the copyright or
+ copyrights for the package.
+
+ "You" is you, if you're thinking about copying or distributing
+ this Package.
+
+ "Distribution fee" is a fee you charge for providing a copy
+ of this Package to another party.
+
+ "Freely Available" means that no fee is charged for the right to
+ use the item, though there may be fees involved in handling the
+ item. It also means that recipients of the item may redistribute
+ it under the same conditions they received it.
+
+1. You may make and give away verbatim copies of the source form of the
+Standard Version of this Package without restriction, provided that you
+duplicate all of the original copyright notices and associated disclaimers.
+
+2. You may apply bug fixes, portability fixes and other modifications
+derived from the Public Domain, or those made Freely Available, or from
+the Copyright Holder. A Package modified in such a way shall still be
+considered the Standard Version.
+
+3. You may otherwise modify your copy of this Package in any way, provided
+that you insert a prominent notice in each changed file stating how and
+when you changed that file, and provided that you do at least ONE of the
+following:
+
+ a) place your modifications in the Public Domain or otherwise make them
+ Freely Available, such as by posting said modifications to Usenet or an
+ equivalent medium, or placing the modifications on a major network
+ archive site allowing unrestricted access to them, or by allowing the
+ Copyright Holder to include your modifications in the Standard Version
+ of the Package.
+
+ b) use the modified Package only within your corporation or organization.
+
+ c) rename any non-standard executables so the names do not conflict
+ with standard executables, which must also be provided, and provide
+ a separate manual page for each non-standard executable that clearly
+ documents how it differs from the Standard Version.
+
+ d) make other distribution arrangements with the Copyright Holder.
+
+ e) permit and encourage anyone who receives a copy of the modified Package
+ permission to make your modifications Freely Available
+ in some specific way.
+
+
+4. You may distribute the programs of this Package in object code or
+executable form, provided that you do at least ONE of the following:
+
+ a) distribute a Standard Version of the executables and library files,
+ together with instructions (in the manual page or equivalent) on where
+ to get the Standard Version.
+
+ b) accompany the distribution with the machine-readable source of
+ the Package with your modifications.
+
+ c) give non-standard executables non-standard names, and clearly
+ document the differences in manual pages (or equivalent), together
+ with instructions on where to get the Standard Version.
+
+ d) make other distribution arrangements with the Copyright Holder.
+
+ e) offer the machine-readable source of the Package, with your
+ modifications, by mail order.
+
+5. You may charge a distribution fee for any distribution of this Package.
+If you offer support for this Package, you may charge any fee you choose
+for that support. You may not charge a license fee for the right to use
+this Package itself. You may distribute this Package in aggregate with
+other (possibly commercial and possibly nonfree) programs as part of a
+larger (possibly commercial and possibly nonfree) software distribution,
+and charge license fees for other parts of that software distribution,
+provided that you do not advertise this Package as a product of your own.
+If the Package includes an interpreter, You may embed this Package's
+interpreter within an executable of yours (by linking); this shall be
+construed as a mere form of aggregation, provided that the complete
+Standard Version of the interpreter is so embedded.
+
+6. The scripts and library files supplied as input to or produced as
+output from the programs of this Package do not automatically fall
+under the copyright of this Package, but belong to whoever generated
+them, and may be sold commercially, and may be aggregated with this
+Package. If such scripts or library files are aggregated with this
+Package via the so-called "undump" or "unexec" methods of producing a
+binary executable image, then distribution of such an image shall
+neither be construed as a distribution of this Package nor shall it
+fall under the restrictions of Paragraphs 3 and 4, provided that you do
+not represent such an executable image as a Standard Version of this
+Package.
+
+7. C subroutines (or comparably compiled subroutines in other
+languages) supplied by you and linked into this Package in order to
+emulate subroutines and variables of the language defined by this
+Package shall not be considered part of this Package, but are the
+equivalent of input as in Paragraph 6, provided these subroutines do
+not change the language in any way that would cause it to fail the
+regression tests for the language.
+
+8. Aggregation of the Standard Version of the Package with a commercial
+distribution is always permitted provided that the use of this Package
+is embedded; that is, when no overt attempt is made to make this Package's
+interfaces visible to the end user of the commercial distribution.
+Such use shall not be construed as a distribution of this Package.
+
+9. The name of the Copyright Holder may not be used to endorse or promote
+products derived from this software without specific prior written permission.
+
+10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+ The End
diff --git a/data/ncftp/_metadata/maintainer b/data/ncftp/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/ncftp/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/ncftp/_metadata/priority b/data/ncftp/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/ncftp/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/ncftp/_metadata/section b/data/ncftp/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/ncftp/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/ncftp/_metadata/version b/data/ncftp/_metadata/version
new file mode 100644
index 000000000..e4604e3af
--- /dev/null
+++ b/data/ncftp/_metadata/version
@@ -0,0 +1 @@
+3.2.1
diff --git a/data/ncftp/make.sh b/data/ncftp/make.sh
new file mode 100644
index 000000000..6fdffefe7
--- /dev/null
+++ b/data/ncftp/make.sh
@@ -0,0 +1,6 @@
+tar -zxvf "${PKG_DATA}/ncftp-3.2.1-src.tar.gz"
+cd ncftp-3.2.1
+CC=$(which arm-apple-darwin-gcc) ./configure --prefix=/usr
+make
+mkdir -p "${PKG_DEST}/usr/share"
+pkg:install
diff --git a/data/ncftp/ncftp-3.2.1-src.tar.gz b/data/ncftp/ncftp-3.2.1-src.tar.gz
new file mode 100644
index 000000000..c92b29a92
--- /dev/null
+++ b/data/ncftp/ncftp-3.2.1-src.tar.gz
Binary files differ
diff --git a/data/ncurses/_metadata/description b/data/ncurses/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/ncurses/_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/ncurses/_metadata/license b/data/ncurses/_metadata/license
new file mode 100644
index 000000000..f68feb873
--- /dev/null
+++ b/data/ncurses/_metadata/license
@@ -0,0 +1,27 @@
+-------------------------------------------------------------------------------
+-- Copyright (c) 1998-2004,2006 Free Software Foundation, Inc. --
+-- --
+-- Permission is hereby granted, free of charge, to any person obtaining a --
+-- copy of this software and associated documentation files (the --
+-- "Software"), to deal in the Software without restriction, including --
+-- without limitation the rights to use, copy, modify, merge, publish, --
+-- distribute, distribute with modifications, sublicense, and/or sell copies --
+-- of the Software, and to permit persons to whom the Software is furnished --
+-- to do so, subject to the following conditions: --
+-- --
+-- The above copyright notice and this permission notice shall be included --
+-- in all copies or substantial portions of the Software. --
+-- --
+-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
+-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
+-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN --
+-- NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
+-- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
+-- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE --
+-- USE OR OTHER DEALINGS IN THE SOFTWARE. --
+-- --
+-- Except as contained in this notice, the name(s) of the above copyright --
+-- holders shall not be used in advertising or otherwise to promote the --
+-- sale, use or other dealings in this Software without prior written --
+-- authorization. --
+-------------------------------------------------------------------------------
diff --git a/data/ncurses/_metadata/maintainer b/data/ncurses/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/ncurses/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/ncurses/_metadata/priority b/data/ncurses/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/ncurses/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/ncurses/_metadata/section b/data/ncurses/_metadata/section
new file mode 100644
index 000000000..2ac05bdde
--- /dev/null
+++ b/data/ncurses/_metadata/section
@@ -0,0 +1 @@
+console
diff --git a/data/ncurses/_metadata/version b/data/ncurses/_metadata/version
new file mode 100644
index 000000000..2df33d769
--- /dev/null
+++ b/data/ncurses/_metadata/version
@@ -0,0 +1 @@
+5.6
diff --git a/data/ncurses/make.sh b/data/ncurses/make.sh
new file mode 100644
index 000000000..5ad559445
--- /dev/null
+++ b/data/ncurses/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/ncurses-5.6.tar.gz"
+cd ncurses-5.6
+pkg:configure --with-shared --without-normal --without-debug
+make
+pkg:install
diff --git a/data/ncurses/ncurses-5.6.tar.gz b/data/ncurses/ncurses-5.6.tar.gz
new file mode 100644
index 000000000..427a2230e
--- /dev/null
+++ b/data/ncurses/ncurses-5.6.tar.gz
Binary files differ
diff --git a/data/neon/_metadata/description b/data/neon/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/neon/_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/neon/_metadata/expat.dep b/data/neon/_metadata/expat.dep
new file mode 120000
index 000000000..2100fb19e
--- /dev/null
+++ b/data/neon/_metadata/expat.dep
@@ -0,0 +1 @@
+../../expat \ No newline at end of file
diff --git a/data/neon/_metadata/license b/data/neon/_metadata/license
new file mode 120000
index 000000000..a278a1931
--- /dev/null
+++ b/data/neon/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/lgpl-2 \ No newline at end of file
diff --git a/data/neon/_metadata/maintainer b/data/neon/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/neon/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/neon/_metadata/openssl.dep b/data/neon/_metadata/openssl.dep
new file mode 120000
index 000000000..9b58fd56b
--- /dev/null
+++ b/data/neon/_metadata/openssl.dep
@@ -0,0 +1 @@
+../../openssl \ No newline at end of file
diff --git a/data/neon/_metadata/priority b/data/neon/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/neon/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/neon/_metadata/section b/data/neon/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/neon/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/neon/_metadata/version b/data/neon/_metadata/version
new file mode 100644
index 000000000..12a91df0e
--- /dev/null
+++ b/data/neon/_metadata/version
@@ -0,0 +1 @@
+0.26.4
diff --git a/data/neon/make.sh b/data/neon/make.sh
new file mode 100644
index 000000000..4c1fedf53
--- /dev/null
+++ b/data/neon/make.sh
@@ -0,0 +1,8 @@
+tar -zxvf "${PKG_DATA}/neon-0.26.4.tar.gz"
+cd neon-0.26.4
+pkg:patch
+autoconf
+pkg:configure --enable-shared=yes --enable-static=no --with-ssl
+#--with-expat="${PKG_ROOT}/usr/lib/libexpat.la"
+make
+pkg:install
diff --git a/data/neon/neon-0.26.4.tar.gz b/data/neon/neon-0.26.4.tar.gz
new file mode 100644
index 000000000..ca34b96a1
--- /dev/null
+++ b/data/neon/neon-0.26.4.tar.gz
Binary files differ
diff --git a/data/neon/nmedit.diff b/data/neon/nmedit.diff
new file mode 100644
index 000000000..2b2797a7e
--- /dev/null
+++ b/data/neon/nmedit.diff
@@ -0,0 +1,51 @@
+diff -ru neon-0.26.4/aclocal.m4 neon-0.26.4+iPhone/aclocal.m4
+--- neon-0.26.4/aclocal.m4 2007-07-14 20:45:34.000000000 +0000
++++ neon-0.26.4+iPhone/aclocal.m4 2007-12-28 12:48:28.000000000 +0000
+@@ -3087,11 +3087,11 @@
+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
+- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~arm-apple-darwin-nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ else
+- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~arm-apple-darwin-nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ fi
+- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++ _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~arm-apple-darwin-nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ else
+ case $cc_basename in
+ xlc*)
+@@ -3099,8 +3099,8 @@
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~arm-apple-darwin-nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++ _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~arm-apple-darwin-nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ ;;
+ *)
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+@@ -5855,8 +5855,8 @@
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~arm-apple-darwin-nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++ _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~arm-apple-darwin-nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ else
+ case $cc_basename in
+ xlc*)
+@@ -5864,8 +5864,8 @@
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~arm-apple-darwin-nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++ _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~arm-apple-darwin-nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ ;;
+ *)
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
diff --git a/data/netcat/_metadata/description b/data/netcat/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/netcat/_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/netcat/_metadata/license b/data/netcat/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/netcat/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/netcat/_metadata/maintainer b/data/netcat/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/netcat/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/netcat/_metadata/priority b/data/netcat/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/netcat/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/netcat/_metadata/section b/data/netcat/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/netcat/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/netcat/_metadata/version b/data/netcat/_metadata/version
new file mode 100644
index 000000000..39e898a4f
--- /dev/null
+++ b/data/netcat/_metadata/version
@@ -0,0 +1 @@
+0.7.1
diff --git a/data/netcat/make.sh b/data/netcat/make.sh
new file mode 100644
index 000000000..dd680557e
--- /dev/null
+++ b/data/netcat/make.sh
@@ -0,0 +1,6 @@
+tar -zxvf "${PKG_DATA}/netcat-0.7.1.tar.gz"
+cd netcat-0.7.1
+pkg:configure
+make
+pkg:install
+pkg:bin
diff --git a/data/netcat/netcat-0.7.1.tar.gz b/data/netcat/netcat-0.7.1.tar.gz
new file mode 100644
index 000000000..d9ddba836
--- /dev/null
+++ b/data/netcat/netcat-0.7.1.tar.gz
Binary files differ
diff --git a/data/network-cmds/_metadata/description b/data/network-cmds/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/network-cmds/_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/network-cmds/_metadata/license b/data/network-cmds/_metadata/license
new file mode 120000
index 000000000..9e5e5e89d
--- /dev/null
+++ b/data/network-cmds/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/apsl-2.0 \ No newline at end of file
diff --git a/data/network-cmds/_metadata/maintainer b/data/network-cmds/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/network-cmds/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/network-cmds/_metadata/priority b/data/network-cmds/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/network-cmds/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/network-cmds/_metadata/section b/data/network-cmds/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/network-cmds/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/network-cmds/_metadata/version b/data/network-cmds/_metadata/version
new file mode 100644
index 000000000..cd307095a
--- /dev/null
+++ b/data/network-cmds/_metadata/version
@@ -0,0 +1 @@
+306
diff --git a/data/network-cmds/make.sh b/data/network-cmds/make.sh
new file mode 100644
index 000000000..bded00874
--- /dev/null
+++ b/data/network-cmds/make.sh
@@ -0,0 +1,10 @@
+shopt -s extglob
+tar -zxvf "${PKG_DATA}/network_cmds-306.tar.gz"
+cd network_cmds-306
+for tproj in !(natd|spray).tproj; do
+ tproj=$(basename "${tproj}" .tproj)
+ arm-apple-darwin-gcc -o "${tproj}" "${tproj}.tproj"/*.c -DPRIVATE -Dether_ntohost=_old_ether_ntohost
+ pkg:usrbin "${tproj}"
+done
+arm-apple-darwin-gcc -Ialias -o natd natd.tproj/*.c alias/*.c -DPRIVATE
+pkg:usrbin natd
diff --git a/data/network-cmds/network_cmds-306.tar.gz b/data/network-cmds/network_cmds-306.tar.gz
new file mode 100644
index 000000000..a3e30a72a
--- /dev/null
+++ b/data/network-cmds/network_cmds-306.tar.gz
Binary files differ
diff --git a/data/ngrep/_metadata/description b/data/ngrep/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/ngrep/_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/ngrep/_metadata/license b/data/ngrep/_metadata/license
new file mode 100644
index 000000000..426c9c344
--- /dev/null
+++ b/data/ngrep/_metadata/license
@@ -0,0 +1,38 @@
+Copyright (c) 2006 Jordan Ritter. All rights reserved.
+
+Permission is granted to anyone to use this software for any purpose on
+any computer system, and to alter it and redistribute it, subject
+to the following restrictions:
+
+1. The origin of this software must not be misrepresented, either by
+ explicit claim or by omission.
+
+2. Altered versions must be plainly marked as such, and must not be
+ misrepresented as being the original software. Any altered version
+ must clearly and properly represent the origin of this software in
+ any accompanying documentation.
+
+3. All advertising materials which relate specifically to derivate
+ works of this software must display the following acknowledgement:
+ This product includes software developed by Jordan Ritter.
+
+4. The name of the Author may not be used to endorse or promote
+ products derived from this software without specific prior written
+ permission.
+
+5. This notice, and any references to this notice, in any original or
+ derived source distribution of or documentation for this software,
+ may not be removed or altered.
+
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/data/ngrep/_metadata/maintainer b/data/ngrep/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/ngrep/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/ngrep/_metadata/priority b/data/ngrep/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/ngrep/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/ngrep/_metadata/section b/data/ngrep/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/ngrep/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/ngrep/_metadata/version b/data/ngrep/_metadata/version
new file mode 100644
index 000000000..24c87c512
--- /dev/null
+++ b/data/ngrep/_metadata/version
@@ -0,0 +1 @@
+1.45
diff --git a/data/ngrep/host.diff b/data/ngrep/host.diff
new file mode 100644
index 000000000..752dd069a
--- /dev/null
+++ b/data/ngrep/host.diff
@@ -0,0 +1,12 @@
+diff -ur ngrep-1.45/configure.in ngrep-1.45+iPhone/configure.in
+--- ngrep-1.45/configure.in 2006-11-15 03:43:56.000000000 +0000
++++ ngrep-1.45+iPhone/configure.in 2007-12-31 01:29:18.000000000 +0000
+@@ -146,7 +146,7 @@
+
+ fi
+
+-( cd $REGEX_DIR && ./configure )
++( cd $REGEX_DIR && eval ./configure $ac_configure_args )
+
+ AC_SUBST(REGEX_DIR)
+ AC_SUBST(REGEX_OBJS)
diff --git a/data/ngrep/make.sh b/data/ngrep/make.sh
new file mode 100644
index 000000000..53af27b91
--- /dev/null
+++ b/data/ngrep/make.sh
@@ -0,0 +1,10 @@
+tar -jxvf "${PKG_DATA}/ngrep-1.45.tar.bz2"
+cd ngrep-1.45
+pkg:patch
+autoconf
+cd regex-0.12
+autoconf
+cd ..
+pkg:configure "--with-pcap-includes=${PKG_ROOT}/usr/include"
+make
+pkg:install
diff --git a/data/ngrep/ngrep-1.45.tar.bz2 b/data/ngrep/ngrep-1.45.tar.bz2
new file mode 100644
index 000000000..636e9d1d3
--- /dev/null
+++ b/data/ngrep/ngrep-1.45.tar.bz2
Binary files differ
diff --git a/data/nmap/_metadata/description b/data/nmap/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/nmap/_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/nmap/_metadata/libpcap.dep b/data/nmap/_metadata/libpcap.dep
new file mode 120000
index 000000000..6c356a9b8
--- /dev/null
+++ b/data/nmap/_metadata/libpcap.dep
@@ -0,0 +1 @@
+../../libpcap \ No newline at end of file
diff --git a/data/nmap/_metadata/license b/data/nmap/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/nmap/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/nmap/_metadata/maintainer b/data/nmap/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/nmap/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/nmap/_metadata/openssl.dep b/data/nmap/_metadata/openssl.dep
new file mode 120000
index 000000000..9b58fd56b
--- /dev/null
+++ b/data/nmap/_metadata/openssl.dep
@@ -0,0 +1 @@
+../../openssl \ No newline at end of file
diff --git a/data/nmap/_metadata/priority b/data/nmap/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/nmap/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/nmap/_metadata/section b/data/nmap/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/nmap/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/nmap/_metadata/version b/data/nmap/_metadata/version
new file mode 100644
index 000000000..4ba185d41
--- /dev/null
+++ b/data/nmap/_metadata/version
@@ -0,0 +1 @@
+4.50
diff --git a/data/nmap/bsd.diff b/data/nmap/bsd.diff
new file mode 100644
index 000000000..23ab29271
--- /dev/null
+++ b/data/nmap/bsd.diff
@@ -0,0 +1,12 @@
+diff -ru nmap-4.50/libdnet-stripped/configure.in nmap-4.50+iPhone/libdnet-stripped/configure.in
+--- nmap-4.50/libdnet-stripped/configure.in 2007-11-27 06:22:46.000000000 +0000
++++ nmap-4.50+iPhone/libdnet-stripped/configure.in 2007-12-24 19:50:24.000000000 +0000
+@@ -226,7 +226,7 @@
+ elif test "$ac_cv_dnet_bsd_bpf" = yes ; then
+ AC_LIBOBJ([eth-bsd])
+ elif test "$ac_cv_dnet_linux_pf_packet" = yes ; then
+- AC_LIBOBJ([eth-linux])
++ AC_LIBOBJ([eth-bsd])
+ elif test "$ac_cv_header_net_raw_h" = yes ; then
+ AC_LIBOBJ([eth-snoop])
+ elif test "$ac_cv_header_sys_ndd_var_h" = yes ; then
diff --git a/data/nmap/bsd.diff_ b/data/nmap/bsd.diff_
new file mode 100644
index 000000000..69f5cd2e5
--- /dev/null
+++ b/data/nmap/bsd.diff_
@@ -0,0 +1,24 @@
+diff -ru nmap-4.50/libdnet-stripped/configure.in nmap-4.50+iPhone/libdnet-stripped/configure.in
+--- nmap-4.50/libdnet-stripped/configure.in 2007-11-27 06:22:46.000000000 +0000
++++ nmap-4.50+iPhone/libdnet-stripped/configure.in 2007-12-24 19:50:24.000000000 +0000
+@@ -226,7 +226,7 @@
+ elif test "$ac_cv_dnet_bsd_bpf" = yes ; then
+ AC_LIBOBJ([eth-bsd])
+ elif test "$ac_cv_dnet_linux_pf_packet" = yes ; then
+- AC_LIBOBJ([eth-linux])
++ AC_LIBOBJ([eth-bsd])
+ elif test "$ac_cv_header_net_raw_h" = yes ; then
+ AC_LIBOBJ([eth-snoop])
+ elif test "$ac_cv_header_sys_ndd_var_h" = yes ; then
+diff -ru nmap-4.50/libdnet-stripped/src/Makefile.in nmap-4.50+iPhone/libdnet-stripped/src/Makefile.in
+--- nmap-4.50/libdnet-stripped/src/Makefile.in 2007-11-27 06:22:46.000000000 +0000
++++ nmap-4.50+iPhone/libdnet-stripped/src/Makefile.in 2007-12-24 19:50:24.000000000 +0000
+@@ -40,7 +40,7 @@
+ host_triplet = @host@
+ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
+ $(top_srcdir)/Makefile.am.common arp-bsd.c arp-ioctl.c \
+- arp-none.c arp-win32.c err.c eth-bsd.c eth-dlpi.c eth-linux.c \
++ arp-none.c arp-win32.c err.c eth-bsd.c eth-dlpi.c eth-bsd.c \
+ eth-ndd.c eth-none.c eth-pfilt.c eth-snoop.c eth-win32.c \
+ fw-none.c intf-win32.c intf.c ip-cooked.c ip-win32.c ip.c \
+ memcmp.c route-bsd.c route-hpux.c route-linux.c route-none.c \
diff --git a/data/nmap/exit.diff b/data/nmap/exit.diff
new file mode 100644
index 000000000..41a490bce
--- /dev/null
+++ b/data/nmap/exit.diff
@@ -0,0 +1,11 @@
+diff -ru nmap-4.50/nmap.cc nmap-4.50+iPhone/nmap.cc
+--- nmap-4.50/nmap.cc 2007-11-03 01:31:02.000000000 +0000
++++ nmap-4.50+iPhone/nmap.cc 2007-12-24 21:19:34.000000000 +0000
+@@ -1826,6 +1826,7 @@
+
+ nmap_free_mem();
+ }
++ _exit(0);
+ return 0;
+ }
+
diff --git a/data/nmap/libpcap.diff b/data/nmap/libpcap.diff
new file mode 100644
index 000000000..96af35421
--- /dev/null
+++ b/data/nmap/libpcap.diff
@@ -0,0 +1,27 @@
+diff -r -u nmap-4.50/configure.ac nmap-4.50+iPhone/configure.ac
+--- nmap-4.50/configure.ac 2007-11-27 22:18:59.000000000 +0000
++++ nmap-4.50+iPhone/configure.ac 2007-12-28 08:46:40.000000000 +0000
+@@ -306,22 +306,7 @@
+ LIBS_OLD="$LIBS"
+ LIBS="$LIBS -lpcap"
+ AC_MSG_CHECKING(if libpcap version is recent enough)
+- AC_TRY_RUN([
+-#include <stdio.h>
+-extern char pcap_version[];
+-int main() {
+- int major, minor1, minor2;
+- sscanf(pcap_version,"%d.%d.%d", &major, &minor1, &minor2);
+- if (major > 0)
+- exit(0);
+- if (minor1 < 9)
+- exit(1);
+- if (minor2 < 4)
+- exit(1);
+- exit(0);
+-}],
+-[AC_MSG_RESULT(yes); have_libpcap=yes],
+-[AC_MSG_RESULT(no); have_libpcap=no])
++AC_MSG_RESULT(yes); have_libpcap=yes
+ LIBS="$LIBS_OLD"
+ fi
+
diff --git a/data/nmap/make.sh b/data/nmap/make.sh
new file mode 100644
index 000000000..d7434e06c
--- /dev/null
+++ b/data/nmap/make.sh
@@ -0,0 +1,10 @@
+tar -jxvf "${PKG_DATA}/nmap-4.50.tar.bz2"
+cd nmap-4.50
+pkg:patch
+autoconf
+cd libdnet-stripped
+autoconf
+cd ..
+pkg:configure --without-liblua --without-python --without-zenmap
+make
+pkg:install
diff --git a/data/nmap/nmap-4.50.tar.bz2 b/data/nmap/nmap-4.50.tar.bz2
new file mode 100644
index 000000000..0ac163110
--- /dev/null
+++ b/data/nmap/nmap-4.50.tar.bz2
Binary files differ
diff --git a/data/nvi/_metadata/description b/data/nvi/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/nvi/_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/nvi/_metadata/license b/data/nvi/_metadata/license
new file mode 100644
index 000000000..78e8f4a40
--- /dev/null
+++ b/data/nvi/_metadata/license
@@ -0,0 +1,40 @@
+The vi program is freely redistributable. You are welcome to copy, modify
+and share it with others under the conditions listed in this file. If any
+company (not any individual!) finds vi sufficiently useful that you would
+have purchased it, or if any company wishes to redistribute it, contributions
+to the authors would be appreciated.
+
+/*-
+ * Copyright (c) 1991, 1992, 1993, 1994
+ * The Regents of the University of California. All rights reserved.
+ * Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996
+ * Keith Bostic. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
diff --git a/data/nvi/_metadata/maintainer b/data/nvi/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/nvi/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/nvi/_metadata/priority b/data/nvi/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/nvi/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/nvi/_metadata/section b/data/nvi/_metadata/section
new file mode 100644
index 000000000..85042acd1
--- /dev/null
+++ b/data/nvi/_metadata/section
@@ -0,0 +1 @@
+editor
diff --git a/data/nvi/_metadata/version b/data/nvi/_metadata/version
new file mode 100644
index 000000000..17420a571
--- /dev/null
+++ b/data/nvi/_metadata/version
@@ -0,0 +1 @@
+1.79
diff --git a/data/nvi/make.sh b/data/nvi/make.sh
new file mode 100644
index 000000000..5b013df51
--- /dev/null
+++ b/data/nvi/make.sh
@@ -0,0 +1,7 @@
+pkg:extract
+cd nvi-1.79
+pkg:patch
+cd build
+ac_cv_lib_termcap=no vi_cv_sys5_pty=no pkg:configure --disable-curses
+make CC=arm-apple-darwin-gcc
+make install prefix="${PKG_DEST}/usr" strip="$(which arm-apple-darwin-strip)"
diff --git a/data/nvi/nvi-1.79.tar.gz b/data/nvi/nvi-1.79.tar.gz
new file mode 100644
index 000000000..ccb6ac979
--- /dev/null
+++ b/data/nvi/nvi-1.79.tar.gz
Binary files differ
diff --git a/data/nvi/subshell.diff b/data/nvi/subshell.diff
new file mode 100644
index 000000000..71322ab43
--- /dev/null
+++ b/data/nvi/subshell.diff
@@ -0,0 +1,16 @@
+diff -ru nvi-1.79/build/Makefile.in nvi-1.79+iPhone/build/Makefile.in
+--- nvi-1.79/build/Makefile.in 1996-10-23 13:43:38.000000000 +0000
++++ nvi-1.79+iPhone/build/Makefile.in 2008-01-01 05:24:54.000000000 +0000
+@@ -137,12 +137,6 @@
+ $(chmod) $(dmode) $(datadir)/vi/catalog
+ (cd $(srcdir)/catalog && $(cp) $(cat) $(datadir)/vi/catalog && \
+ cd $(datadir)/vi/catalog && $(chmod) $(fmode) *)
+- @echo "Installing Perl scripts: $(datadir)/vi/perl ..."
+- $(mkdir) $(datadir)/vi/perl && $(chmod) $(dmode) $(datadir)/vi/perl
+- [ -f VI.pm ] && $(cp) VI.pm $(datadir)/vi/perl && \
+- cd $(datadir)/vi/perl && $(chmod) $(fmode) VI.pm)
+- (cd $(srcdir)/perl_scripts && $(cp) *.pl $(datadir)/vi/perl && \
+- cd $(datadir)/vi/perl && $(chmod) $(fmode) *.pl)
+ @echo "Installing Tcl scripts: $(datadir)/vi/tcl ..."
+ $(mkdir) $(datadir)/vi/tcl && $(chmod) $(dmode) $(datadir)/vi/tcl
+ (cd $(srcdir)/tcl_scripts && $(cp) *.tcl $(datadir)/vi/tcl && \
diff --git a/data/odcctools/_metadata/description b/data/odcctools/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/odcctools/_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/odcctools/_metadata/license b/data/odcctools/_metadata/license
new file mode 120000
index 000000000..9e5e5e89d
--- /dev/null
+++ b/data/odcctools/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/apsl-2.0 \ No newline at end of file
diff --git a/data/odcctools/_metadata/maintainer b/data/odcctools/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/odcctools/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/odcctools/_metadata/priority b/data/odcctools/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/odcctools/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/odcctools/_metadata/section b/data/odcctools/_metadata/section
new file mode 100644
index 000000000..842ba4a9c
--- /dev/null
+++ b/data/odcctools/_metadata/section
@@ -0,0 +1 @@
+toolchain
diff --git a/data/odcctools/_metadata/version b/data/odcctools/_metadata/version
new file mode 100644
index 000000000..7fba2b437
--- /dev/null
+++ b/data/odcctools/_metadata/version
@@ -0,0 +1 @@
+209
diff --git a/data/odcctools/adrbxj.diff b/data/odcctools/adrbxj.diff
new file mode 100644
index 000000000..4e82a3d19
--- /dev/null
+++ b/data/odcctools/adrbxj.diff
@@ -0,0 +1,176 @@
+diff -ru odcctools/as/arm.c odcctools+iPhone/as/arm.c
+--- odcctools/as/arm.c 2007-09-13 02:31:45.000000000 +0000
++++ odcctools+iPhone/as/arm.c 2007-12-29 08:49:20.000000000 +0000
+@@ -648,6 +648,18 @@
+ fill_reloc_value(buf, (unsigned int)n, 0x00000fff);
+ break;
+
++ case ARM_RELOC_ADR:
++ val -= 4;
++ if (val >= 0)
++ n = 1 << 23;
++ else {
++ n = 1 << 22;
++ val = -val;
++ }
++ n |= generate_shifted_immediate(val, NULL);
++ fill_reloc_value(buf, (unsigned int)n, 0x00c00fff);
++ break;
++
+ case ARM_RELOC_SHIFT_IMM:
+ if (val == 32)
+ val = 0;
+diff -ru odcctools/as/armop.c odcctools+iPhone/as/armop.c
+--- odcctools/as/armop.c 2007-10-16 20:20:35.000000000 +0000
++++ odcctools+iPhone/as/armop.c 2007-12-29 08:49:59.000000000 +0000
+@@ -5,7 +5,7 @@
+
+ #include "army.h"
+
+-int arm_op_count = 5823;
++int arm_op_count = 5863;
+ struct arm_op_info arm_op_info[] = {
+ { "adc", OP_DATA_PROC_3, 0xe0a00000 },
+ { "adcal", OP_DATA_PROC_3, 0xe0a00000 },
+@@ -87,6 +87,46 @@
+ { "addvcs", OP_DATA_PROC_3, 0x70900000 },
+ { "addvs", OP_DATA_PROC_3, 0x60800000 },
+ { "addvss", OP_DATA_PROC_3, 0x60900000 },
++ { "adr", OP_ADR, 0xe0000000 },
++ { "adral", OP_ADR, 0xe0000000 },
++ { "adrals", OP_ADR, 0xe0100000 },
++ { "adrcc", OP_ADR, 0x30000000 },
++ { "adrccs", OP_ADR, 0x30100000 },
++ { "adrcs", OP_ADR, 0x20000000 },
++ { "adrcss", OP_ADR, 0x20100000 },
++ { "adreq", OP_ADR, 0x00000000 },
++ { "adreqs", OP_ADR, 0x00100000 },
++ { "adrge", OP_ADR, 0xa0000000 },
++ { "adrges", OP_ADR, 0xa0100000 },
++ { "adrgt", OP_ADR, 0xc0000000 },
++ { "adrgts", OP_ADR, 0xc0100000 },
++ { "adrhi", OP_ADR, 0x80000000 },
++ { "adrhis", OP_ADR, 0x80100000 },
++ { "adrhs", OP_ADR, 0x20000000 },
++ { "adrhss", OP_ADR, 0x20100000 },
++ { "adrle", OP_ADR, 0xd0000000 },
++ { "adrles", OP_ADR, 0xd0100000 },
++ { "adrlo", OP_ADR, 0x30000000 },
++ { "adrlos", OP_ADR, 0x30100000 },
++ { "adrls", OP_ADR, 0x90000000 },
++ { "adrlss", OP_ADR, 0x90100000 },
++ { "adrlt", OP_ADR, 0xb0000000 },
++ { "adrlts", OP_ADR, 0xb0100000 },
++ { "adrmi", OP_ADR, 0x40000000 },
++ { "adrmis", OP_ADR, 0x40100000 },
++ { "adrne", OP_ADR, 0x10000000 },
++ { "adrnes", OP_ADR, 0x10100000 },
++ { "adrnv", OP_ADR, 0xf0000000 },
++ { "adrnvs", OP_ADR, 0xf0100000 },
++ { "adrpl", OP_ADR, 0x50000000 },
++ { "adrpls", OP_ADR, 0x50100000 },
++ { "adrs", OP_ADR, 0xe0100000 },
++ { "adrul", OP_ADR, 0x30000000 },
++ { "adruls", OP_ADR, 0x30100000 },
++ { "adrvc", OP_ADR, 0x70000000 },
++ { "adrvcs", OP_ADR, 0x70100000 },
++ { "adrvs", OP_ADR, 0x60000000 },
++ { "adrvss", OP_ADR, 0x60100000 },
+ { "and", OP_DATA_PROC_3, 0xe0000000 },
+ { "andal", OP_DATA_PROC_3, 0xe0000000 },
+ { "andals", OP_DATA_PROC_3, 0xe0100000 },
+Only in odcctools+iPhone/as: armop.c.orig
+Only in odcctools+iPhone/as: armop.c.rej
+diff -ru odcctools/as/armop.in odcctools+iPhone/as/armop.in
+--- odcctools/as/armop.in 2007-10-16 20:20:35.000000000 +0000
++++ odcctools+iPhone/as/armop.in 2007-12-29 08:49:20.000000000 +0000
+@@ -27,6 +27,7 @@
+ mov{<cond>}{s} t: OP_DATA_PROC_1 e: 1101 (21)
+ bic{<cond>}{s} t: OP_DATA_PROC_3 e: 1110 (21)
+ mvn{<cond>}{s} t: OP_DATA_PROC_1 e: 1111 (21)
++adr{<cond>}{s} t: OP_ADR e: 0000 (21)
+
+ # Multiply instructions
+ mul{<cond>}{s} t: OP_MUL e: 0000000 (21), 1001 (4)
+@@ -164,6 +165,7 @@
+ # -----------------------------------------------------------------------------
+
+ blx{<cond>} t: OP_BLX e: 0 (0)
++bxj{<cond>} t: OP_BXJ e: 0 (0)
+
+ smla{<x>}{<y>}{<cond>} t: OP_SMLA_XY e: 00010000 (20), 1 (7), 0 (4)
+ smlaw{<y>}{<cond>} t: OP_SMLA_XY e: 00010010 (20), 1 (7), 0 (5), 0 (4)
+diff -ru odcctools/as/army.y odcctools+iPhone/as/army.y
+--- odcctools/as/army.y 2007-10-16 23:11:52.000000000 +0000
++++ odcctools+iPhone/as/army.y 2007-12-29 08:49:20.000000000 +0000
+@@ -31,7 +31,7 @@
+ %token <nval> OPRD_REG
+ %token <ival> OPRD_IMM
+ %token <nval> OP_BRANCH OP_DATA_PROC_1 OP_DATA_PROC_2 OP_DATA_PROC_3 OP_MUL
+-%token <nval> OP_MLA OP_SMLAL OP_CLZ OP_LDR OP_LDRH OP_LDM OP_SWI OP_BKPT
++%token <nval> OP_MLA OP_SMLAL OP_CLZ OP_LDR OP_LDRH OP_LDM OP_SWI OP_BKPT OP_BXJ
+ %token <nval> OP_CPS_EFFECT OP_CPS OP_LDREX OP_MCRR2 OP_PKHBT OP_QADD16 OP_REV
+ %token <nval> OP_RFE OP_SXTAH OP_SEL OP_SETEND OP_SMLAD OP_SMLALD OP_SMMUL
+ %token <nval> OP_SRS OP_SSAT OP_SSAT16 OP_STREX OP_SXTH OP_SWP OP_USAD8 OP_USADA8
+@@ -41,7 +41,7 @@
+ %token <nval> OP_VFP_ST_D OP_VFP_MSR OP_VFP_MRS OP_VFP_MDXR OP_VFP_MRDX
+ %token <nval> OP_VFP_MXR OP_VFP_MRX OP_VFP_FMSTAT OP_VFP_DPX1_S OP_VFP_DPX1_D
+ %token <nval> OP_VFP_FMDRR OP_VFP_FMRRD OP_VFP_FMSRR OP_VFP_FMRRS OP_VFP_DPX_SD
+-%token <nval> OP_VFP_DPX_DS OP_MSR OP_MRS OP_LDC OP_MCR
++%token <nval> OP_VFP_DPX_DS OP_MSR OP_MRS OP_LDC OP_MCR OP_ADR
+ %token <nval> OPRD_LSL_LIKE OPRD_RRX OPRD_IFLAGS OPRD_COPROC OPRD_CR OPRD_REG_S
+ %token <nval> OPRD_REG_D OPRD_REG_VFP_SYS OPRD_ENDIANNESS OPRD_PSR
+ %token <nval> OPRD_COPRO_REG
+@@ -66,6 +66,7 @@
+ %type <nval> vfp_maybe_imm_offset generic_reg vfp_data_proc_inst
+ %type <nval> vfp_store_inst vfp_misc_inst vfp2_inst vfp_imm_offset_with_u_bit
+ %type <nval> vfp_store_am armv3_inst clz_class_inst armv2_inst
++%type <nval> bxj_class_inst
+ %type <nval> load_store_copro_am imm_div_4_with_u_bit mcr_opcode_2
+
+ %%
+@@ -101,6 +102,11 @@
+ { $$ = ($1 | $2 | $4 | (1 << 20)); }
+ | OP_DATA_PROC_3 dest_reg ',' src_reg ',' shifter_operand
+ { $$ = ($1 | $2 | $4 | $6); }
++ | OP_ADR dest_reg ',' expr
++ {
++ register_reloc_type(ARM_RELOC_ADR, 4, 1);
++ $$ = ($1 | $2 | (15 << 16) | (1 << 25));
++ }
+ ;
+
+ load_inst:
+@@ -378,6 +384,7 @@
+
+ armv5_inst:
+ blx_class_inst { $$ = $1; }
++ | bxj_class_inst { $$ = $1; }
+ | smla_xy_class_inst { $$ = $1; }
+ | smlal_xy_class_inst { $$ = $1; }
+ | smul_xy_class_inst { $$ = $1; }
+@@ -389,6 +396,10 @@
+ OP_CLZ OPRD_REG ',' OPRD_REG { $$ = ($1 | ($2 << 12) | $4); }
+ ;
+
++bxj_class_inst:
++ OP_BXJ OPRD_REG { $$ = ($1 | (0x12 << 20) | (0xfff2 << 4) | $2); }
++ ;
++
+ blx_class_inst:
+ OP_BLX branch_am { $$ = ((0x7d << 25) | $2); }
+ | OP_BLX OPRD_REG { $$ = ($1 | (0x12 << 20) | (0xfff3 << 4) | $2); }
+Only in odcctools+iPhone/as: army.y.orig
+diff -ru odcctools/include/mach-o/arm/reloc.h odcctools+iPhone/include/mach-o/arm/reloc.h
+--- odcctools/include/mach-o/arm/reloc.h 2007-09-08 01:05:35.000000000 +0000
++++ odcctools+iPhone/include/mach-o/arm/reloc.h 2007-12-29 08:49:16.000000000 +0000
+@@ -21,7 +21,8 @@
+ ARM_RELOC_PCREL_DATA_IMM12, /* Load and Store Word/Immediate Offset, r15 */
+ ARM_RELOC_SHIFT_IMM12, /* Data-processing operands - Immediate */
+ ARM_RELOC_PCREL_VFP_IMM8_TIMES_4, /* VFP Load and Store Word, r15 */
+- ARM_RELOC_SHIFT_IMM /* immediate shifter operand */
++ ARM_RELOC_SHIFT_IMM, /* immediate shifter operand */
++ ARM_RELOC_ADR /* immediate shifter operand with add/sub */
+ };
+
+ /* Determines whether a reloc can be exported to object files (1) or whether
diff --git a/data/odcctools/archive64.diff b/data/odcctools/archive64.diff
new file mode 100644
index 000000000..48ecb5e1a
--- /dev/null
+++ b/data/odcctools/archive64.diff
@@ -0,0 +1,21 @@
+diff -r -u odcctools/libstuff/ofile.c odcctools+iPhone/libstuff/ofile.c
+--- odcctools/libstuff/ofile.c 2007-09-08 01:05:35.000000000 +0000
++++ odcctools+iPhone/libstuff/ofile.c 2007-12-29 09:01:22.000000000 +0000
+@@ -105,7 +105,7 @@
+ unsigned long module_index);
+
+ #ifndef OTOOL
+-#ifdef ALIGNMENT_CHECKS
++#ifdef ALIGNMENT_CHECKS_ARCHIVE_64_BIT
+ static
+ void
+ temporary_archive_member_warning(
+@@ -128,7 +128,7 @@
+ print("\n");
+ va_end(ap);
+ }
+-#endif /* defined(ALIGNMENT_CHECKS) */
++#endif /* defined(ALIGNMENT_CHECKS_ARCHIVE_64_BIT) */
+ #endif /* !defined(OTOOL) */
+
+ #ifndef OFI
diff --git a/data/odcctools/comm.diff b/data/odcctools/comm.diff
new file mode 100644
index 000000000..93b5d0a54
--- /dev/null
+++ b/data/odcctools/comm.diff
@@ -0,0 +1,35 @@
+Index: as/read.c
+===================================================================
+--- odcctools/as/read.c (revision 206)
++++ odcctools+iPhone/as/read.c (working copy)
+@@ -1698,7 +1700,7 @@
+
+ /*
+ * s_comm() implements the pseudo op:
+- * .comm name , expression
++ * .comm name , expression [ , align_expression ]
+ */
+ static
+ void
+@@ -1710,6 +1712,7 @@
+ char *p;
+ signed_target_addr_t temp;
+ symbolS *symbolP;
++ int align;
+
+ if(*input_line_pointer == '"')
+ name = input_line_pointer + 1;
+@@ -1731,6 +1734,13 @@
+ ignore_rest_of_line();
+ return;
+ }
++ align = 0;
++ if(*input_line_pointer == ','){
++ input_line_pointer++;
++ align = get_absolute_expression();
++ as_warn("Alignment of %u specified on .comm, and we didn't care.", align);
++ }
++
+ *p = 0;
+ symbolP = symbol_find_or_make(name);
+ *p = c;
diff --git a/data/odcctools/ifnc.diff b/data/odcctools/ifnc.diff
new file mode 100644
index 000000000..5d77c5981
--- /dev/null
+++ b/data/odcctools/ifnc.diff
@@ -0,0 +1,225 @@
+Index: as/read.c
+===================================================================
+--- odcctools/as/read.c (revision 206)
++++ odcctools+iPhone/as/read.c (working copy)
+@@ -524,6 +525,7 @@
+ { "rept", s_rept, 0 },
+ { "endr", s_endr, 0 },
+ { "ifc", s_ifc, 0 },
++ { "ifnc", s_ifnc, 0 },
+ { NULL } /* end sentinel */
+ };
+
+@@ -3826,6 +3836,15 @@
+ return(s);
+ }
+
++static int is_identifier_char(char c) {
++ return
++ (c >= 'a' && c <= 'z') ||
++ (c >= 'A' && c <= 'Z') ||
++ (c >= '0' && c <= '9') ||
++ (c == '_' || c == '.') ||
++ (c == '=' || c == '$');
++}
++
+ /*
+ * demand_copy_string()
+ *
+@@ -3855,19 +3874,20 @@
+ obstack_1grow(&notes, c);
+ len++;
+ }
+- /*
+- * This next line is so demand_copy_C_string will return a null
+- * termanated string.
+- */
+- obstack_1grow(&notes, '\0');
+- retval = obstack_finish(&notes);
+ }
+ else{
+- as_bad("Missing string");
+- retval = NULL;
+- ignore_rest_of_line();
++ while (is_identifier_char(*input_line_pointer)) {
++ obstack_1grow(&notes, *input_line_pointer++);
++ len++;
++ }
+ }
++ /*
++ * This next line is so demand_copy_C_string will return a null
++ * termanated string.
++ */
++ obstack_1grow(&notes, '\0');
+ *lenP = len;
++ retval = obstack_finish(&notes);
+ return(retval);
+ }
+
+@@ -3964,6 +3984,36 @@
+ }
+
+ /* iPhone binutils extension: .ifc assembles if the two strings are the same */
++void s_ifnc(int value)
++{
++ char *ptr1, *ptr2;
++ int len1, len2;
++
++ if (if_depth >= MAX_IF_DEPTH)
++ as_fatal("Maximum if nesting level reached");
++ last_states[if_depth++] = the_cond_state;
++ the_cond_state.the_cond = if_cond;
++
++ if (the_cond_state.ignore)
++ totally_ignore_line();
++ else {
++ ptr1 = demand_copy_string(&len1);
++
++ SKIP_WHITESPACE();
++ if (*input_line_pointer != ',')
++ as_bad(".ifnc needs two strings separated by a comma (',')");
++ else
++ input_line_pointer++;
++
++ ptr2 = demand_copy_string(&len2);
++
++ the_cond_state.cond_met = (len1 != len2 || strncmp(ptr1, ptr2, len1));
++ the_cond_state.ignore = !the_cond_state.cond_met;
++ demand_empty_rest_of_line();
++ }
++}
++
++/* iPhone binutils extension: .ifc assembles if the two strings are the same */
+ void s_ifc(int value)
+ {
+ char *ptr1, *ptr2;
+@@ -4381,7 +4431,7 @@
+ * determine which it is. */
+ named_invocation = 0;
+ ptr = input_line_pointer;
+- while (!is_end_of_line(*ptr)) {
++ while (is_identifier_char(*ptr)) {
+ if (*ptr == '=') {
+ named_invocation = 1;
+ break;
+@@ -4391,66 +4441,58 @@
+
+ index = 0;
+
+- while (is_ignorable_ws(*input_line_pointer))
+- input_line_pointer++;
+- ptr = input_line_pointer;
++ SKIP_WHITESPACE();
+
+ /* Ok, now parse each argument. */
+ while (1) {
+- if (is_end_of_line(*input_line_pointer) || *input_line_pointer ==
+- ',' || is_ignorable_ws(*input_line_pointer)) {
+- len = input_line_pointer - ptr;
+- arg_buf = malloc(len + 1);
+- if (len)
+- strncpy(arg_buf, ptr, len);
+- arg_buf[len] = '\0';
++ int length;
++ char *value = demand_copy_string(&length);
+
+-#if 0
+- printf("arg is '%s'\n", arg_buf);
+-#endif
++ if (named_invocation) {
++ if (*input_line_pointer++ != '=') {
++ as_bad("In a named-argument-style macro invocation, "
++ "all of the arguments must be specified in the "
++ "named-argument style, but one or more weren't");
++ break;
++ }
+
+- if (named_invocation) {
+- arg_val_ptr = arg_buf;
+- strsep(&arg_val_ptr, "=");
+- if (arg_val_ptr == NULL) {
+- as_bad("In a named-argument-style macro invocation, "
+- "all of the arguments must be specified in the "
+- "named-argument style, but one or more weren't");
++ /* We've parsed it fine, now just find which argument the
++ * user meant. */
++ which_arg = -1;
++ for (i = 0; i < info->arg_count; i++) {
++ if (!strcmp(value, info->args[i]->name)) {
++ which_arg = i;
+ break;
+ }
++ }
+
+- /* We've parsed it fine, now just find which argument the
+- * user meant. */
+- which_arg = -1;
+- for (i = 0; i < info->arg_count; i++) {
+- if (!strcmp(arg_buf, info->args[i]->name)) {
+- which_arg = i;
+- break;
+- }
+- }
++ if (which_arg == -1) {
++ as_bad("'%s' doesn't name an argument of the macro "
++ "'%s'", arg_buf, info->name);
++ break;
++ }
+
+- if (which_arg == -1) {
+- as_bad("'%s' doesn't name an argument of the macro "
+- "'%s'", arg_buf, info->name);
+- break;
+- }
++ arguments[which_arg] = demand_copy_string(&length);
++ } else {
++ /* If not a named invocation, it's simple. */
++ arguments[index++] = value;
++ }
+
+- arguments[which_arg] = arg_val_ptr;
+- } else {
+- /* If not a named invocation, it's simple. */
+- arguments[index++] = arg_buf;
+- }
++ if (*input_line_pointer == ',') {
++ ++input_line_pointer;
++ SKIP_WHITESPACE();
++ continue;
++ } else if (
++ !is_end_of_line(*input_line_pointer) &&
++ !is_ignorable_ws(*input_line_pointer)
++ ) {
++ as_bad("invalid macro expansion argument character (%c)", *input_line_pointer);
++ }
+
+- if (*input_line_pointer == ',' || is_ignorable_ws(
+- *input_line_pointer)) {
+- input_line_pointer++;
+- while (is_ignorable_ws(*input_line_pointer))
+- input_line_pointer++;
+- ptr = input_line_pointer;
+- } else /* must be end of line */
+- break;
+- } else
+- input_line_pointer++;
++ SKIP_WHITESPACE();
++
++ if (is_end_of_line(*input_line_pointer))
++ break;
+ }
+
+ nargs = info->arg_count;
+Index: as/read.h
+===================================================================
+--- odcctools/as/read.h (revision 206)
++++ odcctools+iPhone/as/read.h (working copy)
+@@ -110,6 +110,8 @@
+ int value);
+ extern void s_endr(
+ int value);
++extern void s_ifnc(
++ int value);
+ extern void s_ifc(
+ int value);
+ extern void big_cons(
diff --git a/data/odcctools/make.sh b/data/odcctools/make.sh
new file mode 100644
index 000000000..ab01d270f
--- /dev/null
+++ b/data/odcctools/make.sh
@@ -0,0 +1,8 @@
+tar -zxvf "${PKG_DATA}/odcctools-209.tgz"
+cd odcctools
+rm -f include/mach/machine/{boolean,exception,kern_return,processor_info,thread_state,thread_status,vm_param,vm_types}.h
+rm -f include/mach/{task,thread_act,thread_status}.h include/mach/machine/rpc.h
+pkg:patch
+pkg:configure
+make
+pkg:install
diff --git a/data/odcctools/odcctools-209.tgz b/data/odcctools/odcctools-209.tgz
new file mode 100644
index 000000000..05de50e94
--- /dev/null
+++ b/data/odcctools/odcctools-209.tgz
Binary files differ
diff --git a/data/odcctools/word.diff b/data/odcctools/word.diff
new file mode 100644
index 000000000..9b588b21e
--- /dev/null
+++ b/data/odcctools/word.diff
@@ -0,0 +1,12 @@
+Index: as/read.c
+===================================================================
+--- odcctools/as/read.c (revision 206)
++++ odcctools+iPhone/as/read.c (working copy)
+@@ -488,6 +488,7 @@
+ { "lcomm", s_lcomm, 0 },
+ { "line", s_line, 0 },
+ { "long", cons, 4 },
++ { "word", cons, 4 },
+ { "quad", cons, 8 },
+ { "lsym", s_lsym, 0 },
+ { "section", s_section, 0 },
diff --git a/data/openssl/_metadata/description b/data/openssl/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/openssl/_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/openssl/_metadata/license b/data/openssl/_metadata/license
new file mode 100644
index 000000000..ff99d9724
--- /dev/null
+++ b/data/openssl/_metadata/license
@@ -0,0 +1,127 @@
+
+ LICENSE ISSUES
+ ==============
+
+ The OpenSSL toolkit stays under a dual license, i.e. both the conditions of
+ the OpenSSL License and the original SSLeay license apply to the toolkit.
+ See below for the actual license texts. Actually both licenses are BSD-style
+ Open Source licenses. In case of any license issues related to OpenSSL
+ please contact openssl-core@openssl.org.
+
+ OpenSSL License
+ ---------------
+
+/* ====================================================================
+ * Copyright (c) 1998-2007 The OpenSSL Project. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. All advertising materials mentioning features or use of this
+ * software must display the following acknowledgment:
+ * "This product includes software developed by the OpenSSL Project
+ * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
+ *
+ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
+ * endorse or promote products derived from this software without
+ * prior written permission. For written permission, please contact
+ * openssl-core@openssl.org.
+ *
+ * 5. Products derived from this software may not be called "OpenSSL"
+ * nor may "OpenSSL" appear in their names without prior written
+ * permission of the OpenSSL Project.
+ *
+ * 6. Redistributions of any form whatsoever must retain the following
+ * acknowledgment:
+ * "This product includes software developed by the OpenSSL Project
+ * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This product includes cryptographic software written by Eric Young
+ * (eay@cryptsoft.com). This product includes software written by Tim
+ * Hudson (tjh@cryptsoft.com).
+ *
+ */
+
+ Original SSLeay License
+ -----------------------
+
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
+ * All rights reserved.
+ *
+ * This package is an SSL implementation written
+ * by Eric Young (eay@cryptsoft.com).
+ * The implementation was written so as to conform with Netscapes SSL.
+ *
+ * This library is free for commercial and non-commercial use as long as
+ * the following conditions are aheared to. The following conditions
+ * apply to all code found in this distribution, be it the RC4, RSA,
+ * lhash, DES, etc., code; not just the SSL code. The SSL documentation
+ * included with this distribution is covered by the same copyright terms
+ * except that the holder is Tim Hudson (tjh@cryptsoft.com).
+ *
+ * Copyright remains Eric Young's, and as such any Copyright notices in
+ * the code are not to be removed.
+ * If this package is used in a product, Eric Young should be given attribution
+ * as the author of the parts of the library used.
+ * This can be in the form of a textual message at program startup or
+ * in documentation (online or textual) provided with the package.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * "This product includes cryptographic software written by
+ * Eric Young (eay@cryptsoft.com)"
+ * The word 'cryptographic' can be left out if the rouines from the library
+ * being used are not cryptographic related :-).
+ * 4. If you include any Windows specific code (or a derivative thereof) from
+ * the apps directory (application code) you must include an acknowledgement:
+ * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
+ *
+ * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * The licence and distribution terms for any publically available version or
+ * derivative of this code cannot be changed. i.e. this code cannot simply be
+ * copied and put under another distribution licence
+ * [including the GNU Public Licence.]
+ */
+
diff --git a/data/openssl/_metadata/maintainer b/data/openssl/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/openssl/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/openssl/_metadata/priority b/data/openssl/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/openssl/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/openssl/_metadata/section b/data/openssl/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/openssl/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/openssl/_metadata/version b/data/openssl/_metadata/version
new file mode 100644
index 000000000..c58f8bc67
--- /dev/null
+++ b/data/openssl/_metadata/version
@@ -0,0 +1 @@
+0.9.8g
diff --git a/data/openssl/armnm.diff b/data/openssl/armnm.diff
new file mode 100644
index 000000000..d6fed48e6
--- /dev/null
+++ b/data/openssl/armnm.diff
@@ -0,0 +1,12 @@
+diff -ru openssl-0.9.8g/Makefile.shared openssl-0.9.8g+iPhone/Makefile.shared
+--- openssl-0.9.8g/Makefile.shared 2007-09-16 14:11:51.000000000 +0000
++++ openssl-0.9.8g+iPhone/Makefile.shared 2007-12-30 04:20:19.000000000 +0000
+@@ -101,7 +101,7 @@
+ LIBDEPS="$${LIBDEPS:-$(LIBDEPS)}"; \
+ SHAREDCMD="$${SHAREDCMD:-$(CC)}"; \
+ SHAREDFLAGS="$${SHAREDFLAGS:-$(CFLAGS) $(SHARED_LDFLAGS)}"; \
+- nm -Pg $$SHOBJECTS | grep ' [BDT] ' | cut -f1 -d' ' > lib$(LIBNAME).exp; \
++ arm-apple-darwin-nm -Pg $$SHOBJECTS | grep ' [BDT] ' | cut -f1 -d' ' > lib$(LIBNAME).exp; \
+ LIBPATH=`for x in $$LIBDEPS; do if echo $$x | grep '^ *-L' > /dev/null 2>&1; then echo $$x | sed -e 's/^ *-L//'; fi; done | uniq`; \
+ LIBPATH=`echo $$LIBPATH | sed -e 's/ /:/g'`; \
+ LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \
diff --git a/data/openssl/darwin.diff b/data/openssl/darwin.diff
new file mode 100644
index 000000000..fc65cf9e7
--- /dev/null
+++ b/data/openssl/darwin.diff
@@ -0,0 +1,11 @@
+diff -ru openssl-0.9.8g/Configure openssl-0.9.8g+iPhone/Configure
+--- openssl-0.9.8g/Configure 2007-09-16 12:24:17.000000000 +0000
++++ openssl-0.9.8g+iPhone/Configure 2007-12-30 04:04:20.000000000 +0000
+@@ -501,6 +501,7 @@
+ "rhapsody-ppc-cc","cc:-O3 -DB_ENDIAN::(unknown):MACOSX_RHAPSODY::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}::",
+ "darwin-ppc-cc","cc:-arch ppc -O3 -DB_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::osx_ppc32.o::::::::::dlfcn:darwin-shared:-fPIC -fno-common:-arch ppc -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
+ "darwin64-ppc-cc","cc:-arch ppc64 -O3 -DB_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:ppccpuid_osx64.o:osx_ppc64.o osx_ppc64-mont.o:::::sha1-ppc_osx64.o sha256-ppc_osx64.o sha512-ppc_osx64.o:::::::dlfcn:darwin-shared:-fPIC -fno-common:-arch ppc64 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
++"darwin-arm-gcc","arm-apple-darwin-gcc:-arch arm -O3 -fomit-frame-pointer -fno-common::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}:dlfcn:darwin-shared:-fPIC -fno-common:-arch arm -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib:arm-apple-darwin-ranlib",
+ "darwin-i386-cc","cc:-arch i386 -O3 -fomit-frame-pointer -fno-common::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}:dlfcn:darwin-shared:-fPIC -fno-common:-arch i386 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
+ "darwin64-x86_64-cc","cc:-arch x86_64 -O3 -fomit-frame-pointer -DL_ENDIAN -DMD32_REG_T=int -Wall::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK BF_PTR2 DES_INT DES_UNROLL:${no_asm}:dlfcn:darwin-shared:-fPIC -fno-common:-arch x86_64 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
+ "debug-darwin-ppc-cc","cc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DB_ENDIAN -g -Wall -O::-D_REENTRANT:MACOSX::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::osx_ppc32.o::::::::::dlfcn:darwin-shared:-fPIC -fno-common:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
diff --git a/data/openssl/make.sh b/data/openssl/make.sh
new file mode 100644
index 000000000..927406d2a
--- /dev/null
+++ b/data/openssl/make.sh
@@ -0,0 +1,10 @@
+tar -zxvf "${PKG_DATA}/openssl-0.9.8g.tar.gz"
+cd openssl-0.9.8g
+pkg:patch
+./Configure darwin-arm-gcc --prefix=/usr --openssldir=/usr/lib/ssl shared
+make AR='arm-apple-darwin-ar -r'
+make install INSTALL_PREFIX="${PKG_DEST}"
+rm -rf "${PKG_DEST}"/usr/lib/man
+mkdir -p "${PKG_DEST}"/etc/ssl
+mv "${PKG_DEST}"/usr/lib/ssl/{certs,openssl.cnf,private} "${PKG_DEST}"/etc/ssl
+ln -s /etc/ssl/{certs,openssl.cnf,private} "${PKG_DEST}"/usr/lib/ssl
diff --git a/data/openssl/openssl-0.9.8g.tar.gz b/data/openssl/openssl-0.9.8g.tar.gz
new file mode 100644
index 000000000..14ac17618
--- /dev/null
+++ b/data/openssl/openssl-0.9.8g.tar.gz
Binary files differ
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
diff --git a/data/readline/_metadata/description b/data/readline/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/readline/_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/readline/_metadata/license b/data/readline/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/readline/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/readline/_metadata/maintainer b/data/readline/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/readline/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/readline/_metadata/priority b/data/readline/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/readline/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/readline/_metadata/section b/data/readline/_metadata/section
new file mode 100644
index 000000000..2ac05bdde
--- /dev/null
+++ b/data/readline/_metadata/section
@@ -0,0 +1 @@
+console
diff --git a/data/readline/_metadata/version b/data/readline/_metadata/version
new file mode 100644
index 000000000..ef425ca98
--- /dev/null
+++ b/data/readline/_metadata/version
@@ -0,0 +1 @@
+5.2
diff --git a/data/readline/archarm.diff b/data/readline/archarm.diff
new file mode 100644
index 000000000..40d3a909f
--- /dev/null
+++ b/data/readline/archarm.diff
@@ -0,0 +1,49 @@
+diff -ru readline-5.2/support/shobj-conf readline-5.2+iPhone/support/shobj-conf
+--- readline-5.2/support/shobj-conf 2006-04-11 13:15:43.000000000 +0000
++++ readline-5.2+iPhone/support/shobj-conf 2007-12-28 14:22:45.000000000 +0000
+@@ -142,42 +142,19 @@
+ ;;
+
+ # Darwin/MacOS X
+-darwin8*)
++darwin*|macosx*)
+ SHOBJ_STATUS=supported
+ SHLIB_STATUS=supported
+
+ SHOBJ_CFLAGS='-fno-common'
+
+- SHOBJ_LD='MACOSX_DEPLOYMENT_TARGET=10.3 ${CC}'
+-
+- SHLIB_LIBVERSION='$(SHLIB_MAJOR)$(SHLIB_MINOR).$(SHLIB_LIBSUFF)'
+- SHLIB_LIBSUFF='dylib'
+-
+- SHOBJ_LDFLAGS='-undefined dynamic_lookup'
+- SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
+-
+- SHLIB_LIBS='-lncurses' # see if -lcurses works on MacOS X 10.1
+- ;;
+-
+-darwin*|macosx*)
+- SHOBJ_STATUS=unsupported
+- SHLIB_STATUS=supported
+-
+- SHOBJ_CFLAGS='-fno-common'
+-
+ SHOBJ_LD='${CC}'
+
+ SHLIB_LIBVERSION='$(SHLIB_MAJOR)$(SHLIB_MINOR).$(SHLIB_LIBSUFF)'
+ SHLIB_LIBSUFF='dylib'
+
+- case "${host_os}" in
+- darwin[78]*) SHOBJ_LDFLAGS=''
+- SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
+- ;;
+- *) SHOBJ_LDFLAGS='-dynamic'
+- SHLIB_XLDFLAGS='-arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
+- ;;
+- esac
++ SHOBJ_LDFLAGS='-undefined dynamic_lookup'
++ SHLIB_XLDFLAGS='-dynamiclib -arch_only arm -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
+
+ SHLIB_LIBS='-lncurses' # see if -lcurses works on MacOS X 10.1
+ ;;
diff --git a/data/readline/make.sh b/data/readline/make.sh
new file mode 100644
index 000000000..9e49126ad
--- /dev/null
+++ b/data/readline/make.sh
@@ -0,0 +1,6 @@
+tar -zxvf "${PKG_DATA}/readline-5.2.tar.gz"
+cd readline-5.2
+pkg:patch
+pkg:configure
+make
+pkg:install
diff --git a/data/readline/readline-5.2.tar.gz b/data/readline/readline-5.2.tar.gz
new file mode 100644
index 000000000..5f3ac6052
--- /dev/null
+++ b/data/readline/readline-5.2.tar.gz
Binary files differ
diff --git a/data/rsync/_metadata/description b/data/rsync/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/rsync/_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/rsync/_metadata/license b/data/rsync/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/rsync/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/rsync/_metadata/maintainer b/data/rsync/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/rsync/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/rsync/_metadata/priority b/data/rsync/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/rsync/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/rsync/_metadata/section b/data/rsync/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/rsync/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/rsync/_metadata/version b/data/rsync/_metadata/version
new file mode 100644
index 000000000..d48d3702a
--- /dev/null
+++ b/data/rsync/_metadata/version
@@ -0,0 +1 @@
+2.6.9
diff --git a/data/rsync/make.sh b/data/rsync/make.sh
new file mode 100644
index 000000000..290d2eeef
--- /dev/null
+++ b/data/rsync/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/rsync-2.6.9.tar.gz"
+cd rsync-2.6.9
+pkg:configure
+make
+pkg:install
diff --git a/data/rsync/rsync-2.6.9.tar.gz b/data/rsync/rsync-2.6.9.tar.gz
new file mode 100644
index 000000000..6377f639e
--- /dev/null
+++ b/data/rsync/rsync-2.6.9.tar.gz
Binary files differ
diff --git a/data/sed/_metadata/description b/data/sed/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/sed/_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/sed/_metadata/license b/data/sed/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/sed/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/sed/_metadata/maintainer b/data/sed/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/sed/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/sed/_metadata/priority b/data/sed/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/sed/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/sed/_metadata/section b/data/sed/_metadata/section
new file mode 100644
index 000000000..2ac05bdde
--- /dev/null
+++ b/data/sed/_metadata/section
@@ -0,0 +1 @@
+console
diff --git a/data/sed/_metadata/version b/data/sed/_metadata/version
new file mode 100644
index 000000000..b1cbc1fcd
--- /dev/null
+++ b/data/sed/_metadata/version
@@ -0,0 +1 @@
+4.1.5
diff --git a/data/sed/make.sh b/data/sed/make.sh
new file mode 100644
index 000000000..015b17dd2
--- /dev/null
+++ b/data/sed/make.sh
@@ -0,0 +1,7 @@
+tar -zxvf "${PKG_DATA}/sed-4.1.5.tar.gz"
+cd sed-4.1.5
+pkg:patch
+pkg:configure
+make
+pkg:install
+pkg:bin sed
diff --git a/data/sed/obstack.diff b/data/sed/obstack.diff
new file mode 100644
index 000000000..d3576f0fb
--- /dev/null
+++ b/data/sed/obstack.diff
@@ -0,0 +1,83 @@
+Only in sed-4.1.5+iPhone/: config.h
+Only in sed-4.1.5+iPhone/: config.log
+Only in sed-4.1.5+iPhone/: config.status
+Only in sed-4.1.5+iPhone/doc: Makefile
+Only in sed-4.1.5+iPhone/intl: bindtextdom.o
+Only in sed-4.1.5+iPhone/intl: charset.alias
+Only in sed-4.1.5+iPhone/intl: dcgettext.o
+Only in sed-4.1.5+iPhone/intl: dcigettext.o
+Only in sed-4.1.5+iPhone/intl: dcngettext.o
+Only in sed-4.1.5+iPhone/intl: dgettext.o
+Only in sed-4.1.5+iPhone/intl: dngettext.o
+Only in sed-4.1.5+iPhone/intl: explodename.o
+Only in sed-4.1.5+iPhone/intl: finddomain.o
+Only in sed-4.1.5+iPhone/intl: gettext.o
+Only in sed-4.1.5+iPhone/intl: intl-compat.o
+Only in sed-4.1.5+iPhone/intl: l10nflist.o
+Only in sed-4.1.5+iPhone/intl: libintl.a
+Only in sed-4.1.5+iPhone/intl: libintl.h
+Only in sed-4.1.5+iPhone/intl: loadmsgcat.o
+Only in sed-4.1.5+iPhone/intl: localcharset.o
+Only in sed-4.1.5+iPhone/intl: localealias.o
+Only in sed-4.1.5+iPhone/intl: localename.o
+Only in sed-4.1.5+iPhone/intl: Makefile
+Only in sed-4.1.5+iPhone/intl: ngettext.o
+Only in sed-4.1.5+iPhone/intl: osdep.o
+Only in sed-4.1.5+iPhone/intl: plural-exp.o
+Only in sed-4.1.5+iPhone/intl: plural.o
+Only in sed-4.1.5+iPhone/intl: ref-add.sed
+Only in sed-4.1.5+iPhone/intl: ref-del.sed
+Only in sed-4.1.5+iPhone/intl: textdomain.o
+Only in sed-4.1.5+iPhone/lib: .deps
+Only in sed-4.1.5+iPhone/lib: getline.o
+Only in sed-4.1.5+iPhone/lib: getopt1.o
+Only in sed-4.1.5+iPhone/lib: getopt.o
+Only in sed-4.1.5+iPhone/lib: libsed.a
+Only in sed-4.1.5+iPhone/lib: Makefile
+diff -r -u sed-4.1.5/lib/Makefile.in sed-4.1.5+iPhone/lib/Makefile.in
+--- sed-4.1.5/lib/Makefile.in 2006-02-03 09:24:34.000000000 +0000
++++ sed-4.1.5+iPhone/lib/Makefile.in 2007-12-27 00:16:29.000000000 +0000
+@@ -125,11 +125,11 @@
+ LDFLAGS = @LDFLAGS@
+ LIBICONV = @LIBICONV@
+ LIBINTL = @LIBINTL@
+-LIBOBJS = @LIBOBJS@
++LIBOBJS = @LIBOBJS@ obstack.o
+ LIBS = @LIBS@
+ LTLIBICONV = @LTLIBICONV@
+ LTLIBINTL = @LTLIBINTL@
+-LTLIBOBJS = @LTLIBOBJS@
++LTLIBOBJS = @LTLIBOBJS@ obstack.o
+ MAKEINFO = @MAKEINFO@
+ MAKEINFO_HTML_FALSE = @MAKEINFO_HTML_FALSE@
+ MAKEINFO_HTML_TRUE = @MAKEINFO_HTML_TRUE@
+@@ -206,7 +206,7 @@
+ AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir)/intl -I$(top_srcdir) \
+ -I$(top_builddir)/lib -I$(top_builddir)/intl
+
+-libsed_a_LIBADD = @LIBOBJS@ @ALLOCA@
++libsed_a_LIBADD = @LIBOBJS@ @ALLOCA@ obstack.o
+ libsed_a_DEPENDENCIES = $(libsed_a_LIBADD)
+ DISTCLEANFILES = regex.h stdbool.h
+ all: all-am
+Only in sed-4.1.5+iPhone/lib: obstack.o
+Only in sed-4.1.5+iPhone/lib: regex.h
+Only in sed-4.1.5+iPhone/lib: regex.o
+Only in sed-4.1.5+iPhone/lib: strverscmp.o
+Only in sed-4.1.5+iPhone/lib: utils.o
+Only in sed-4.1.5+iPhone/: Makefile
+Only in sed-4.1.5+iPhone/po: Makefile
+Only in sed-4.1.5+iPhone/po: Makefile.in
+Only in sed-4.1.5+iPhone/po: POTFILES
+Only in sed-4.1.5+iPhone/sed: compile.o
+Only in sed-4.1.5+iPhone/sed: .deps
+Only in sed-4.1.5+iPhone/sed: execute.o
+Only in sed-4.1.5+iPhone/sed: fmt.o
+Only in sed-4.1.5+iPhone/sed: Makefile
+Only in sed-4.1.5+iPhone/sed: mbcs.o
+Only in sed-4.1.5+iPhone/sed: regexp.o
+Only in sed-4.1.5+iPhone/sed: sed
+Only in sed-4.1.5+iPhone/sed: sed.o
+Only in sed-4.1.5+iPhone/: stamp-h1
+Only in sed-4.1.5+iPhone/testsuite: .deps
+Only in sed-4.1.5+iPhone/testsuite: Makefile
diff --git a/data/sed/sed-4.1.5.tar.gz b/data/sed/sed-4.1.5.tar.gz
new file mode 100644
index 000000000..7273f1537
--- /dev/null
+++ b/data/sed/sed-4.1.5.tar.gz
Binary files differ
diff --git a/data/shell-cmds/_metadata/description b/data/shell-cmds/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/shell-cmds/_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/shell-cmds/_metadata/license b/data/shell-cmds/_metadata/license
new file mode 120000
index 000000000..eea9de8d1
--- /dev/null
+++ b/data/shell-cmds/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/bsd \ No newline at end of file
diff --git a/data/shell-cmds/_metadata/maintainer b/data/shell-cmds/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/shell-cmds/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/shell-cmds/_metadata/priority b/data/shell-cmds/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/shell-cmds/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/shell-cmds/_metadata/section b/data/shell-cmds/_metadata/section
new file mode 100644
index 000000000..2ac05bdde
--- /dev/null
+++ b/data/shell-cmds/_metadata/section
@@ -0,0 +1 @@
+console
diff --git a/data/shell-cmds/_metadata/version b/data/shell-cmds/_metadata/version
new file mode 100644
index 000000000..4699eb3cc
--- /dev/null
+++ b/data/shell-cmds/_metadata/version
@@ -0,0 +1 @@
+116
diff --git a/data/shell-cmds/make.sh b/data/shell-cmds/make.sh
new file mode 100644
index 000000000..898fd4f2a
--- /dev/null
+++ b/data/shell-cmds/make.sh
@@ -0,0 +1,8 @@
+tar -zxvf "${PKG_DATA}/shell_cmds-116.tar.gz"
+cd shell_cmds-116
+mkdir -p "${PKG_DEST}/usr/bin"
+for bin in mktemp renice script time which; do
+ arm-apple-darwin-gcc -o "${bin}/${bin}" "${bin}"/*.c -D'__FBSDID(x)='
+ cp -a "${bin}/${bin}" "${PKG_DEST}/usr/bin"
+done
+pkg:bin mktemp
diff --git a/data/shell-cmds/shell_cmds-116.tar.gz b/data/shell-cmds/shell_cmds-116.tar.gz
new file mode 100644
index 000000000..fa50bc47b
--- /dev/null
+++ b/data/shell-cmds/shell_cmds-116.tar.gz
Binary files differ
diff --git a/data/spidermonkey/_metadata/description b/data/spidermonkey/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/spidermonkey/_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/spidermonkey/_metadata/maintainer b/data/spidermonkey/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/spidermonkey/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/spidermonkey/_metadata/priority b/data/spidermonkey/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/spidermonkey/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/spidermonkey/_metadata/section b/data/spidermonkey/_metadata/section
new file mode 100644
index 000000000..463a353df
--- /dev/null
+++ b/data/spidermonkey/_metadata/section
@@ -0,0 +1 @@
+programming
diff --git a/data/spidermonkey/_metadata/version b/data/spidermonkey/_metadata/version
new file mode 100644
index 000000000..bd8bf882d
--- /dev/null
+++ b/data/spidermonkey/_metadata/version
@@ -0,0 +1 @@
+1.7.0
diff --git a/data/spidermonkey/js-1.7.0.tar.gz b/data/spidermonkey/js-1.7.0.tar.gz
new file mode 100644
index 000000000..27607a637
--- /dev/null
+++ b/data/spidermonkey/js-1.7.0.tar.gz
Binary files differ
diff --git a/data/spidermonkey/jsautocfg.h b/data/spidermonkey/jsautocfg.h
new file mode 100644
index 000000000..7dccf19bb
--- /dev/null
+++ b/data/spidermonkey/jsautocfg.h
@@ -0,0 +1,52 @@
+#ifndef js_cpucfg___
+#define js_cpucfg___
+
+/* AUTOMATICALLY GENERATED - DO NOT EDIT */
+
+#define IS_LITTLE_ENDIAN 1
+#undef IS_BIG_ENDIAN
+
+#define JS_BYTES_PER_BYTE 1L
+#define JS_BYTES_PER_SHORT 2L
+#define JS_BYTES_PER_INT 4L
+#define JS_BYTES_PER_INT64 8L
+#define JS_BYTES_PER_LONG 4L
+#define JS_BYTES_PER_FLOAT 4L
+#define JS_BYTES_PER_DOUBLE 8L
+#define JS_BYTES_PER_WORD 4L
+#define JS_BYTES_PER_DWORD 8L
+
+#define JS_BITS_PER_BYTE 8L
+#define JS_BITS_PER_SHORT 16L
+#define JS_BITS_PER_INT 32L
+#define JS_BITS_PER_INT64 64L
+#define JS_BITS_PER_LONG 32L
+#define JS_BITS_PER_FLOAT 32L
+#define JS_BITS_PER_DOUBLE 64L
+#define JS_BITS_PER_WORD 32L
+
+#define JS_BITS_PER_BYTE_LOG2 3L
+#define JS_BITS_PER_SHORT_LOG2 4L
+#define JS_BITS_PER_INT_LOG2 5L
+#define JS_BITS_PER_INT64_LOG2 6L
+#define JS_BITS_PER_LONG_LOG2 5L
+#define JS_BITS_PER_FLOAT_LOG2 5L
+#define JS_BITS_PER_DOUBLE_LOG2 6L
+#define JS_BITS_PER_WORD_LOG2 5L
+
+#define JS_ALIGN_OF_SHORT 2L
+#define JS_ALIGN_OF_INT 4L
+#define JS_ALIGN_OF_LONG 4L
+#define JS_ALIGN_OF_INT64 4L
+#define JS_ALIGN_OF_FLOAT 4L
+#define JS_ALIGN_OF_DOUBLE 4L
+#define JS_ALIGN_OF_POINTER 4L
+#define JS_ALIGN_OF_WORD 4L
+
+#define JS_BYTES_PER_WORD_LOG2 2L
+#define JS_BYTES_PER_DWORD_LOG2 3L
+#define JS_WORDS_PER_DWORD_LOG2 1L
+
+#define JS_STACK_GROWTH_DIRECTION (-1)
+
+#endif /* js_cpucfg___ */
diff --git a/data/spidermonkey/make.sh b/data/spidermonkey/make.sh
new file mode 100644
index 000000000..75fce99de
--- /dev/null
+++ b/data/spidermonkey/make.sh
@@ -0,0 +1,10 @@
+pkg:extract
+cd js
+pkg:patch
+cd src
+mkdir Darwin_DBG.OBJ
+cp -a "${PKG_DATA}"/jsautocfg.h Darwin_DBG.OBJ
+make -f Makefile.ref
+pkg: mkdir -p /usr/bin /usr/lib
+pkg: cp -a Darwin_DBG.OBJ/libjs.dylib /usr/lib
+pkg: cp -a Darwin_DBG.OBJ/js /usr/bin
diff --git a/data/spidermonkey/port.diff b/data/spidermonkey/port.diff
new file mode 100644
index 000000000..51dcfee37
--- /dev/null
+++ b/data/spidermonkey/port.diff
@@ -0,0 +1,97 @@
+diff -ru js/src/config/Darwin.mk js+iPhone/src/config/Darwin.mk
+--- js/src/config/Darwin.mk 2007-02-05 16:24:49.000000000 +0000
++++ js+iPhone/src/config/Darwin.mk 2007-12-31 21:06:50.000000000 +0000
+@@ -43,12 +43,12 @@
+ # Just ripped from Linux config
+ #
+
+-CC = cc
+-CCC = g++
++CC = arm-apple-darwin-gcc
++CCC = arm-apple-darwin-g++
+ CFLAGS += -Wall -Wno-format
+ OS_CFLAGS = -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DDARWIN
+
+-RANLIB = ranlib
++RANLIB = arm-apple-darwin-ranlib
+ MKSHLIB = $(CC) -dynamiclib $(XMKSHLIBOPTS) -framework System
+
+ SO_SUFFIX = dylib
+@@ -81,3 +81,4 @@
+ # Don't allow Makefile.ref to use libmath
+ NO_LIBM = 1
+
++PREBUILT_CPUCFG = 1
+diff -ru js/src/config.mk js+iPhone/src/config.mk
+--- js/src/config.mk 2006-07-27 21:00:57.000000000 +0000
++++ js+iPhone/src/config.mk 2007-12-31 20:58:38.000000000 +0000
+@@ -45,9 +45,11 @@
+
+ # Set os+release dependent make variables
+ OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/))
++OS_ARCH := Darwin
+
+ # Attempt to differentiate between SunOS 5.4 and x86 5.4
+ OS_CPUARCH := $(shell uname -m)
++OS_CPUARCH := iPhone1,1
+ ifeq ($(OS_CPUARCH),i86pc)
+ OS_RELEASE := $(shell uname -r)_$(OS_CPUARCH)
+ else
+diff -ru js/src/jscpucfg.h js+iPhone/src/jscpucfg.h
+--- js/src/jscpucfg.h 2006-07-07 02:12:01.000000000 +0000
++++ js+iPhone/src/jscpucfg.h 2007-12-31 20:58:38.000000000 +0000
+@@ -46,7 +46,7 @@
+
+ #if defined(_WIN64)
+
+-#if defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_)
++#if 0//defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_)
+ #define IS_LITTLE_ENDIAN 1
+ #undef IS_BIG_ENDIAN
+
+@@ -94,7 +94,7 @@
+ #error "CPU type is unknown"
+ #endif /* !(defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_)) */
+
+-#elif defined(_WIN32) || defined(XP_OS2) || defined(WINCE)
++#elif 1//defined(_WIN32) || defined(XP_OS2) || defined(WINCE)
+
+ #ifdef __WATCOMC__
+ #define HAVE_VA_LIST_AS_ARRAY
+diff -ru js/src/jsnum.c js+iPhone/src/jsnum.c
+--- js/src/jsnum.c 2007-04-06 20:53:22.000000000 +0000
++++ js+iPhone/src/jsnum.c 2007-12-31 20:58:38.000000000 +0000
+@@ -517,7 +517,7 @@
+
+ static jsdouble NaN;
+
+-#if (defined XP_WIN || defined XP_OS2) && \
++#if 0 && (defined XP_WIN || defined XP_OS2) && \
+ !defined WINCE && \
+ !defined __MWERKS__ && \
+ (defined _M_IX86 || \
+diff -ru js/src/Makefile.ref js+iPhone/src/Makefile.ref
+--- js/src/Makefile.ref 2006-07-26 19:16:47.000000000 +0000
++++ js+iPhone/src/Makefile.ref 2007-12-31 21:07:20.000000000 +0000
+@@ -82,7 +82,7 @@
+ #
+ # XCFLAGS may be set in the environment or on the gmake command line
+ #
+-CFLAGS += $(OPTIMIZER) $(OS_CFLAGS) $(DEFINES) $(INCLUDES) $(XCFLAGS)
++CFLAGS += $(OPTIMIZER) $(OS_CFLAGS) $(DEFINES) $(INCLUDES) $(XCFLAGS) -O0
+
+ LDFLAGS = $(XLDFLAGS)
+
+@@ -320,10 +320,10 @@
+
+ $(OBJDIR)/jskwgen.o: jskwgen.c jskeyword.tbl
+ @$(MAKE_OBJDIR)
+- $(CC) -o $@ -c $(CFLAGS) $<
++ gcc -o $@ -c $(CFLAGS) $<
+
+ $(OBJDIR)/jskwgen$(HOST_BIN_SUFFIX): $(OBJDIR)/jskwgen.$(OBJ_SUFFIX)
+- $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $^
++ gcc -o $@ $(CFLAGS) $(LDFLAGS) $^
+
+ endif
+
diff --git a/data/srelay/_metadata/description b/data/srelay/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/srelay/_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/srelay/_metadata/license b/data/srelay/_metadata/license
new file mode 100644
index 000000000..7f5443717
--- /dev/null
+++ b/data/srelay/_metadata/license
@@ -0,0 +1,27 @@
+Copyright (C) 2001 Tomo.M (author).
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+3. Neither the name of the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/data/srelay/_metadata/maintainer b/data/srelay/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/srelay/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/srelay/_metadata/priority b/data/srelay/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/srelay/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/srelay/_metadata/section b/data/srelay/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/srelay/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/srelay/_metadata/version b/data/srelay/_metadata/version
new file mode 100644
index 000000000..ef52a6480
--- /dev/null
+++ b/data/srelay/_metadata/version
@@ -0,0 +1 @@
+0.4.6
diff --git a/data/srelay/bindaddr.diff b/data/srelay/bindaddr.diff
new file mode 100644
index 000000000..a324c7da0
--- /dev/null
+++ b/data/srelay/bindaddr.diff
@@ -0,0 +1,21 @@
+diff -r -u srelay-0.4.6/get-bind.c srelay-0.4.6+iPhone/get-bind.c
+--- srelay-0.4.6/get-bind.c 2003-04-10 02:53:17.000000000 +0000
++++ srelay-0.4.6+iPhone/get-bind.c 2007-12-27 12:39:11.000000000 +0000
+@@ -34,7 +34,7 @@
+
+ #include "srelay.h"
+
+-#if defined(FREEBSD) || defined(SOLARIS)
++#if defined(FREEBSD) || defined(SOLARIS) || defined(__APPLE__)
+ #include <netinet/in.h>
+ #include <sys/ioctl.h>
+ #include <sys/sockio.h>
+@@ -54,7 +54,7 @@
+ static int get_ifconf(int, struct addrinfo *);
+ #endif /* defined(LINUX) */
+
+-#if defined(FREEBSD) || defined(SOLARIS)
++#if defined(FREEBSD) || defined(SOLARIS) || defined(__APPLE__)
+
+ #ifndef RTAX_DST
+ #define RTAX_DST 0
diff --git a/data/srelay/filio.diff b/data/srelay/filio.diff
new file mode 100644
index 000000000..d973adf4e
--- /dev/null
+++ b/data/srelay/filio.diff
@@ -0,0 +1,12 @@
+diff -r -u srelay-0.4.6/relay.c srelay-0.4.6+iPhone/relay.c
+--- srelay-0.4.6/relay.c 2003-03-26 20:45:13.000000000 +0000
++++ srelay-0.4.6+iPhone/relay.c 2007-12-27 12:35:26.000000000 +0000
+@@ -34,6 +34,8 @@
+
+ #include "srelay.h"
+
++#include <sys/filio.h>
++
+ #ifdef HAVE_LIBWRAP
+ # include <tcpd.h>
+ # ifdef LINUX
diff --git a/data/srelay/make.sh b/data/srelay/make.sh
new file mode 100644
index 000000000..accfe0144
--- /dev/null
+++ b/data/srelay/make.sh
@@ -0,0 +1,7 @@
+tar -zxvf "${PKG_DATA}/srelay-0.4.6.tar.gz"
+cd srelay-0.4.6
+pkg:patch
+autoconf
+pkg:configure
+make
+pkg:usrbin srelay
diff --git a/data/srelay/sigpoll.diff b/data/srelay/sigpoll.diff
new file mode 100644
index 000000000..ee3fcc0ec
--- /dev/null
+++ b/data/srelay/sigpoll.diff
@@ -0,0 +1,12 @@
+diff -r -u srelay-0.4.6/main.c srelay-0.4.6+iPhone/main.c
+--- srelay-0.4.6/main.c 2003-03-26 20:45:12.000000000 +0000
++++ srelay-0.4.6+iPhone/main.c 2007-12-27 12:37:47.000000000 +0000
+@@ -322,7 +322,7 @@
+ setsignal(SIGTERM, cleanup);
+ setsignal(SIGUSR1, SIG_IGN);
+ setsignal(SIGUSR2, SIG_IGN);
+-#ifndef FREEBSD
++#if !defined(FREEBSD) && !defined(__APPLE__)
+ setsignal(SIGPOLL, SIG_IGN);
+ #endif
+ setsignal(SIGVTALRM, SIG_IGN);
diff --git a/data/srelay/srelay-0.4.6.tar.gz b/data/srelay/srelay-0.4.6.tar.gz
new file mode 100644
index 000000000..8b6d64c1c
--- /dev/null
+++ b/data/srelay/srelay-0.4.6.tar.gz
Binary files differ
diff --git a/data/srelay/thread.diff b/data/srelay/thread.diff
new file mode 100644
index 000000000..64184df47
--- /dev/null
+++ b/data/srelay/thread.diff
@@ -0,0 +1,28 @@
+Only in srelay-0.4.6+iPhone/: config.log
+diff -r -u srelay-0.4.6/configure.in srelay-0.4.6+iPhone/configure.in
+--- srelay-0.4.6/configure.in 2003-04-14 05:36:15.000000000 +0000
++++ srelay-0.4.6+iPhone/configure.in 2007-12-27 12:32:59.000000000 +0000
+@@ -143,22 +143,7 @@
+ elif test "$OS" = "SOLARIS"; then
+ LDFLAGS="$LDFLAGS -lpthread"
+ fi
+- AC_TRY_RUN(
+-[#include <pthread.h>
+-void
+-init_routine()
+-{
+- return(0);
+-}
+-main()
+-{
+- pthread_once_t once_control = PTHREAD_ONCE_INIT;
+- pthread_once(&once_control, &init_routine);
+- return(0);
+-}],
+- AC_DEFINE(USE_THREAD) AC_MSG_RESULT([yes]),
+- CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"; AC_MSG_RESULT([no])
+- )
++ AC_DEFINE(USE_THREAD) AC_MSG_RESULT([yes])
+ fi
+ fi
+
diff --git a/data/subversion/_metadata/apr-util.dep b/data/subversion/_metadata/apr-util.dep
new file mode 120000
index 000000000..a78d94c6b
--- /dev/null
+++ b/data/subversion/_metadata/apr-util.dep
@@ -0,0 +1 @@
+../../apr-util \ No newline at end of file
diff --git a/data/subversion/_metadata/apr.dep b/data/subversion/_metadata/apr.dep
new file mode 120000
index 000000000..a2d8d092f
--- /dev/null
+++ b/data/subversion/_metadata/apr.dep
@@ -0,0 +1 @@
+../../apr \ No newline at end of file
diff --git a/data/subversion/_metadata/description b/data/subversion/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/subversion/_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/subversion/_metadata/expat.dep b/data/subversion/_metadata/expat.dep
new file mode 120000
index 000000000..2100fb19e
--- /dev/null
+++ b/data/subversion/_metadata/expat.dep
@@ -0,0 +1 @@
+../../expat \ No newline at end of file
diff --git a/data/subversion/_metadata/license b/data/subversion/_metadata/license
new file mode 100644
index 000000000..bad35d9d8
--- /dev/null
+++ b/data/subversion/_metadata/license
@@ -0,0 +1,57 @@
+This license applies to all portions of Subversion which are not
+externally-maintained libraries (e.g. apr/, apr-util/, and neon/).
+Such libraries have their own licenses; we recommend you read them, as
+their terms may differ from the terms below.
+
+This is version 1 of this license. It is also available online at
+http://subversion.tigris.org/license-1.html. If newer versions of
+this license are posted there (the same URL, but with the version
+number incremented: .../license-2.html, .../license-3.html, and so
+on), you may use a newer version instead, at your option.
+
+================================================================
+Copyright (c) 2000-2006 CollabNet. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+3. The end-user documentation included with the redistribution,
+ if any, must include the following acknowledgment:
+ "This product includes software developed by
+ CollabNet (http://www.Collab.Net/)."
+ Alternately, this acknowledgment may appear in the software itself,
+ if and wherever such third-party acknowledgments normally appear.
+
+4. The hosted project names must not be used to endorse or promote
+ products derived from this software without prior written
+ permission. For written permission, please contact info@collab.net.
+
+5. Products derived from this software may not use the "Tigris" name
+ nor may "Tigris" appear in their names without prior written
+ permission of CollabNet.
+
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+IN NO EVENT SHALL COLLABNET OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+====================================================================
+
+This software consists of voluntary contributions made by many
+individuals on behalf of CollabNet.
diff --git a/data/subversion/_metadata/maintainer b/data/subversion/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/subversion/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/subversion/_metadata/neon.dep b/data/subversion/_metadata/neon.dep
new file mode 120000
index 000000000..271602162
--- /dev/null
+++ b/data/subversion/_metadata/neon.dep
@@ -0,0 +1 @@
+../../neon \ No newline at end of file
diff --git a/data/subversion/_metadata/priority b/data/subversion/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/subversion/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/subversion/_metadata/section b/data/subversion/_metadata/section
new file mode 100644
index 000000000..842ba4a9c
--- /dev/null
+++ b/data/subversion/_metadata/section
@@ -0,0 +1 @@
+toolchain
diff --git a/data/subversion/_metadata/version b/data/subversion/_metadata/version
new file mode 100644
index 000000000..c514bd85c
--- /dev/null
+++ b/data/subversion/_metadata/version
@@ -0,0 +1 @@
+1.4.6
diff --git a/data/subversion/make.sh b/data/subversion/make.sh
new file mode 100644
index 000000000..5a8174953
--- /dev/null
+++ b/data/subversion/make.sh
@@ -0,0 +1,7 @@
+tar -jxvf "${PKG_DATA}/subversion-1.4.6.tar.bz2"
+cd subversion-1.4.6
+pkg:patch
+autoconf
+CFLAGS="-DSVN_NEON_0_25 -DSVN_NEON_0_26" pkg:configure --enable-maintainer-mode --disable-keychain --with-neon="${PKG_ROOT}/usr" --with-apr="$(PKG_WORK_ apr)/apr-1.2.12" --with-apr-util="$(PKG_WORK_ apr-util)/apr-util-1.2.12"
+make
+pkg:install
diff --git a/data/subversion/neon.diff b/data/subversion/neon.diff
new file mode 100644
index 000000000..6dde31ed3
--- /dev/null
+++ b/data/subversion/neon.diff
@@ -0,0 +1,18 @@
+diff -ru subversion-1.4.6/build/ac-macros/neon.m4 subversion-1.4.6+iPhone/build/ac-macros/neon.m4
+--- subversion-1.4.6/build/ac-macros/neon.m4 2006-10-20 23:44:09.000000000 +0000
++++ subversion-1.4.6+iPhone/build/ac-macros/neon.m4 2007-12-28 12:43:02.000000000 +0000
+@@ -38,10 +38,11 @@
+ if test "$withval" = "yes" ; then
+ AC_MSG_ERROR([--with-neon requires an argument.])
+ else
+- neon_config="$withval/bin/neon-config"
++ svn_allowed_neon_on_system="yes"
++ SVN_NEON_INCLUDES="-I$withval/include/neon"
++ NEON_LIBS="$withval/lib/libneon.dylib"
++ svn_lib_neon="yes"
+ fi
+-
+- SVN_NEON_CONFIG()
+ ],
+ [
+ if test -d $abs_srcdir/neon ; then
diff --git a/data/subversion/subversion-1.4.6.tar.bz2 b/data/subversion/subversion-1.4.6.tar.bz2
new file mode 100644
index 000000000..31f96af06
--- /dev/null
+++ b/data/subversion/subversion-1.4.6.tar.bz2
Binary files differ
diff --git a/data/subversion/svnversion.diff b/data/subversion/svnversion.diff
new file mode 100644
index 000000000..31ae342a5
--- /dev/null
+++ b/data/subversion/svnversion.diff
@@ -0,0 +1,12 @@
+diff -r -u subversion-1.4.6/Makefile.in subversion-1.4.6+iPhone/Makefile.in
+--- subversion-1.4.6/Makefile.in 2007-03-03 00:30:11.000000000 +0000
++++ subversion-1.4.6+iPhone/Makefile.in 2007-12-28 13:36:33.000000000 +0000
+@@ -325,7 +325,7 @@
+
+ ### HACK!! Find a better way to do this
+ revision-install:
+- subversion/svnversion/svnversion $(top_srcdir) /repos/svn/trunk > $(DESTDIR)$(includedir)/subversion-1/svn-revision.txt
++ svnversion $(top_srcdir) /repos/svn/trunk > $(DESTDIR)$(includedir)/subversion-1/svn-revision.txt
+
+ install-static: @INSTALL_STATIC_RULES@
+
diff --git a/data/system-cmds/_metadata/description b/data/system-cmds/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/system-cmds/_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/system-cmds/_metadata/license b/data/system-cmds/_metadata/license
new file mode 120000
index 000000000..9e5e5e89d
--- /dev/null
+++ b/data/system-cmds/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/apsl-2.0 \ No newline at end of file
diff --git a/data/system-cmds/_metadata/maintainer b/data/system-cmds/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/system-cmds/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/system-cmds/_metadata/priority b/data/system-cmds/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/system-cmds/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/system-cmds/_metadata/section b/data/system-cmds/_metadata/section
new file mode 100644
index 000000000..7fbe952b7
--- /dev/null
+++ b/data/system-cmds/_metadata/section
@@ -0,0 +1 @@
+admin
diff --git a/data/system-cmds/_metadata/version b/data/system-cmds/_metadata/version
new file mode 100644
index 000000000..ed4f16201
--- /dev/null
+++ b/data/system-cmds/_metadata/version
@@ -0,0 +1 @@
+431
diff --git a/data/system-cmds/kextmanager.h b/data/system-cmds/kextmanager.h
new file mode 100644
index 000000000..92050fe49
--- /dev/null
+++ b/data/system-cmds/kextmanager.h
@@ -0,0 +1,615 @@
+#ifndef _kextmanager_user_
+#define _kextmanager_user_
+
+/* Module kextmanager */
+
+#include <string.h>
+#include <mach/ndr.h>
+#include <mach/boolean.h>
+#include <mach/kern_return.h>
+#include <mach/notify.h>
+#include <mach/mach_types.h>
+#include <mach/message.h>
+#include <mach/mig_errors.h>
+#include <mach/port.h>
+
+#ifdef AUTOTEST
+#ifndef FUNCTION_PTR_T
+#define FUNCTION_PTR_T
+typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);
+typedef struct {
+ char *name;
+ function_ptr_t function;
+} function_table_entry;
+typedef function_table_entry *function_table_t;
+#endif /* FUNCTION_PTR_T */
+#endif /* AUTOTEST */
+
+#ifndef kextmanager_MSG_COUNT
+#define kextmanager_MSG_COUNT 12
+#endif /* kextmanager_MSG_COUNT */
+
+#include <mach/std_types.h>
+#include <mach/mig.h>
+#include <mach/mig.h>
+#include <mach/mach_types.h>
+#include <Security/Authorization.h>
+#include <IOKit/kext/kextmanager_types.h>
+#include <mach/kmod.h>
+#include <sys/param.h>
+
+#ifdef __BeforeMigUserHeader
+__BeforeMigUserHeader
+#endif /* __BeforeMigUserHeader */
+
+#include <sys/cdefs.h>
+__BEGIN_DECLS
+
+
+/* Routine kextmanager_path_for_bundle_id */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t kextmanager_path_for_bundle_id
+(
+ mach_port_t server,
+ kext_bundle_id_t bundle_id,
+ posix_path_t path,
+ kext_result_t *kext_result
+);
+
+/* Routine kextmanager_create_property_value_array */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t kextmanager_create_property_value_array
+(
+ mach_port_t server,
+ property_key_t prop_key,
+ xmlDataOut_t *data,
+ mach_msg_type_number_t *dataCnt
+);
+
+/* Routine kextmanager_user_did_log_in */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t kextmanager_user_did_log_in
+(
+ mach_port_t server,
+ uint32_t euid,
+ AuthorizationExternalForm authref
+);
+
+/* Routine kextmanager_user_will_log_out */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t kextmanager_user_will_log_out
+(
+ mach_port_t server,
+ uint32_t euid
+);
+
+/* Routine kextmanager_get_logged_in_userid */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t kextmanager_get_logged_in_userid
+(
+ mach_port_t server,
+ uint32_t *euid
+);
+
+/* Routine kextmanager_record_nonsecure_kextload */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t kextmanager_record_nonsecure_kextload
+(
+ mach_port_t server,
+ xmlDataIn_t load_data,
+ mach_msg_type_number_t load_dataCnt
+);
+
+/* Routine kextmanager_lock_reboot */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t kextmanager_lock_reboot
+(
+ mach_port_t server,
+ mach_port_t reaper,
+ int waitForLock,
+ mountpoint_t busyVol,
+ int *busyStatus
+);
+
+/* Routine kextmanager_lock_volume */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t kextmanager_lock_volume
+(
+ mach_port_t server,
+ mach_port_t reaper,
+ uuid_t vol_uuid,
+ int waitForLock,
+ int *lockStatus
+);
+
+/* Routine kextmanager_unlock_volume */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t kextmanager_unlock_volume
+(
+ mach_port_t server,
+ mach_port_t clientIdent,
+ uuid_t vol_uuid,
+ int exitStatus
+);
+
+/* Routine kextmanager_lock_kextload */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t kextmanager_lock_kextload
+(
+ mach_port_t server,
+ mach_port_t clientPort,
+ int *lockstatus
+);
+
+/* Routine kextmanager_unlock_kextload */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t kextmanager_unlock_kextload
+(
+ mach_port_t server,
+ mach_port_t clientPort
+);
+
+/* Routine kextmanager_record_path_for_bundle_id */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t kextmanager_record_path_for_bundle_id
+(
+ mach_port_t server,
+ kext_bundle_id_t bundle_id,
+ posix_path_t path
+);
+
+__END_DECLS
+
+/********************** Caution **************************/
+/* The following data types should be used to calculate */
+/* maximum message sizes only. The actual message may be */
+/* smaller, and the position of the arguments within the */
+/* message layout may vary from what is presented here. */
+/* For example, if any of the arguments are variable- */
+/* sized, and less than the maximum is sent, the data */
+/* will be packed tight in the actual message to reduce */
+/* the presence of holes. */
+/********************** Caution **************************/
+
+/* typedefs for all requests */
+
+#ifndef __Request__kextmanager_subsystem__defined
+#define __Request__kextmanager_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kext_bundle_id_t bundle_id;
+ } __Request__kextmanager_path_for_bundle_id_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ property_key_t prop_key;
+ } __Request__kextmanager_create_property_value_array_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ uint32_t euid;
+ AuthorizationExternalForm authref;
+ } __Request__kextmanager_user_did_log_in_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ uint32_t euid;
+ } __Request__kextmanager_user_will_log_out_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ } __Request__kextmanager_get_logged_in_userid_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t load_data;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t load_dataCnt;
+ } __Request__kextmanager_record_nonsecure_kextload_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t reaper;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ int waitForLock;
+ } __Request__kextmanager_lock_reboot_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t reaper;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ uuid_t vol_uuid;
+ int waitForLock;
+ } __Request__kextmanager_lock_volume_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t clientIdent;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ uuid_t vol_uuid;
+ int exitStatus;
+ } __Request__kextmanager_unlock_volume_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t clientPort;
+ /* end of the kernel processed data */
+ } __Request__kextmanager_lock_kextload_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t clientPort;
+ /* end of the kernel processed data */
+ } __Request__kextmanager_unlock_kextload_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kext_bundle_id_t bundle_id;
+ posix_path_t path;
+ } __Request__kextmanager_record_path_for_bundle_id_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Request__kextmanager_subsystem__defined */
+
+/* union of all requests */
+
+#ifndef __RequestUnion__kextmanager_subsystem__defined
+#define __RequestUnion__kextmanager_subsystem__defined
+union __RequestUnion__kextmanager_subsystem {
+ __Request__kextmanager_path_for_bundle_id_t Request_kextmanager_path_for_bundle_id;
+ __Request__kextmanager_create_property_value_array_t Request_kextmanager_create_property_value_array;
+ __Request__kextmanager_user_did_log_in_t Request_kextmanager_user_did_log_in;
+ __Request__kextmanager_user_will_log_out_t Request_kextmanager_user_will_log_out;
+ __Request__kextmanager_get_logged_in_userid_t Request_kextmanager_get_logged_in_userid;
+ __Request__kextmanager_record_nonsecure_kextload_t Request_kextmanager_record_nonsecure_kextload;
+ __Request__kextmanager_lock_reboot_t Request_kextmanager_lock_reboot;
+ __Request__kextmanager_lock_volume_t Request_kextmanager_lock_volume;
+ __Request__kextmanager_unlock_volume_t Request_kextmanager_unlock_volume;
+ __Request__kextmanager_lock_kextload_t Request_kextmanager_lock_kextload;
+ __Request__kextmanager_unlock_kextload_t Request_kextmanager_unlock_kextload;
+ __Request__kextmanager_record_path_for_bundle_id_t Request_kextmanager_record_path_for_bundle_id;
+};
+#endif /* !__RequestUnion__kextmanager_subsystem__defined */
+/* typedefs for all replies */
+
+#ifndef __Reply__kextmanager_subsystem__defined
+#define __Reply__kextmanager_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ posix_path_t path;
+ kext_result_t kext_result;
+ } __Reply__kextmanager_path_for_bundle_id_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t data;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t dataCnt;
+ } __Reply__kextmanager_create_property_value_array_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__kextmanager_user_did_log_in_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__kextmanager_user_will_log_out_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ uint32_t euid;
+ } __Reply__kextmanager_get_logged_in_userid_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__kextmanager_record_nonsecure_kextload_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mountpoint_t busyVol;
+ char busyVolPad[2];
+ int busyStatus;
+ } __Reply__kextmanager_lock_reboot_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ int lockStatus;
+ } __Reply__kextmanager_lock_volume_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__kextmanager_unlock_volume_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ int lockstatus;
+ } __Reply__kextmanager_lock_kextload_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__kextmanager_unlock_kextload_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__kextmanager_record_path_for_bundle_id_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Reply__kextmanager_subsystem__defined */
+
+/* union of all replies */
+
+#ifndef __ReplyUnion__kextmanager_subsystem__defined
+#define __ReplyUnion__kextmanager_subsystem__defined
+union __ReplyUnion__kextmanager_subsystem {
+ __Reply__kextmanager_path_for_bundle_id_t Reply_kextmanager_path_for_bundle_id;
+ __Reply__kextmanager_create_property_value_array_t Reply_kextmanager_create_property_value_array;
+ __Reply__kextmanager_user_did_log_in_t Reply_kextmanager_user_did_log_in;
+ __Reply__kextmanager_user_will_log_out_t Reply_kextmanager_user_will_log_out;
+ __Reply__kextmanager_get_logged_in_userid_t Reply_kextmanager_get_logged_in_userid;
+ __Reply__kextmanager_record_nonsecure_kextload_t Reply_kextmanager_record_nonsecure_kextload;
+ __Reply__kextmanager_lock_reboot_t Reply_kextmanager_lock_reboot;
+ __Reply__kextmanager_lock_volume_t Reply_kextmanager_lock_volume;
+ __Reply__kextmanager_unlock_volume_t Reply_kextmanager_unlock_volume;
+ __Reply__kextmanager_lock_kextload_t Reply_kextmanager_lock_kextload;
+ __Reply__kextmanager_unlock_kextload_t Reply_kextmanager_unlock_kextload;
+ __Reply__kextmanager_record_path_for_bundle_id_t Reply_kextmanager_record_path_for_bundle_id;
+};
+#endif /* !__RequestUnion__kextmanager_subsystem__defined */
+
+#ifndef subsystem_to_name_map_kextmanager
+#define subsystem_to_name_map_kextmanager \
+ { "kextmanager_path_for_bundle_id", 70000 },\
+ { "kextmanager_create_property_value_array", 70001 },\
+ { "kextmanager_user_did_log_in", 70002 },\
+ { "kextmanager_user_will_log_out", 70003 },\
+ { "kextmanager_get_logged_in_userid", 70004 },\
+ { "kextmanager_record_nonsecure_kextload", 70005 },\
+ { "kextmanager_lock_reboot", 70006 },\
+ { "kextmanager_lock_volume", 70007 },\
+ { "kextmanager_unlock_volume", 70008 },\
+ { "kextmanager_lock_kextload", 70009 },\
+ { "kextmanager_unlock_kextload", 70010 },\
+ { "kextmanager_record_path_for_bundle_id", 70011 }
+#endif
+
+#ifdef __AfterMigUserHeader
+__AfterMigUserHeader
+#endif /* __AfterMigUserHeader */
+
+#endif /* _kextmanager_user_ */
diff --git a/data/system-cmds/kextmanagerServer.c b/data/system-cmds/kextmanagerServer.c
new file mode 100644
index 000000000..401fe5874
--- /dev/null
+++ b/data/system-cmds/kextmanagerServer.c
@@ -0,0 +1,2756 @@
+/*
+ * IDENTIFICATION:
+ * stub generated Mon Dec 31 12:08:43 2007
+ * with a MiG generated Mon Sep 11 19:11:05 PDT 2006 by root@b09.apple.com
+ * OPTIONS:
+ */
+
+/* Module kextmanager */
+
+#define __MIG_check__Request__kextmanager_subsystem__ 1
+#define __NDR_convert__Request__kextmanager_subsystem__ 1
+
+#include <string.h>
+#include <mach/ndr.h>
+#include <mach/boolean.h>
+#include <mach/kern_return.h>
+#include <mach/notify.h>
+#include <mach/mach_types.h>
+#include <mach/message.h>
+#include <mach/mig_errors.h>
+#include <mach/port.h>
+
+#include <mach/std_types.h>
+#include <mach/mig.h>
+#include <mach/mig.h>
+#include <mach/mach_types.h>
+#include <Security/Authorization.h>
+#include <IOKit/kext/kextmanager_types.h>
+#include <mach/kmod.h>
+#include <sys/param.h>
+
+#ifndef mig_internal
+#define mig_internal static __inline__
+#endif /* mig_internal */
+
+#ifndef mig_external
+#define mig_external
+#endif /* mig_external */
+
+#if !defined(__MigTypeCheck) && defined(TypeCheck)
+#define __MigTypeCheck TypeCheck /* Legacy setting */
+#endif /* !defined(__MigTypeCheck) */
+
+#if !defined(__MigKernelSpecificCode) && defined(_MIG_KERNEL_SPECIFIC_CODE_)
+#define __MigKernelSpecificCode _MIG_KERNEL_SPECIFIC_CODE_ /* Legacy setting */
+#endif /* !defined(__MigKernelSpecificCode) */
+
+#ifndef LimitCheck
+#define LimitCheck 0
+#endif /* LimitCheck */
+
+#ifndef min
+#define min(a,b) ( ((a) < (b))? (a): (b) )
+#endif /* min */
+
+#if !defined(_WALIGN_)
+#define _WALIGN_(x) (((x) + 3) & ~3)
+#endif /* !defined(_WALIGN_) */
+
+#if !defined(_WALIGNSZ_)
+#define _WALIGNSZ_(x) _WALIGN_(sizeof(x))
+#endif /* !defined(_WALIGNSZ_) */
+
+#ifndef UseStaticTemplates
+#define UseStaticTemplates 0
+#endif /* UseStaticTemplates */
+
+#ifndef __DeclareRcvRpc
+#define __DeclareRcvRpc(_NUM_, _NAME_)
+#endif /* __DeclareRcvRpc */
+
+#ifndef __BeforeRcvRpc
+#define __BeforeRcvRpc(_NUM_, _NAME_)
+#endif /* __BeforeRcvRpc */
+
+#ifndef __AfterRcvRpc
+#define __AfterRcvRpc(_NUM_, _NAME_)
+#endif /* __AfterRcvRpc */
+
+#ifndef __DeclareRcvSimple
+#define __DeclareRcvSimple(_NUM_, _NAME_)
+#endif /* __DeclareRcvSimple */
+
+#ifndef __BeforeRcvSimple
+#define __BeforeRcvSimple(_NUM_, _NAME_)
+#endif /* __BeforeRcvSimple */
+
+#ifndef __AfterRcvSimple
+#define __AfterRcvSimple(_NUM_, _NAME_)
+#endif /* __AfterRcvSimple */
+
+#define novalue void
+
+#define msgh_request_port msgh_local_port
+#define MACH_MSGH_BITS_REQUEST(bits) MACH_MSGH_BITS_LOCAL(bits)
+#define msgh_reply_port msgh_remote_port
+#define MACH_MSGH_BITS_REPLY(bits) MACH_MSGH_BITS_REMOTE(bits)
+
+#define MIG_RETURN_ERROR(X, code) {\
+ ((mig_reply_error_t *)X)->RetCode = code;\
+ ((mig_reply_error_t *)X)->NDR = NDR_record;\
+ return;\
+ }
+
+/* typedefs for all requests */
+
+#ifndef __Request__kextmanager_subsystem__defined
+#define __Request__kextmanager_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kext_bundle_id_t bundle_id;
+ } __Request__kextmanager_path_for_bundle_id_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ property_key_t prop_key;
+ } __Request__kextmanager_create_property_value_array_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ uint32_t euid;
+ AuthorizationExternalForm authref;
+ } __Request__kextmanager_user_did_log_in_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ uint32_t euid;
+ } __Request__kextmanager_user_will_log_out_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ } __Request__kextmanager_get_logged_in_userid_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t load_data;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t load_dataCnt;
+ } __Request__kextmanager_record_nonsecure_kextload_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t reaper;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ int waitForLock;
+ } __Request__kextmanager_lock_reboot_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t reaper;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ uuid_t vol_uuid;
+ int waitForLock;
+ } __Request__kextmanager_lock_volume_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t clientIdent;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ uuid_t vol_uuid;
+ int exitStatus;
+ } __Request__kextmanager_unlock_volume_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t clientPort;
+ /* end of the kernel processed data */
+ } __Request__kextmanager_lock_kextload_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t clientPort;
+ /* end of the kernel processed data */
+ } __Request__kextmanager_unlock_kextload_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kext_bundle_id_t bundle_id;
+ posix_path_t path;
+ } __Request__kextmanager_record_path_for_bundle_id_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Request__kextmanager_subsystem__defined */
+
+/* typedefs for all replies */
+
+#ifndef __Reply__kextmanager_subsystem__defined
+#define __Reply__kextmanager_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ posix_path_t path;
+ kext_result_t kext_result;
+ } __Reply__kextmanager_path_for_bundle_id_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t data;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t dataCnt;
+ } __Reply__kextmanager_create_property_value_array_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__kextmanager_user_did_log_in_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__kextmanager_user_will_log_out_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ uint32_t euid;
+ } __Reply__kextmanager_get_logged_in_userid_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__kextmanager_record_nonsecure_kextload_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mountpoint_t busyVol;
+ char busyVolPad[2];
+ int busyStatus;
+ } __Reply__kextmanager_lock_reboot_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ int lockStatus;
+ } __Reply__kextmanager_lock_volume_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__kextmanager_unlock_volume_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ int lockstatus;
+ } __Reply__kextmanager_lock_kextload_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__kextmanager_unlock_kextload_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__kextmanager_record_path_for_bundle_id_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Reply__kextmanager_subsystem__defined */
+
+
+/* union of all replies */
+
+#ifndef __ReplyUnion___kextmanager_subsystem__defined
+#define __ReplyUnion___kextmanager_subsystem__defined
+union __ReplyUnion___kextmanager_subsystem {
+ __Reply__kextmanager_path_for_bundle_id_t Reply_kextmanager_path_for_bundle_id;
+ __Reply__kextmanager_create_property_value_array_t Reply_kextmanager_create_property_value_array;
+ __Reply__kextmanager_user_did_log_in_t Reply_kextmanager_user_did_log_in;
+ __Reply__kextmanager_user_will_log_out_t Reply_kextmanager_user_will_log_out;
+ __Reply__kextmanager_get_logged_in_userid_t Reply_kextmanager_get_logged_in_userid;
+ __Reply__kextmanager_record_nonsecure_kextload_t Reply_kextmanager_record_nonsecure_kextload;
+ __Reply__kextmanager_lock_reboot_t Reply_kextmanager_lock_reboot;
+ __Reply__kextmanager_lock_volume_t Reply_kextmanager_lock_volume;
+ __Reply__kextmanager_unlock_volume_t Reply_kextmanager_unlock_volume;
+ __Reply__kextmanager_lock_kextload_t Reply_kextmanager_lock_kextload;
+ __Reply__kextmanager_unlock_kextload_t Reply_kextmanager_unlock_kextload;
+ __Reply__kextmanager_record_path_for_bundle_id_t Reply_kextmanager_record_path_for_bundle_id;
+};
+#endif /* __RequestUnion___kextmanager_subsystem__defined */
+/* Forward Declarations */
+
+
+mig_internal novalue _Xkextmanager_path_for_bundle_id
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
+
+mig_internal novalue _Xkextmanager_create_property_value_array
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
+
+mig_internal novalue _Xkextmanager_user_did_log_in
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
+
+mig_internal novalue _Xkextmanager_user_will_log_out
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
+
+mig_internal novalue _Xkextmanager_get_logged_in_userid
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
+
+mig_internal novalue _Xkextmanager_record_nonsecure_kextload
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
+
+mig_internal novalue _Xkextmanager_lock_reboot
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
+
+mig_internal novalue _Xkextmanager_lock_volume
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
+
+mig_internal novalue _Xkextmanager_unlock_volume
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
+
+mig_internal novalue _Xkextmanager_lock_kextload
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
+
+mig_internal novalue _Xkextmanager_unlock_kextload
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
+
+mig_internal novalue _Xkextmanager_record_path_for_bundle_id
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
+
+
+#if (__MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Request__kextmanager_subsystem__
+#if !defined(__MIG_check__Request__kextmanager_path_for_bundle_id_t__defined)
+#define __MIG_check__Request__kextmanager_path_for_bundle_id_t__defined
+#ifndef __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined
+#if defined(__NDR_convert__int_rep__kextmanager__kext_bundle_id_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__int_rep__kextmanager__kext_bundle_id_t((kext_bundle_id_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kext_bundle_id_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__int_rep__kext_bundle_id_t((kext_bundle_id_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__char__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__int_rep__kextmanager__char)
+#elif defined(__NDR_convert__int_rep__char__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__int_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined */
+
+#ifndef __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined
+#if defined(__NDR_convert__char_rep__kextmanager__kext_bundle_id_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__char_rep__kextmanager__kext_bundle_id_t((kext_bundle_id_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__kext_bundle_id_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__char_rep__kext_bundle_id_t((kext_bundle_id_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__char__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__char_rep__kextmanager__char)
+#elif defined(__NDR_convert__char_rep__char__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__char_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined */
+
+#ifndef __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined
+#if defined(__NDR_convert__float_rep__kextmanager__kext_bundle_id_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__float_rep__kextmanager__kext_bundle_id_t((kext_bundle_id_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__kext_bundle_id_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__float_rep__kext_bundle_id_t((kext_bundle_id_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__char__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__float_rep__kextmanager__char)
+#elif defined(__NDR_convert__float_rep__char__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__float_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined */
+
+
+mig_internal kern_return_t __MIG_check__Request__kextmanager_path_for_bundle_id_t(__Request__kextmanager_path_for_bundle_id_t *In0P)
+{
+
+ typedef __Request__kextmanager_path_for_bundle_id_t __Request;
+#if __MigTypeCheck
+ if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
+ return MIG_BAD_ARGUMENTS;
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined)
+ if (In0P->NDR.int_rep != NDR_record.int_rep) {
+#if defined(__NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined)
+ __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(&In0P->bundle_id, In0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined */
+ }
+#endif /* defined(__NDR_convert__int_rep...) */
+
+#if defined(__NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined)
+ if (In0P->NDR.char_rep != NDR_record.char_rep) {
+#if defined(__NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined)
+ __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(&In0P->bundle_id, In0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined */
+ }
+#endif /* defined(__NDR_convert__char_rep...) */
+
+#if defined(__NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined)
+ if (In0P->NDR.float_rep != NDR_record.float_rep) {
+#if defined(__NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined)
+ __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(&In0P->bundle_id, In0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined */
+ }
+#endif /* defined(__NDR_convert__float_rep...) */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Request__kextmanager_path_for_bundle_id_t__defined) */
+#endif /* __MIG_check__Request__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_path_for_bundle_id */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t _kextmanager_path_for_bundle_id
+(
+ mach_port_t server,
+ kext_bundle_id_t bundle_id,
+ posix_path_t path,
+ kext_result_t *kext_result
+);
+
+/* Routine kextmanager_path_for_bundle_id */
+mig_internal novalue _Xkextmanager_path_for_bundle_id
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
+{
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kext_bundle_id_t bundle_id;
+ mach_msg_trailer_t trailer;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ typedef __Request__kextmanager_path_for_bundle_id_t __Request;
+ typedef __Reply__kextmanager_path_for_bundle_id_t Reply;
+
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ Request *In0P = (Request *) InHeadP;
+ Reply *OutP = (Reply *) OutHeadP;
+#ifdef __MIG_check__Request__kextmanager_path_for_bundle_id_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Request__kextmanager_path_for_bundle_id_t__defined */
+
+ __DeclareRcvRpc(70000, "kextmanager_path_for_bundle_id")
+ __BeforeRcvRpc(70000, "kextmanager_path_for_bundle_id")
+
+#if defined(__MIG_check__Request__kextmanager_path_for_bundle_id_t__defined)
+ check_result = __MIG_check__Request__kextmanager_path_for_bundle_id_t((__Request *)In0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { MIG_RETURN_ERROR(OutP, check_result); }
+#endif /* defined(__MIG_check__Request__kextmanager_path_for_bundle_id_t__defined) */
+
+ OutP->RetCode = _kextmanager_path_for_bundle_id(In0P->Head.msgh_request_port, In0P->bundle_id, OutP->path, &OutP->kext_result);
+ if (OutP->RetCode != KERN_SUCCESS) {
+ MIG_RETURN_ERROR(OutP, OutP->RetCode);
+ }
+
+ OutP->NDR = NDR_record;
+
+
+ OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply));
+ __AfterRcvRpc(70000, "kextmanager_path_for_bundle_id")
+}
+
+#if (__MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Request__kextmanager_subsystem__
+#if !defined(__MIG_check__Request__kextmanager_create_property_value_array_t__defined)
+#define __MIG_check__Request__kextmanager_create_property_value_array_t__defined
+#ifndef __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined
+#if defined(__NDR_convert__int_rep__kextmanager__property_key_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined
+#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \
+ __NDR_convert__int_rep__kextmanager__property_key_t((property_key_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__property_key_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined
+#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \
+ __NDR_convert__int_rep__property_key_t((property_key_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__char__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined
+#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 128, __NDR_convert__int_rep__kextmanager__char)
+#elif defined(__NDR_convert__int_rep__char__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined
+#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 128, __NDR_convert__int_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined */
+
+#ifndef __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined
+#if defined(__NDR_convert__char_rep__kextmanager__property_key_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined
+#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \
+ __NDR_convert__char_rep__kextmanager__property_key_t((property_key_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__property_key_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined
+#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \
+ __NDR_convert__char_rep__property_key_t((property_key_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__char__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined
+#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 128, __NDR_convert__char_rep__kextmanager__char)
+#elif defined(__NDR_convert__char_rep__char__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined
+#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 128, __NDR_convert__char_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined */
+
+#ifndef __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined
+#if defined(__NDR_convert__float_rep__kextmanager__property_key_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined
+#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \
+ __NDR_convert__float_rep__kextmanager__property_key_t((property_key_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__property_key_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined
+#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \
+ __NDR_convert__float_rep__property_key_t((property_key_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__char__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined
+#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 128, __NDR_convert__float_rep__kextmanager__char)
+#elif defined(__NDR_convert__float_rep__char__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined
+#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 128, __NDR_convert__float_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined */
+
+
+mig_internal kern_return_t __MIG_check__Request__kextmanager_create_property_value_array_t(__Request__kextmanager_create_property_value_array_t *In0P)
+{
+
+ typedef __Request__kextmanager_create_property_value_array_t __Request;
+#if __MigTypeCheck
+ if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
+ return MIG_BAD_ARGUMENTS;
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined)
+ if (In0P->NDR.int_rep != NDR_record.int_rep) {
+#if defined(__NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined)
+ __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key(&In0P->prop_key, In0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined */
+ }
+#endif /* defined(__NDR_convert__int_rep...) */
+
+#if defined(__NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined)
+ if (In0P->NDR.char_rep != NDR_record.char_rep) {
+#if defined(__NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined)
+ __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key(&In0P->prop_key, In0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined */
+ }
+#endif /* defined(__NDR_convert__char_rep...) */
+
+#if defined(__NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined)
+ if (In0P->NDR.float_rep != NDR_record.float_rep) {
+#if defined(__NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined)
+ __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key(&In0P->prop_key, In0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined */
+ }
+#endif /* defined(__NDR_convert__float_rep...) */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Request__kextmanager_create_property_value_array_t__defined) */
+#endif /* __MIG_check__Request__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_create_property_value_array */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t _kextmanager_create_property_value_array
+(
+ mach_port_t server,
+ property_key_t prop_key,
+ xmlDataOut_t *data,
+ mach_msg_type_number_t *dataCnt
+);
+
+/* Routine kextmanager_create_property_value_array */
+mig_internal novalue _Xkextmanager_create_property_value_array
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
+{
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ property_key_t prop_key;
+ mach_msg_trailer_t trailer;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ typedef __Request__kextmanager_create_property_value_array_t __Request;
+ typedef __Reply__kextmanager_create_property_value_array_t Reply;
+
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ Request *In0P = (Request *) InHeadP;
+ Reply *OutP = (Reply *) OutHeadP;
+#ifdef __MIG_check__Request__kextmanager_create_property_value_array_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Request__kextmanager_create_property_value_array_t__defined */
+
+#if UseStaticTemplates
+ const static mach_msg_ool_descriptor_t dataTemplate = {
+ /* addr = */ (void *)0,
+ /* size = */ 0,
+ /* deal = */ TRUE,
+ /* copy = */ MACH_MSG_VIRTUAL_COPY,
+ /* pad2 = */ 0,
+ /* type = */ MACH_MSG_OOL_DESCRIPTOR,
+ };
+#endif /* UseStaticTemplates */
+
+ kern_return_t RetCode;
+ __DeclareRcvRpc(70001, "kextmanager_create_property_value_array")
+ __BeforeRcvRpc(70001, "kextmanager_create_property_value_array")
+
+#if defined(__MIG_check__Request__kextmanager_create_property_value_array_t__defined)
+ check_result = __MIG_check__Request__kextmanager_create_property_value_array_t((__Request *)In0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { MIG_RETURN_ERROR(OutP, check_result); }
+#endif /* defined(__MIG_check__Request__kextmanager_create_property_value_array_t__defined) */
+
+#if UseStaticTemplates
+ OutP->data = dataTemplate;
+#else /* UseStaticTemplates */
+ OutP->data.deallocate = TRUE;
+ OutP->data.copy = MACH_MSG_VIRTUAL_COPY;
+ OutP->data.type = MACH_MSG_OOL_DESCRIPTOR;
+#endif /* UseStaticTemplates */
+
+
+ RetCode = _kextmanager_create_property_value_array(In0P->Head.msgh_request_port, In0P->prop_key, (xmlDataOut_t *)&(OutP->data.address), &OutP->dataCnt);
+ if (RetCode != KERN_SUCCESS) {
+ MIG_RETURN_ERROR(OutP, RetCode);
+ }
+ OutP->data.size = OutP->dataCnt;
+
+
+ OutP->NDR = NDR_record;
+
+
+ OutP->Head.msgh_bits |= MACH_MSGH_BITS_COMPLEX;
+ OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply));
+ OutP->msgh_body.msgh_descriptor_count = 1;
+ __AfterRcvRpc(70001, "kextmanager_create_property_value_array")
+}
+
+#if (__MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Request__kextmanager_subsystem__
+#if !defined(__MIG_check__Request__kextmanager_user_did_log_in_t__defined)
+#define __MIG_check__Request__kextmanager_user_did_log_in_t__defined
+#ifndef __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid__defined
+#if defined(__NDR_convert__int_rep__kextmanager__uint32_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid__defined
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid(a, f) \
+ __NDR_convert__int_rep__kextmanager__uint32_t((uint32_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__uint32_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid__defined
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid(a, f) \
+ __NDR_convert__int_rep__uint32_t((uint32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid__defined */
+
+#ifndef __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#if defined(__NDR_convert__int_rep__kextmanager__AuthorizationExternalForm__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__int_rep__kextmanager__AuthorizationExternalForm((AuthorizationExternalForm *)(a), f)
+#elif defined(__NDR_convert__int_rep__AuthorizationExternalForm__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__int_rep__AuthorizationExternalForm((AuthorizationExternalForm *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__unsigned32__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__ARRAY((unsigned32 *)(a), f, 8, __NDR_convert__int_rep__kextmanager__unsigned32)
+#elif defined(__NDR_convert__int_rep__unsigned32__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__ARRAY((unsigned32 *)(a), f, 8, __NDR_convert__int_rep__unsigned32)
+#elif defined(__NDR_convert__int_rep__kextmanager__uint32_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__ARRAY((uint32_t *)(a), f, 8, __NDR_convert__int_rep__kextmanager__uint32_t)
+#elif defined(__NDR_convert__int_rep__uint32_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__ARRAY((uint32_t *)(a), f, 8, __NDR_convert__int_rep__uint32_t)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined */
+
+#ifndef __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid__defined
+#if defined(__NDR_convert__char_rep__kextmanager__uint32_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid__defined
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid(a, f) \
+ __NDR_convert__char_rep__kextmanager__uint32_t((uint32_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__uint32_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid__defined
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid(a, f) \
+ __NDR_convert__char_rep__uint32_t((uint32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid__defined */
+
+#ifndef __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#if defined(__NDR_convert__char_rep__kextmanager__AuthorizationExternalForm__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__char_rep__kextmanager__AuthorizationExternalForm((AuthorizationExternalForm *)(a), f)
+#elif defined(__NDR_convert__char_rep__AuthorizationExternalForm__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__char_rep__AuthorizationExternalForm((AuthorizationExternalForm *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__unsigned32__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__ARRAY((unsigned32 *)(a), f, 8, __NDR_convert__char_rep__kextmanager__unsigned32)
+#elif defined(__NDR_convert__char_rep__unsigned32__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__ARRAY((unsigned32 *)(a), f, 8, __NDR_convert__char_rep__unsigned32)
+#elif defined(__NDR_convert__char_rep__kextmanager__uint32_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__ARRAY((uint32_t *)(a), f, 8, __NDR_convert__char_rep__kextmanager__uint32_t)
+#elif defined(__NDR_convert__char_rep__uint32_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__ARRAY((uint32_t *)(a), f, 8, __NDR_convert__char_rep__uint32_t)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined */
+
+#ifndef __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid__defined
+#if defined(__NDR_convert__float_rep__kextmanager__uint32_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid__defined
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid(a, f) \
+ __NDR_convert__float_rep__kextmanager__uint32_t((uint32_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__uint32_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid__defined
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid(a, f) \
+ __NDR_convert__float_rep__uint32_t((uint32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid__defined */
+
+#ifndef __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#if defined(__NDR_convert__float_rep__kextmanager__AuthorizationExternalForm__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__float_rep__kextmanager__AuthorizationExternalForm((AuthorizationExternalForm *)(a), f)
+#elif defined(__NDR_convert__float_rep__AuthorizationExternalForm__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__float_rep__AuthorizationExternalForm((AuthorizationExternalForm *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__unsigned32__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__ARRAY((unsigned32 *)(a), f, 8, __NDR_convert__float_rep__kextmanager__unsigned32)
+#elif defined(__NDR_convert__float_rep__unsigned32__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__ARRAY((unsigned32 *)(a), f, 8, __NDR_convert__float_rep__unsigned32)
+#elif defined(__NDR_convert__float_rep__kextmanager__uint32_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__ARRAY((uint32_t *)(a), f, 8, __NDR_convert__float_rep__kextmanager__uint32_t)
+#elif defined(__NDR_convert__float_rep__uint32_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined
+#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \
+ __NDR_convert__ARRAY((uint32_t *)(a), f, 8, __NDR_convert__float_rep__uint32_t)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined */
+
+
+mig_internal kern_return_t __MIG_check__Request__kextmanager_user_did_log_in_t(__Request__kextmanager_user_did_log_in_t *In0P)
+{
+
+ typedef __Request__kextmanager_user_did_log_in_t __Request;
+#if __MigTypeCheck
+ if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
+ return MIG_BAD_ARGUMENTS;
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid__defined) || \
+ defined(__NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined)
+ if (In0P->NDR.int_rep != NDR_record.int_rep) {
+#if defined(__NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid__defined)
+ __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid(&In0P->euid, In0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid__defined */
+#if defined(__NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined)
+ __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref(&In0P->authref, In0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined */
+ }
+#endif /* defined(__NDR_convert__int_rep...) */
+
+#if defined(__NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid__defined) || \
+ defined(__NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined)
+ if (In0P->NDR.char_rep != NDR_record.char_rep) {
+#if defined(__NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid__defined)
+ __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid(&In0P->euid, In0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid__defined */
+#if defined(__NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined)
+ __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref(&In0P->authref, In0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined */
+ }
+#endif /* defined(__NDR_convert__char_rep...) */
+
+#if defined(__NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid__defined) || \
+ defined(__NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined)
+ if (In0P->NDR.float_rep != NDR_record.float_rep) {
+#if defined(__NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid__defined)
+ __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid(&In0P->euid, In0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid__defined */
+#if defined(__NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined)
+ __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref(&In0P->authref, In0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined */
+ }
+#endif /* defined(__NDR_convert__float_rep...) */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Request__kextmanager_user_did_log_in_t__defined) */
+#endif /* __MIG_check__Request__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_user_did_log_in */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t _kextmanager_user_did_log_in
+(
+ mach_port_t server,
+ uint32_t euid,
+ AuthorizationExternalForm authref
+);
+
+/* Routine kextmanager_user_did_log_in */
+mig_internal novalue _Xkextmanager_user_did_log_in
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
+{
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ uint32_t euid;
+ AuthorizationExternalForm authref;
+ mach_msg_trailer_t trailer;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ typedef __Request__kextmanager_user_did_log_in_t __Request;
+ typedef __Reply__kextmanager_user_did_log_in_t Reply;
+
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ Request *In0P = (Request *) InHeadP;
+ Reply *OutP = (Reply *) OutHeadP;
+#ifdef __MIG_check__Request__kextmanager_user_did_log_in_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Request__kextmanager_user_did_log_in_t__defined */
+
+ __DeclareRcvRpc(70002, "kextmanager_user_did_log_in")
+ __BeforeRcvRpc(70002, "kextmanager_user_did_log_in")
+
+#if defined(__MIG_check__Request__kextmanager_user_did_log_in_t__defined)
+ check_result = __MIG_check__Request__kextmanager_user_did_log_in_t((__Request *)In0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { MIG_RETURN_ERROR(OutP, check_result); }
+#endif /* defined(__MIG_check__Request__kextmanager_user_did_log_in_t__defined) */
+
+ OutP->RetCode = _kextmanager_user_did_log_in(In0P->Head.msgh_request_port, In0P->euid, In0P->authref);
+
+ OutP->NDR = NDR_record;
+
+
+ __AfterRcvRpc(70002, "kextmanager_user_did_log_in")
+}
+
+#if (__MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Request__kextmanager_subsystem__
+#if !defined(__MIG_check__Request__kextmanager_user_will_log_out_t__defined)
+#define __MIG_check__Request__kextmanager_user_will_log_out_t__defined
+#ifndef __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid__defined
+#if defined(__NDR_convert__int_rep__kextmanager__uint32_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid__defined
+#define __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid(a, f) \
+ __NDR_convert__int_rep__kextmanager__uint32_t((uint32_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__uint32_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid__defined
+#define __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid(a, f) \
+ __NDR_convert__int_rep__uint32_t((uint32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid__defined */
+
+#ifndef __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid__defined
+#if defined(__NDR_convert__char_rep__kextmanager__uint32_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid__defined
+#define __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid(a, f) \
+ __NDR_convert__char_rep__kextmanager__uint32_t((uint32_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__uint32_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid__defined
+#define __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid(a, f) \
+ __NDR_convert__char_rep__uint32_t((uint32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid__defined */
+
+#ifndef __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid__defined
+#if defined(__NDR_convert__float_rep__kextmanager__uint32_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid__defined
+#define __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid(a, f) \
+ __NDR_convert__float_rep__kextmanager__uint32_t((uint32_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__uint32_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid__defined
+#define __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid(a, f) \
+ __NDR_convert__float_rep__uint32_t((uint32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid__defined */
+
+
+mig_internal kern_return_t __MIG_check__Request__kextmanager_user_will_log_out_t(__Request__kextmanager_user_will_log_out_t *In0P)
+{
+
+ typedef __Request__kextmanager_user_will_log_out_t __Request;
+#if __MigTypeCheck
+ if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
+ return MIG_BAD_ARGUMENTS;
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid__defined)
+ if (In0P->NDR.int_rep != NDR_record.int_rep) {
+#if defined(__NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid__defined)
+ __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid(&In0P->euid, In0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid__defined */
+ }
+#endif /* defined(__NDR_convert__int_rep...) */
+
+#if defined(__NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid__defined)
+ if (In0P->NDR.char_rep != NDR_record.char_rep) {
+#if defined(__NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid__defined)
+ __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid(&In0P->euid, In0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid__defined */
+ }
+#endif /* defined(__NDR_convert__char_rep...) */
+
+#if defined(__NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid__defined)
+ if (In0P->NDR.float_rep != NDR_record.float_rep) {
+#if defined(__NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid__defined)
+ __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid(&In0P->euid, In0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid__defined */
+ }
+#endif /* defined(__NDR_convert__float_rep...) */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Request__kextmanager_user_will_log_out_t__defined) */
+#endif /* __MIG_check__Request__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_user_will_log_out */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t _kextmanager_user_will_log_out
+(
+ mach_port_t server,
+ uint32_t euid
+);
+
+/* Routine kextmanager_user_will_log_out */
+mig_internal novalue _Xkextmanager_user_will_log_out
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
+{
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ uint32_t euid;
+ mach_msg_trailer_t trailer;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ typedef __Request__kextmanager_user_will_log_out_t __Request;
+ typedef __Reply__kextmanager_user_will_log_out_t Reply;
+
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ Request *In0P = (Request *) InHeadP;
+ Reply *OutP = (Reply *) OutHeadP;
+#ifdef __MIG_check__Request__kextmanager_user_will_log_out_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Request__kextmanager_user_will_log_out_t__defined */
+
+ __DeclareRcvRpc(70003, "kextmanager_user_will_log_out")
+ __BeforeRcvRpc(70003, "kextmanager_user_will_log_out")
+
+#if defined(__MIG_check__Request__kextmanager_user_will_log_out_t__defined)
+ check_result = __MIG_check__Request__kextmanager_user_will_log_out_t((__Request *)In0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { MIG_RETURN_ERROR(OutP, check_result); }
+#endif /* defined(__MIG_check__Request__kextmanager_user_will_log_out_t__defined) */
+
+ OutP->RetCode = _kextmanager_user_will_log_out(In0P->Head.msgh_request_port, In0P->euid);
+
+ OutP->NDR = NDR_record;
+
+
+ __AfterRcvRpc(70003, "kextmanager_user_will_log_out")
+}
+
+#if (__MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Request__kextmanager_subsystem__
+#if !defined(__MIG_check__Request__kextmanager_get_logged_in_userid_t__defined)
+#define __MIG_check__Request__kextmanager_get_logged_in_userid_t__defined
+
+mig_internal kern_return_t __MIG_check__Request__kextmanager_get_logged_in_userid_t(__Request__kextmanager_get_logged_in_userid_t *In0P)
+{
+
+ typedef __Request__kextmanager_get_logged_in_userid_t __Request;
+#if __MigTypeCheck
+ if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
+ return MIG_BAD_ARGUMENTS;
+#endif /* __MigTypeCheck */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Request__kextmanager_get_logged_in_userid_t__defined) */
+#endif /* __MIG_check__Request__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_get_logged_in_userid */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t _kextmanager_get_logged_in_userid
+(
+ mach_port_t server,
+ uint32_t *euid
+);
+
+/* Routine kextmanager_get_logged_in_userid */
+mig_internal novalue _Xkextmanager_get_logged_in_userid
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
+{
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ mach_msg_trailer_t trailer;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ typedef __Request__kextmanager_get_logged_in_userid_t __Request;
+ typedef __Reply__kextmanager_get_logged_in_userid_t Reply;
+
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ Request *In0P = (Request *) InHeadP;
+ Reply *OutP = (Reply *) OutHeadP;
+#ifdef __MIG_check__Request__kextmanager_get_logged_in_userid_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Request__kextmanager_get_logged_in_userid_t__defined */
+
+ __DeclareRcvRpc(70004, "kextmanager_get_logged_in_userid")
+ __BeforeRcvRpc(70004, "kextmanager_get_logged_in_userid")
+
+#if defined(__MIG_check__Request__kextmanager_get_logged_in_userid_t__defined)
+ check_result = __MIG_check__Request__kextmanager_get_logged_in_userid_t((__Request *)In0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { MIG_RETURN_ERROR(OutP, check_result); }
+#endif /* defined(__MIG_check__Request__kextmanager_get_logged_in_userid_t__defined) */
+
+ OutP->RetCode = _kextmanager_get_logged_in_userid(In0P->Head.msgh_request_port, &OutP->euid);
+ if (OutP->RetCode != KERN_SUCCESS) {
+ MIG_RETURN_ERROR(OutP, OutP->RetCode);
+ }
+
+ OutP->NDR = NDR_record;
+
+
+ OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply));
+ __AfterRcvRpc(70004, "kextmanager_get_logged_in_userid")
+}
+
+#if (__MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Request__kextmanager_subsystem__
+#if !defined(__MIG_check__Request__kextmanager_record_nonsecure_kextload_t__defined)
+#define __MIG_check__Request__kextmanager_record_nonsecure_kextload_t__defined
+#ifndef __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined
+#if defined(__NDR_convert__int_rep__kextmanager__xmlDataIn_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined
+#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data(a, f, c) \
+ __NDR_convert__int_rep__kextmanager__xmlDataIn_t((xmlDataIn_t *)(a), f, c)
+#elif defined(__NDR_convert__int_rep__xmlDataIn_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined
+#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data(a, f, c) \
+ __NDR_convert__int_rep__xmlDataIn_t((xmlDataIn_t *)(a), f, c)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined */
+
+#ifndef __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt__defined
+#if defined(__NDR_convert__int_rep__kextmanager__mach_msg_type_number_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt__defined
+#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt(a, f) \
+ __NDR_convert__int_rep__kextmanager__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__mach_msg_type_number_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt__defined
+#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt(a, f) \
+ __NDR_convert__int_rep__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt__defined */
+
+#ifndef __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined
+#if defined(__NDR_convert__char_rep__kextmanager__xmlDataIn_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined
+#define __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data(a, f, c) \
+ __NDR_convert__char_rep__kextmanager__xmlDataIn_t((xmlDataIn_t *)(a), f, c)
+#elif defined(__NDR_convert__char_rep__xmlDataIn_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined
+#define __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data(a, f, c) \
+ __NDR_convert__char_rep__xmlDataIn_t((xmlDataIn_t *)(a), f, c)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined */
+
+#ifndef __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined
+#if defined(__NDR_convert__float_rep__kextmanager__xmlDataIn_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined
+#define __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data(a, f, c) \
+ __NDR_convert__float_rep__kextmanager__xmlDataIn_t((xmlDataIn_t *)(a), f, c)
+#elif defined(__NDR_convert__float_rep__xmlDataIn_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined
+#define __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data(a, f, c) \
+ __NDR_convert__float_rep__xmlDataIn_t((xmlDataIn_t *)(a), f, c)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined */
+
+
+mig_internal kern_return_t __MIG_check__Request__kextmanager_record_nonsecure_kextload_t(__Request__kextmanager_record_nonsecure_kextload_t *In0P)
+{
+
+ typedef __Request__kextmanager_record_nonsecure_kextload_t __Request;
+#if __MigTypeCheck
+ if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (In0P->msgh_body.msgh_descriptor_count != 1) ||
+ (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
+ return MIG_BAD_ARGUMENTS;
+#endif /* __MigTypeCheck */
+
+#if __MigTypeCheck
+ if (In0P->load_data.type != MACH_MSG_OOL_DESCRIPTOR)
+ return MIG_TYPE_ERROR;
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined) || \
+ defined(__NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt__defined)
+ if (In0P->NDR.int_rep != NDR_record.int_rep) {
+#if defined(__NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt__defined)
+ __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt(&In0P->load_dataCnt, In0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt__defined */
+#if defined(__NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined)
+ __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data((xmlDataIn_t)(In0P->load_data.address), In0P->NDR.int_rep, In0P->load_dataCnt);
+#endif /* __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined */
+ }
+#endif /* defined(__NDR_convert__int_rep...) */
+
+#if defined(__NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined) || \
+ 0
+ if (In0P->NDR.char_rep != NDR_record.char_rep) {
+#if defined(__NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined)
+ __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data((xmlDataIn_t)(In0P->load_data.address), In0P->NDR.char_rep, In0P->load_dataCnt);
+#endif /* __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined */
+ }
+#endif /* defined(__NDR_convert__char_rep...) */
+
+#if defined(__NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined) || \
+ 0
+ if (In0P->NDR.float_rep != NDR_record.float_rep) {
+#if defined(__NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined)
+ __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data((xmlDataIn_t)(In0P->load_data.address), In0P->NDR.float_rep, In0P->load_dataCnt);
+#endif /* __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined */
+ }
+#endif /* defined(__NDR_convert__float_rep...) */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Request__kextmanager_record_nonsecure_kextload_t__defined) */
+#endif /* __MIG_check__Request__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_record_nonsecure_kextload */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t _kextmanager_record_nonsecure_kextload
+(
+ mach_port_t server,
+ xmlDataIn_t load_data,
+ mach_msg_type_number_t load_dataCnt
+);
+
+/* Routine kextmanager_record_nonsecure_kextload */
+mig_internal novalue _Xkextmanager_record_nonsecure_kextload
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
+{
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t load_data;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t load_dataCnt;
+ mach_msg_trailer_t trailer;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ typedef __Request__kextmanager_record_nonsecure_kextload_t __Request;
+ typedef __Reply__kextmanager_record_nonsecure_kextload_t Reply;
+
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ Request *In0P = (Request *) InHeadP;
+ Reply *OutP = (Reply *) OutHeadP;
+#ifdef __MIG_check__Request__kextmanager_record_nonsecure_kextload_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Request__kextmanager_record_nonsecure_kextload_t__defined */
+
+ __DeclareRcvRpc(70005, "kextmanager_record_nonsecure_kextload")
+ __BeforeRcvRpc(70005, "kextmanager_record_nonsecure_kextload")
+
+#if defined(__MIG_check__Request__kextmanager_record_nonsecure_kextload_t__defined)
+ check_result = __MIG_check__Request__kextmanager_record_nonsecure_kextload_t((__Request *)In0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { MIG_RETURN_ERROR(OutP, check_result); }
+#endif /* defined(__MIG_check__Request__kextmanager_record_nonsecure_kextload_t__defined) */
+
+ OutP->RetCode = _kextmanager_record_nonsecure_kextload(In0P->Head.msgh_request_port, (xmlDataIn_t)(In0P->load_data.address), In0P->load_dataCnt);
+
+ OutP->NDR = NDR_record;
+
+
+ __AfterRcvRpc(70005, "kextmanager_record_nonsecure_kextload")
+}
+
+#if (__MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Request__kextmanager_subsystem__
+#if !defined(__MIG_check__Request__kextmanager_lock_reboot_t__defined)
+#define __MIG_check__Request__kextmanager_lock_reboot_t__defined
+#ifndef __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined
+#if defined(__NDR_convert__int_rep__kextmanager__int__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined
+#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \
+ __NDR_convert__int_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__int_rep__int__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined
+#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \
+ __NDR_convert__int_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined
+#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \
+ __NDR_convert__int_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__int32_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined
+#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \
+ __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined */
+
+#ifndef __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined
+#if defined(__NDR_convert__char_rep__kextmanager__int__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined
+#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \
+ __NDR_convert__char_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__char_rep__int__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined
+#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \
+ __NDR_convert__char_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined
+#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \
+ __NDR_convert__char_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__int32_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined
+#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \
+ __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined */
+
+#ifndef __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined
+#if defined(__NDR_convert__float_rep__kextmanager__int__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined
+#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \
+ __NDR_convert__float_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__float_rep__int__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined
+#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \
+ __NDR_convert__float_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined
+#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \
+ __NDR_convert__float_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__int32_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined
+#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \
+ __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined */
+
+
+mig_internal kern_return_t __MIG_check__Request__kextmanager_lock_reboot_t(__Request__kextmanager_lock_reboot_t *In0P)
+{
+
+ typedef __Request__kextmanager_lock_reboot_t __Request;
+#if __MigTypeCheck
+ if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (In0P->msgh_body.msgh_descriptor_count != 1) ||
+ (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
+ return MIG_BAD_ARGUMENTS;
+#endif /* __MigTypeCheck */
+
+#if __MigTypeCheck
+ if (In0P->reaper.type != MACH_MSG_PORT_DESCRIPTOR ||
+ In0P->reaper.disposition != 17)
+ return MIG_TYPE_ERROR;
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined)
+ if (In0P->NDR.int_rep != NDR_record.int_rep) {
+#if defined(__NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined)
+ __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock(&In0P->waitForLock, In0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined */
+ }
+#endif /* defined(__NDR_convert__int_rep...) */
+
+#if defined(__NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined)
+ if (In0P->NDR.char_rep != NDR_record.char_rep) {
+#if defined(__NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined)
+ __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock(&In0P->waitForLock, In0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined */
+ }
+#endif /* defined(__NDR_convert__char_rep...) */
+
+#if defined(__NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined)
+ if (In0P->NDR.float_rep != NDR_record.float_rep) {
+#if defined(__NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined)
+ __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock(&In0P->waitForLock, In0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined */
+ }
+#endif /* defined(__NDR_convert__float_rep...) */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Request__kextmanager_lock_reboot_t__defined) */
+#endif /* __MIG_check__Request__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_lock_reboot */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t _kextmanager_lock_reboot
+(
+ mach_port_t server,
+ mach_port_t reply,
+ mach_port_t reaper,
+ int waitForLock,
+ mountpoint_t busyVol,
+ int *busyStatus
+);
+
+/* Routine kextmanager_lock_reboot */
+mig_internal novalue _Xkextmanager_lock_reboot
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
+{
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t reaper;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ int waitForLock;
+ mach_msg_trailer_t trailer;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ typedef __Request__kextmanager_lock_reboot_t __Request;
+ typedef __Reply__kextmanager_lock_reboot_t Reply;
+
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ Request *In0P = (Request *) InHeadP;
+ Reply *OutP = (Reply *) OutHeadP;
+#ifdef __MIG_check__Request__kextmanager_lock_reboot_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Request__kextmanager_lock_reboot_t__defined */
+
+ __DeclareRcvRpc(70006, "kextmanager_lock_reboot")
+ __BeforeRcvRpc(70006, "kextmanager_lock_reboot")
+
+#if defined(__MIG_check__Request__kextmanager_lock_reboot_t__defined)
+ check_result = __MIG_check__Request__kextmanager_lock_reboot_t((__Request *)In0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { MIG_RETURN_ERROR(OutP, check_result); }
+#endif /* defined(__MIG_check__Request__kextmanager_lock_reboot_t__defined) */
+
+ OutP->RetCode = _kextmanager_lock_reboot(In0P->Head.msgh_request_port, In0P->Head.msgh_reply_port, In0P->reaper.name, In0P->waitForLock, OutP->busyVol, &OutP->busyStatus);
+ if (OutP->RetCode != KERN_SUCCESS) {
+ MIG_RETURN_ERROR(OutP, OutP->RetCode);
+ }
+
+ OutP->NDR = NDR_record;
+
+
+ OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply));
+ __AfterRcvRpc(70006, "kextmanager_lock_reboot")
+}
+
+#if (__MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Request__kextmanager_subsystem__
+#if !defined(__MIG_check__Request__kextmanager_lock_volume_t__defined)
+#define __MIG_check__Request__kextmanager_lock_volume_t__defined
+#ifndef __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined
+#if defined(__NDR_convert__int_rep__kextmanager__uuid_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__int_rep__kextmanager__uuid_t((uuid_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__uuid_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__int_rep__uuid_t((uuid_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__uint8_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__int_rep__kextmanager__uint8_t)
+#elif defined(__NDR_convert__int_rep__uint8_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__int_rep__uint8_t)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined */
+
+#ifndef __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined
+#if defined(__NDR_convert__int_rep__kextmanager__int__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \
+ __NDR_convert__int_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__int_rep__int__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \
+ __NDR_convert__int_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \
+ __NDR_convert__int_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__int32_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined
+#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \
+ __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined */
+
+#ifndef __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined
+#if defined(__NDR_convert__char_rep__kextmanager__uuid_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__char_rep__kextmanager__uuid_t((uuid_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__uuid_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__char_rep__uuid_t((uuid_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__uint8_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__char_rep__kextmanager__uint8_t)
+#elif defined(__NDR_convert__char_rep__uint8_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__char_rep__uint8_t)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined */
+
+#ifndef __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined
+#if defined(__NDR_convert__char_rep__kextmanager__int__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \
+ __NDR_convert__char_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__char_rep__int__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \
+ __NDR_convert__char_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \
+ __NDR_convert__char_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__int32_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined
+#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \
+ __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined */
+
+#ifndef __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined
+#if defined(__NDR_convert__float_rep__kextmanager__uuid_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__float_rep__kextmanager__uuid_t((uuid_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__uuid_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__float_rep__uuid_t((uuid_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__uint8_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__float_rep__kextmanager__uint8_t)
+#elif defined(__NDR_convert__float_rep__uint8_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__float_rep__uint8_t)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined */
+
+#ifndef __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined
+#if defined(__NDR_convert__float_rep__kextmanager__int__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \
+ __NDR_convert__float_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__float_rep__int__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \
+ __NDR_convert__float_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \
+ __NDR_convert__float_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__int32_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined
+#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \
+ __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined */
+
+
+mig_internal kern_return_t __MIG_check__Request__kextmanager_lock_volume_t(__Request__kextmanager_lock_volume_t *In0P)
+{
+
+ typedef __Request__kextmanager_lock_volume_t __Request;
+#if __MigTypeCheck
+ if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (In0P->msgh_body.msgh_descriptor_count != 1) ||
+ (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
+ return MIG_BAD_ARGUMENTS;
+#endif /* __MigTypeCheck */
+
+#if __MigTypeCheck
+ if (In0P->reaper.type != MACH_MSG_PORT_DESCRIPTOR ||
+ In0P->reaper.disposition != 17)
+ return MIG_TYPE_ERROR;
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined) || \
+ defined(__NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined)
+ if (In0P->NDR.int_rep != NDR_record.int_rep) {
+#if defined(__NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined)
+ __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid(&In0P->vol_uuid, In0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined */
+#if defined(__NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined)
+ __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock(&In0P->waitForLock, In0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined */
+ }
+#endif /* defined(__NDR_convert__int_rep...) */
+
+#if defined(__NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined) || \
+ defined(__NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined)
+ if (In0P->NDR.char_rep != NDR_record.char_rep) {
+#if defined(__NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined)
+ __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid(&In0P->vol_uuid, In0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined */
+#if defined(__NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined)
+ __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock(&In0P->waitForLock, In0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined */
+ }
+#endif /* defined(__NDR_convert__char_rep...) */
+
+#if defined(__NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined) || \
+ defined(__NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined)
+ if (In0P->NDR.float_rep != NDR_record.float_rep) {
+#if defined(__NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined)
+ __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid(&In0P->vol_uuid, In0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined */
+#if defined(__NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined)
+ __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock(&In0P->waitForLock, In0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined */
+ }
+#endif /* defined(__NDR_convert__float_rep...) */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Request__kextmanager_lock_volume_t__defined) */
+#endif /* __MIG_check__Request__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_lock_volume */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t _kextmanager_lock_volume
+(
+ mach_port_t server,
+ mach_port_t reply,
+ mach_port_t reaper,
+ uuid_t vol_uuid,
+ int waitForLock,
+ int *lockStatus
+);
+
+/* Routine kextmanager_lock_volume */
+mig_internal novalue _Xkextmanager_lock_volume
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
+{
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t reaper;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ uuid_t vol_uuid;
+ int waitForLock;
+ mach_msg_trailer_t trailer;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ typedef __Request__kextmanager_lock_volume_t __Request;
+ typedef __Reply__kextmanager_lock_volume_t Reply;
+
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ Request *In0P = (Request *) InHeadP;
+ Reply *OutP = (Reply *) OutHeadP;
+#ifdef __MIG_check__Request__kextmanager_lock_volume_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Request__kextmanager_lock_volume_t__defined */
+
+ __DeclareRcvRpc(70007, "kextmanager_lock_volume")
+ __BeforeRcvRpc(70007, "kextmanager_lock_volume")
+
+#if defined(__MIG_check__Request__kextmanager_lock_volume_t__defined)
+ check_result = __MIG_check__Request__kextmanager_lock_volume_t((__Request *)In0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { MIG_RETURN_ERROR(OutP, check_result); }
+#endif /* defined(__MIG_check__Request__kextmanager_lock_volume_t__defined) */
+
+ OutP->RetCode = _kextmanager_lock_volume(In0P->Head.msgh_request_port, In0P->Head.msgh_reply_port, In0P->reaper.name, In0P->vol_uuid, In0P->waitForLock, &OutP->lockStatus);
+ if (OutP->RetCode != KERN_SUCCESS) {
+ MIG_RETURN_ERROR(OutP, OutP->RetCode);
+ }
+
+ OutP->NDR = NDR_record;
+
+
+ OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply));
+ __AfterRcvRpc(70007, "kextmanager_lock_volume")
+}
+
+#if (__MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Request__kextmanager_subsystem__
+#if !defined(__MIG_check__Request__kextmanager_unlock_volume_t__defined)
+#define __MIG_check__Request__kextmanager_unlock_volume_t__defined
+#ifndef __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined
+#if defined(__NDR_convert__int_rep__kextmanager__uuid_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__int_rep__kextmanager__uuid_t((uuid_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__uuid_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__int_rep__uuid_t((uuid_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__uint8_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__int_rep__kextmanager__uint8_t)
+#elif defined(__NDR_convert__int_rep__uint8_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__int_rep__uint8_t)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined */
+
+#ifndef __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined
+#if defined(__NDR_convert__int_rep__kextmanager__int__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \
+ __NDR_convert__int_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__int_rep__int__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \
+ __NDR_convert__int_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \
+ __NDR_convert__int_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__int32_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined
+#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \
+ __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined */
+
+#ifndef __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined
+#if defined(__NDR_convert__char_rep__kextmanager__uuid_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__char_rep__kextmanager__uuid_t((uuid_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__uuid_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__char_rep__uuid_t((uuid_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__uint8_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__char_rep__kextmanager__uint8_t)
+#elif defined(__NDR_convert__char_rep__uint8_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__char_rep__uint8_t)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined */
+
+#ifndef __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined
+#if defined(__NDR_convert__char_rep__kextmanager__int__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \
+ __NDR_convert__char_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__char_rep__int__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \
+ __NDR_convert__char_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \
+ __NDR_convert__char_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__int32_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined
+#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \
+ __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined */
+
+#ifndef __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined
+#if defined(__NDR_convert__float_rep__kextmanager__uuid_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__float_rep__kextmanager__uuid_t((uuid_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__uuid_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__float_rep__uuid_t((uuid_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__uint8_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__float_rep__kextmanager__uint8_t)
+#elif defined(__NDR_convert__float_rep__uint8_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \
+ __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__float_rep__uint8_t)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined */
+
+#ifndef __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined
+#if defined(__NDR_convert__float_rep__kextmanager__int__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \
+ __NDR_convert__float_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__float_rep__int__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \
+ __NDR_convert__float_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \
+ __NDR_convert__float_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__int32_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined
+#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \
+ __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined */
+
+
+mig_internal kern_return_t __MIG_check__Request__kextmanager_unlock_volume_t(__Request__kextmanager_unlock_volume_t *In0P)
+{
+
+ typedef __Request__kextmanager_unlock_volume_t __Request;
+#if __MigTypeCheck
+ if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (In0P->msgh_body.msgh_descriptor_count != 1) ||
+ (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
+ return MIG_BAD_ARGUMENTS;
+#endif /* __MigTypeCheck */
+
+#if __MigTypeCheck
+ if (In0P->clientIdent.type != MACH_MSG_PORT_DESCRIPTOR ||
+ In0P->clientIdent.disposition != 17)
+ return MIG_TYPE_ERROR;
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined) || \
+ defined(__NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined)
+ if (In0P->NDR.int_rep != NDR_record.int_rep) {
+#if defined(__NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined)
+ __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid(&In0P->vol_uuid, In0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined */
+#if defined(__NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined)
+ __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus(&In0P->exitStatus, In0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined */
+ }
+#endif /* defined(__NDR_convert__int_rep...) */
+
+#if defined(__NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined) || \
+ defined(__NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined)
+ if (In0P->NDR.char_rep != NDR_record.char_rep) {
+#if defined(__NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined)
+ __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid(&In0P->vol_uuid, In0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined */
+#if defined(__NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined)
+ __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus(&In0P->exitStatus, In0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined */
+ }
+#endif /* defined(__NDR_convert__char_rep...) */
+
+#if defined(__NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined) || \
+ defined(__NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined)
+ if (In0P->NDR.float_rep != NDR_record.float_rep) {
+#if defined(__NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined)
+ __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid(&In0P->vol_uuid, In0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined */
+#if defined(__NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined)
+ __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus(&In0P->exitStatus, In0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined */
+ }
+#endif /* defined(__NDR_convert__float_rep...) */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Request__kextmanager_unlock_volume_t__defined) */
+#endif /* __MIG_check__Request__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_unlock_volume */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t _kextmanager_unlock_volume
+(
+ mach_port_t server,
+ mach_port_t clientIdent,
+ uuid_t vol_uuid,
+ int exitStatus
+);
+
+/* Routine kextmanager_unlock_volume */
+mig_internal novalue _Xkextmanager_unlock_volume
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
+{
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t clientIdent;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ uuid_t vol_uuid;
+ int exitStatus;
+ mach_msg_trailer_t trailer;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ typedef __Request__kextmanager_unlock_volume_t __Request;
+ typedef __Reply__kextmanager_unlock_volume_t Reply;
+
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ Request *In0P = (Request *) InHeadP;
+ Reply *OutP = (Reply *) OutHeadP;
+#ifdef __MIG_check__Request__kextmanager_unlock_volume_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Request__kextmanager_unlock_volume_t__defined */
+
+ __DeclareRcvRpc(70008, "kextmanager_unlock_volume")
+ __BeforeRcvRpc(70008, "kextmanager_unlock_volume")
+
+#if defined(__MIG_check__Request__kextmanager_unlock_volume_t__defined)
+ check_result = __MIG_check__Request__kextmanager_unlock_volume_t((__Request *)In0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { MIG_RETURN_ERROR(OutP, check_result); }
+#endif /* defined(__MIG_check__Request__kextmanager_unlock_volume_t__defined) */
+
+ OutP->RetCode = _kextmanager_unlock_volume(In0P->Head.msgh_request_port, In0P->clientIdent.name, In0P->vol_uuid, In0P->exitStatus);
+
+ OutP->NDR = NDR_record;
+
+
+ __AfterRcvRpc(70008, "kextmanager_unlock_volume")
+}
+
+#if (__MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Request__kextmanager_subsystem__
+#if !defined(__MIG_check__Request__kextmanager_lock_kextload_t__defined)
+#define __MIG_check__Request__kextmanager_lock_kextload_t__defined
+
+mig_internal kern_return_t __MIG_check__Request__kextmanager_lock_kextload_t(__Request__kextmanager_lock_kextload_t *In0P)
+{
+
+ typedef __Request__kextmanager_lock_kextload_t __Request;
+#if __MigTypeCheck
+ if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (In0P->msgh_body.msgh_descriptor_count != 1) ||
+ (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
+ return MIG_BAD_ARGUMENTS;
+#endif /* __MigTypeCheck */
+
+#if __MigTypeCheck
+ if (In0P->clientPort.type != MACH_MSG_PORT_DESCRIPTOR ||
+ In0P->clientPort.disposition != 17)
+ return MIG_TYPE_ERROR;
+#endif /* __MigTypeCheck */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Request__kextmanager_lock_kextload_t__defined) */
+#endif /* __MIG_check__Request__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_lock_kextload */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t _kextmanager_lock_kextload
+(
+ mach_port_t server,
+ mach_port_t clientPort,
+ int *lockstatus
+);
+
+/* Routine kextmanager_lock_kextload */
+mig_internal novalue _Xkextmanager_lock_kextload
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
+{
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t clientPort;
+ /* end of the kernel processed data */
+ mach_msg_trailer_t trailer;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ typedef __Request__kextmanager_lock_kextload_t __Request;
+ typedef __Reply__kextmanager_lock_kextload_t Reply;
+
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ Request *In0P = (Request *) InHeadP;
+ Reply *OutP = (Reply *) OutHeadP;
+#ifdef __MIG_check__Request__kextmanager_lock_kextload_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Request__kextmanager_lock_kextload_t__defined */
+
+ __DeclareRcvRpc(70009, "kextmanager_lock_kextload")
+ __BeforeRcvRpc(70009, "kextmanager_lock_kextload")
+
+#if defined(__MIG_check__Request__kextmanager_lock_kextload_t__defined)
+ check_result = __MIG_check__Request__kextmanager_lock_kextload_t((__Request *)In0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { MIG_RETURN_ERROR(OutP, check_result); }
+#endif /* defined(__MIG_check__Request__kextmanager_lock_kextload_t__defined) */
+
+ OutP->RetCode = _kextmanager_lock_kextload(In0P->Head.msgh_request_port, In0P->clientPort.name, &OutP->lockstatus);
+ if (OutP->RetCode != KERN_SUCCESS) {
+ MIG_RETURN_ERROR(OutP, OutP->RetCode);
+ }
+
+ OutP->NDR = NDR_record;
+
+
+ OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply));
+ __AfterRcvRpc(70009, "kextmanager_lock_kextload")
+}
+
+#if (__MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Request__kextmanager_subsystem__
+#if !defined(__MIG_check__Request__kextmanager_unlock_kextload_t__defined)
+#define __MIG_check__Request__kextmanager_unlock_kextload_t__defined
+
+mig_internal kern_return_t __MIG_check__Request__kextmanager_unlock_kextload_t(__Request__kextmanager_unlock_kextload_t *In0P)
+{
+
+ typedef __Request__kextmanager_unlock_kextload_t __Request;
+#if __MigTypeCheck
+ if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (In0P->msgh_body.msgh_descriptor_count != 1) ||
+ (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
+ return MIG_BAD_ARGUMENTS;
+#endif /* __MigTypeCheck */
+
+#if __MigTypeCheck
+ if (In0P->clientPort.type != MACH_MSG_PORT_DESCRIPTOR ||
+ In0P->clientPort.disposition != 17)
+ return MIG_TYPE_ERROR;
+#endif /* __MigTypeCheck */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Request__kextmanager_unlock_kextload_t__defined) */
+#endif /* __MIG_check__Request__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_unlock_kextload */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t _kextmanager_unlock_kextload
+(
+ mach_port_t server,
+ mach_port_t clientPort
+);
+
+/* Routine kextmanager_unlock_kextload */
+mig_internal novalue _Xkextmanager_unlock_kextload
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
+{
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t clientPort;
+ /* end of the kernel processed data */
+ mach_msg_trailer_t trailer;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ typedef __Request__kextmanager_unlock_kextload_t __Request;
+ typedef __Reply__kextmanager_unlock_kextload_t Reply;
+
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ Request *In0P = (Request *) InHeadP;
+ Reply *OutP = (Reply *) OutHeadP;
+#ifdef __MIG_check__Request__kextmanager_unlock_kextload_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Request__kextmanager_unlock_kextload_t__defined */
+
+ __DeclareRcvRpc(70010, "kextmanager_unlock_kextload")
+ __BeforeRcvRpc(70010, "kextmanager_unlock_kextload")
+
+#if defined(__MIG_check__Request__kextmanager_unlock_kextload_t__defined)
+ check_result = __MIG_check__Request__kextmanager_unlock_kextload_t((__Request *)In0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { MIG_RETURN_ERROR(OutP, check_result); }
+#endif /* defined(__MIG_check__Request__kextmanager_unlock_kextload_t__defined) */
+
+ OutP->RetCode = _kextmanager_unlock_kextload(In0P->Head.msgh_request_port, In0P->clientPort.name);
+
+ OutP->NDR = NDR_record;
+
+
+ __AfterRcvRpc(70010, "kextmanager_unlock_kextload")
+}
+
+#if (__MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Request__kextmanager_subsystem__
+#if !defined(__MIG_check__Request__kextmanager_record_path_for_bundle_id_t__defined)
+#define __MIG_check__Request__kextmanager_record_path_for_bundle_id_t__defined
+#ifndef __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined
+#if defined(__NDR_convert__int_rep__kextmanager__kext_bundle_id_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__int_rep__kextmanager__kext_bundle_id_t((kext_bundle_id_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kext_bundle_id_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__int_rep__kext_bundle_id_t((kext_bundle_id_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__char__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__int_rep__kextmanager__char)
+#elif defined(__NDR_convert__int_rep__char__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__int_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined */
+
+#ifndef __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined
+#if defined(__NDR_convert__int_rep__kextmanager__posix_path_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__int_rep__kextmanager__posix_path_t((posix_path_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__posix_path_t__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__int_rep__posix_path_t((posix_path_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__char__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__int_rep__kextmanager__char)
+#elif defined(__NDR_convert__int_rep__char__defined)
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined
+#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__int_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined */
+
+#ifndef __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined
+#if defined(__NDR_convert__char_rep__kextmanager__kext_bundle_id_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__char_rep__kextmanager__kext_bundle_id_t((kext_bundle_id_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__kext_bundle_id_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__char_rep__kext_bundle_id_t((kext_bundle_id_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__char__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__char_rep__kextmanager__char)
+#elif defined(__NDR_convert__char_rep__char__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__char_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined */
+
+#ifndef __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined
+#if defined(__NDR_convert__char_rep__kextmanager__posix_path_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__char_rep__kextmanager__posix_path_t((posix_path_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__posix_path_t__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__char_rep__posix_path_t((posix_path_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__char__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__char_rep__kextmanager__char)
+#elif defined(__NDR_convert__char_rep__char__defined)
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined
+#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__char_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined */
+
+#ifndef __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined
+#if defined(__NDR_convert__float_rep__kextmanager__kext_bundle_id_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__float_rep__kextmanager__kext_bundle_id_t((kext_bundle_id_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__kext_bundle_id_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__float_rep__kext_bundle_id_t((kext_bundle_id_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__char__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__float_rep__kextmanager__char)
+#elif defined(__NDR_convert__float_rep__char__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__float_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined */
+
+#ifndef __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined
+#if defined(__NDR_convert__float_rep__kextmanager__posix_path_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__float_rep__kextmanager__posix_path_t((posix_path_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__posix_path_t__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__float_rep__posix_path_t((posix_path_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__char__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__float_rep__kextmanager__char)
+#elif defined(__NDR_convert__float_rep__char__defined)
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined
+#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__float_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined */
+
+
+mig_internal kern_return_t __MIG_check__Request__kextmanager_record_path_for_bundle_id_t(__Request__kextmanager_record_path_for_bundle_id_t *In0P)
+{
+
+ typedef __Request__kextmanager_record_path_for_bundle_id_t __Request;
+#if __MigTypeCheck
+ if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request)))
+ return MIG_BAD_ARGUMENTS;
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined) || \
+ defined(__NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined)
+ if (In0P->NDR.int_rep != NDR_record.int_rep) {
+#if defined(__NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined)
+ __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(&In0P->bundle_id, In0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined */
+#if defined(__NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined)
+ __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path(&In0P->path, In0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined */
+ }
+#endif /* defined(__NDR_convert__int_rep...) */
+
+#if defined(__NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined) || \
+ defined(__NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined)
+ if (In0P->NDR.char_rep != NDR_record.char_rep) {
+#if defined(__NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined)
+ __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(&In0P->bundle_id, In0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined */
+#if defined(__NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined)
+ __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path(&In0P->path, In0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined */
+ }
+#endif /* defined(__NDR_convert__char_rep...) */
+
+#if defined(__NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined) || \
+ defined(__NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined)
+ if (In0P->NDR.float_rep != NDR_record.float_rep) {
+#if defined(__NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined)
+ __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(&In0P->bundle_id, In0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined */
+#if defined(__NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined)
+ __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path(&In0P->path, In0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined */
+ }
+#endif /* defined(__NDR_convert__float_rep...) */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Request__kextmanager_record_path_for_bundle_id_t__defined) */
+#endif /* __MIG_check__Request__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_record_path_for_bundle_id */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t _kextmanager_record_path_for_bundle_id
+(
+ mach_port_t server,
+ kext_bundle_id_t bundle_id,
+ posix_path_t path
+);
+
+/* Routine kextmanager_record_path_for_bundle_id */
+mig_internal novalue _Xkextmanager_record_path_for_bundle_id
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
+{
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kext_bundle_id_t bundle_id;
+ posix_path_t path;
+ mach_msg_trailer_t trailer;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ typedef __Request__kextmanager_record_path_for_bundle_id_t __Request;
+ typedef __Reply__kextmanager_record_path_for_bundle_id_t Reply;
+
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ Request *In0P = (Request *) InHeadP;
+ Reply *OutP = (Reply *) OutHeadP;
+#ifdef __MIG_check__Request__kextmanager_record_path_for_bundle_id_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Request__kextmanager_record_path_for_bundle_id_t__defined */
+
+ __DeclareRcvRpc(70011, "kextmanager_record_path_for_bundle_id")
+ __BeforeRcvRpc(70011, "kextmanager_record_path_for_bundle_id")
+
+#if defined(__MIG_check__Request__kextmanager_record_path_for_bundle_id_t__defined)
+ check_result = __MIG_check__Request__kextmanager_record_path_for_bundle_id_t((__Request *)In0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { MIG_RETURN_ERROR(OutP, check_result); }
+#endif /* defined(__MIG_check__Request__kextmanager_record_path_for_bundle_id_t__defined) */
+
+ OutP->RetCode = _kextmanager_record_path_for_bundle_id(In0P->Head.msgh_request_port, In0P->bundle_id, In0P->path);
+
+ OutP->NDR = NDR_record;
+
+
+ __AfterRcvRpc(70011, "kextmanager_record_path_for_bundle_id")
+}
+
+
+extern boolean_t kextmanager_server(
+ mach_msg_header_t *InHeadP,
+ mach_msg_header_t *OutHeadP);
+
+extern mig_routine_t kextmanager_server_routine(
+ mach_msg_header_t *InHeadP);
+
+
+/* Description of this subsystem, for use in direct RPC */
+const struct _kextmanager_subsystem {
+ mig_server_routine_t server; /* Server routine */
+ mach_msg_id_t start; /* Min routine number */
+ mach_msg_id_t end; /* Max routine number + 1 */
+ unsigned int maxsize; /* Max msg size */
+ vm_address_t reserved; /* Reserved */
+ struct routine_descriptor /*Array of routine descriptors */
+ routine[12];
+} _kextmanager_subsystem = {
+ kextmanager_server_routine,
+ 70000,
+ 70012,
+ (mach_msg_size_t)sizeof(union __ReplyUnion___kextmanager_subsystem),
+ (vm_address_t)0,
+ {
+ { (mig_impl_routine_t) 0,
+ (mig_stub_routine_t) _Xkextmanager_path_for_bundle_id, 4, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_path_for_bundle_id_t)},
+ { (mig_impl_routine_t) 0,
+ (mig_stub_routine_t) _Xkextmanager_create_property_value_array, 4, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_create_property_value_array_t)},
+ { (mig_impl_routine_t) 0,
+ (mig_stub_routine_t) _Xkextmanager_user_did_log_in, 10, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_user_did_log_in_t)},
+ { (mig_impl_routine_t) 0,
+ (mig_stub_routine_t) _Xkextmanager_user_will_log_out, 2, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_user_will_log_out_t)},
+ { (mig_impl_routine_t) 0,
+ (mig_stub_routine_t) _Xkextmanager_get_logged_in_userid, 2, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_get_logged_in_userid_t)},
+ { (mig_impl_routine_t) 0,
+ (mig_stub_routine_t) _Xkextmanager_record_nonsecure_kextload, 3, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_record_nonsecure_kextload_t)},
+ { (mig_impl_routine_t) 0,
+ (mig_stub_routine_t) _Xkextmanager_lock_reboot, 6, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_lock_reboot_t)},
+ { (mig_impl_routine_t) 0,
+ (mig_stub_routine_t) _Xkextmanager_lock_volume, 6, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_lock_volume_t)},
+ { (mig_impl_routine_t) 0,
+ (mig_stub_routine_t) _Xkextmanager_unlock_volume, 4, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_unlock_volume_t)},
+ { (mig_impl_routine_t) 0,
+ (mig_stub_routine_t) _Xkextmanager_lock_kextload, 3, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_lock_kextload_t)},
+ { (mig_impl_routine_t) 0,
+ (mig_stub_routine_t) _Xkextmanager_unlock_kextload, 2, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_unlock_kextload_t)},
+ { (mig_impl_routine_t) 0,
+ (mig_stub_routine_t) _Xkextmanager_record_path_for_bundle_id, 3, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_record_path_for_bundle_id_t)},
+ }
+};
+
+mig_external boolean_t kextmanager_server
+ (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
+{
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ register mig_routine_t routine;
+
+ OutHeadP->msgh_bits = MACH_MSGH_BITS(MACH_MSGH_BITS_REPLY(InHeadP->msgh_bits), 0);
+ OutHeadP->msgh_remote_port = InHeadP->msgh_reply_port;
+ /* Minimal size: routine() will update it if different */
+ OutHeadP->msgh_size = (mach_msg_size_t)sizeof(mig_reply_error_t);
+ OutHeadP->msgh_local_port = MACH_PORT_NULL;
+ OutHeadP->msgh_id = InHeadP->msgh_id + 100;
+
+ if ((InHeadP->msgh_id > 70011) || (InHeadP->msgh_id < 70000) ||
+ ((routine = _kextmanager_subsystem.routine[InHeadP->msgh_id - 70000].stub_routine) == 0)) {
+ ((mig_reply_error_t *)OutHeadP)->NDR = NDR_record;
+ ((mig_reply_error_t *)OutHeadP)->RetCode = MIG_BAD_ID;
+ return FALSE;
+ }
+ (*routine) (InHeadP, OutHeadP);
+ return TRUE;
+}
+
+mig_external mig_routine_t kextmanager_server_routine
+ (mach_msg_header_t *InHeadP)
+{
+ register int msgh_id;
+
+ msgh_id = InHeadP->msgh_id - 70000;
+
+ if ((msgh_id > 11) || (msgh_id < 0))
+ return 0;
+
+ return _kextmanager_subsystem.routine[msgh_id].stub_routine;
+}
diff --git a/data/system-cmds/kextmanagerUser.c b/data/system-cmds/kextmanagerUser.c
new file mode 100644
index 000000000..13dc65461
--- /dev/null
+++ b/data/system-cmds/kextmanagerUser.c
@@ -0,0 +1,2844 @@
+/*
+ * IDENTIFICATION:
+ * stub generated Mon Dec 31 12:08:43 2007
+ * with a MiG generated Mon Sep 11 19:11:05 PDT 2006 by root@b09.apple.com
+ * OPTIONS:
+ */
+#define __MIG_check__Reply__kextmanager_subsystem__ 1
+#define __NDR_convert__Reply__kextmanager_subsystem__ 1
+#define __NDR_convert__mig_reply_error_subsystem__ 1
+
+#include "kextmanager.h"
+
+
+#ifndef mig_internal
+#define mig_internal static __inline__
+#endif /* mig_internal */
+
+#ifndef mig_external
+#define mig_external
+#endif /* mig_external */
+
+#if !defined(__MigTypeCheck) && defined(TypeCheck)
+#define __MigTypeCheck TypeCheck /* Legacy setting */
+#endif /* !defined(__MigTypeCheck) */
+
+#if !defined(__MigKernelSpecificCode) && defined(_MIG_KERNEL_SPECIFIC_CODE_)
+#define __MigKernelSpecificCode _MIG_KERNEL_SPECIFIC_CODE_ /* Legacy setting */
+#endif /* !defined(__MigKernelSpecificCode) */
+
+#ifndef LimitCheck
+#define LimitCheck 0
+#endif /* LimitCheck */
+
+#ifndef min
+#define min(a,b) ( ((a) < (b))? (a): (b) )
+#endif /* min */
+
+#if !defined(_WALIGN_)
+#define _WALIGN_(x) (((x) + 3) & ~3)
+#endif /* !defined(_WALIGN_) */
+
+#if !defined(_WALIGNSZ_)
+#define _WALIGNSZ_(x) _WALIGN_(sizeof(x))
+#endif /* !defined(_WALIGNSZ_) */
+
+#ifndef UseStaticTemplates
+#define UseStaticTemplates 0
+#endif /* UseStaticTemplates */
+
+#ifndef __MachMsgErrorWithTimeout
+#define __MachMsgErrorWithTimeout(_R_) { \
+ switch (_R_) { \
+ case MACH_SEND_INVALID_REPLY: \
+ case MACH_RCV_INVALID_NAME: \
+ case MACH_RCV_PORT_DIED: \
+ case MACH_RCV_PORT_CHANGED: \
+ case MACH_RCV_TIMED_OUT: \
+ mig_dealloc_reply_port(InP->Head.msgh_reply_port); \
+ break; \
+ default: \
+ mig_put_reply_port(InP->Head.msgh_reply_port); \
+ } \
+}
+#endif /* __MachMsgErrorWithTimeout */
+
+#ifndef __MachMsgErrorWithoutTimeout
+#define __MachMsgErrorWithoutTimeout(_R_) { \
+ switch (_R_) { \
+ case MACH_SEND_INVALID_REPLY: \
+ case MACH_RCV_INVALID_NAME: \
+ case MACH_RCV_PORT_DIED: \
+ case MACH_RCV_PORT_CHANGED: \
+ mig_dealloc_reply_port(InP->Head.msgh_reply_port); \
+ break; \
+ default: \
+ mig_put_reply_port(InP->Head.msgh_reply_port); \
+ } \
+}
+#endif /* __MachMsgErrorWithoutTimeout */
+
+#ifndef __DeclareSendRpc
+#define __DeclareSendRpc(_NUM_, _NAME_)
+#endif /* __DeclareSendRpc */
+
+#ifndef __BeforeSendRpc
+#define __BeforeSendRpc(_NUM_, _NAME_)
+#endif /* __BeforeSendRpc */
+
+#ifndef __AfterSendRpc
+#define __AfterSendRpc(_NUM_, _NAME_)
+#endif /* __AfterSendRpc */
+
+#ifndef __DeclareSendSimple
+#define __DeclareSendSimple(_NUM_, _NAME_)
+#endif /* __DeclareSendSimple */
+
+#ifndef __BeforeSendSimple
+#define __BeforeSendSimple(_NUM_, _NAME_)
+#endif /* __BeforeSendSimple */
+
+#ifndef __AfterSendSimple
+#define __AfterSendSimple(_NUM_, _NAME_)
+#endif /* __AfterSendSimple */
+
+#define msgh_request_port msgh_remote_port
+#define msgh_reply_port msgh_local_port
+
+
+
+#if ( __MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Reply__kextmanager_subsystem__
+#if !defined(__MIG_check__Reply__kextmanager_path_for_bundle_id_t__defined)
+#define __MIG_check__Reply__kextmanager_path_for_bundle_id_t__defined
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode__defined
+#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode__defined */
+
+
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined
+#if defined(__NDR_convert__int_rep__kextmanager__posix_path_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__int_rep__kextmanager__posix_path_t((posix_path_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__posix_path_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__int_rep__posix_path_t((posix_path_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__char__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__int_rep__kextmanager__char)
+#elif defined(__NDR_convert__int_rep__char__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__int_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined */
+
+
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#if defined(__NDR_convert__int_rep__kextmanager__kext_result_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__int_rep__kextmanager__kext_result_t((kext_result_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kext_result_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__int_rep__kext_result_t((kext_result_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__int__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__int_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__int_rep__int__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__int_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__int_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__int32_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined */
+
+
+
+#ifndef __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined
+#if defined(__NDR_convert__char_rep__kextmanager__posix_path_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__char_rep__kextmanager__posix_path_t((posix_path_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__posix_path_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__char_rep__posix_path_t((posix_path_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__char__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__char_rep__kextmanager__char)
+#elif defined(__NDR_convert__char_rep__char__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__char_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined */
+
+
+#ifndef __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#if defined(__NDR_convert__char_rep__kextmanager__kext_result_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__char_rep__kextmanager__kext_result_t((kext_result_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__kext_result_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__char_rep__kext_result_t((kext_result_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__int__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__char_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__char_rep__int__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__char_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__char_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__int32_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined */
+
+
+
+#ifndef __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined
+#if defined(__NDR_convert__float_rep__kextmanager__posix_path_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__float_rep__kextmanager__posix_path_t((posix_path_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__posix_path_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__float_rep__posix_path_t((posix_path_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__char__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__float_rep__kextmanager__char)
+#elif defined(__NDR_convert__float_rep__char__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__float_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined */
+
+
+#ifndef __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#if defined(__NDR_convert__float_rep__kextmanager__kext_result_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__float_rep__kextmanager__kext_result_t((kext_result_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__kext_result_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__float_rep__kext_result_t((kext_result_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__int__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__float_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__float_rep__int__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__float_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__float_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__int32_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \
+ __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined */
+
+
+
+mig_internal kern_return_t __MIG_check__Reply__kextmanager_path_for_bundle_id_t(__Reply__kextmanager_path_for_bundle_id_t *Out0P)
+{
+
+ typedef __Reply__kextmanager_path_for_bundle_id_t __Reply;
+#if __MigTypeCheck
+ unsigned int msgh_size;
+#endif /* __MigTypeCheck */
+ if (Out0P->Head.msgh_id != 70100) {
+ if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
+ { return MIG_SERVER_DIED; }
+ else
+ { return MIG_REPLY_MISMATCH; }
+ }
+
+#if __MigTypeCheck
+ msgh_size = Out0P->Head.msgh_size;
+
+ if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ ((msgh_size != (mach_msg_size_t)sizeof(__Reply)) &&
+ (msgh_size != (mach_msg_size_t)sizeof(mig_reply_error_t) ||
+ Out0P->RetCode == KERN_SUCCESS)))
+ { return MIG_TYPE_ERROR ; }
+#endif /* __MigTypeCheck */
+
+ if (Out0P->RetCode != KERN_SUCCESS) {
+#ifdef __NDR_convert__mig_reply_error_t__defined
+ __NDR_convert__mig_reply_error_t((mig_reply_error_t *)Out0P);
+#endif /* __NDR_convert__mig_reply_error_t__defined */
+ return ((mig_reply_error_t *)Out0P)->RetCode;
+ }
+
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode__defined) || \
+ defined(__NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined) || \
+ defined(__NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined)
+ if (Out0P->NDR.int_rep != NDR_record.int_rep) {
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode__defined)
+ __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode__defined */
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined)
+ __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path(&Out0P->path, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined */
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined)
+ __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(&Out0P->kext_result, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined */
+ }
+#endif /* defined(__NDR_convert__int_rep...) */
+
+#if 0 || \
+ defined(__NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined) || \
+ defined(__NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined)
+ if (Out0P->NDR.char_rep != NDR_record.char_rep) {
+#if defined(__NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined)
+ __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path(&Out0P->path, Out0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined */
+#if defined(__NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined)
+ __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(&Out0P->kext_result, Out0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined */
+ }
+#endif /* defined(__NDR_convert__char_rep...) */
+
+#if 0 || \
+ defined(__NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined) || \
+ defined(__NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined)
+ if (Out0P->NDR.float_rep != NDR_record.float_rep) {
+#if defined(__NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined)
+ __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path(&Out0P->path, Out0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined */
+#if defined(__NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined)
+ __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(&Out0P->kext_result, Out0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined */
+ }
+#endif /* defined(__NDR_convert__float_rep...) */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Reply__kextmanager_path_for_bundle_id_t__defined) */
+#endif /* __MIG_check__Reply__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_path_for_bundle_id */
+mig_external kern_return_t kextmanager_path_for_bundle_id
+(
+ mach_port_t server,
+ kext_bundle_id_t bundle_id,
+ posix_path_t path,
+ kext_result_t *kext_result
+)
+{
+ {
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kext_bundle_id_t bundle_id;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ posix_path_t path;
+ kext_result_t kext_result;
+ mach_msg_trailer_t trailer;
+ } Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ posix_path_t path;
+ kext_result_t kext_result;
+ } __Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ union {
+ Request In;
+ Reply Out;
+ } Mess;
+
+ Request *InP = &Mess.In;
+ Reply *Out0P = &Mess.Out;
+
+ mach_msg_return_t msg_result;
+
+#ifdef __MIG_check__Reply__kextmanager_path_for_bundle_id_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Reply__kextmanager_path_for_bundle_id_t__defined */
+
+ __DeclareSendRpc(70000, "kextmanager_path_for_bundle_id")
+
+ InP->NDR = NDR_record;
+
+ { typedef struct { char data[64]; } *sp;
+ * (sp) InP->bundle_id = * (sp) bundle_id;
+ }
+
+ InP->Head.msgh_bits =
+ MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE);
+ /* msgh_size passed as argument */
+ InP->Head.msgh_request_port = server;
+ InP->Head.msgh_reply_port = mig_get_reply_port();
+ InP->Head.msgh_id = 70000;
+
+ __BeforeSendRpc(70000, "kextmanager_path_for_bundle_id")
+ msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
+ __AfterSendRpc(70000, "kextmanager_path_for_bundle_id")
+ if (msg_result != MACH_MSG_SUCCESS) {
+ __MachMsgErrorWithoutTimeout(msg_result);
+ { return msg_result; }
+ }
+
+
+#if defined(__MIG_check__Reply__kextmanager_path_for_bundle_id_t__defined)
+ check_result = __MIG_check__Reply__kextmanager_path_for_bundle_id_t((__Reply__kextmanager_path_for_bundle_id_t *)Out0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { return check_result; }
+#endif /* defined(__MIG_check__Reply__kextmanager_path_for_bundle_id_t__defined) */
+
+ { typedef struct { char data[1024]; } *sp;
+ * (sp) path = * (sp) Out0P->path;
+ }
+
+ *kext_result = Out0P->kext_result;
+
+ return KERN_SUCCESS;
+ }
+}
+
+#if ( __MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Reply__kextmanager_subsystem__
+#if !defined(__MIG_check__Reply__kextmanager_create_property_value_array_t__defined)
+#define __MIG_check__Reply__kextmanager_create_property_value_array_t__defined
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data__defined
+#if defined(__NDR_convert__int_rep__kextmanager__xmlDataOut_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data(a, f, c) \
+ __NDR_convert__int_rep__kextmanager__xmlDataOut_t((xmlDataOut_t *)(a), f, c)
+#elif defined(__NDR_convert__int_rep__xmlDataOut_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data(a, f, c) \
+ __NDR_convert__int_rep__xmlDataOut_t((xmlDataOut_t *)(a), f, c)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data__defined */
+
+
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt__defined
+#if defined(__NDR_convert__int_rep__kextmanager__mach_msg_type_number_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt(a, f) \
+ __NDR_convert__int_rep__kextmanager__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__mach_msg_type_number_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt(a, f) \
+ __NDR_convert__int_rep__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt__defined */
+
+
+#ifndef __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data__defined
+#if defined(__NDR_convert__char_rep__kextmanager__xmlDataOut_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data(a, f, c) \
+ __NDR_convert__char_rep__kextmanager__xmlDataOut_t((xmlDataOut_t *)(a), f, c)
+#elif defined(__NDR_convert__char_rep__xmlDataOut_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data(a, f, c) \
+ __NDR_convert__char_rep__xmlDataOut_t((xmlDataOut_t *)(a), f, c)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data__defined */
+
+
+
+#ifndef __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data__defined
+#if defined(__NDR_convert__float_rep__kextmanager__xmlDataOut_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data(a, f, c) \
+ __NDR_convert__float_rep__kextmanager__xmlDataOut_t((xmlDataOut_t *)(a), f, c)
+#elif defined(__NDR_convert__float_rep__xmlDataOut_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data(a, f, c) \
+ __NDR_convert__float_rep__xmlDataOut_t((xmlDataOut_t *)(a), f, c)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data__defined */
+
+
+
+
+mig_internal kern_return_t __MIG_check__Reply__kextmanager_create_property_value_array_t(__Reply__kextmanager_create_property_value_array_t *Out0P)
+{
+
+ typedef __Reply__kextmanager_create_property_value_array_t __Reply;
+ boolean_t msgh_simple;
+#if __MigTypeCheck
+ unsigned int msgh_size;
+#endif /* __MigTypeCheck */
+ if (Out0P->Head.msgh_id != 70101) {
+ if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
+ { return MIG_SERVER_DIED; }
+ else
+ { return MIG_REPLY_MISMATCH; }
+ }
+
+ msgh_simple = !(Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX);
+#if __MigTypeCheck
+ msgh_size = Out0P->Head.msgh_size;
+
+ if ((msgh_simple || Out0P->msgh_body.msgh_descriptor_count != 1 ||
+ msgh_size != (mach_msg_size_t)sizeof(__Reply)) &&
+ (!msgh_simple || msgh_size != (mach_msg_size_t)sizeof(mig_reply_error_t) ||
+ ((mig_reply_error_t *)Out0P)->RetCode == KERN_SUCCESS))
+ { return MIG_TYPE_ERROR ; }
+#endif /* __MigTypeCheck */
+
+ if (msgh_simple) {
+#ifdef __NDR_convert__mig_reply_error_t__defined
+ __NDR_convert__mig_reply_error_t((mig_reply_error_t *)Out0P);
+#endif /* __NDR_convert__mig_reply_error_t__defined */
+ return ((mig_reply_error_t *)Out0P)->RetCode;
+ }
+
+#if __MigTypeCheck
+ if (Out0P->data.type != MACH_MSG_OOL_DESCRIPTOR)
+ { return MIG_TYPE_ERROR; }
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data__defined) || \
+ defined(__NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt__defined)
+ if (Out0P->NDR.int_rep != NDR_record.int_rep) {
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt__defined)
+ __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt(&Out0P->dataCnt, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt__defined */
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data__defined)
+ __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data((xmlDataOut_t)(Out0P->data.address), Out0P->NDR.int_rep, Out0P->dataCnt);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data__defined */
+ }
+#endif /* defined(__NDR_convert__int_rep...) */
+
+#if defined(__NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data__defined) || \
+ 0
+ if (Out0P->NDR.char_rep != NDR_record.char_rep) {
+#if defined(__NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data__defined)
+ __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data((xmlDataOut_t)(Out0P->data.address), Out0P->NDR.char_rep, Out0P->dataCnt);
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data__defined */
+ }
+#endif /* defined(__NDR_convert__char_rep...) */
+
+#if defined(__NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data__defined) || \
+ 0
+ if (Out0P->NDR.float_rep != NDR_record.float_rep) {
+#if defined(__NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data__defined)
+ __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data((xmlDataOut_t)(Out0P->data.address), Out0P->NDR.float_rep, Out0P->dataCnt);
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data__defined */
+ }
+#endif /* defined(__NDR_convert__float_rep...) */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Reply__kextmanager_create_property_value_array_t__defined) */
+#endif /* __MIG_check__Reply__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_create_property_value_array */
+mig_external kern_return_t kextmanager_create_property_value_array
+(
+ mach_port_t server,
+ property_key_t prop_key,
+ xmlDataOut_t *data,
+ mach_msg_type_number_t *dataCnt
+)
+{
+ {
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ property_key_t prop_key;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t data;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t dataCnt;
+ mach_msg_trailer_t trailer;
+ } Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t data;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t dataCnt;
+ } __Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ union {
+ Request In;
+ Reply Out;
+ } Mess;
+
+ Request *InP = &Mess.In;
+ Reply *Out0P = &Mess.Out;
+
+ mach_msg_return_t msg_result;
+
+#ifdef __MIG_check__Reply__kextmanager_create_property_value_array_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Reply__kextmanager_create_property_value_array_t__defined */
+
+ __DeclareSendRpc(70001, "kextmanager_create_property_value_array")
+
+ InP->NDR = NDR_record;
+
+ { typedef struct { char data[128]; } *sp;
+ * (sp) InP->prop_key = * (sp) prop_key;
+ }
+
+ InP->Head.msgh_bits =
+ MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE);
+ /* msgh_size passed as argument */
+ InP->Head.msgh_request_port = server;
+ InP->Head.msgh_reply_port = mig_get_reply_port();
+ InP->Head.msgh_id = 70001;
+
+ __BeforeSendRpc(70001, "kextmanager_create_property_value_array")
+ msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
+ __AfterSendRpc(70001, "kextmanager_create_property_value_array")
+ if (msg_result != MACH_MSG_SUCCESS) {
+ __MachMsgErrorWithoutTimeout(msg_result);
+ { return msg_result; }
+ }
+
+
+#if defined(__MIG_check__Reply__kextmanager_create_property_value_array_t__defined)
+ check_result = __MIG_check__Reply__kextmanager_create_property_value_array_t((__Reply__kextmanager_create_property_value_array_t *)Out0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { return check_result; }
+#endif /* defined(__MIG_check__Reply__kextmanager_create_property_value_array_t__defined) */
+
+ *data = (xmlDataOut_t)(Out0P->data.address);
+ *dataCnt = Out0P->dataCnt;
+
+ return KERN_SUCCESS;
+ }
+}
+
+#if ( __MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Reply__kextmanager_subsystem__
+#if !defined(__MIG_check__Reply__kextmanager_user_did_log_in_t__defined)
+#define __MIG_check__Reply__kextmanager_user_did_log_in_t__defined
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode__defined
+#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode__defined */
+
+
+
+
+
+mig_internal kern_return_t __MIG_check__Reply__kextmanager_user_did_log_in_t(__Reply__kextmanager_user_did_log_in_t *Out0P)
+{
+
+ typedef __Reply__kextmanager_user_did_log_in_t __Reply;
+ if (Out0P->Head.msgh_id != 70102) {
+ if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
+ { return MIG_SERVER_DIED; }
+ else
+ { return MIG_REPLY_MISMATCH; }
+ }
+
+#if __MigTypeCheck
+ if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (Out0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Reply)))
+ { return MIG_TYPE_ERROR ; }
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode__defined)
+ if (Out0P->NDR.int_rep != NDR_record.int_rep)
+ __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode__defined */
+ { return Out0P->RetCode;
+ }
+}
+#endif /* !defined(__MIG_check__Reply__kextmanager_user_did_log_in_t__defined) */
+#endif /* __MIG_check__Reply__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_user_did_log_in */
+mig_external kern_return_t kextmanager_user_did_log_in
+(
+ mach_port_t server,
+ uint32_t euid,
+ AuthorizationExternalForm authref
+)
+{
+ {
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ uint32_t euid;
+ AuthorizationExternalForm authref;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_trailer_t trailer;
+ } Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ union {
+ Request In;
+ Reply Out;
+ } Mess;
+
+ Request *InP = &Mess.In;
+ Reply *Out0P = &Mess.Out;
+
+ mach_msg_return_t msg_result;
+
+#ifdef __MIG_check__Reply__kextmanager_user_did_log_in_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Reply__kextmanager_user_did_log_in_t__defined */
+
+ __DeclareSendRpc(70002, "kextmanager_user_did_log_in")
+
+ InP->NDR = NDR_record;
+
+ InP->euid = euid;
+
+ InP->authref = authref;
+
+ InP->Head.msgh_bits =
+ MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE);
+ /* msgh_size passed as argument */
+ InP->Head.msgh_request_port = server;
+ InP->Head.msgh_reply_port = mig_get_reply_port();
+ InP->Head.msgh_id = 70002;
+
+ __BeforeSendRpc(70002, "kextmanager_user_did_log_in")
+ msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
+ __AfterSendRpc(70002, "kextmanager_user_did_log_in")
+ if (msg_result != MACH_MSG_SUCCESS) {
+ __MachMsgErrorWithoutTimeout(msg_result);
+ { return msg_result; }
+ }
+
+
+#if defined(__MIG_check__Reply__kextmanager_user_did_log_in_t__defined)
+ check_result = __MIG_check__Reply__kextmanager_user_did_log_in_t((__Reply__kextmanager_user_did_log_in_t *)Out0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { return check_result; }
+#endif /* defined(__MIG_check__Reply__kextmanager_user_did_log_in_t__defined) */
+
+ return KERN_SUCCESS;
+ }
+}
+
+#if ( __MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Reply__kextmanager_subsystem__
+#if !defined(__MIG_check__Reply__kextmanager_user_will_log_out_t__defined)
+#define __MIG_check__Reply__kextmanager_user_will_log_out_t__defined
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode__defined
+#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode__defined */
+
+
+
+
+
+mig_internal kern_return_t __MIG_check__Reply__kextmanager_user_will_log_out_t(__Reply__kextmanager_user_will_log_out_t *Out0P)
+{
+
+ typedef __Reply__kextmanager_user_will_log_out_t __Reply;
+ if (Out0P->Head.msgh_id != 70103) {
+ if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
+ { return MIG_SERVER_DIED; }
+ else
+ { return MIG_REPLY_MISMATCH; }
+ }
+
+#if __MigTypeCheck
+ if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (Out0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Reply)))
+ { return MIG_TYPE_ERROR ; }
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode__defined)
+ if (Out0P->NDR.int_rep != NDR_record.int_rep)
+ __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode__defined */
+ { return Out0P->RetCode;
+ }
+}
+#endif /* !defined(__MIG_check__Reply__kextmanager_user_will_log_out_t__defined) */
+#endif /* __MIG_check__Reply__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_user_will_log_out */
+mig_external kern_return_t kextmanager_user_will_log_out
+(
+ mach_port_t server,
+ uint32_t euid
+)
+{
+ {
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ uint32_t euid;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_trailer_t trailer;
+ } Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ union {
+ Request In;
+ Reply Out;
+ } Mess;
+
+ Request *InP = &Mess.In;
+ Reply *Out0P = &Mess.Out;
+
+ mach_msg_return_t msg_result;
+
+#ifdef __MIG_check__Reply__kextmanager_user_will_log_out_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Reply__kextmanager_user_will_log_out_t__defined */
+
+ __DeclareSendRpc(70003, "kextmanager_user_will_log_out")
+
+ InP->NDR = NDR_record;
+
+ InP->euid = euid;
+
+ InP->Head.msgh_bits =
+ MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE);
+ /* msgh_size passed as argument */
+ InP->Head.msgh_request_port = server;
+ InP->Head.msgh_reply_port = mig_get_reply_port();
+ InP->Head.msgh_id = 70003;
+
+ __BeforeSendRpc(70003, "kextmanager_user_will_log_out")
+ msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
+ __AfterSendRpc(70003, "kextmanager_user_will_log_out")
+ if (msg_result != MACH_MSG_SUCCESS) {
+ __MachMsgErrorWithoutTimeout(msg_result);
+ { return msg_result; }
+ }
+
+
+#if defined(__MIG_check__Reply__kextmanager_user_will_log_out_t__defined)
+ check_result = __MIG_check__Reply__kextmanager_user_will_log_out_t((__Reply__kextmanager_user_will_log_out_t *)Out0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { return check_result; }
+#endif /* defined(__MIG_check__Reply__kextmanager_user_will_log_out_t__defined) */
+
+ return KERN_SUCCESS;
+ }
+}
+
+#if ( __MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Reply__kextmanager_subsystem__
+#if !defined(__MIG_check__Reply__kextmanager_get_logged_in_userid_t__defined)
+#define __MIG_check__Reply__kextmanager_get_logged_in_userid_t__defined
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode__defined
+#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode__defined */
+
+
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined
+#if defined(__NDR_convert__int_rep__kextmanager__uint32_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid(a, f) \
+ __NDR_convert__int_rep__kextmanager__uint32_t((uint32_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__uint32_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid(a, f) \
+ __NDR_convert__int_rep__uint32_t((uint32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined */
+
+
+
+#ifndef __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined
+#if defined(__NDR_convert__char_rep__kextmanager__uint32_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid(a, f) \
+ __NDR_convert__char_rep__kextmanager__uint32_t((uint32_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__uint32_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid(a, f) \
+ __NDR_convert__char_rep__uint32_t((uint32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined */
+
+
+
+#ifndef __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined
+#if defined(__NDR_convert__float_rep__kextmanager__uint32_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid(a, f) \
+ __NDR_convert__float_rep__kextmanager__uint32_t((uint32_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__uint32_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid(a, f) \
+ __NDR_convert__float_rep__uint32_t((uint32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined */
+
+
+
+mig_internal kern_return_t __MIG_check__Reply__kextmanager_get_logged_in_userid_t(__Reply__kextmanager_get_logged_in_userid_t *Out0P)
+{
+
+ typedef __Reply__kextmanager_get_logged_in_userid_t __Reply;
+#if __MigTypeCheck
+ unsigned int msgh_size;
+#endif /* __MigTypeCheck */
+ if (Out0P->Head.msgh_id != 70104) {
+ if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
+ { return MIG_SERVER_DIED; }
+ else
+ { return MIG_REPLY_MISMATCH; }
+ }
+
+#if __MigTypeCheck
+ msgh_size = Out0P->Head.msgh_size;
+
+ if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ ((msgh_size != (mach_msg_size_t)sizeof(__Reply)) &&
+ (msgh_size != (mach_msg_size_t)sizeof(mig_reply_error_t) ||
+ Out0P->RetCode == KERN_SUCCESS)))
+ { return MIG_TYPE_ERROR ; }
+#endif /* __MigTypeCheck */
+
+ if (Out0P->RetCode != KERN_SUCCESS) {
+#ifdef __NDR_convert__mig_reply_error_t__defined
+ __NDR_convert__mig_reply_error_t((mig_reply_error_t *)Out0P);
+#endif /* __NDR_convert__mig_reply_error_t__defined */
+ return ((mig_reply_error_t *)Out0P)->RetCode;
+ }
+
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode__defined) || \
+ defined(__NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined)
+ if (Out0P->NDR.int_rep != NDR_record.int_rep) {
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode__defined)
+ __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode__defined */
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined)
+ __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid(&Out0P->euid, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined */
+ }
+#endif /* defined(__NDR_convert__int_rep...) */
+
+#if 0 || \
+ defined(__NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined)
+ if (Out0P->NDR.char_rep != NDR_record.char_rep) {
+#if defined(__NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined)
+ __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid(&Out0P->euid, Out0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined */
+ }
+#endif /* defined(__NDR_convert__char_rep...) */
+
+#if 0 || \
+ defined(__NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined)
+ if (Out0P->NDR.float_rep != NDR_record.float_rep) {
+#if defined(__NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined)
+ __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid(&Out0P->euid, Out0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined */
+ }
+#endif /* defined(__NDR_convert__float_rep...) */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Reply__kextmanager_get_logged_in_userid_t__defined) */
+#endif /* __MIG_check__Reply__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_get_logged_in_userid */
+mig_external kern_return_t kextmanager_get_logged_in_userid
+(
+ mach_port_t server,
+ uint32_t *euid
+)
+{
+ {
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ uint32_t euid;
+ mach_msg_trailer_t trailer;
+ } Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ uint32_t euid;
+ } __Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ union {
+ Request In;
+ Reply Out;
+ } Mess;
+
+ Request *InP = &Mess.In;
+ Reply *Out0P = &Mess.Out;
+
+ mach_msg_return_t msg_result;
+
+#ifdef __MIG_check__Reply__kextmanager_get_logged_in_userid_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Reply__kextmanager_get_logged_in_userid_t__defined */
+
+ __DeclareSendRpc(70004, "kextmanager_get_logged_in_userid")
+
+ InP->Head.msgh_bits =
+ MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE);
+ /* msgh_size passed as argument */
+ InP->Head.msgh_request_port = server;
+ InP->Head.msgh_reply_port = mig_get_reply_port();
+ InP->Head.msgh_id = 70004;
+
+ __BeforeSendRpc(70004, "kextmanager_get_logged_in_userid")
+ msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
+ __AfterSendRpc(70004, "kextmanager_get_logged_in_userid")
+ if (msg_result != MACH_MSG_SUCCESS) {
+ __MachMsgErrorWithoutTimeout(msg_result);
+ { return msg_result; }
+ }
+
+
+#if defined(__MIG_check__Reply__kextmanager_get_logged_in_userid_t__defined)
+ check_result = __MIG_check__Reply__kextmanager_get_logged_in_userid_t((__Reply__kextmanager_get_logged_in_userid_t *)Out0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { return check_result; }
+#endif /* defined(__MIG_check__Reply__kextmanager_get_logged_in_userid_t__defined) */
+
+ *euid = Out0P->euid;
+
+ return KERN_SUCCESS;
+ }
+}
+
+#if ( __MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Reply__kextmanager_subsystem__
+#if !defined(__MIG_check__Reply__kextmanager_record_nonsecure_kextload_t__defined)
+#define __MIG_check__Reply__kextmanager_record_nonsecure_kextload_t__defined
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode__defined
+#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode__defined */
+
+
+
+
+
+mig_internal kern_return_t __MIG_check__Reply__kextmanager_record_nonsecure_kextload_t(__Reply__kextmanager_record_nonsecure_kextload_t *Out0P)
+{
+
+ typedef __Reply__kextmanager_record_nonsecure_kextload_t __Reply;
+ if (Out0P->Head.msgh_id != 70105) {
+ if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
+ { return MIG_SERVER_DIED; }
+ else
+ { return MIG_REPLY_MISMATCH; }
+ }
+
+#if __MigTypeCheck
+ if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (Out0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Reply)))
+ { return MIG_TYPE_ERROR ; }
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode__defined)
+ if (Out0P->NDR.int_rep != NDR_record.int_rep)
+ __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode__defined */
+ { return Out0P->RetCode;
+ }
+}
+#endif /* !defined(__MIG_check__Reply__kextmanager_record_nonsecure_kextload_t__defined) */
+#endif /* __MIG_check__Reply__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_record_nonsecure_kextload */
+mig_external kern_return_t kextmanager_record_nonsecure_kextload
+(
+ mach_port_t server,
+ xmlDataIn_t load_data,
+ mach_msg_type_number_t load_dataCnt
+)
+{
+ {
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t load_data;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t load_dataCnt;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_trailer_t trailer;
+ } Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ union {
+ Request In;
+ Reply Out;
+ } Mess;
+
+ Request *InP = &Mess.In;
+ Reply *Out0P = &Mess.Out;
+
+ mach_msg_return_t msg_result;
+
+#ifdef __MIG_check__Reply__kextmanager_record_nonsecure_kextload_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Reply__kextmanager_record_nonsecure_kextload_t__defined */
+
+ __DeclareSendRpc(70005, "kextmanager_record_nonsecure_kextload")
+
+#if UseStaticTemplates
+ const static mach_msg_ool_descriptor_t load_dataTemplate = {
+ /* addr = */ (void *)0,
+ /* size = */ 0,
+ /* deal = */ FALSE,
+ /* copy = */ MACH_MSG_VIRTUAL_COPY,
+ /* pad2 = */ 0,
+ /* type = */ MACH_MSG_OOL_DESCRIPTOR,
+ };
+#endif /* UseStaticTemplates */
+
+ InP->msgh_body.msgh_descriptor_count = 1;
+#if UseStaticTemplates
+ InP->load_data = load_dataTemplate;
+ InP->load_data.address = (void *)(load_data);
+ InP->load_data.size = load_dataCnt;
+#else /* UseStaticTemplates */
+ InP->load_data.address = (void *)(load_data);
+ InP->load_data.size = load_dataCnt;
+ InP->load_data.deallocate = FALSE;
+ InP->load_data.copy = MACH_MSG_VIRTUAL_COPY;
+ InP->load_data.type = MACH_MSG_OOL_DESCRIPTOR;
+#endif /* UseStaticTemplates */
+
+ InP->NDR = NDR_record;
+
+ InP->load_dataCnt = load_dataCnt;
+
+ InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX|
+ MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE);
+ /* msgh_size passed as argument */
+ InP->Head.msgh_request_port = server;
+ InP->Head.msgh_reply_port = mig_get_reply_port();
+ InP->Head.msgh_id = 70005;
+
+ __BeforeSendRpc(70005, "kextmanager_record_nonsecure_kextload")
+ msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
+ __AfterSendRpc(70005, "kextmanager_record_nonsecure_kextload")
+ if (msg_result != MACH_MSG_SUCCESS) {
+ __MachMsgErrorWithoutTimeout(msg_result);
+ { return msg_result; }
+ }
+
+
+#if defined(__MIG_check__Reply__kextmanager_record_nonsecure_kextload_t__defined)
+ check_result = __MIG_check__Reply__kextmanager_record_nonsecure_kextload_t((__Reply__kextmanager_record_nonsecure_kextload_t *)Out0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { return check_result; }
+#endif /* defined(__MIG_check__Reply__kextmanager_record_nonsecure_kextload_t__defined) */
+
+ return KERN_SUCCESS;
+ }
+}
+
+#if ( __MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Reply__kextmanager_subsystem__
+#if !defined(__MIG_check__Reply__kextmanager_lock_reboot_t__defined)
+#define __MIG_check__Reply__kextmanager_lock_reboot_t__defined
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode__defined
+#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode__defined */
+
+
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined
+#if defined(__NDR_convert__int_rep__kextmanager__mountpoint_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \
+ __NDR_convert__int_rep__kextmanager__mountpoint_t((mountpoint_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__mountpoint_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \
+ __NDR_convert__int_rep__mountpoint_t((mountpoint_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__char__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 90, __NDR_convert__int_rep__kextmanager__char)
+#elif defined(__NDR_convert__int_rep__char__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 90, __NDR_convert__int_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined */
+
+
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined
+#if defined(__NDR_convert__int_rep__kextmanager__int__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \
+ __NDR_convert__int_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__int_rep__int__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \
+ __NDR_convert__int_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \
+ __NDR_convert__int_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__int32_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \
+ __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined */
+
+
+
+#ifndef __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined
+#if defined(__NDR_convert__char_rep__kextmanager__mountpoint_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \
+ __NDR_convert__char_rep__kextmanager__mountpoint_t((mountpoint_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__mountpoint_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \
+ __NDR_convert__char_rep__mountpoint_t((mountpoint_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__char__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 90, __NDR_convert__char_rep__kextmanager__char)
+#elif defined(__NDR_convert__char_rep__char__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 90, __NDR_convert__char_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined */
+
+
+#ifndef __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined
+#if defined(__NDR_convert__char_rep__kextmanager__int__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \
+ __NDR_convert__char_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__char_rep__int__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \
+ __NDR_convert__char_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \
+ __NDR_convert__char_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__int32_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \
+ __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined */
+
+
+
+#ifndef __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined
+#if defined(__NDR_convert__float_rep__kextmanager__mountpoint_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \
+ __NDR_convert__float_rep__kextmanager__mountpoint_t((mountpoint_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__mountpoint_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \
+ __NDR_convert__float_rep__mountpoint_t((mountpoint_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__char__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 90, __NDR_convert__float_rep__kextmanager__char)
+#elif defined(__NDR_convert__float_rep__char__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \
+ __NDR_convert__ARRAY((char *)(a), f, 90, __NDR_convert__float_rep__char)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined */
+
+
+#ifndef __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined
+#if defined(__NDR_convert__float_rep__kextmanager__int__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \
+ __NDR_convert__float_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__float_rep__int__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \
+ __NDR_convert__float_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \
+ __NDR_convert__float_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__int32_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \
+ __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined */
+
+
+
+mig_internal kern_return_t __MIG_check__Reply__kextmanager_lock_reboot_t(__Reply__kextmanager_lock_reboot_t *Out0P)
+{
+
+ typedef __Reply__kextmanager_lock_reboot_t __Reply;
+#if __MigTypeCheck
+ unsigned int msgh_size;
+#endif /* __MigTypeCheck */
+ if (Out0P->Head.msgh_id != 70106) {
+ if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
+ { return MIG_SERVER_DIED; }
+ else
+ { return MIG_REPLY_MISMATCH; }
+ }
+
+#if __MigTypeCheck
+ msgh_size = Out0P->Head.msgh_size;
+
+ if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ ((msgh_size != (mach_msg_size_t)sizeof(__Reply)) &&
+ (msgh_size != (mach_msg_size_t)sizeof(mig_reply_error_t) ||
+ Out0P->RetCode == KERN_SUCCESS)))
+ { return MIG_TYPE_ERROR ; }
+#endif /* __MigTypeCheck */
+
+ if (Out0P->RetCode != KERN_SUCCESS) {
+#ifdef __NDR_convert__mig_reply_error_t__defined
+ __NDR_convert__mig_reply_error_t((mig_reply_error_t *)Out0P);
+#endif /* __NDR_convert__mig_reply_error_t__defined */
+ return ((mig_reply_error_t *)Out0P)->RetCode;
+ }
+
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode__defined) || \
+ defined(__NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined) || \
+ defined(__NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined)
+ if (Out0P->NDR.int_rep != NDR_record.int_rep) {
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode__defined)
+ __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode__defined */
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined)
+ __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol(&Out0P->busyVol, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined */
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined)
+ __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus(&Out0P->busyStatus, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined */
+ }
+#endif /* defined(__NDR_convert__int_rep...) */
+
+#if 0 || \
+ defined(__NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined) || \
+ defined(__NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined)
+ if (Out0P->NDR.char_rep != NDR_record.char_rep) {
+#if defined(__NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined)
+ __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol(&Out0P->busyVol, Out0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined */
+#if defined(__NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined)
+ __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus(&Out0P->busyStatus, Out0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined */
+ }
+#endif /* defined(__NDR_convert__char_rep...) */
+
+#if 0 || \
+ defined(__NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined) || \
+ defined(__NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined)
+ if (Out0P->NDR.float_rep != NDR_record.float_rep) {
+#if defined(__NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined)
+ __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol(&Out0P->busyVol, Out0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined */
+#if defined(__NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined)
+ __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus(&Out0P->busyStatus, Out0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined */
+ }
+#endif /* defined(__NDR_convert__float_rep...) */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Reply__kextmanager_lock_reboot_t__defined) */
+#endif /* __MIG_check__Reply__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_lock_reboot */
+mig_external kern_return_t kextmanager_lock_reboot
+(
+ mach_port_t server,
+ mach_port_t reaper,
+ int waitForLock,
+ mountpoint_t busyVol,
+ int *busyStatus
+)
+{
+ {
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t reaper;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ int waitForLock;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mountpoint_t busyVol;
+ char busyVolPad[2];
+ int busyStatus;
+ mach_msg_trailer_t trailer;
+ } Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mountpoint_t busyVol;
+ char busyVolPad[2];
+ int busyStatus;
+ } __Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ union {
+ Request In;
+ Reply Out;
+ } Mess;
+
+ Request *InP = &Mess.In;
+ Reply *Out0P = &Mess.Out;
+
+ mach_msg_return_t msg_result;
+
+#ifdef __MIG_check__Reply__kextmanager_lock_reboot_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Reply__kextmanager_lock_reboot_t__defined */
+
+ __DeclareSendRpc(70006, "kextmanager_lock_reboot")
+
+#if UseStaticTemplates
+ const static mach_msg_port_descriptor_t reaperTemplate = {
+ /* name = */ MACH_PORT_NULL,
+ /* pad1 = */ 0,
+ /* pad2 = */ 0,
+ /* disp = */ 20,
+ /* type = */ MACH_MSG_PORT_DESCRIPTOR,
+ };
+#endif /* UseStaticTemplates */
+
+ InP->msgh_body.msgh_descriptor_count = 1;
+#if UseStaticTemplates
+ InP->reaper = reaperTemplate;
+ InP->reaper.name = reaper;
+#else /* UseStaticTemplates */
+ InP->reaper.name = reaper;
+ InP->reaper.disposition = 20;
+ InP->reaper.type = MACH_MSG_PORT_DESCRIPTOR;
+#endif /* UseStaticTemplates */
+
+ InP->NDR = NDR_record;
+
+ InP->waitForLock = waitForLock;
+
+ InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX|
+ MACH_MSGH_BITS(19, 21);
+ /* msgh_size passed as argument */
+ InP->Head.msgh_request_port = server;
+ InP->Head.msgh_reply_port = mig_get_reply_port();
+ InP->Head.msgh_id = 70006;
+
+ __BeforeSendRpc(70006, "kextmanager_lock_reboot")
+ msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
+ __AfterSendRpc(70006, "kextmanager_lock_reboot")
+ if (msg_result != MACH_MSG_SUCCESS) {
+ __MachMsgErrorWithoutTimeout(msg_result);
+ { return msg_result; }
+ }
+
+
+#if defined(__MIG_check__Reply__kextmanager_lock_reboot_t__defined)
+ check_result = __MIG_check__Reply__kextmanager_lock_reboot_t((__Reply__kextmanager_lock_reboot_t *)Out0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { return check_result; }
+#endif /* defined(__MIG_check__Reply__kextmanager_lock_reboot_t__defined) */
+
+ { typedef struct { char data[90]; } *sp;
+ * (sp) busyVol = * (sp) Out0P->busyVol;
+ }
+
+ *busyStatus = Out0P->busyStatus;
+
+ return KERN_SUCCESS;
+ }
+}
+
+#if ( __MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Reply__kextmanager_subsystem__
+#if !defined(__MIG_check__Reply__kextmanager_lock_volume_t__defined)
+#define __MIG_check__Reply__kextmanager_lock_volume_t__defined
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode__defined
+#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode__defined */
+
+
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined
+#if defined(__NDR_convert__int_rep__kextmanager__int__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \
+ __NDR_convert__int_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__int_rep__int__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \
+ __NDR_convert__int_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \
+ __NDR_convert__int_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__int32_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \
+ __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined */
+
+
+
+#ifndef __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined
+#if defined(__NDR_convert__char_rep__kextmanager__int__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \
+ __NDR_convert__char_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__char_rep__int__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \
+ __NDR_convert__char_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \
+ __NDR_convert__char_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__int32_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \
+ __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined */
+
+
+
+#ifndef __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined
+#if defined(__NDR_convert__float_rep__kextmanager__int__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \
+ __NDR_convert__float_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__float_rep__int__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \
+ __NDR_convert__float_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \
+ __NDR_convert__float_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__int32_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \
+ __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined */
+
+
+
+mig_internal kern_return_t __MIG_check__Reply__kextmanager_lock_volume_t(__Reply__kextmanager_lock_volume_t *Out0P)
+{
+
+ typedef __Reply__kextmanager_lock_volume_t __Reply;
+#if __MigTypeCheck
+ unsigned int msgh_size;
+#endif /* __MigTypeCheck */
+ if (Out0P->Head.msgh_id != 70107) {
+ if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
+ { return MIG_SERVER_DIED; }
+ else
+ { return MIG_REPLY_MISMATCH; }
+ }
+
+#if __MigTypeCheck
+ msgh_size = Out0P->Head.msgh_size;
+
+ if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ ((msgh_size != (mach_msg_size_t)sizeof(__Reply)) &&
+ (msgh_size != (mach_msg_size_t)sizeof(mig_reply_error_t) ||
+ Out0P->RetCode == KERN_SUCCESS)))
+ { return MIG_TYPE_ERROR ; }
+#endif /* __MigTypeCheck */
+
+ if (Out0P->RetCode != KERN_SUCCESS) {
+#ifdef __NDR_convert__mig_reply_error_t__defined
+ __NDR_convert__mig_reply_error_t((mig_reply_error_t *)Out0P);
+#endif /* __NDR_convert__mig_reply_error_t__defined */
+ return ((mig_reply_error_t *)Out0P)->RetCode;
+ }
+
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode__defined) || \
+ defined(__NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined)
+ if (Out0P->NDR.int_rep != NDR_record.int_rep) {
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode__defined)
+ __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode__defined */
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined)
+ __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus(&Out0P->lockStatus, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined */
+ }
+#endif /* defined(__NDR_convert__int_rep...) */
+
+#if 0 || \
+ defined(__NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined)
+ if (Out0P->NDR.char_rep != NDR_record.char_rep) {
+#if defined(__NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined)
+ __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus(&Out0P->lockStatus, Out0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined */
+ }
+#endif /* defined(__NDR_convert__char_rep...) */
+
+#if 0 || \
+ defined(__NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined)
+ if (Out0P->NDR.float_rep != NDR_record.float_rep) {
+#if defined(__NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined)
+ __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus(&Out0P->lockStatus, Out0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined */
+ }
+#endif /* defined(__NDR_convert__float_rep...) */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Reply__kextmanager_lock_volume_t__defined) */
+#endif /* __MIG_check__Reply__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_lock_volume */
+mig_external kern_return_t kextmanager_lock_volume
+(
+ mach_port_t server,
+ mach_port_t reaper,
+ uuid_t vol_uuid,
+ int waitForLock,
+ int *lockStatus
+)
+{
+ {
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t reaper;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ uuid_t vol_uuid;
+ int waitForLock;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ int lockStatus;
+ mach_msg_trailer_t trailer;
+ } Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ int lockStatus;
+ } __Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ union {
+ Request In;
+ Reply Out;
+ } Mess;
+
+ Request *InP = &Mess.In;
+ Reply *Out0P = &Mess.Out;
+
+ mach_msg_return_t msg_result;
+
+#ifdef __MIG_check__Reply__kextmanager_lock_volume_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Reply__kextmanager_lock_volume_t__defined */
+
+ __DeclareSendRpc(70007, "kextmanager_lock_volume")
+
+#if UseStaticTemplates
+ const static mach_msg_port_descriptor_t reaperTemplate = {
+ /* name = */ MACH_PORT_NULL,
+ /* pad1 = */ 0,
+ /* pad2 = */ 0,
+ /* disp = */ 20,
+ /* type = */ MACH_MSG_PORT_DESCRIPTOR,
+ };
+#endif /* UseStaticTemplates */
+
+ InP->msgh_body.msgh_descriptor_count = 1;
+#if UseStaticTemplates
+ InP->reaper = reaperTemplate;
+ InP->reaper.name = reaper;
+#else /* UseStaticTemplates */
+ InP->reaper.name = reaper;
+ InP->reaper.disposition = 20;
+ InP->reaper.type = MACH_MSG_PORT_DESCRIPTOR;
+#endif /* UseStaticTemplates */
+
+ InP->NDR = NDR_record;
+
+ { typedef struct { char data[16]; } *sp;
+ * (sp) InP->vol_uuid = * (sp) vol_uuid;
+ }
+
+ InP->waitForLock = waitForLock;
+
+ InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX|
+ MACH_MSGH_BITS(19, 21);
+ /* msgh_size passed as argument */
+ InP->Head.msgh_request_port = server;
+ InP->Head.msgh_reply_port = mig_get_reply_port();
+ InP->Head.msgh_id = 70007;
+
+ __BeforeSendRpc(70007, "kextmanager_lock_volume")
+ msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
+ __AfterSendRpc(70007, "kextmanager_lock_volume")
+ if (msg_result != MACH_MSG_SUCCESS) {
+ __MachMsgErrorWithoutTimeout(msg_result);
+ { return msg_result; }
+ }
+
+
+#if defined(__MIG_check__Reply__kextmanager_lock_volume_t__defined)
+ check_result = __MIG_check__Reply__kextmanager_lock_volume_t((__Reply__kextmanager_lock_volume_t *)Out0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { return check_result; }
+#endif /* defined(__MIG_check__Reply__kextmanager_lock_volume_t__defined) */
+
+ *lockStatus = Out0P->lockStatus;
+
+ return KERN_SUCCESS;
+ }
+}
+
+#if ( __MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Reply__kextmanager_subsystem__
+#if !defined(__MIG_check__Reply__kextmanager_unlock_volume_t__defined)
+#define __MIG_check__Reply__kextmanager_unlock_volume_t__defined
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode__defined
+#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode__defined */
+
+
+
+
+
+mig_internal kern_return_t __MIG_check__Reply__kextmanager_unlock_volume_t(__Reply__kextmanager_unlock_volume_t *Out0P)
+{
+
+ typedef __Reply__kextmanager_unlock_volume_t __Reply;
+ if (Out0P->Head.msgh_id != 70108) {
+ if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
+ { return MIG_SERVER_DIED; }
+ else
+ { return MIG_REPLY_MISMATCH; }
+ }
+
+#if __MigTypeCheck
+ if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (Out0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Reply)))
+ { return MIG_TYPE_ERROR ; }
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode__defined)
+ if (Out0P->NDR.int_rep != NDR_record.int_rep)
+ __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode__defined */
+ { return Out0P->RetCode;
+ }
+}
+#endif /* !defined(__MIG_check__Reply__kextmanager_unlock_volume_t__defined) */
+#endif /* __MIG_check__Reply__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_unlock_volume */
+mig_external kern_return_t kextmanager_unlock_volume
+(
+ mach_port_t server,
+ mach_port_t clientIdent,
+ uuid_t vol_uuid,
+ int exitStatus
+)
+{
+ {
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t clientIdent;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ uuid_t vol_uuid;
+ int exitStatus;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_trailer_t trailer;
+ } Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ union {
+ Request In;
+ Reply Out;
+ } Mess;
+
+ Request *InP = &Mess.In;
+ Reply *Out0P = &Mess.Out;
+
+ mach_msg_return_t msg_result;
+
+#ifdef __MIG_check__Reply__kextmanager_unlock_volume_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Reply__kextmanager_unlock_volume_t__defined */
+
+ __DeclareSendRpc(70008, "kextmanager_unlock_volume")
+
+#if UseStaticTemplates
+ const static mach_msg_port_descriptor_t clientIdentTemplate = {
+ /* name = */ MACH_PORT_NULL,
+ /* pad1 = */ 0,
+ /* pad2 = */ 0,
+ /* disp = */ 20,
+ /* type = */ MACH_MSG_PORT_DESCRIPTOR,
+ };
+#endif /* UseStaticTemplates */
+
+ InP->msgh_body.msgh_descriptor_count = 1;
+#if UseStaticTemplates
+ InP->clientIdent = clientIdentTemplate;
+ InP->clientIdent.name = clientIdent;
+#else /* UseStaticTemplates */
+ InP->clientIdent.name = clientIdent;
+ InP->clientIdent.disposition = 20;
+ InP->clientIdent.type = MACH_MSG_PORT_DESCRIPTOR;
+#endif /* UseStaticTemplates */
+
+ InP->NDR = NDR_record;
+
+ { typedef struct { char data[16]; } *sp;
+ * (sp) InP->vol_uuid = * (sp) vol_uuid;
+ }
+
+ InP->exitStatus = exitStatus;
+
+ InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX|
+ MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE);
+ /* msgh_size passed as argument */
+ InP->Head.msgh_request_port = server;
+ InP->Head.msgh_reply_port = mig_get_reply_port();
+ InP->Head.msgh_id = 70008;
+
+ __BeforeSendRpc(70008, "kextmanager_unlock_volume")
+ msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
+ __AfterSendRpc(70008, "kextmanager_unlock_volume")
+ if (msg_result != MACH_MSG_SUCCESS) {
+ __MachMsgErrorWithoutTimeout(msg_result);
+ { return msg_result; }
+ }
+
+
+#if defined(__MIG_check__Reply__kextmanager_unlock_volume_t__defined)
+ check_result = __MIG_check__Reply__kextmanager_unlock_volume_t((__Reply__kextmanager_unlock_volume_t *)Out0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { return check_result; }
+#endif /* defined(__MIG_check__Reply__kextmanager_unlock_volume_t__defined) */
+
+ return KERN_SUCCESS;
+ }
+}
+
+#if ( __MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Reply__kextmanager_subsystem__
+#if !defined(__MIG_check__Reply__kextmanager_lock_kextload_t__defined)
+#define __MIG_check__Reply__kextmanager_lock_kextload_t__defined
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode__defined
+#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode__defined */
+
+
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined
+#if defined(__NDR_convert__int_rep__kextmanager__int__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \
+ __NDR_convert__int_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__int_rep__int__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \
+ __NDR_convert__int_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__int_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \
+ __NDR_convert__int_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__int32_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \
+ __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined */
+
+
+
+#ifndef __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined
+#if defined(__NDR_convert__char_rep__kextmanager__int__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \
+ __NDR_convert__char_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__char_rep__int__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \
+ __NDR_convert__char_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__char_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \
+ __NDR_convert__char_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__char_rep__int32_t__defined)
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined
+#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \
+ __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined */
+
+
+
+#ifndef __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined
+#if defined(__NDR_convert__float_rep__kextmanager__int__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \
+ __NDR_convert__float_rep__kextmanager__int((int *)(a), f)
+#elif defined(__NDR_convert__float_rep__int__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \
+ __NDR_convert__float_rep__int((int *)(a), f)
+#elif defined(__NDR_convert__float_rep__kextmanager__int32_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \
+ __NDR_convert__float_rep__kextmanager__int32_t((int32_t *)(a), f)
+#elif defined(__NDR_convert__float_rep__int32_t__defined)
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined
+#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \
+ __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined */
+
+
+
+mig_internal kern_return_t __MIG_check__Reply__kextmanager_lock_kextload_t(__Reply__kextmanager_lock_kextload_t *Out0P)
+{
+
+ typedef __Reply__kextmanager_lock_kextload_t __Reply;
+#if __MigTypeCheck
+ unsigned int msgh_size;
+#endif /* __MigTypeCheck */
+ if (Out0P->Head.msgh_id != 70109) {
+ if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
+ { return MIG_SERVER_DIED; }
+ else
+ { return MIG_REPLY_MISMATCH; }
+ }
+
+#if __MigTypeCheck
+ msgh_size = Out0P->Head.msgh_size;
+
+ if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ ((msgh_size != (mach_msg_size_t)sizeof(__Reply)) &&
+ (msgh_size != (mach_msg_size_t)sizeof(mig_reply_error_t) ||
+ Out0P->RetCode == KERN_SUCCESS)))
+ { return MIG_TYPE_ERROR ; }
+#endif /* __MigTypeCheck */
+
+ if (Out0P->RetCode != KERN_SUCCESS) {
+#ifdef __NDR_convert__mig_reply_error_t__defined
+ __NDR_convert__mig_reply_error_t((mig_reply_error_t *)Out0P);
+#endif /* __NDR_convert__mig_reply_error_t__defined */
+ return ((mig_reply_error_t *)Out0P)->RetCode;
+ }
+
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode__defined) || \
+ defined(__NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined)
+ if (Out0P->NDR.int_rep != NDR_record.int_rep) {
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode__defined)
+ __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode__defined */
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined)
+ __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus(&Out0P->lockstatus, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined */
+ }
+#endif /* defined(__NDR_convert__int_rep...) */
+
+#if 0 || \
+ defined(__NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined)
+ if (Out0P->NDR.char_rep != NDR_record.char_rep) {
+#if defined(__NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined)
+ __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus(&Out0P->lockstatus, Out0P->NDR.char_rep);
+#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined */
+ }
+#endif /* defined(__NDR_convert__char_rep...) */
+
+#if 0 || \
+ defined(__NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined)
+ if (Out0P->NDR.float_rep != NDR_record.float_rep) {
+#if defined(__NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined)
+ __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus(&Out0P->lockstatus, Out0P->NDR.float_rep);
+#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined */
+ }
+#endif /* defined(__NDR_convert__float_rep...) */
+
+ return MACH_MSG_SUCCESS;
+}
+#endif /* !defined(__MIG_check__Reply__kextmanager_lock_kextload_t__defined) */
+#endif /* __MIG_check__Reply__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_lock_kextload */
+mig_external kern_return_t kextmanager_lock_kextload
+(
+ mach_port_t server,
+ mach_port_t clientPort,
+ int *lockstatus
+)
+{
+ {
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t clientPort;
+ /* end of the kernel processed data */
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ int lockstatus;
+ mach_msg_trailer_t trailer;
+ } Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ int lockstatus;
+ } __Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ union {
+ Request In;
+ Reply Out;
+ } Mess;
+
+ Request *InP = &Mess.In;
+ Reply *Out0P = &Mess.Out;
+
+ mach_msg_return_t msg_result;
+
+#ifdef __MIG_check__Reply__kextmanager_lock_kextload_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Reply__kextmanager_lock_kextload_t__defined */
+
+ __DeclareSendRpc(70009, "kextmanager_lock_kextload")
+
+#if UseStaticTemplates
+ const static mach_msg_port_descriptor_t clientPortTemplate = {
+ /* name = */ MACH_PORT_NULL,
+ /* pad1 = */ 0,
+ /* pad2 = */ 0,
+ /* disp = */ 20,
+ /* type = */ MACH_MSG_PORT_DESCRIPTOR,
+ };
+#endif /* UseStaticTemplates */
+
+ InP->msgh_body.msgh_descriptor_count = 1;
+#if UseStaticTemplates
+ InP->clientPort = clientPortTemplate;
+ InP->clientPort.name = clientPort;
+#else /* UseStaticTemplates */
+ InP->clientPort.name = clientPort;
+ InP->clientPort.disposition = 20;
+ InP->clientPort.type = MACH_MSG_PORT_DESCRIPTOR;
+#endif /* UseStaticTemplates */
+
+ InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX|
+ MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE);
+ /* msgh_size passed as argument */
+ InP->Head.msgh_request_port = server;
+ InP->Head.msgh_reply_port = mig_get_reply_port();
+ InP->Head.msgh_id = 70009;
+
+ __BeforeSendRpc(70009, "kextmanager_lock_kextload")
+ msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
+ __AfterSendRpc(70009, "kextmanager_lock_kextload")
+ if (msg_result != MACH_MSG_SUCCESS) {
+ __MachMsgErrorWithoutTimeout(msg_result);
+ { return msg_result; }
+ }
+
+
+#if defined(__MIG_check__Reply__kextmanager_lock_kextload_t__defined)
+ check_result = __MIG_check__Reply__kextmanager_lock_kextload_t((__Reply__kextmanager_lock_kextload_t *)Out0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { return check_result; }
+#endif /* defined(__MIG_check__Reply__kextmanager_lock_kextload_t__defined) */
+
+ *lockstatus = Out0P->lockstatus;
+
+ return KERN_SUCCESS;
+ }
+}
+
+#if ( __MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Reply__kextmanager_subsystem__
+#if !defined(__MIG_check__Reply__kextmanager_unlock_kextload_t__defined)
+#define __MIG_check__Reply__kextmanager_unlock_kextload_t__defined
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode__defined
+#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode__defined */
+
+
+
+
+
+mig_internal kern_return_t __MIG_check__Reply__kextmanager_unlock_kextload_t(__Reply__kextmanager_unlock_kextload_t *Out0P)
+{
+
+ typedef __Reply__kextmanager_unlock_kextload_t __Reply;
+ if (Out0P->Head.msgh_id != 70110) {
+ if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
+ { return MIG_SERVER_DIED; }
+ else
+ { return MIG_REPLY_MISMATCH; }
+ }
+
+#if __MigTypeCheck
+ if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (Out0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Reply)))
+ { return MIG_TYPE_ERROR ; }
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode__defined)
+ if (Out0P->NDR.int_rep != NDR_record.int_rep)
+ __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode__defined */
+ { return Out0P->RetCode;
+ }
+}
+#endif /* !defined(__MIG_check__Reply__kextmanager_unlock_kextload_t__defined) */
+#endif /* __MIG_check__Reply__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_unlock_kextload */
+mig_external kern_return_t kextmanager_unlock_kextload
+(
+ mach_port_t server,
+ mach_port_t clientPort
+)
+{
+ {
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t clientPort;
+ /* end of the kernel processed data */
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_trailer_t trailer;
+ } Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ union {
+ Request In;
+ Reply Out;
+ } Mess;
+
+ Request *InP = &Mess.In;
+ Reply *Out0P = &Mess.Out;
+
+ mach_msg_return_t msg_result;
+
+#ifdef __MIG_check__Reply__kextmanager_unlock_kextload_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Reply__kextmanager_unlock_kextload_t__defined */
+
+ __DeclareSendRpc(70010, "kextmanager_unlock_kextload")
+
+#if UseStaticTemplates
+ const static mach_msg_port_descriptor_t clientPortTemplate = {
+ /* name = */ MACH_PORT_NULL,
+ /* pad1 = */ 0,
+ /* pad2 = */ 0,
+ /* disp = */ 20,
+ /* type = */ MACH_MSG_PORT_DESCRIPTOR,
+ };
+#endif /* UseStaticTemplates */
+
+ InP->msgh_body.msgh_descriptor_count = 1;
+#if UseStaticTemplates
+ InP->clientPort = clientPortTemplate;
+ InP->clientPort.name = clientPort;
+#else /* UseStaticTemplates */
+ InP->clientPort.name = clientPort;
+ InP->clientPort.disposition = 20;
+ InP->clientPort.type = MACH_MSG_PORT_DESCRIPTOR;
+#endif /* UseStaticTemplates */
+
+ InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX|
+ MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE);
+ /* msgh_size passed as argument */
+ InP->Head.msgh_request_port = server;
+ InP->Head.msgh_reply_port = mig_get_reply_port();
+ InP->Head.msgh_id = 70010;
+
+ __BeforeSendRpc(70010, "kextmanager_unlock_kextload")
+ msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
+ __AfterSendRpc(70010, "kextmanager_unlock_kextload")
+ if (msg_result != MACH_MSG_SUCCESS) {
+ __MachMsgErrorWithoutTimeout(msg_result);
+ { return msg_result; }
+ }
+
+
+#if defined(__MIG_check__Reply__kextmanager_unlock_kextload_t__defined)
+ check_result = __MIG_check__Reply__kextmanager_unlock_kextload_t((__Reply__kextmanager_unlock_kextload_t *)Out0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { return check_result; }
+#endif /* defined(__MIG_check__Reply__kextmanager_unlock_kextload_t__defined) */
+
+ return KERN_SUCCESS;
+ }
+}
+
+#if ( __MigTypeCheck || __NDR_convert__ )
+#if __MIG_check__Reply__kextmanager_subsystem__
+#if !defined(__MIG_check__Reply__kextmanager_record_path_for_bundle_id_t__defined)
+#define __MIG_check__Reply__kextmanager_record_path_for_bundle_id_t__defined
+#ifndef __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode__defined
+#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f)
+#elif defined(__NDR_convert__int_rep__kern_return_t__defined)
+#define __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode__defined
+#define __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode(a, f) \
+ __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f)
+#endif /* defined(__NDR_convert__*__defined) */
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode__defined */
+
+
+
+
+
+mig_internal kern_return_t __MIG_check__Reply__kextmanager_record_path_for_bundle_id_t(__Reply__kextmanager_record_path_for_bundle_id_t *Out0P)
+{
+
+ typedef __Reply__kextmanager_record_path_for_bundle_id_t __Reply;
+ if (Out0P->Head.msgh_id != 70111) {
+ if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
+ { return MIG_SERVER_DIED; }
+ else
+ { return MIG_REPLY_MISMATCH; }
+ }
+
+#if __MigTypeCheck
+ if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
+ (Out0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Reply)))
+ { return MIG_TYPE_ERROR ; }
+#endif /* __MigTypeCheck */
+
+#if defined(__NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode__defined)
+ if (Out0P->NDR.int_rep != NDR_record.int_rep)
+ __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep);
+#endif /* __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode__defined */
+ { return Out0P->RetCode;
+ }
+}
+#endif /* !defined(__MIG_check__Reply__kextmanager_record_path_for_bundle_id_t__defined) */
+#endif /* __MIG_check__Reply__kextmanager_subsystem__ */
+#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
+
+
+/* Routine kextmanager_record_path_for_bundle_id */
+mig_external kern_return_t kextmanager_record_path_for_bundle_id
+(
+ mach_port_t server,
+ kext_bundle_id_t bundle_id,
+ posix_path_t path
+)
+{
+ {
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kext_bundle_id_t bundle_id;
+ posix_path_t path;
+ } Request;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_trailer_t trailer;
+ } Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+ /*
+ * typedef struct {
+ * mach_msg_header_t Head;
+ * NDR_record_t NDR;
+ * kern_return_t RetCode;
+ * } mig_reply_error_t;
+ */
+
+ union {
+ Request In;
+ Reply Out;
+ } Mess;
+
+ Request *InP = &Mess.In;
+ Reply *Out0P = &Mess.Out;
+
+ mach_msg_return_t msg_result;
+
+#ifdef __MIG_check__Reply__kextmanager_record_path_for_bundle_id_t__defined
+ kern_return_t check_result;
+#endif /* __MIG_check__Reply__kextmanager_record_path_for_bundle_id_t__defined */
+
+ __DeclareSendRpc(70011, "kextmanager_record_path_for_bundle_id")
+
+ InP->NDR = NDR_record;
+
+ { typedef struct { char data[64]; } *sp;
+ * (sp) InP->bundle_id = * (sp) bundle_id;
+ }
+
+ { typedef struct { char data[1024]; } *sp;
+ * (sp) InP->path = * (sp) path;
+ }
+
+ InP->Head.msgh_bits =
+ MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE);
+ /* msgh_size passed as argument */
+ InP->Head.msgh_request_port = server;
+ InP->Head.msgh_reply_port = mig_get_reply_port();
+ InP->Head.msgh_id = 70011;
+
+ __BeforeSendRpc(70011, "kextmanager_record_path_for_bundle_id")
+ msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
+ __AfterSendRpc(70011, "kextmanager_record_path_for_bundle_id")
+ if (msg_result != MACH_MSG_SUCCESS) {
+ __MachMsgErrorWithoutTimeout(msg_result);
+ { return msg_result; }
+ }
+
+
+#if defined(__MIG_check__Reply__kextmanager_record_path_for_bundle_id_t__defined)
+ check_result = __MIG_check__Reply__kextmanager_record_path_for_bundle_id_t((__Reply__kextmanager_record_path_for_bundle_id_t *)Out0P);
+ if (check_result != MACH_MSG_SUCCESS)
+ { return check_result; }
+#endif /* defined(__MIG_check__Reply__kextmanager_record_path_for_bundle_id_t__defined) */
+
+ return KERN_SUCCESS;
+ }
+}
diff --git a/data/system-cmds/make.sh b/data/system-cmds/make.sh
new file mode 100644
index 000000000..7a200fe3b
--- /dev/null
+++ b/data/system-cmds/make.sh
@@ -0,0 +1,16 @@
+shopt -s extglob
+tar -zxvf "${PKG_DATA}/system_cmds-431.tar.gz"
+cd system_cmds-431
+mkdir -p "${PKG_DEST}/usr/bin"
+cd getconf.tproj
+for gperf in *.gperf; do
+ LC_ALL=C awk -f fake-gperf.awk <"${gperf}" >"$(basename "${gperf}" .gperf).c"
+done
+cd ..
+cp -va "${PKG_DATA}"/kextmanager* .
+# dmesg reboot shutdown
+for tproj in getconf getty hostinfo iostat login nvram passwd sync sysctl vipw zprint; do
+ echo "${tproj}"
+ arm-apple-darwin-gcc -o "${tproj}" "${tproj}.tproj"/!(od_passwd).c -I. -D'__FBSDID(x)=' -DTARGET_OS_EMBEDDED -framework CoreFoundation -framework IOKit kextmanagerUser.c
+ cp -a "${tproj}" "${PKG_DEST}/usr/bin"
+done
diff --git a/data/system-cmds/system_cmds-431.tar.gz b/data/system-cmds/system_cmds-431.tar.gz
new file mode 100644
index 000000000..a58079d9e
--- /dev/null
+++ b/data/system-cmds/system_cmds-431.tar.gz
Binary files differ
diff --git a/data/tar/_metadata/description b/data/tar/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/tar/_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/tar/_metadata/license b/data/tar/_metadata/license
new file mode 120000
index 000000000..af4224931
--- /dev/null
+++ b/data/tar/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-3 \ No newline at end of file
diff --git a/data/tar/_metadata/maintainer b/data/tar/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/tar/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/tar/_metadata/priority b/data/tar/_metadata/priority
new file mode 100644
index 000000000..fad9e164a
--- /dev/null
+++ b/data/tar/_metadata/priority
@@ -0,0 +1 @@
+required
diff --git a/data/tar/_metadata/section b/data/tar/_metadata/section
new file mode 100644
index 000000000..f1d43c641
--- /dev/null
+++ b/data/tar/_metadata/section
@@ -0,0 +1 @@
+archive
diff --git a/data/tar/_metadata/version b/data/tar/_metadata/version
new file mode 100644
index 000000000..bc4493477
--- /dev/null
+++ b/data/tar/_metadata/version
@@ -0,0 +1 @@
+1.19
diff --git a/data/tar/make.sh b/data/tar/make.sh
new file mode 100644
index 000000000..47db2f3eb
--- /dev/null
+++ b/data/tar/make.sh
@@ -0,0 +1,7 @@
+tar -zxvf "${PKG_DATA}/tar-1.19.tar.gz"
+cd tar-1.19
+pkg:patch
+pkg:configure
+make
+pkg:install
+pkg:bin tar
diff --git a/data/tar/static.diff b/data/tar/static.diff
new file mode 100644
index 000000000..41733b504
--- /dev/null
+++ b/data/tar/static.diff
@@ -0,0 +1,64 @@
+diff -r -u tar-1.19/lib/argp-fmtstream.h tar-1.19+iPhone/lib/argp-fmtstream.h
+--- tar-1.19/lib/argp-fmtstream.h 2007-09-28 13:11:36.000000000 +0000
++++ tar-1.19+iPhone/lib/argp-fmtstream.h 2007-12-26 23:04:38.000000000 +0000
+@@ -135,15 +135,15 @@
+ const char *__fmt, ...)
+ __attribute__ ((__format__ (printf, 2, 3)));
+
+-extern int __argp_fmtstream_putc (argp_fmtstream_t __fs, int __ch);
+-extern int argp_fmtstream_putc (argp_fmtstream_t __fs, int __ch);
++static int __argp_fmtstream_putc (argp_fmtstream_t __fs, int __ch);
++static int argp_fmtstream_putc (argp_fmtstream_t __fs, int __ch);
+
+-extern int __argp_fmtstream_puts (argp_fmtstream_t __fs, const char *__str);
+-extern int argp_fmtstream_puts (argp_fmtstream_t __fs, const char *__str);
++static int __argp_fmtstream_puts (argp_fmtstream_t __fs, const char *__str);
++static int argp_fmtstream_puts (argp_fmtstream_t __fs, const char *__str);
+
+-extern size_t __argp_fmtstream_write (argp_fmtstream_t __fs,
++static size_t __argp_fmtstream_write (argp_fmtstream_t __fs,
+ const char *__str, size_t __len);
+-extern size_t argp_fmtstream_write (argp_fmtstream_t __fs,
++static size_t argp_fmtstream_write (argp_fmtstream_t __fs,
+ const char *__str, size_t __len);
+
+ /* Access macros for various bits of state. */
+@@ -155,25 +155,25 @@
+ #define __argp_fmtstream_wmargin argp_fmtstream_wmargin
+
+ /* Set __FS's left margin to LMARGIN and return the old value. */
+-extern size_t argp_fmtstream_set_lmargin (argp_fmtstream_t __fs,
++static size_t argp_fmtstream_set_lmargin (argp_fmtstream_t __fs,
+ size_t __lmargin);
+ extern size_t __argp_fmtstream_set_lmargin (argp_fmtstream_t __fs,
+ size_t __lmargin);
+
+ /* Set __FS's right margin to __RMARGIN and return the old value. */
+-extern size_t argp_fmtstream_set_rmargin (argp_fmtstream_t __fs,
++static size_t argp_fmtstream_set_rmargin (argp_fmtstream_t __fs,
+ size_t __rmargin);
+ extern size_t __argp_fmtstream_set_rmargin (argp_fmtstream_t __fs,
+ size_t __rmargin);
+
+ /* Set __FS's wrap margin to __WMARGIN and return the old value. */
+-extern size_t argp_fmtstream_set_wmargin (argp_fmtstream_t __fs,
++static size_t argp_fmtstream_set_wmargin (argp_fmtstream_t __fs,
+ size_t __wmargin);
+ extern size_t __argp_fmtstream_set_wmargin (argp_fmtstream_t __fs,
+ size_t __wmargin);
+
+ /* Return the column number of the current output point in __FS. */
+-extern size_t argp_fmtstream_point (argp_fmtstream_t __fs);
++static size_t argp_fmtstream_point (argp_fmtstream_t __fs);
+ extern size_t __argp_fmtstream_point (argp_fmtstream_t __fs);
+
+ /* Internal routines. */
+@@ -198,7 +198,7 @@
+ #endif
+
+ #ifndef ARGP_FS_EI
+-#define ARGP_FS_EI extern inline
++#define ARGP_FS_EI static inline
+ #endif
+
+ ARGP_FS_EI size_t
diff --git a/data/tar/tar-1.19.tar.gz b/data/tar/tar-1.19.tar.gz
new file mode 100644
index 000000000..c9f077f48
--- /dev/null
+++ b/data/tar/tar-1.19.tar.gz
Binary files differ
diff --git a/data/tcpdump/_metadata/description b/data/tcpdump/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/tcpdump/_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/tcpdump/_metadata/libpcap.dep b/data/tcpdump/_metadata/libpcap.dep
new file mode 120000
index 000000000..6c356a9b8
--- /dev/null
+++ b/data/tcpdump/_metadata/libpcap.dep
@@ -0,0 +1 @@
+../../libpcap \ No newline at end of file
diff --git a/data/tcpdump/_metadata/license b/data/tcpdump/_metadata/license
new file mode 120000
index 000000000..8a4bc1936
--- /dev/null
+++ b/data/tcpdump/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/modified-bsd \ No newline at end of file
diff --git a/data/tcpdump/_metadata/maintainer b/data/tcpdump/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/tcpdump/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/tcpdump/_metadata/priority b/data/tcpdump/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/tcpdump/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/tcpdump/_metadata/section b/data/tcpdump/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/tcpdump/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/tcpdump/_metadata/version b/data/tcpdump/_metadata/version
new file mode 100644
index 000000000..26cb48590
--- /dev/null
+++ b/data/tcpdump/_metadata/version
@@ -0,0 +1 @@
+3.9.8
diff --git a/data/tcpdump/make.sh b/data/tcpdump/make.sh
new file mode 100644
index 000000000..ff8919e32
--- /dev/null
+++ b/data/tcpdump/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/tcpdump-3.9.8.tar.gz"
+cd tcpdump-3.9.8
+Xprefix="${PKG_ROOT}/usr" pkg:configure
+make
+pkg:install
diff --git a/data/tcpdump/tcpdump-3.9.8.tar.gz b/data/tcpdump/tcpdump-3.9.8.tar.gz
new file mode 100644
index 000000000..0b40e2492
--- /dev/null
+++ b/data/tcpdump/tcpdump-3.9.8.tar.gz
Binary files differ
diff --git a/data/top/_metadata/description b/data/top/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/top/_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/top/_metadata/license b/data/top/_metadata/license
new file mode 120000
index 000000000..9e5e5e89d
--- /dev/null
+++ b/data/top/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/apsl-2.0 \ No newline at end of file
diff --git a/data/top/_metadata/maintainer b/data/top/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/top/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/top/_metadata/priority b/data/top/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/top/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/top/_metadata/section b/data/top/_metadata/section
new file mode 100644
index 000000000..7fbe952b7
--- /dev/null
+++ b/data/top/_metadata/section
@@ -0,0 +1 @@
+admin
diff --git a/data/top/_metadata/version b/data/top/_metadata/version
new file mode 100644
index 000000000..81b5c5d06
--- /dev/null
+++ b/data/top/_metadata/version
@@ -0,0 +1 @@
+37
diff --git a/data/top/make.sh b/data/top/make.sh
new file mode 100644
index 000000000..a2a21d3ca
--- /dev/null
+++ b/data/top/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/top-37.tar.gz"
+cd top-37
+pkg:patch
+make CC=arm-apple-darwin-gcc AR=arm-apple-darwin-ar RANLIB=arm-apple-darwin-ranlib
+make install STRIP=arm-apple-darwin-strip DSTROOT="${PKG_DEST}"
diff --git a/data/top/mvpath.diff b/data/top/mvpath.diff
new file mode 100644
index 000000000..4da654af5
--- /dev/null
+++ b/data/top/mvpath.diff
@@ -0,0 +1,11 @@
+diff -u top-37/Makefile top-37+iPhone/Makefile
+--- top-37/Makefile 2006-06-19 22:22:33.000000000 +0000
++++ top-37+iPhone/Makefile 2007-12-27 12:03:43.000000000 +0000
+@@ -93,7 +93,6 @@
+ $(SYMROOT)/$(LIB) : $(patsubst %.c,$(SRCROOT)/%.c,$(LIB_SRCS)) \
+ $(patsubst %.h,$(SRCROOT)/%.h,$(LIB_HDRS) $(LIB_PHDRS))
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(LIB_SRCS)
+- mv *.o $(OBJROOT)
+ $(AR) cru $@ $(patsubst %.c,$(OBJROOT)/%.o,$(LIB_SRCS))
+ $(RANLIB) $@
+
diff --git a/data/top/strip.diff b/data/top/strip.diff
new file mode 100644
index 000000000..3303c3dd5
--- /dev/null
+++ b/data/top/strip.diff
@@ -0,0 +1,13 @@
+diff -u top-37/Makefile top-37+iPhone/Makefile
+--- top-37/Makefile 2006-06-19 22:22:33.000000000 +0000
++++ top-37+iPhone/Makefile 2007-12-27 12:03:07.000000000 +0000
+@@ -77,7 +77,8 @@
+
+ installbin : $(SYMROOT)/$(BIN)
+ $(INSTALL) -d $(DSTROOT)/usr/bin
+- $(INSTALL) -s -m 4755 $< $(DSTROOT)/usr/bin
++ $(STRIP) $<
++ $(INSTALL) -m 4755 $< $(DSTROOT)/usr/bin
+
+ installman :
+ $(INSTALL) -d $(DSTROOT)/usr/share/man/man1
diff --git a/data/top/top-37.tar.gz b/data/top/top-37.tar.gz
new file mode 100644
index 000000000..685dc012a
--- /dev/null
+++ b/data/top/top-37.tar.gz
Binary files differ
diff --git a/data/unrar/_metadata/description b/data/unrar/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/unrar/_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/unrar/_metadata/license b/data/unrar/_metadata/license
new file mode 100644
index 000000000..ec35e09a8
--- /dev/null
+++ b/data/unrar/_metadata/license
@@ -0,0 +1,40 @@
+ ****** ***** ****** UnRAR - free utility for RAR archives
+ ** ** ** ** ** ** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ****** ******* ****** License for use and distribution of
+ ** ** ** ** ** ** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ** ** ** ** ** ** FREE portable version
+ ~~~~~~~~~~~~~~~~~~~~~
+
+ The source code of UnRAR utility is freeware. This means:
+
+ 1. All copyrights to RAR and the utility UnRAR are exclusively
+ owned by the author - Alexander Roshal.
+
+ 2. The UnRAR sources may be used in any software to handle RAR
+ archives without limitations free of charge, but cannot be used
+ to re-create the RAR compression algorithm, which is proprietary.
+ Distribution of modified UnRAR sources in separate form or as a
+ part of other software is permitted, provided that it is clearly
+ stated in the documentation and source comments that the code may
+ not be used to develop a RAR (WinRAR) compatible archiver.
+
+ 3. The UnRAR utility may be freely distributed. It is allowed
+ to distribute UnRAR inside of other software packages.
+
+ 4. THE RAR ARCHIVER AND THE UnRAR UTILITY ARE DISTRIBUTED "AS IS".
+ NO WARRANTY OF ANY KIND IS EXPRESSED OR IMPLIED. YOU USE AT
+ YOUR OWN RISK. THE AUTHOR WILL NOT BE LIABLE FOR DATA LOSS,
+ DAMAGES, LOSS OF PROFITS OR ANY OTHER KIND OF LOSS WHILE USING
+ OR MISUSING THIS SOFTWARE.
+
+ 5. Installing and using the UnRAR utility signifies acceptance of
+ these terms and conditions of the license.
+
+ 6. If you don't agree with terms of the license you must remove
+ UnRAR files from your storage devices and cease to use the
+ utility.
+
+ Thank you for your interest in RAR and UnRAR.
+
+
+ Alexander L. Roshal \ No newline at end of file
diff --git a/data/unrar/_metadata/maintainer b/data/unrar/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/unrar/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/unrar/_metadata/priority b/data/unrar/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/unrar/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/unrar/_metadata/section b/data/unrar/_metadata/section
new file mode 100644
index 000000000..f1d43c641
--- /dev/null
+++ b/data/unrar/_metadata/section
@@ -0,0 +1 @@
+archive
diff --git a/data/unrar/_metadata/version b/data/unrar/_metadata/version
new file mode 100644
index 000000000..424e1794d
--- /dev/null
+++ b/data/unrar/_metadata/version
@@ -0,0 +1 @@
+3.6.8
diff --git a/data/unrar/exceptions.diff b/data/unrar/exceptions.diff
new file mode 100644
index 000000000..94062e15c
--- /dev/null
+++ b/data/unrar/exceptions.diff
@@ -0,0 +1,39 @@
+diff -ru unrar/errhnd.cpp unrar+iPhone/errhnd.cpp
+--- unrar/errhnd.cpp 2006-08-04 18:32:40.000000000 +0000
++++ unrar+iPhone/errhnd.cpp 2007-12-28 03:44:02.000000000 +0000
+@@ -321,7 +321,7 @@
+ throw Code;
+ #else
+ File::RemoveCreated();
+- exit(Code);
++ _exit(Code);
+ #endif
+ }
+
+diff -ru unrar/errhnd.hpp unrar+iPhone/errhnd.hpp
+--- unrar/errhnd.hpp 2006-08-04 18:32:40.000000000 +0000
++++ unrar+iPhone/errhnd.hpp 2007-12-28 03:43:39.000000000 +0000
+@@ -1,11 +1,6 @@
+ #ifndef _RAR_ERRHANDLER_
+ #define _RAR_ERRHANDLER_
+
+-#if (defined(GUI) || !defined(_WIN_32)) && !defined(SFX_MODULE) && !defined(_WIN_CE) || defined(RARDLL)
+-#define ALLOW_EXCEPTIONS
+-#endif
+-
+-
+
+ #define rarmalloc malloc
+ #define rarcalloc calloc
+diff -ru unrar/rar.cpp unrar+iPhone/rar.cpp
+--- unrar/rar.cpp 2006-08-04 18:32:40.000000000 +0000
++++ unrar+iPhone/rar.cpp 2007-12-28 03:41:09.000000000 +0000
+@@ -127,7 +127,7 @@
+ #if defined(_EMX) && !defined(_DJGPP)
+ uni_done();
+ #endif
+- return(ErrHandler.GetErrorCode());
++ _exit(ErrHandler.GetErrorCode());
+ }
+ #endif
+
diff --git a/data/unrar/make.sh b/data/unrar/make.sh
new file mode 100644
index 000000000..916b2a9ae
--- /dev/null
+++ b/data/unrar/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/unrarsrc-3.6.8.tar.gz"
+cd unrar
+pkg:patch
+make -f makefile.unix CXX=arm-apple-darwin-g++ STRIP=arm-apple-darwin-strip all
+pkg:usrbin unrar
diff --git a/data/unrar/unrarsrc-3.6.8.tar.gz b/data/unrar/unrarsrc-3.6.8.tar.gz
new file mode 100644
index 000000000..bcc96b124
--- /dev/null
+++ b/data/unrar/unrarsrc-3.6.8.tar.gz
Binary files differ
diff --git a/data/unzip/_metadata/description b/data/unzip/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/unzip/_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/unzip/_metadata/license b/data/unzip/_metadata/license
new file mode 100644
index 000000000..9cc83dca0
--- /dev/null
+++ b/data/unzip/_metadata/license
@@ -0,0 +1,55 @@
+This is version 2005-Feb-10 of the Info-ZIP copyright and license.
+The definitive version of this document should be available at
+ftp://ftp.info-zip.org/pub/infozip/license.html indefinitely.
+
+
+Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
+
+For the purposes of this copyright and license, "Info-ZIP" is defined as
+the following set of individuals:
+
+ Mark Adler, John Bush, Karl Davis, Harald Denker, Jean-Michel Dubois,
+ Jean-loup Gailly, Hunter Goatley, Ed Gordon, Ian Gorman, Chris Herborth,
+ Dirk Haase, Greg Hartwig, Robert Heath, Jonathan Hudson, Paul Kienitz,
+ David Kirschbaum, Johnny Lee, Onno van der Linden, Igor Mandrichenko,
+ Steve P. Miller, Sergio Monesi, Keith Owens, George Petrov, Greg Roelofs,
+ Kai Uwe Rommel, Steve Salisbury, Dave Smith, Steven M. Schweda,
+ Christian Spieler, Cosmin Truta, Antoine Verheijen, Paul von Behren,
+ Rich Wales, Mike White
+
+This software is provided "as is," without warranty of any kind, express
+or implied. In no event shall Info-ZIP or its contributors be held liable
+for any direct, indirect, incidental, special or consequential damages
+arising out of the use of or inability to use this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ definition, disclaimer, and this list of conditions.
+
+ 2. Redistributions in binary form (compiled executables) must reproduce
+ the above copyright notice, definition, disclaimer, and this list of
+ conditions in documentation and/or other materials provided with the
+ distribution. The sole exception to this condition is redistribution
+ of a standard UnZipSFX binary (including SFXWiz) as part of a
+ self-extracting archive; that is permitted without inclusion of this
+ license, as long as the normal SFX banner has not been removed from
+ the binary or disabled.
+
+ 3. Altered versions--including, but not limited to, ports to new operating
+ systems, existing ports with new graphical interfaces, and dynamic,
+ shared, or static library versions--must be plainly marked as such
+ and must not be misrepresented as being the original source. Such
+ altered versions also must not be misrepresented as being Info-ZIP
+ releases--including, but not limited to, labeling of the altered
+ versions with the names "Info-ZIP" (or any variation thereof, including,
+ but not limited to, different capitalizations), "Pocket UnZip," "WiZ"
+ or "MacZip" without the explicit permission of Info-ZIP. Such altered
+ versions are further prohibited from misrepresentative use of the
+ Zip-Bugs or Info-ZIP e-mail addresses or of the Info-ZIP URL(s).
+
+ 4. Info-ZIP retains the right to use the names "Info-ZIP," "Zip," "UnZip,"
+ "UnZipSFX," "WiZ," "Pocket UnZip," "Pocket Zip," and "MacZip" for its
+ own source and binary releases.
diff --git a/data/unzip/_metadata/maintainer b/data/unzip/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/unzip/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/unzip/_metadata/priority b/data/unzip/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/unzip/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/unzip/_metadata/section b/data/unzip/_metadata/section
new file mode 100644
index 000000000..f1d43c641
--- /dev/null
+++ b/data/unzip/_metadata/section
@@ -0,0 +1 @@
+archive
diff --git a/data/unzip/_metadata/version b/data/unzip/_metadata/version
new file mode 100644
index 000000000..bb2d831e7
--- /dev/null
+++ b/data/unzip/_metadata/version
@@ -0,0 +1 @@
+5.52
diff --git a/data/unzip/make.sh b/data/unzip/make.sh
new file mode 100644
index 000000000..16d7c9a34
--- /dev/null
+++ b/data/unzip/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/unzip552.tar.gz"
+cd unzip-5.52
+cp unix/Makefile .
+make unzips CC=arm-apple-darwin-gcc CF='-O3 -Wall -I. -DBSD -DUNIX' LF2=
+pkg:usrbin unzip funzip unzipsfx
diff --git a/data/unzip/unzip552.tar.gz b/data/unzip/unzip552.tar.gz
new file mode 100644
index 000000000..ef39c84a5
--- /dev/null
+++ b/data/unzip/unzip552.tar.gz
Binary files differ
diff --git a/data/vim/_metadata/description b/data/vim/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/vim/_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/vim/_metadata/license b/data/vim/_metadata/license
new file mode 100644
index 000000000..dd685292b
--- /dev/null
+++ b/data/vim/_metadata/license
@@ -0,0 +1,78 @@
+VIM LICENSE
+
+I) There are no restrictions on distributing unmodified copies of Vim except
+ that they must include this license text. You can also distribute
+ unmodified parts of Vim, likewise unrestricted except that they must
+ include this license text. You are also allowed to include executables
+ that you made from the unmodified Vim sources, plus your own usage
+ examples and Vim scripts.
+
+II) It is allowed to distribute a modified (or extended) version of Vim,
+ including executables and/or source code, when the following four
+ conditions are met:
+ 1) This license text must be included unmodified.
+ 2) The modified Vim must be distributed in one of the following five ways:
+ a) If you make changes to Vim yourself, you must clearly describe in
+ the distribution how to contact you. When the maintainer asks you
+ (in any way) for a copy of the modified Vim you distributed, you
+ must make your changes, including source code, available to the
+ maintainer without fee. The maintainer reserves the right to
+ include your changes in the official version of Vim. What the
+ maintainer will do with your changes and under what license they
+ will be distributed is negotiable. If there has been no negotiation
+ then this license, or a later version, also applies to your changes.
+ The current maintainer is Bram Moolenaar <Bram@vim.org>. If this
+ changes it will be announced in appropriate places (most likely
+ vim.sf.net, www.vim.org and/or comp.editors). When it is completely
+ impossible to contact the maintainer, the obligation to send him
+ your changes ceases. Once the maintainer has confirmed that he has
+ received your changes they will not have to be sent again.
+ b) If you have received a modified Vim that was distributed as
+ mentioned under a) you are allowed to further distribute it
+ unmodified, as mentioned at I). If you make additional changes the
+ text under a) applies to those changes.
+ c) Provide all the changes, including source code, with every copy of
+ the modified Vim you distribute. This may be done in the form of a
+ context diff. You can choose what license to use for new code you
+ add. The changes and their license must not restrict others from
+ making their own changes to the official version of Vim.
+ d) When you have a modified Vim which includes changes as mentioned
+ under c), you can distribute it without the source code for the
+ changes if the following three conditions are met:
+ - The license that applies to the changes permits you to distribute
+ the changes to the Vim maintainer without fee or restriction, and
+ permits the Vim maintainer to include the changes in the official
+ version of Vim without fee or restriction.
+ - You keep the changes for at least three years after last
+ distributing the corresponding modified Vim. When the maintainer
+ or someone who you distributed the modified Vim to asks you (in
+ any way) for the changes within this period, you must make them
+ available to him.
+ - You clearly describe in the distribution how to contact you. This
+ contact information must remain valid for at least three years
+ after last distributing the corresponding modified Vim, or as long
+ as possible.
+ e) When the GNU General Public License (GPL) applies to the changes,
+ you can distribute the modified Vim under the GNU GPL version 2 or
+ any later version.
+ 3) A message must be added, at least in the output of the ":version"
+ command and in the intro screen, such that the user of the modified Vim
+ is able to see that it was modified. When distributing as mentioned
+ under 2)e) adding the message is only required for as far as this does
+ not conflict with the license used for the changes.
+ 4) The contact information as required under 2)a) and 2)d) must not be
+ removed or changed, except that the person himself can make
+ corrections.
+
+III) If you distribute a modified version of Vim, you are encouraged to use
+ the Vim license for your changes and make them available to the
+ maintainer, including the source code. The preferred way to do this is
+ by e-mail or by uploading the files to a server and e-mailing the URL.
+ If the number of changes is small (e.g., a modified Makefile) e-mailing a
+ context diff will do. The e-mail address to be used is
+ <maintainer@vim.org>
+
+IV) It is not allowed to remove this license from the distribution of the Vim
+ sources, parts of it or from a modified version. You may use this
+ license for previous Vim releases instead of the license that they came
+ with, at your option.
diff --git a/data/vim/_metadata/maintainer b/data/vim/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/vim/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/vim/_metadata/priority b/data/vim/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/vim/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/vim/_metadata/section b/data/vim/_metadata/section
new file mode 100644
index 000000000..85042acd1
--- /dev/null
+++ b/data/vim/_metadata/section
@@ -0,0 +1 @@
+editor
diff --git a/data/vim/_metadata/version b/data/vim/_metadata/version
new file mode 100644
index 000000000..0f0fefae5
--- /dev/null
+++ b/data/vim/_metadata/version
@@ -0,0 +1 @@
+7.1
diff --git a/data/vim/cross.diff b/data/vim/cross.diff
new file mode 100644
index 000000000..455e7bc9a
--- /dev/null
+++ b/data/vim/cross.diff
@@ -0,0 +1,328 @@
+diff -ur vim71/src/configure.in vim71+ip/src/configure.in
+--- vim71/src/configure.in 2007-05-12 09:19:27.000000000 +0000
++++ vim71+ip/src/configure.in 2007-11-30 06:21:58.000000000 +0000
+@@ -47,13 +47,6 @@
+ fi
+ fi
+
+-dnl If configure thinks we are cross compiling, there is probably something
+-dnl wrong with the CC or CFLAGS settings, give an understandable error message
+-if test "$cross_compiling" = yes; then
+- AC_MSG_ERROR([cannot compile a simple program, check CC and CFLAGS
+- (cross compiling doesn't work)])
+-fi
+-
+ dnl gcc-cpp has the wonderful -MM option to produce nicer dependencies.
+ dnl But gcc 3.1 changed the meaning! See near the end.
+ test "$GCC" = yes && CPP_MM=M; AC_SUBST(CPP_MM)
+@@ -1986,11 +1979,24 @@
+
+ dnl Checks for libraries and include files.
+
+-AC_MSG_CHECKING(quality of toupper)
+-AC_TRY_RUN([#include <ctype.h>
+-main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }],
+- AC_DEFINE(BROKEN_TOUPPER) AC_MSG_RESULT(bad),
+- AC_MSG_RESULT(good), AC_MSG_ERROR(failed to compile test program))
++AC_CACHE_CHECK([toupper is broken],[vim_cv_toupper_broken],
++ [
++ AC_RUN_IFELSE([
++#include <ctype.h>
++main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
++ ],[
++ vim_cv_toupper_broken=yes
++ AC_MSG_RESULT(yes)
++ ],[
++ vim_cv_toupper_broken=no
++ AC_MSG_RESULT(no)
++ ],[
++ AC_MSG_ERROR(cross-compiling: please set 'vim_cv_toupper_broken')
++ ])])
++
++if test "x$vim_cv_toupper_broken" = "xyes" ; then
++ AC_DEFINE(BROKEN_TOUPPER)
++fi
+
+ AC_MSG_CHECKING(whether __DATE__ and __TIME__ work)
+ AC_TRY_COMPILE(, [printf("(" __DATE__ " " __TIME__ ")");],
+@@ -2202,28 +2208,52 @@
+ Or specify the name of the library with --with-tlib.]))
+ fi
+
+-AC_MSG_CHECKING(whether we talk terminfo)
+-AC_TRY_RUN([
++AC_CACHE_CHECK([whether we talk terminfo], [vim_cv_terminfo],
++ [
++ AC_RUN_IFELSE([
+ #ifdef HAVE_TERMCAP_H
+ # include <termcap.h>
+ #endif
+ main()
+-{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }],
+- AC_MSG_RESULT([no -- we are in termcap land]),
+- AC_MSG_RESULT([yes -- terminfo spoken here]); AC_DEFINE(TERMINFO),
+- AC_MSG_ERROR(failed to compile test program.))
++{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
++ ],[
++ vim_cv_terminfo=no
++ AC_MSG_RESULT([no -- we are in termcap land])
++ ],[
++ vim_cv_terminfo=yes
++ AC_MSG_RESULT([yes -- terminfo spoken here])
++ ],[
++ AC_MSG_ERROR(cross-compiling: please set 'vim_cv_terminfo')
++ ])
++ ])
++
++if test "x$vim_cv_terminfo" = "xyes" ; then
++ AC_DEFINE(TERMINFO)
++fi
+
+ if test "x$olibs" != "x$LIBS"; then
+- AC_MSG_CHECKING(what tgetent() returns for an unknown terminal)
+- AC_TRY_RUN([
++ AC_CACHE_CHECK([what tgetent() returns for an unknown terminal], [vim_cv_tgent],
++ [
++ AC_RUN_IFELSE([
+ #ifdef HAVE_TERMCAP_H
+ # include <termcap.h>
+ #endif
+ main()
+-{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }],
+- AC_MSG_RESULT(zero); AC_DEFINE(TGETENT_ZERO_ERR, 0),
+- AC_MSG_RESULT(non-zero),
+- AC_MSG_ERROR(failed to compile test program.))
++{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
++ ],[
++ vim_cv_tgent=zero
++ AC_MSG_RESULT(zero)
++ ],[
++ vim_cv_tgent=non-zero
++ AC_MSG_RESULT(non-zero)
++ ],[
++ AC_MSG_ERROR(failed to compile test program.)
++ ])
++ ])
++
++ if test "x$vim_cv_tgent" = "xzero" ; then
++ AC_DEFINE(TGETENT_ZERO_ERR, 0)
++ fi
+ fi
+
+ AC_MSG_CHECKING(whether termcap.h contains ospeed)
+@@ -2333,9 +2363,10 @@
+ dnl **** pty mode/group handling ****
+ dnl
+ dnl support provided by Luke Mewburn <lm@rmit.edu.au>, 931222
+-AC_MSG_CHECKING(default tty permissions/group)
+ rm -f conftest_grp
+-AC_TRY_RUN([
++ AC_CACHE_CHECK([default tty permissions/group], [vim_cv_tty_group],
++ [
++ AC_RUN_IFELSE([
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <stdio.h>
+@@ -2363,20 +2394,35 @@
+ fclose(fp);
+ exit(0);
+ }
+-],[
+- if test -f conftest_grp; then
+- ptygrp=`cat conftest_grp`
+- AC_MSG_RESULT([pty mode: 0620, group: $ptygrp])
+- AC_DEFINE(PTYMODE, 0620)
+- AC_DEFINE_UNQUOTED(PTYGROUP,$ptygrp)
+- else
++ ],[
++ if test -f conftest_grp; then
++ vim_cv_tty_group=`cat conftest_grp`
++ if test "x$vim_cv_tty_mode" = "x" ; then
++ vim_cv_tty_mode=0620
++ fi
++ AC_MSG_RESULT([pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group])
++ else
++ vim_cv_tty_group=world
+ AC_MSG_RESULT([ptys are world accessable])
+- fi
+-],
+- AC_MSG_RESULT([can't determine - assume ptys are world accessable]),
+- AC_MSG_ERROR(failed to compile test program))
++ fi
++ ],[
++ vim_cv_tty_group=world
++ AC_MSG_RESULT([can't determine - assume ptys are world accessable])
++ ],[
++ AC_MSG_ERROR(cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode')
++ ])
++ ])
+ rm -f conftest_grp
+
++if test "x$vim_cv_tty_group" != "xworld" ; then
++ AC_DEFINE_UNQUOTED(PTYGROUP,$vim_cv_tty_group)
++ if test "x$vim_cv_tty_mode" = "x" ; then
++ AC_MSG_ERROR([It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)])
++ else
++ AC_DEFINE(PTYMODE, 0620)
++ fi
++fi
++
+ dnl Checks for library functions. ===================================
+
+ AC_TYPE_SIGNAL
+@@ -2404,8 +2450,9 @@
+
+ dnl tricky stuff: try to find out if getcwd() is implemented with
+ dnl system("sh -c pwd")
+-AC_MSG_CHECKING(getcwd implementation)
+-AC_TRY_RUN([
++AC_CACHE_CHECK([getcwd implementation is broken], [vim_cv_getcwd_broken],
++ [
++ AC_RUN_IFELSE([
+ char *dagger[] = { "IFS=pwd", 0 };
+ main()
+ {
+@@ -2413,11 +2460,21 @@
+ extern char **environ;
+ environ = dagger;
+ return getcwd(buffer, 500) ? 0 : 1;
+-}],
+- AC_MSG_RESULT(it is usable),
+- AC_MSG_RESULT(it stinks)
+- AC_DEFINE(BAD_GETCWD),
+- AC_MSG_ERROR(failed to compile test program))
++}
++ ],[
++ vim_cv_getcwd_broken=no
++ AC_MSG_RESULT(no)
++ ],[
++ vim_cv_getcwd_broken=yes
++ AC_MSG_RESULT(yes)
++ ],[
++ AC_MSG_ERROR(cross-compiling: please set 'vim_cv_getcwd_broken')
++ ])
++ ])
++
++if test "x$vim_cv_getcwd_broken" = "xyes" ; then
++ AC_DEFINE(BAD_GETCWD)
++fi
+
+ dnl Check for functions in one big call, to reduce the size of configure
+ AC_CHECK_FUNCS(bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
+@@ -2441,14 +2498,27 @@
+ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_ST_BLKSIZE),
+ AC_MSG_RESULT(no))
+
+-AC_MSG_CHECKING(whether stat() ignores a trailing slash)
+-AC_TRY_RUN(
++AC_CACHE_CHECK([whether stat() ignores a trailing slash], [vim_cv_stat_ignores_slash],
++ [
++ AC_RUN_IFELSE(
+ [#include <sys/types.h>
+ #include <sys/stat.h>
+-main() {struct stat st; exit(stat("configure/", &st) != 0); }],
+- AC_MSG_RESULT(yes); AC_DEFINE(STAT_IGNORES_SLASH),
+- AC_MSG_RESULT(no), AC_MSG_ERROR(failed to compile test program))
++main() {struct stat st; exit(stat("configure/", &st) != 0); }
++ ],[
++ vim_cv_stat_ignores_slash=yes
++ AC_MSG_RESULT(yes)
++ ],[
++ vim_cv_stat_ignores_slash=no
++ AC_MSG_RESULT(no)
++ ],[
++ AC_MSG_ERROR(cross-compiling: please set 'vim_cv_stat_ignores_slash')
++ ])
++ ])
+
++if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
++ AC_DEFINE(STAT_IGNORES_SLASH)
++fi
++
+ dnl Link with iconv for charset translation, if not found without library.
+ dnl check for iconv() requires including iconv.h
+ dnl Add "-liconv" when possible; Solaris has iconv but use GNU iconv when it
+@@ -2641,7 +2711,10 @@
+ AC_MSG_RESULT($ac_cv_sizeof_int)
+ AC_DEFINE_UNQUOTED(SIZEOF_INT, $ac_cv_sizeof_int)
+
+-AC_MSG_CHECKING(whether memmove/bcopy/memcpy handle overlaps)
++
++dnl Check for memmove() before bcopy(), makes memmove() be used when both are
++dnl present, fixes problem with incompatibility between Solaris 2.4 and 2.5.
++
+ [bcopy_test_prog='
+ main() {
+ char buf[10];
+@@ -2656,18 +2729,60 @@
+ exit(0); /* libc version works properly. */
+ }']
+
+-dnl Check for memmove() before bcopy(), makes memmove() be used when both are
+-dnl present, fixes problem with incompatibility between Solaris 2.4 and 2.5.
++AC_CACHE_CHECK([whether memmove handles overlaps],[vim_cv_memmove_handles_overlap],
++ [
++ AC_RUN_IFELSE([#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog],
++ [
++ vim_cv_memmove_handles_overlap=yes
++ AC_MSG_RESULT(yes)
++ ],[
++ vim_cv_memmove_handles_overlap=no
++ AC_MSG_RESULT(no)
++ ],[
++ AC_MSG_ERROR(cross-compiling: please set 'vim_cv_memmove_handles_overlap')
++ ])
++ ])
++
++if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
++ AC_DEFINE(USEMEMMOVE)
++else
++ AC_CACHE_CHECK([whether bcopy handles overlaps],[vim_cv_bcopy_handles_overlap],
++ [
++ AC_RUN_IFELSE([#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog],
++ [
++ vim_cv_bcopy_handles_overlap=yes
++ AC_MSG_RESULT(yes)
++ ],[
++ vim_cv_bcopy_handles_overlap=no
++ AC_MSG_RESULT(no)
++ ],[
++ AC_MSG_ERROR(cross-compiling: please set 'vim_cv_bcopy_handles_overlap')
++ ])
++ ])
++
++ if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
++ AC_DEFINE(USEBCOPY)
++ else
++ AC_CACHE_CHECK([whether memcpy handles overlaps],[vim_cv_memcpy_handles_overlap],
++ [
++ AC_RUN_IFELSE([#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog],
++ [
++ vim_cv_memcpy_handles_overlap=yes
++ AC_MSG_RESULT(yes)
++ ],[
++ vim_cv_memcpy_handles_overlap=no
++ AC_MSG_RESULT(no)
++ ],[
++ AC_MSG_ERROR(cross-compiling: please set 'vim_cv_memcpy_handles_overlap')
++ ])
++ ])
++
++ if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
++ AC_DEFINE(USEMEMCPY)
++ fi
++ fi
++fi
+
+-AC_TRY_RUN([#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog],
+- AC_DEFINE(USEMEMMOVE) AC_MSG_RESULT(memmove does),
+- AC_TRY_RUN([#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog],
+- AC_DEFINE(USEBCOPY) AC_MSG_RESULT(bcopy does),
+- AC_TRY_RUN([#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog],
+- AC_DEFINE(USEMEMCPY) AC_MSG_RESULT(memcpy does), AC_MSG_RESULT(no),
+- AC_MSG_ERROR(failed to compile test program)),
+- AC_MSG_ERROR(failed to compile test program)),
+- AC_MSG_ERROR(failed to compile test program))
+
+ dnl Check for multibyte locale functions
+ dnl Find out if _Xsetlocale() is supported by libX11.
diff --git a/data/vim/make.sh b/data/vim/make.sh
new file mode 100644
index 000000000..a9aa263e1
--- /dev/null
+++ b/data/vim/make.sh
@@ -0,0 +1,9 @@
+tar -jxvf "${PKG_DATA}/vim-7.1.tar.bz2"
+cd vim71
+pkg:patch
+cd src
+autoconf
+cd ..
+STRIP=$(which arm-apple-darwin-strip) CFLAGS='-O0' ./configure --prefix=/usr --host=arm-apple-darwin vim_cv_toupper_broken=no --with-tlib=ncurses vim_cv_terminfo=yes vim_cv_tty_group=4 vim_cv_tty_mode=0620 vim_cv_getcwd_broken=no vim_cv_stat_ignores_slash=no ac_cv_sizeof_int=4 vim_cv_memmove_handles_overlap=yes
+make
+pkg:install
diff --git a/data/vim/vim-7.1.tar.bz2 b/data/vim/vim-7.1.tar.bz2
new file mode 100644
index 000000000..4ce870b91
--- /dev/null
+++ b/data/vim/vim-7.1.tar.bz2
Binary files differ
diff --git a/data/wget/_metadata/description b/data/wget/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/wget/_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/wget/_metadata/license b/data/wget/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/wget/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/wget/_metadata/maintainer b/data/wget/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/wget/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/wget/_metadata/openssl.dep b/data/wget/_metadata/openssl.dep
new file mode 120000
index 000000000..9b58fd56b
--- /dev/null
+++ b/data/wget/_metadata/openssl.dep
@@ -0,0 +1 @@
+../../openssl \ No newline at end of file
diff --git a/data/wget/_metadata/priority b/data/wget/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/wget/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/wget/_metadata/section b/data/wget/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/wget/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/wget/_metadata/version b/data/wget/_metadata/version
new file mode 100644
index 000000000..9ab8337f3
--- /dev/null
+++ b/data/wget/_metadata/version
@@ -0,0 +1 @@
+1.9.1
diff --git a/data/wget/make.sh b/data/wget/make.sh
new file mode 100644
index 000000000..53926b832
--- /dev/null
+++ b/data/wget/make.sh
@@ -0,0 +1,5 @@
+tar -zxvf "${PKG_DATA}/wget-1.9.1.tar.gz"
+cd wget-1.9.1
+pkg:configure
+make
+pkg:install
diff --git a/data/wget/wget-1.9.1.tar.gz b/data/wget/wget-1.9.1.tar.gz
new file mode 100644
index 000000000..2def2c7ff
--- /dev/null
+++ b/data/wget/wget-1.9.1.tar.gz
Binary files differ
diff --git a/data/whois/_metadata/description b/data/whois/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/whois/_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/whois/_metadata/license b/data/whois/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/whois/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/whois/_metadata/maintainer b/data/whois/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/whois/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/whois/_metadata/priority b/data/whois/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/whois/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/whois/_metadata/section b/data/whois/_metadata/section
new file mode 100644
index 000000000..992ae1298
--- /dev/null
+++ b/data/whois/_metadata/section
@@ -0,0 +1 @@
+network
diff --git a/data/whois/_metadata/version b/data/whois/_metadata/version
new file mode 100644
index 000000000..12b85aea7
--- /dev/null
+++ b/data/whois/_metadata/version
@@ -0,0 +1 @@
+4.7.24
diff --git a/data/whois/make.sh b/data/whois/make.sh
new file mode 100644
index 000000000..3d2d0936e
--- /dev/null
+++ b/data/whois/make.sh
@@ -0,0 +1,4 @@
+tar -zxvf "${PKG_DATA}/whois_4.7.24.tar.gz"
+cd whois-4.7.24
+make CC=arm-apple-darwin-gcc
+pkg:usrbin whois
diff --git a/data/whois/whois_4.7.24.tar.gz b/data/whois/whois_4.7.24.tar.gz
new file mode 100644
index 000000000..d3735ea09
--- /dev/null
+++ b/data/whois/whois_4.7.24.tar.gz
Binary files differ
diff --git a/data/zip/_metadata/description b/data/zip/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/zip/_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/zip/_metadata/license b/data/zip/_metadata/license
new file mode 100644
index 000000000..be2972aa9
--- /dev/null
+++ b/data/zip/_metadata/license
@@ -0,0 +1,55 @@
+This is version 2005-Feb-10 of the Info-ZIP license.
+The definitive version of this document should be available at
+ftp://ftp.info-zip.org/pub/infozip/license.html indefinitely.
+
+
+Copyright (c) 1990-2006 Info-ZIP. All rights reserved.
+
+For the purposes of this copyright and license, "Info-ZIP" is defined as
+the following set of individuals:
+
+ Mark Adler, John Bush, Karl Davis, Harald Denker, Jean-Michel Dubois,
+ Jean-loup Gailly, Hunter Goatley, Ed Gordon, Ian Gorman, Chris Herborth,
+ Dirk Haase, Greg Hartwig, Robert Heath, Jonathan Hudson, Paul Kienitz,
+ David Kirschbaum, Johnny Lee, Onno van der Linden, Igor Mandrichenko,
+ Steve P. Miller, Sergio Monesi, Keith Owens, George Petrov, Greg Roelofs,
+ Kai Uwe Rommel, Steve Salisbury, Dave Smith, Steven M. Schweda,
+ Christian Spieler, Cosmin Truta, Antoine Verheijen, Paul von Behren,
+ Rich Wales, Mike White
+
+This software is provided "as is," without warranty of any kind, express
+or implied. In no event shall Info-ZIP or its contributors be held liable
+for any direct, indirect, incidental, special or consequential damages
+arising out of the use of or inability to use this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ definition, disclaimer, and this list of conditions.
+
+ 2. Redistributions in binary form (compiled executables) must reproduce
+ the above copyright notice, definition, disclaimer, and this list of
+ conditions in documentation and/or other materials provided with the
+ distribution. The sole exception to this condition is redistribution
+ of a standard UnZipSFX binary (including SFXWiz) as part of a
+ self-extracting archive; that is permitted without inclusion of this
+ license, as long as the normal SFX banner has not been removed from
+ the binary or disabled.
+
+ 3. Altered versions--including, but not limited to, ports to new operating
+ systems, existing ports with new graphical interfaces, and dynamic,
+ shared, or static library versions--must be plainly marked as such
+ and must not be misrepresented as being the original source. Such
+ altered versions also must not be misrepresented as being Info-ZIP
+ releases--including, but not limited to, labeling of the altered
+ versions with the names "Info-ZIP" (or any variation thereof, including,
+ but not limited to, different capitalizations), "Pocket UnZip," "WiZ"
+ or "MacZip" without the explicit permission of Info-ZIP. Such altered
+ versions are further prohibited from misrepresentative use of the
+ Zip-Bugs or Info-ZIP e-mail addresses or of the Info-ZIP URL(s).
+
+ 4. Info-ZIP retains the right to use the names "Info-ZIP," "Zip," "UnZip,"
+ "UnZipSFX," "WiZ," "Pocket UnZip," "Pocket Zip," and "MacZip" for its
+ own source and binary releases.
diff --git a/data/zip/_metadata/maintainer b/data/zip/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/zip/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/zip/_metadata/priority b/data/zip/_metadata/priority
new file mode 100644
index 000000000..ea5b3d7ee
--- /dev/null
+++ b/data/zip/_metadata/priority
@@ -0,0 +1 @@
+important
diff --git a/data/zip/_metadata/section b/data/zip/_metadata/section
new file mode 100644
index 000000000..f1d43c641
--- /dev/null
+++ b/data/zip/_metadata/section
@@ -0,0 +1 @@
+archive
diff --git a/data/zip/_metadata/version b/data/zip/_metadata/version
new file mode 100644
index 000000000..0f34dc7f3
--- /dev/null
+++ b/data/zip/_metadata/version
@@ -0,0 +1 @@
+2.32
diff --git a/data/zip/make.sh b/data/zip/make.sh
new file mode 100644
index 000000000..47e5baefa
--- /dev/null
+++ b/data/zip/make.sh
@@ -0,0 +1,5 @@
+unzip "${PKG_DATA}/zip232.zip" -d zip-2.32
+cd zip-2.32
+cp unix/Makefile .
+make zips CC=arm-apple-darwin-gcc CPP='arm-apple-darwin-gcc -E'
+pkg:usrbin zip zipcloak zipnote zipsplit
diff --git a/data/zip/zip232.zip b/data/zip/zip232.zip
new file mode 100644
index 000000000..c306579b5
--- /dev/null
+++ b/data/zip/zip232.zip
Binary files differ
diff --git a/helper.sh b/helper.sh
new file mode 100755
index 000000000..bcde40c3f
--- /dev/null
+++ b/helper.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+export PKG_ROOT=$(arm-apple-darwin-gcc -dumpspecs | grep '%{isysroot' | sed -e 's/.*%{isysroot\*:\([^}]*\)}.*/\1/; s/;:/\n/g' | sed -e 's/^-syslibroot //' | tail -n 1)
+
+export PKG_WORK=${PKG_BASE}/work/${PKG_NAME}
+export PKG_DEST=${PKG_BASE}/dest/${PKG_NAME}
+export PKG_STAT=${PKG_BASE}/stat/${PKG_NAME}
+export PKG_DATA=$(echo "${PKG_BASE}"/data/"${PKG_NAME}"?(_))
+export PKG_VRSN=$(cat "${PKG_DATA}/_metadata/version")-1
+export PKG_PACK=${PKG_BASE}/pack/${PKG_NAME}_${PKG_VRSN}_darwin-arm.deb
+
+if [[ ! -e ${PKG_DATA} ]]; then
+ echo "unknown package: ${PKG_NAME}" 1>&2
+ exit 1
+fi
+
+PKG_DEPS=("${PKG_DATA}"/_metadata/*.dep)
+
+function pkg_ {
+ if [[ ${1:0:1} = / ]]; then
+ echo "${PKG_DEST}$1"
+ else
+ echo $1
+ fi
+}
+
+function pkg: {
+ declare -a argv
+ declare argc=$#
+
+ for ((i=0; $i != $argc; ++i)); do
+ argv[$i]=$(pkg_ $1)
+ shift
+ done
+
+ "${argv[@]}"
+}
diff --git a/licenses/apache-2.0 b/licenses/apache-2.0
new file mode 100644
index 000000000..6f0142f29
--- /dev/null
+++ b/licenses/apache-2.0
@@ -0,0 +1,297 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+
+APACHE PORTABLE RUNTIME SUBCOMPONENTS:
+
+The Apache Portable Runtime includes a number of subcomponents with
+separate copyright notices and license terms. Your use of the source
+code for the these subcomponents is subject to the terms and
+conditions of the following licenses.
+
+From strings/apr_fnmatch.c, include/apr_fnmatch.h, misc/unix/getopt.c,
+file_io/unix/mktemp.c, strings/apr_strings.c:
+
+/*
+ * Copyright (c) 1987, 1993, 1994
+ * The Regents of the University of California. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+
+From network_io/unix/inet_ntop.c, network_io/unix/inet_pton.c:
+
+/* Copyright (c) 1996 by Internet Software Consortium.
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
+ * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
+ * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
+ * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
+ * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+ * SOFTWARE.
+
+From dso/aix/dso.c:
+
+ * Based on libdl (dlfcn.c/dlfcn.h) which is
+ * Copyright (c) 1992,1993,1995,1996,1997,1988
+ * Jens-Uwe Mager, Helios Software GmbH, Hannover, Germany.
+ *
+ * Not derived from licensed software.
+ *
+ * Permission is granted to freely use, copy, modify, and redistribute
+ * this software, provided that the author is not construed to be liable
+ * for any results of using the software, alterations are clearly marked
+ * as such, and this notice is not modified.
+
+From strings/apr_strnatcmp.c, include/apr_strings.h:
+
+ strnatcmp.c -- Perform 'natural order' comparisons of strings in C.
+ Copyright (C) 2000 by Martin Pool <mbp@humbug.org.au>
+
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any damages
+ arising from the use of this software.
+
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+
diff --git a/licenses/apsl-2.0 b/licenses/apsl-2.0
new file mode 100644
index 000000000..edef0a2a9
--- /dev/null
+++ b/licenses/apsl-2.0
@@ -0,0 +1,101 @@
+Version 2.0 - August 6, 2003
+
+Please read this License carefully before downloading this software. By downloading or using this software, you are agreeing to be bound by the terms of this License. If you do not or cannot agree to the terms of this License, please do not download or use the software.
+
+1. General; Definitions. This License applies to any program or other work which Apple Computer, Inc. ("Apple") makes publicly available and which contains a notice placed by Apple identifying such program or work as "Original Code" and stating that it is subject to the terms of this Apple Public Source License version 2.0 ("License"). As used in this License:
+
+1.1 "Applicable Patent Rights" mean: (a) in the case where Apple is the grantor of rights, (i) claims of patents that are now or hereafter acquired, owned by or assigned to Apple and (ii) that cover subject matter contained in the Original Code, but only to the extent necessary to use, reproduce and/or distribute the Original Code without infringement; and (b) in the case where You are the grantor of rights, (i) claims of patents that are now or hereafter acquired, owned by or assigned to You and (ii) that cover subject matter in Your Modifications, taken alone or in combination with Original Code.
+
+1.2 "Contributor" means any person or entity that creates or contributes to the creation of Modifications.
+
+1.3 "Covered Code" means the Original Code, Modifications, the combination of Original Code and any Modifications, and/or any respective portions thereof.
+
+1.4 "Externally Deploy" means: (a) to sublicense, distribute or otherwise make Covered Code available, directly or indirectly, to anyone other than You; and/or (b) to use Covered Code, alone or as part of a Larger Work, in any way to provide a service, including but not limited to delivery of content, through electronic communication with a client other than You.
+
+1.5 "Larger Work" means a work which combines Covered Code or portions thereof with code not governed by the terms of this License.
+
+1.6 "Modifications" mean any addition to, deletion from, and/or change to, the substance and/or structure of the Original Code, any previous Modifications, the combination of Original Code and any previous Modifications, and/or any respective portions thereof. When code is released as a series of files, a Modification is: (a) any addition to or deletion from the contents of a file containing Covered Code; and/or (b) any new file or other representation of computer program statements that contains any part of Covered Code.
+
+1.7 "Original Code" means (a) the Source Code of a program or other work as originally made available by Apple under this License, including the Source Code of any updates or upgrades to such programs or works made available by Apple under this License, and that has been expressly identified by Apple as such in the header file(s) of such work; and (b) the object code compiled from such Source Code and originally made available by Apple under this License
+
+1.8 "Source Code" means the human readable form of a program or other work that is suitable for making modifications to it, including all modules it contains, plus any associated interface definition files, scripts used to control compilation and installation of an executable (object code).
+
+1.9 "You" or "Your" means an individual or a legal entity exercising rights under this License. For legal entities, "You" or "Your" includes any entity which controls, is controlled by, or is under common control with, You, where "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of fifty percent (50%) or more of the outstanding shares or beneficial ownership of such entity.
+
+2. Permitted Uses; Conditions & Restrictions. Subject to the terms and conditions of this License, Apple hereby grants You, effective on the date You accept this License and download the Original Code, a world-wide, royalty-free, non-exclusive license, to the extent of Apple's Applicable Patent Rights and copyrights covering the Original Code, to do the following:
+
+2.1 Unmodified Code. You may use, reproduce, display, perform, internally distribute within Your organization, and Externally Deploy verbatim, unmodified copies of the Original Code, for commercial or non-commercial purposes, provided that in each instance:
+
+ (a) You must retain and reproduce in all copies of Original Code the copyright and other proprietary notices and disclaimers of Apple as they appear in the Original Code, and keep intact all notices in the Original Code that refer to this License; and
+
+ (b) You must include a copy of this License with every copy of Source Code of Covered Code and documentation You distribute or Externally Deploy, and You may not offer or impose any terms on such Source Code that alter or restrict this License or the recipients' rights hereunder, except as permitted under Section 6.
+
+2.2 Modified Code. You may modify Covered Code and use, reproduce, display, perform, internally distribute within Your organization, and Externally Deploy Your Modifications and Covered Code, for commercial or non-commercial purposes, provided that in each instance You also meet all of these conditions:
+
+ (a) You must satisfy all the conditions of Section 2.1 with respect to the Source Code of the Covered Code;
+
+ (b) You must duplicate, to the extent it does not already exist, the notice in Exhibit A in each file of the Source Code of all Your Modifications, and cause the modified files to carry prominent notices stating that You changed the files and the date of any change; and
+
+ (c) If You Externally Deploy Your Modifications, You must make Source Code of all Your Externally Deployed Modifications either available to those to whom You have Externally Deployed Your Modifications, or publicly available. Source Code of Your Externally Deployed Modifications must be released under the terms set forth in this License, including the license grants set forth in Section 3 below, for as long as you Externally Deploy the Covered Code or twelve (12) months from the date of initial External Deployment, whichever is longer. You should preferably distribute the Source Code of Your Externally Deployed Modifications electronically (e.g. download from a web site).
+
+2.3 Distribution of Executable Versions. In addition, if You Externally Deploy Covered Code (Original Code and/or Modifications) in object code, executable form only, You must include a prominent notice, in the code itself as well as in related documentation, stating that Source Code of the Covered Code is available under the terms of this License with information on how and where to obtain such Source Code.
+
+2.4 Third Party Rights. You expressly acknowledge and agree that although Apple and each Contributor grants the licenses to their respective portions of the Covered Code set forth herein, no assurances are provided by Apple or any Contributor that the Covered Code does not infringe the patent or other intellectual property rights of any other entity. Apple and each Contributor disclaim any liability to You for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, You hereby assume sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow You to distribute the Covered Code, it is Your responsibility to acquire that license before distributing the Covered Code.
+
+3. Your Grants. In consideration of, and as a condition to, the licenses granted to You under this License, You hereby grant to any person or entity receiving or distributing Covered Code under this License a non-exclusive, royalty-free, perpetual, irrevocable license, under Your Applicable Patent Rights and other intellectual property rights (other than patent) owned or controlled by You, to use, reproduce, display, perform, modify, sublicense, distribute and Externally Deploy Your Modifications of the same scope and extent as Apple's licenses under Sections 2.1 and 2.2 above.
+
+4. Larger Works. You may create a Larger Work by combining Covered Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In each such instance, You must make sure the requirements of this License are fulfilled for the Covered Code or any portion thereof.
+
+5. Limitations on Patent License. Except as expressly stated in Section 2, no other patent rights, express or implied, are granted by Apple herein. Modifications and/or Larger Works may require additional patent licenses from Apple which Apple may grant in its sole discretion.
+
+6. Additional Terms. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations and/or other rights consistent with the scope of the license granted herein ("Additional Terms") to one or more recipients of Covered Code. However, You may do so only on Your own behalf and as Your sole responsibility, and not on behalf of Apple or any Contributor. You must obtain the recipient's agreement that any such Additional Terms are offered by You alone, and You hereby agree to indemnify, defend and hold Apple and every Contributor harmless for any liability incurred by or claims asserted against Apple or such Contributor by reason of any such Additional Terms.
+
+7. Versions of the License. Apple may publish revised and/or new versions of this License from time to time. Each version will be given a distinguishing version number. Once Original Code has been published under a particular version of this License, You may continue to use it under the terms of that version. You may also choose to use such Original Code under the terms of any subsequent version of this License published by Apple. No one other than Apple has the right to modify the terms applicable to Covered Code created under this License.
+
+8. NO WARRANTY OR SUPPORT. The Covered Code may contain in whole or in part pre-release, untested, or not fully tested works. The Covered Code may contain errors that could cause failures or loss of data, and may be incomplete or contain inaccuracies. You expressly acknowledge and agree that use of the Covered Code, or any portion thereof, is at Your sole and entire risk. THE COVERED CODE IS PROVIDED "AS IS" AND WITHOUT WARRANTY, UPGRADES OR SUPPORT OF ANY KIND AND APPLE AND APPLE'S LICENSOR(S) (COLLECTIVELY REFERRED TO AS "APPLE" FOR THE PURPOSES OF SECTIONS 8 AND 9) AND ALL CONTRIBUTORS EXPRESSLY DISCLAIM ALL WARRANTIES AND/OR CONDITIONS, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES AND/OR CONDITIONS OF MERCHANTABILITY, OF SATISFACTORY QUALITY, OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY, OF QUIET ENJOYMENT, AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. APPLE AND EACH CONTRIBUTOR DOES NOT WARRANT AGAINST INTERFERENCE WITH YOUR ENJOYMENT OF THE COVERED CODE, THAT THE FUNCTIONS CONTAINED IN THE COVERED CODE WILL MEET YOUR REQUIREMENTS, THAT THE OPERATION OF THE COVERED CODE WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT DEFECTS IN THE COVERED CODE WILL BE CORRECTED. NO ORAL OR WRITTEN INFORMATION OR ADVICE GIVEN BY APPLE, AN APPLE AUTHORIZED REPRESENTATIVE OR ANY CONTRIBUTOR SHALL CREATE A WARRANTY. You acknowledge that the Covered Code is not intended for use in the operation of nuclear facilities, aircraft navigation, communication systems, or air traffic control machines in which case the failure of the Covered Code could lead to death, personal injury, or severe physical or environmental damage.
+
+9. LIMITATION OF LIABILITY. TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT SHALL APPLE OR ANY CONTRIBUTOR BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO THIS LICENSE OR YOUR USE OR INABILITY TO USE THE COVERED CODE, OR ANY PORTION THEREOF, WHETHER UNDER A THEORY OF CONTRACT, WARRANTY, TORT (INCLUDING NEGLIGENCE), PRODUCTS LIABILITY OR OTHERWISE, EVEN IF APPLE OR SUCH CONTRIBUTOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES AND NOTWITHSTANDING THE FAILURE OF ESSENTIAL PURPOSE OF ANY REMEDY. SOME JURISDICTIONS DO NOT ALLOW THE LIMITATION OF LIABILITY OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS LIMITATION MAY NOT APPLY TO YOU. In no event shall Apple's total liability to You for all damages (other than as may be required by applicable law) under this License exceed the amount of fifty dollars ($50.00).
+
+10. Trademarks. This License does not grant any rights to use the trademarks or trade names "Apple", "Apple Computer", "Mac", "Mac OS", "QuickTime", "QuickTime Streaming Server" or any other trademarks, service marks, logos or trade names belonging to Apple (collectively "Apple Marks") or to any trademark, service mark, logo or trade name belonging to any Contributor. You agree not to use any Apple Marks in or as part of the name of products derived from the Original Code or to endorse or promote products derived from the Original Code other than as expressly permitted by and in strict compliance at all times with Apple's third party trademark usage guidelines which are posted at http://www.apple.com/legal/guidelinesfor3rdparties.html.
+
+11. Ownership. Subject to the licenses granted under this License, each Contributor retains all rights, title and interest in and to any Modifications made by such Contributor. Apple retains all rights, title and interest in and to the Original Code and any Modifications made by or on behalf of Apple ("Apple Modifications"), and such Apple Modifications will not be automatically subject to this License. Apple may, at its sole discretion, choose to license such Apple Modifications under this License, or on different terms from those contained in this License or may choose not to license them at all.
+
+12. Termination.
+
+12.1 Termination. This License and the rights granted hereunder will terminate:
+
+ (a) automatically without notice from Apple if You fail to comply with any term(s) of this License and fail to cure such breach within 30 days of becoming aware of such breach;
+
+ (b) immediately in the event of the circumstances described in Section 13.5(b); or
+
+ (c) automatically without notice from Apple if You, at any time during the term of this License, commence an action for patent infringement against Apple; provided that Apple did not first commence an action for patent infringement against You in that instance.
+
+12.2 Effect of Termination. Upon termination, You agree to immediately stop any further use, reproduction, modification, sublicensing and distribution of the Covered Code. All sublicenses to the Covered Code which have been properly granted prior to termination shall survive any termination of this License. Provisions which, by their nature, should remain in effect beyond the termination of this License shall survive, including but not limited to Sections 3, 5, 8, 9, 10, 11, 12.2 and 13. No party will be liable to any other for compensation, indemnity or damages of any sort solely as a result of terminating this License in accordance with its terms, and termination of this License will be without prejudice to any other right or remedy of any party.
+
+13. Miscellaneous.
+
+13.1 Government End Users. The Covered Code is a "commercial item" as defined in FAR 2.101. Government software and technical data rights in the Covered Code include only those rights customarily provided to the public as defined in this License. This customary commercial license in technical data and software is provided in accordance with FAR 12.211 (Technical Data) and 12.212 (Computer Software) and, for Department of Defense purchases, DFAR 252.227-7015 (Technical Data -- Commercial Items) and 227.7202-3 (Rights in Commercial Computer Software or Computer Software Documentation). Accordingly, all U.S. Government End Users acquire Covered Code with only those rights set forth herein.
+
+13.2 Relationship of Parties. This License will not be construed as creating an agency, partnership, joint venture or any other form of legal association between or among You, Apple or any Contributor, and You will not represent to the contrary, whether expressly, by implication, appearance or otherwise.
+
+13.3 Independent Development. Nothing in this License will impair Apple's right to acquire, license, develop, have others develop for it, market and/or distribute technology or products that perform the same or similar functions as, or otherwise compete with, Modifications, Larger Works, technology or products that You may develop, produce, market or distribute.
+
+13.4 Waiver; Construction. Failure by Apple or any Contributor to enforce any provision of this License will not be deemed a waiver of future enforcement of that or any other provision. Any law or regulation which provides that the language of a contract shall be construed against the drafter will not apply to this License.
+
+13.5 Severability. (a) If for any reason a court of competent jurisdiction finds any provision of this License, or portion thereof, to be unenforceable, that provision of the License will be enforced to the maximum extent permissible so as to effect the economic benefits and intent of the parties, and the remainder of this License will continue in full force and effect. (b) Notwithstanding the foregoing, if applicable law prohibits or restricts You from fully and/or specifically complying with Sections 2 and/or 3 or prevents the enforceability of either of those Sections, this License will immediately terminate and You must immediately discontinue any use of the Covered Code and destroy all copies of it that are in your possession or control.
+
+13.6 Dispute Resolution. Any litigation or other dispute resolution between You and Apple relating to this License shall take place in the Northern District of California, and You and Apple hereby consent to the personal jurisdiction of, and venue in, the state and federal courts within that District with respect to this License. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded.
+
+13.7 Entire Agreement; Governing Law. This License constitutes the entire agreement between the parties with respect to the subject matter hereof. This License shall be governed by the laws of the United States and the State of California, except that body of California law concerning conflicts of law.
+
+Where You are located in the province of Quebec, Canada, the following clause applies: The parties hereby confirm that they have requested that this License and all related documents be drafted in English. Les parties ont exigéue le prént contrat et tous les documents connexes soient régéen anglais.
+
+EXHIBIT A.
+
+"Portions Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
+
+This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file.
+
+The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License."
+
+Please read the terms of this license carefully. By clicking on the "Yes, I Accept" button below you are accepting and agreeing to the terms of this license with Apple Computer, Inc. If you are agreeing to this license on behalf of a company, you represent that you are authorized to bind the company to such a license. If you do not meet this criterion or you do not agree to any of the terms of this license, please click on the "No, I Reject" button below or use your browser's Back button to exit this page.
diff --git a/licenses/bsd b/licenses/bsd
new file mode 100644
index 000000000..1f4a25da0
--- /dev/null
+++ b/licenses/bsd
@@ -0,0 +1,17 @@
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+ 3. The names of the authors may not be used to endorse or promote
+ products derived from this software without specific prior
+ written permission.
+
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/licenses/gpl-2 b/licenses/gpl-2
new file mode 100644
index 000000000..d511905c1
--- /dev/null
+++ b/licenses/gpl-2
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/licenses/gpl-3 b/licenses/gpl-3
new file mode 100644
index 000000000..443254047
--- /dev/null
+++ b/licenses/gpl-3
@@ -0,0 +1,676 @@
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
+
diff --git a/licenses/lgpl-2 b/licenses/lgpl-2
new file mode 100644
index 000000000..161a3d1d4
--- /dev/null
+++ b/licenses/lgpl-2
@@ -0,0 +1,482 @@
+ GNU LIBRARY GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1991 Free Software Foundation, Inc.
+ 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the library GPL. It is
+ numbered 2 because it goes with version 2 of the ordinary GPL.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Library General Public License, applies to some
+specially designated Free Software Foundation software, and to any
+other libraries whose authors decide to use it. You can use it for
+your libraries, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if
+you distribute copies of the library, or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link a program with the library, you must provide
+complete object files to the recipients so that they can relink them
+with the library, after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ Our method of protecting your rights has two steps: (1) copyright
+the library, and (2) offer you this license which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ Also, for each distributor's protection, we want to make certain
+that everyone understands that there is no warranty for this free
+library. If the library is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original
+version, so that any problems introduced by others will not reflect on
+the original authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that companies distributing free
+software will individually obtain patent licenses, thus in effect
+transforming the program into proprietary software. To prevent this,
+we have made it clear that any patent must be licensed for everyone's
+free use or not licensed at all.
+
+ Most GNU software, including some libraries, is covered by the ordinary
+GNU General Public License, which was designed for utility programs. This
+license, the GNU Library General Public License, applies to certain
+designated libraries. This license is quite different from the ordinary
+one; be sure to read it in full, and don't assume that anything in it is
+the same as in the ordinary license.
+
+ The reason we have a separate public license for some libraries is that
+they blur the distinction we usually make between modifying or adding to a
+program and simply using it. Linking a program with a library, without
+changing the library, is in some sense simply using the library, and is
+analogous to running a utility program or application program. However, in
+a textual and legal sense, the linked executable is a combined work, a
+derivative of the original library, and the ordinary General Public License
+treats it as such.
+
+ Because of this blurred distinction, using the ordinary General
+Public License for libraries did not effectively promote software
+sharing, because most developers did not use the libraries. We
+concluded that weaker conditions might promote sharing better.
+
+ However, unrestricted linking of non-free programs would deprive the
+users of those programs of all benefit from the free status of the
+libraries themselves. This Library General Public License is intended to
+permit developers of non-free programs to use free libraries, while
+preserving your freedom as a user of such programs to change the free
+libraries that are incorporated in them. (We have not seen how to achieve
+this as regards changes in header files, but we have achieved it as regards
+changes in the actual functions of the Library.) The hope is that this
+will lead to faster development of free libraries.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, while the latter only
+works together with the library.
+
+ Note that it is possible for a library to be covered by the ordinary
+General Public License rather than by this special one.
+
+ GNU LIBRARY GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library which
+contains a notice placed by the copyright holder or other authorized
+party saying it may be distributed under the terms of this Library
+General Public License (also called "this License"). Each licensee is
+addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also compile or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ c) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ d) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the source code distributed need not include anything that is normally
+distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Library General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ Appendix: How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the library's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with this library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ MA 02111-1307, USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ <signature of Ty Coon>, 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
diff --git a/licenses/modified-bsd b/licenses/modified-bsd
new file mode 100644
index 000000000..1f4a25da0
--- /dev/null
+++ b/licenses/modified-bsd
@@ -0,0 +1,17 @@
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+ 3. The names of the authors may not be used to endorse or promote
+ products derived from this software without specific prior
+ written permission.
+
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/make.sh b/make.sh
new file mode 100755
index 000000000..70baeed72
--- /dev/null
+++ b/make.sh
@@ -0,0 +1,146 @@
+#!/bin/bash
+set -e
+shopt -s extglob nullglob
+
+export PKG_MAKE=$0
+export PKG_NAME=${1%_}
+
+export PKG_BASE=$(realpath "$(dirname "$0")")
+. "${PKG_BASE}/helper.sh"
+
+for dep in "${PKG_DEPS[@]}"; do
+ "${PKG_MAKE}" "$(basename "${dep}" .dep)"
+done
+
+export PKG_HASH=$({
+ find -L "${PKG_DATA}" \( -name '.svn' -o -name '_*' \) -prune -o -type f -print -exec cat {} \;
+ if [[ ${#PKG_DEPS[@]} -ne 0 ]]; then
+ find -H "${PKG_DEPS[@]}" -type l -printf '%p\n%l\n' -o -type f -print -exec cat {} \;
+ fi
+} | md5sum | cut -d ' ' -f 1)
+
+echo "hashed ${PKG_NAME} to: ${PKG_HASH}"
+
+if [[ -e "${PKG_STAT}/md5" && ${PKG_HASH} == $(cat "${PKG_STAT}/md5") ]]; then
+ echo "skipping re-build of ${PKG_NAME}"
+ exit
+fi
+
+rm -rf "${PKG_STAT}"
+mkdir "${PKG_STAT}"
+
+rm -rf "${PKG_DEST}"
+mkdir "${PKG_DEST}"
+
+rm -rf "${PKG_WORK}"
+mkdir "${PKG_WORK}"
+
+function PKG_WORK_() {
+ echo "${PKG_BASE}/work/$1"
+}
+
+function pkg:patch() {
+ for diff in "${PKG_DATA}"/*.diff; do
+ patch -p1 <"${diff}"
+ done
+}
+
+function pkg:bin() {
+ if [[ $# -eq 0 ]]; then
+ pushd "${PKG_DEST}/usr/bin"
+ set $(ls)
+ popd
+ fi
+
+ mkdir -p "${PKG_DEST}/bin"
+ for bin in "$@"; do
+ mv -v "${PKG_DEST}/usr/bin/${bin}" "${PKG_DEST}/bin/${bin}"
+ done
+
+ rmdir --ignore-fail-on-non-empty -p "${PKG_DEST}/usr/bin"
+}
+
+export PKG_CONF=./configure
+
+function pkg:configure() {
+ "${PKG_CONF}" --disable-nls --prefix=/usr --host=arm-apple-darwin "$@"
+}
+
+function pkg:install() {
+ make install DESTDIR="${PKG_DEST}"
+}
+
+function pkg_ {
+ if [[ ${1:0:1} = / ]]; then
+ echo "${PKG_DEST}$1"
+ else
+ echo $1
+ fi
+}
+
+function pkg: {
+ declare -a argv
+ declare argc=$#
+
+ for ((i=0; $i != $argc; ++i)); do
+ argv[$i]=$(pkg_ $1)
+ shift
+ done
+
+ "${argv[@]}"
+}
+
+function pkg:extract() {
+ for tgz in "${PKG_DATA}"/{*.tar.gz,*.tgz}; do
+ tar -zxvf "${tgz}"
+ done
+}
+
+function pkg:owner() {
+ owner=$1
+ shift
+
+ for file in "$@"; do
+ chown "${owner}" "${PKG_DEST}${file}"
+ done
+}
+
+function pkg:usrbin() {
+ pkg: mkdir -p /usr/bin
+ pkg: cp -a "$@" /usr/bin
+}
+
+function pkg:mkdir() {
+ for dir in "$@"; do
+ mkdir -p "${PKG_DEST}${dir}"
+ done
+}
+
+cd "${PKG_WORK}"
+. "${PKG_DATA}/make.sh"
+
+function rmdir_() {
+ if [[ -d "$1" ]]; then
+ rmdir --ignore-fail-on-non-empty "$1"
+ fi
+}
+
+rm -rf "${PKG_DEST}/usr/share/info"
+rm -rf "${PKG_DEST}/usr/share/locale"
+rm -rf "${PKG_DEST}/usr/share/man"
+rm -rf "${PKG_DEST}/usr/share/doc"
+rm -rf "${PKG_DEST}/usr/man"
+rm -rf "${PKG_DEST}/usr/local/share/man"
+rm -rf "${PKG_DEST}/usr/local/OpenSourceVersions"
+rm -rf "${PKG_DEST}/usr/local/OpenSourceLicenses"
+rm -f "${PKG_DEST}/usr/lib/charset.alias"
+rm -rf "${PKG_DEST}/usr/info"
+rm -rf "${PKG_DEST}/usr/docs"
+
+rmdir_ "${PKG_DEST}/usr/share"
+rmdir_ "${PKG_DEST}/usr/local/share"
+rmdir_ "${PKG_DEST}/usr/local"
+rmdir_ "${PKG_DEST}/usr/lib"
+rmdir_ "${PKG_DEST}/usr"
+
+echo "${PKG_HASH}" >"${PKG_STAT}/md5"
diff --git a/package.sh b/package.sh
new file mode 100755
index 000000000..6781b1538
--- /dev/null
+++ b/package.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+set -e
+shopt -s extglob nullglob
+
+export PKG_MAKE=$0
+export PKG_NAME=${1%_}
+
+export PKG_BASE=$(realpath "$(dirname "$0")")
+. "${PKG_BASE}/helper.sh"
+
+./make.sh "${PKG_NAME}"
+
+pkg: mkdir -p /DEBIAN
+./control.sh "${PKG_NAME}" control >"$(pkg_ /DEBIAN/control)"
+dpkg-deb -b "${PKG_DEST}" "${PKG_PACK}"
+pkg: rm -rf /DEBIAN
diff --git a/people/saurik b/people/saurik
new file mode 100644
index 000000000..ecfebcd00
--- /dev/null
+++ b/people/saurik
@@ -0,0 +1 @@
+Jay Freeman (saurik) <saurik@saurik.com>
diff --git a/saurik.list b/saurik.list
new file mode 100644
index 000000000..fd737899f
--- /dev/null
+++ b/saurik.list
@@ -0,0 +1,2 @@
+deb http://apt.saurik.com/ tangelo main
+deb-src http://apt.saurik.com/ tangelo main