From 7817782b2837cf98f7566e13f80b9c071ff20139 Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Mon, 14 Apr 2008 23:22:48 +0000 Subject: Fixed some dependencies, removed mDNS fix for 2.0, and factored for multi-arch support. git-svn-id: http://svn.telesphoreo.org/trunk@218 514c082c-b64e-11dc-b46d-3d985efe055d --- arch/darwin-arm/target | 1 + arch/iphoneos-arm/target | 1 + architect.sh | 1 + bootstrap.sh | 28 ++++---- build.sh | 6 +- clean.sh | 132 ++++++++++++++++++++++++++++++++++++ construct.sh | 59 ++++++++++------ control.sh | 4 +- data/_/make.sh | 3 +- data/adv-cmds/make.sh | 3 +- data/apr-util/_metadata/sqlite3.dep | 1 + data/apr-util/make.sh | 3 +- data/apr/make.sh | 4 +- data/apt/cfnetwork.diff | 98 +++++++++++++++----------- data/apt/darwin.diff | 11 --- data/apt/make.sh | 4 +- data/apt/mdns.diff | 64 ++++++++++++----- data/apt/ostable.diff | 12 ++++ data/autossh/make.sh | 3 +- data/bash/make.sh | 4 +- data/bash/mdns.diff | 4 +- data/basic-cmds/make.sh | 3 +- data/bc/make.sh | 3 +- data/berkeleydb/make.sh | 3 +- data/bind/gen.diff | 12 ---- data/bind/make.sh | 3 +- data/bison/make.sh | 3 +- data/bitchx/make.sh | 4 +- data/bitchx/mdns.diff | 4 +- data/boost_/make.sh | 4 +- data/bootstrap-cmds/make.sh | 4 +- data/bzip2/make.sh | 3 +- data/classpath/make.sh | 3 +- data/coreutils/make.sh | 3 +- data/cpio/make.sh | 5 +- data/csu/make.sh | 3 +- data/curl/make.sh | 4 +- data/curl/mdns.diff | 4 +- data/cvs/make.sh | 3 +- data/cvs/mdns.diff | 4 +- data/cydia/_metadata/version | 2 +- data/cydia/cydia-1.0.2383.tgz | Bin 61685 -> 0 bytes data/cydia/cydia-1.0.2385.tgz | Bin 0 -> 61959 bytes data/cydia/make.sh | 4 +- data/darwintools/make.sh | 3 +- data/developer-cmds/make.sh | 3 +- data/dict/make.sh | 4 +- data/diffutils/make.sh | 3 +- data/diskdev-cmds/make.sh | 3 +- data/dmg2img/make.sh | 4 +- data/dpkg/make.sh | 4 +- data/dpkg/telesphoreo.diff | 11 +++ data/ed/make.sh | 3 +- data/expat/make.sh | 3 +- data/faac/make.sh | 3 +- data/faad/make.sh | 3 +- data/fastjar/make.sh | 3 +- data/file-cmds/make.sh | 3 +- data/file/make.sh | 13 ++-- data/findutils/make.sh | 3 +- data/flex/make.sh | 3 +- data/flite/make.sh | 4 +- data/gawk/make.sh | 4 +- data/gcrypt/make.sh | 4 +- data/gettext/make.sh | 4 +- data/glib/make.sh | 4 +- data/gnupg/make.sh | 4 +- data/gnupg2/make.sh | 4 +- data/gnupth/make.sh | 3 +- data/grep/make.sh | 4 +- data/gzip/make.sh | 3 +- data/ice/make.sh | 3 +- data/indent/make.sh | 4 +- data/inetutils/make.sh | 4 +- data/inetutils/mdns.diff | 88 ++++++++++++++++++------ data/inputproto/make.sh | 3 +- data/iokittools/make.sh | 4 +- data/iphone-gcc/make.sh | 7 +- data/irssi/make.sh | 4 +- data/irssi/mdns.diff | 30 ++++---- data/jamvm/make.sh | 4 +- data/jamvm/mdns.diff | 4 +- data/javasqlite/make.sh | 6 +- data/jikes/make.sh | 3 +- data/kbproto/make.sh | 3 +- data/kext-tools/make.sh | 3 +- data/krb5/make.sh | 4 +- data/less/make.sh | 3 +- data/libarchive/make.sh | 3 +- data/libassuan/make.sh | 4 +- data/libdict/make.sh | 4 +- data/libffi/assembler.diff | 6 +- data/libffi/make.sh | 9 +-- data/libffi/private.diff | 6 +- data/libgcc/_metadata/description | 1 + data/libgcc/_metadata/license | 1 + data/libgcc/_metadata/maintainer | 1 + data/libgcc/_metadata/priority | 1 + data/libgcc/_metadata/section | 1 + data/libgcc/_metadata/version | 1 + data/libgcc/make.sh | 8 +++ data/libgpg-error/make.sh | 3 +- data/libksba/make.sh | 3 +- data/libpcap/make.sh | 3 +- data/libresolv/make.sh | 4 +- data/libutil/make.sh | 4 +- data/libxml2/make.sh | 3 +- data/lighttpd/make.sh | 3 +- data/links/make.sh | 4 +- data/links/mdns.diff | 4 +- data/lynx/make.sh | 4 +- data/lynx/mdns.diff | 4 +- data/m4/make.sh | 3 +- data/make/make.sh | 3 +- data/minicom/make.sh | 4 +- data/mobileterminal/make.sh | 4 +- data/nail/make.sh | 4 +- data/nano/make.sh | 3 +- data/ncftp/make.sh | 4 +- data/ncftp/mdns.diff | 4 +- data/ncurses/make.sh | 4 +- data/neon/make.sh | 4 +- data/netcat/make.sh | 4 +- data/netcat/mdns.diff | 4 +- data/network-cmds/make.sh | 3 +- data/ngrep/make.sh | 4 +- data/nmap/make.sh | 4 +- data/nvi/make.sh | 4 +- data/odcctools/make.sh | 4 +- data/ogg/make.sh | 3 +- data/openssh/make.sh | 4 +- data/openssl/make.sh | 4 +- data/p7zip/make.sh | 4 +- data/patch/make.sh | 3 +- data/pcre/make.sh | 3 +- data/png/make.sh | 4 +- data/psmisc_/make.sh | 4 +- data/pthread-stubs/make.sh | 3 +- data/pyobjc/make.sh | 4 +- data/rdesktop/make.sh | 4 +- data/readline/make.sh | 4 +- data/rpl/make.sh | 3 +- data/rsync/make.sh | 3 +- data/ruby/make.sh | 4 +- data/ruby/mdns.diff | 4 +- data/rubygems/make.sh | 3 +- data/rubyobjc_/make.sh | 4 +- data/rzip/make.sh | 3 +- data/screen/make.sh | 4 +- data/sed/make.sh | 4 +- data/sgrep/make.sh | 3 +- data/shell-cmds/make.sh | 3 +- data/sm/make.sh | 3 +- data/spidermonkey/make.sh | 4 +- data/spidermonkey/mdns.diff | 4 +- data/sqlite3/_metadata/priority | 2 +- data/sqlite3/make.sh | 4 +- data/srelay/make.sh | 4 +- data/stunnel/make.sh | 4 +- data/subversion/make.sh | 4 +- data/subversion/mdns.diff | 28 ++++++-- data/sudo/_metadata/conffiles | 1 + data/sudo/make.sh | 4 +- data/system-cmds/make.sh | 4 +- data/tar/make.sh | 4 +- data/tcpdump/make.sh | 3 +- data/tcsh/make.sh | 4 +- data/tiff/make.sh | 4 +- data/top/make.sh | 4 +- data/uikittools/make.sh | 3 +- data/unrar/make.sh | 4 +- data/unzip/make.sh | 3 +- data/uuid/make.sh | 4 +- data/vfdecrypt/make.sh | 4 +- data/vim/make.sh | 4 +- data/vorbis/make.sh | 4 +- data/vpnc_/make.sh | 4 +- data/wget/make.sh | 4 +- data/wget/mdns.diff | 4 +- data/whois/make.sh | 3 +- data/x11/make.sh | 3 +- data/x264/make.sh | 4 +- data/xau/make.sh | 3 +- data/xcb-proto/make.sh | 3 +- data/xcb/make.sh | 3 +- data/xext/make.sh | 3 +- data/xextproto/make.sh | 3 +- data/xeyes/make.sh | 3 +- data/xi/make.sh | 3 +- data/xineramaproto/make.sh | 3 +- data/xml2/make.sh | 4 +- data/xmu/make.sh | 3 +- data/xproto/make.sh | 3 +- data/xt/make.sh | 3 +- data/xtrans/make.sh | 3 +- data/zsh/make.sh | 3 +- exec.sh | 5 +- folders.sh | 4 +- helper.sh | 4 +- make.sh | 25 +++++-- package.sh | 8 ++- people/ste | 1 + rehash.sh | 37 ++++++++++ util/catdir.sh | 2 + util/collect2 | 10 ++- util/configure.sh | 2 +- 206 files changed, 739 insertions(+), 580 deletions(-) create mode 100644 arch/darwin-arm/target create mode 100644 arch/iphoneos-arm/target create mode 100644 architect.sh create mode 100755 clean.sh create mode 120000 data/apr-util/_metadata/sqlite3.dep delete mode 100644 data/apt/darwin.diff create mode 100644 data/apt/ostable.diff delete mode 100644 data/bind/gen.diff delete mode 100644 data/cydia/cydia-1.0.2383.tgz create mode 100644 data/cydia/cydia-1.0.2385.tgz create mode 100644 data/dpkg/telesphoreo.diff create mode 100644 data/libgcc/_metadata/description create mode 120000 data/libgcc/_metadata/license create mode 120000 data/libgcc/_metadata/maintainer create mode 100644 data/libgcc/_metadata/priority create mode 100644 data/libgcc/_metadata/section create mode 100644 data/libgcc/_metadata/version create mode 100755 data/libgcc/make.sh create mode 100644 data/sudo/_metadata/conffiles create mode 100644 people/ste create mode 100755 rehash.sh diff --git a/arch/darwin-arm/target b/arch/darwin-arm/target new file mode 100644 index 000000000..34f6e4f76 --- /dev/null +++ b/arch/darwin-arm/target @@ -0,0 +1 @@ +arm-apple-darwin8 diff --git a/arch/iphoneos-arm/target b/arch/iphoneos-arm/target new file mode 100644 index 000000000..573e31146 --- /dev/null +++ b/arch/iphoneos-arm/target @@ -0,0 +1 @@ +arm-apple-darwin9 diff --git a/architect.sh b/architect.sh new file mode 100644 index 000000000..2bdbc2f03 --- /dev/null +++ b/architect.sh @@ -0,0 +1 @@ +export PKG_TARG=$(cat "${PKG_BASE}/arch/${PKG_ARCH}/target") diff --git a/bootstrap.sh b/bootstrap.sh index beb858a06..66e37e8ff 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -3,22 +3,26 @@ set -e shopt -s extglob nullglob export PKG_BASE=$(realpath "$(dirname "$0")") +source "${PKG_BASE}/architect.sh" + export PKG_BOOT=${PKG_BASE}/Packager -export PKG_TARG=arm-apple-darwin rm -rf "${PKG_BOOT}" svn export "${PKG_BASE}/over" "${PKG_BOOT}" -arm-apple-darwin-gcc -o "${PKG_BOOT}/usr/libexec/cydia_/godmode" "${PKG_BASE}/util/godmode.c" -arm-apple-darwin-gcc -o "${PKG_BOOT}/usr/libexec/cydia_/symlink" "${PKG_BASE}/util/symlink.c" +"${PKG_TARG}-gcc" -o "${PKG_BOOT}/usr/libexec/cydia_/godmode" "${PKG_BASE}/util/godmode.c" +"${PKG_TARG}-gcc" -o "${PKG_BOOT}/usr/libexec/cydia_/symlink" "${PKG_BASE}/util/symlink.c" chmod +s "${PKG_BOOT}/usr/libexec/cydia_"/{godmode,symlink} mkdir -p "${PKG_BOOT}/var/lib/dpkg/info" -PKG_REQS=(adv-cmds base bash bigboss coreutils cydia gawk grep inetutils iphonesurge less libarmfp modmyifone nano network-cmds rsync saurik sed shell-cmds ste system-cmds unzip zip) +PKG_REQS=(adv-cmds apt base bash bigboss coreutils cydia gawk grep inetutils iphonesurge less libarmfp libgcc modmyifone nano network-cmds nvi rsync saurik sed shell-cmds ste system-cmds tar unzip zip) cd "${PKG_BASE}/data" -PKG_REQS=($(find -L "${PKG_REQS[@]}" | while read -r line; do realpath "${line}"; done | grep "/apl/tel/data/[^/]*$" | sed -e 's/.*\///' | sort -u)) +PKG_REQS=($({ + echo "${PKG_REQS[@]}" | tr ' ' $'\n' + find -L "${PKG_REQS[@]}" -name '*.dep' | sed -e 's/.*\/\([^\/]*\)\.dep/\1/' +} | sort -u)) for PKG_NAME in "${PKG_REQS[@]}"; do PKG_NAME=${PKG_NAME%/_metadata/priority} @@ -26,7 +30,7 @@ for PKG_NAME in "${PKG_REQS[@]}"; do source "${PKG_BASE}/helper.sh" rm -rf "${PKG_BASE}/temp" - dpkg -x "${PKG_BASE}/debs/${PKG_NAME}_${PKG_VRSN}-${PKG_RVSN}_darwin-arm.deb" "${PKG_BASE}/temp" + dpkg -x "${PKG_BASE}/debs/${PKG_NAME}_${PKG_VRSN}-${PKG_RVSN}_${PKG_ARCH}.deb" "${PKG_BASE}/temp" echo "merging ${PKG_NAME}..." cp -a "${PKG_BASE}/temp"/* "${PKG_BOOT}" @@ -42,8 +46,8 @@ done cd "${PKG_BOOT}" -rm -f ../Packager.tgz -tar -zcvf ../Packager.tgz * +rm -f "../Packager_${PKG_ARCH}.tgz" +tar -zcvf "../Packager_${PKG_ARCH}.tgz" * cp -a bin/bash usr/libexec/cydia_ cp -a bin/chmod usr/libexec/cydia_ @@ -64,12 +68,12 @@ cp -a usr/lib/libintl.8.0.2.dylib usr/libexec/cydia_ cp -a usr/lib/libncurses.5.dylib usr/libexec/cydia_ cp -a usr/lib/libreadline.5.2.dylib usr/libexec/cydia_ -rm -f ../Packager.xml +rm -f "../Packager_${PKG_ARCH}.xml" find * -type l -print -o -name "terminfo" -prune | while read -r link; do echo "Exec/usr/libexec/cydia_/symlink $(readlink "${link}") /${link}" rm -f "${link}" -done >>../Packager.xml +done >>"../Packager_${PKG_ARCH}.xml" -rm -f ../Packager.zip -zip -qry ../Packager.zip * +rm -f "../Packager_${PKG_ARCH}.zip" +zip -qry "../Packager_${PKG_ARCH}.zip" * rm -rf "${PKG_BOOT}" diff --git a/build.sh b/build.sh index 2aa4e3bd7..ce1a07aa9 100755 --- a/build.sh +++ b/build.sh @@ -1,8 +1,10 @@ #!/bin/bash set -e shopt -s extglob -for package in data/!(*_|cydia|ui*|iphone-python|llvm-gcc|mobileterminal|nethack); do +#for package in coreutils berkeleydb bzip2 apt adv-cmds libutil gettext gawk tar network-cmds shell-cmds odcctools readline modmyifone darwintools sed pcre gnupg grep inetutils saurik gzip dpkg iphonesurge unzip libarmfp nano base bash system-cmds libresolv zip ncurses less; do +for package in data/!(*_|cydia|iphone-python|mobileterminal|jocstrap|iphone-java|uicaboodle|pyobjc|python|setuptools); do +#for package in data/!(*_); do PKG_NAME=$(basename "${package}") echo "========== ${PKG_NAME} ==========" - ./make.sh "${PKG_NAME}" + ./package.sh "${PKG_NAME}" done diff --git a/clean.sh b/clean.sh new file mode 100755 index 000000000..3fa9f854f --- /dev/null +++ b/clean.sh @@ -0,0 +1,132 @@ +for file in \ + /bin/[ \ + /bin/csh \ + /bin/domainname \ + /bin/ed \ + /bin/expr \ + /bin/getty \ + /bin/link \ + /bin/pax \ + /bin/printf \ + /bin/tcsh \ + /bin/test \ + /bin/unlink \ + /bin/zsh \ + /sbin/ifconfig \ + /sbin/kextunload \ + /sbin/md5 \ + /sbin/mknod \ + /sbin/ping \ + /sbin/route \ + /usr/bin/alias \ + /usr/bin/apply \ + /usr/bin/banner \ + /usr/bin/bzip2 \ + /usr/bin/cap_mkdb \ + /usr/bin/chflags \ + /usr/bin/chgrp \ + /usr/bin/col \ + /usr/bin/colrm \ + /usr/bin/column \ + /usr/bin/compress \ + /usr/bin/crontab \ + /usr/bin/curl \ + /usr/bin/ditto \ + /usr/bin/false \ + /usr/bin/find \ + /usr/bin/getopt \ + /usr/bin/grep \ + /usr/bin/gunzip \ + /usr/bin/gzexe \ + /usr/bin/gzip \ + /usr/bin/hexdump \ + /usr/bin/ipcrm \ + /usr/bin/jot \ + /usr/bin/lam \ + /usr/bin/lastcomm \ + /usr/bin/libgzip.a \ + /usr/bin/locate \ + /usr/bin/look \ + /usr/bin/makekey \ + /usr/bin/mesg \ + /usr/bin/minicom \ + /usr/bin/mktemp \ + /usr/bin/more \ + /usr/bin/nc \ + /usr/bin/pico \ + /usr/bin/readlink \ + /usr/bin/rev \ + /usr/bin/rs \ + /usr/bin/sar \ + /usr/bin/screen \ + /usr/bin/sed \ + /usr/bin/shlock \ + /usr/bin/snap \ + /usr/bin/srelay \ + /usr/bin/su \ + /usr/bin/tabs \ + /usr/bin/tar \ + /usr/bin/tcopy \ + /usr/bin/top \ + /usr/bin/touch \ + /usr/bin/true \ + /usr/bin/ul \ + /usr/bin/uname \ + /usr/bin/unvis \ + /usr/bin/vim \ + /usr/bin/vis \ + /usr/bin/wall \ + /usr/bin/whereis \ + /usr/bin/whois \ + /usr/bin/xargs \ + /usr/bin/zcat \ + /usr/bin/zcmp \ + /usr/bin/zdiff \ + /usr/bin/zegrep \ + /usr/bin/zfgrep \ + /usr/bin/zforce \ + /usr/bin/zgrep \ + /usr/bin/zless \ + /usr/bin/zmore \ + /usr/bin/znew \ + /usr/lib/libgcc_s_v6.1.dylib \ + /usr/local/bin/scp \ + /usr/local/bin/sftp \ + /usr/local/bin/slogin \ + /usr/local/bin/ssh \ + /usr/local/bin/ssh-add \ + /usr/local/bin/ssh-agent \ + /usr/local/bin/ssh-keygen \ + /usr/local/bin/ssh-keyscan \ + /usr/local/etc/moduli \ + /usr/local/etc/ssh_config \ + /usr/local/etc/sshd_config \ + /usr/local/libexec/sftp-server \ + /usr/local/libexec/ssh-keysign \ + /usr/local/libexec/sshd-keygen-wrapper \ + /usr/local/sbin/sshd \ + /usr/sbin/ac \ + /usr/sbin/arp \ + /usr/sbin/cron \ + /usr/sbin/fdisk \ + /usr/sbin/ifconfig \ + /usr/sbin/ioreg \ + /usr/sbin/kextstat \ + /usr/sbin/makedbm \ + /usr/sbin/md5 \ + /usr/sbin/mkfile \ + /usr/sbin/mtree \ + /usr/sbin/netstat \ + /usr/sbin/ping \ + /usr/sbin/pt_chown \ + /usr/sbin/rmt \ + /usr/sbin/route \ + /usr/sbin/tcpdump \ + /usr/sbin/traceroute \ + /usr/sbin/vmstat \ + /usr/sbin/vpnd \ + /usr/sbin/zdump \ + /usr/sbin/zic +do + ls dest/iphoneos-arm/*/${file#/} 2>/dev/null +done diff --git a/construct.sh b/construct.sh index c2d2618ee..ae97d654c 100755 --- a/construct.sh +++ b/construct.sh @@ -1,35 +1,54 @@ #!/bin/bash set -e shopt -s extglob nullglob -PKG_BASE=$(pwd) + +PKG_BASE=$(dirname "$(realpath "$0")") +cd "${PKG_BASE}" +PKG_RVSN=213 + PKG_REPO=/dat/web/apt.saurik.com PKG_OVER=${PKG_REPO}/indices/override.tangelo.main.gz -PKG_PKGS=${PKG_REPO}/dists/tangelo/main/binary-darwin-arm/Packages -tag=arm-apple-darwin -rm -rf link -mkdir link -for package in data/!(*_); do - PKG_NAME=$(basename "${package}") - PKG_DATA="${PKG_BASE}/data/${PKG_NAME}" - echo "${PKG_NAME}" "$(cat "${PKG_DATA}/_metadata/priority")" "$(cat "${PKG_DATA}/_metadata/section")" - ln -s "../debs/${PKG_NAME}_$(cat "${PKG_DATA}/_metadata/version")-$(cat "${PKG_BASE}/stat/${tag}/${PKG_NAME}/dest-ver")_darwin-arm.deb" link -done | gzip -9c >"${PKG_OVER}" -dpkg-scanpackages link <(zcat "${PKG_OVER}") | sed -e 's/: link\//: debs\//' >"${PKG_PKGS}" -gzip -c "${PKG_PKGS}" >"${PKG_PKGS}.gz" -#rm -rf "${PKG_REPO}/debs" -#cp -a debs "${PKG_REPO}" -cd "${PKG_REPO}/dists/tangelo" -export PKG_RVSN=129 +for PKG_ARCH in "${PKG_BASE}/arch"/*; do + PKG_ARCH=$(basename "${PKG_ARCH}") + echo "scanning ${PKG_ARCH}" + + PKG_PKGS=${PKG_REPO}/dists/tangelo/main/binary-${PKG_ARCH}/Packages + + rm -rf "${PKG_BASE}/link" + mkdir "${PKG_BASE}/link" + for package in "${PKG_BASE}/data"/!(*_); do + PKG_NAME=$(basename "${package}") + PKG_DATA="${PKG_BASE}/data/${PKG_NAME}" + PKG_PRIO=$(cat "${PKG_DATA}/_metadata/priority") + echo "${PKG_NAME}" "${PKG_PRIO#+}" "$(cat "${PKG_DATA}/_metadata/section")" -cat >main/binary-darwin-arm/Release <"${PKG_OVER}" + + dpkg-scanpackages "link" <(zcat "${PKG_OVER}") | sed -e 's/: link\//: debs\//' >"${PKG_PKGS}" + gzip -c "${PKG_PKGS}" >"${PKG_PKGS}.gz" + #rm -rf "${PKG_REPO}/debs" + #cp -a debs "${PKG_REPO}" + + cat >"${PKG_REPO}/dists/tangelo/main/binary-${PKG_ARCH}/Release" < #include #include -@@ -302,6 +306,13 @@ +@@ -302,6 +306,15 @@ int main() { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + setlocale(LC_ALL, ""); @@ -309,16 +333,18 @@ diff -ru apt-0.6.46.4.1/methods/gzip.cc apt-0.6.46.4.1+iPhone/methods/gzip.cc // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ // $Id: gzip.cc,v 1.17.2.1 2004/01/16 18:58:50 mdz Exp $ -@@ -162,6 +166,13 @@ +@@ -162,6 +166,15 @@ int main(int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + setlocale(LC_ALL, ""); @@ -334,16 +360,18 @@ diff -ru apt-0.6.46.4.1/methods/http.cc apt-0.6.46.4.1+iPhone/methods/http.cc // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ // $Id: http.cc,v 1.59 2004/05/08 19:42:35 mdz Exp $ -@@ -1224,6 +1228,13 @@ +@@ -1224,6 +1228,15 @@ int main() { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + setlocale(LC_ALL, ""); @@ -359,16 +387,18 @@ diff -ru apt-0.6.46.4.1/methods/rred.cc apt-0.6.46.4.1+iPhone/methods/rred.cc #include #include #include -@@ -253,6 +257,13 @@ +@@ -253,6 +257,15 @@ int main(int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + RredMethod Mth; @@ -384,16 +414,18 @@ diff -ru apt-0.6.46.4.1/methods/rsh.cc apt-0.6.46.4.1+iPhone/methods/rsh.cc // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ // $Id: rsh.cc,v 1.6.2.1 2004/01/16 18:58:50 mdz Exp $ -@@ -511,6 +515,13 @@ +@@ -511,6 +515,15 @@ int main(int argc, const char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + setlocale(LC_ALL, ""); diff --git a/data/apt/ostable.diff b/data/apt/ostable.diff new file mode 100644 index 000000000..18211fc7d --- /dev/null +++ b/data/apt/ostable.diff @@ -0,0 +1,12 @@ +diff -ru apt-0.6.46.4.1/buildlib/ostable apt-0.6.46.4.1+iPhone/buildlib/ostable +--- apt-0.6.46.4.1/buildlib/ostable 2006-12-04 14:37:35.000000000 +0000 ++++ apt-0.6.46.4.1+iPhone/buildlib/ostable 2008-04-13 06:09:10.000000000 +0000 +@@ -11,6 +11,8 @@ + [^-]*-kfreebsd.*-gnu kfreebsd + [^-]*-knetbsd.*-gnu knetbsd + [^-]*-gnu[^-]* hurd ++[^-]*-darwin9 iphoneos ++[^-]*-darwin darwin + + # These are samples. + hp-hpux[^-]* hp-ux diff --git a/data/autossh/make.sh b/data/autossh/make.sh index ab2f4cf95..eaba182f1 100644 --- a/data/autossh/make.sh +++ b/data/autossh/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes make pkg:install prefix="${PKG_DEST}/usr" diff --git a/data/bash/make.sh b/data/bash/make.sh index 9bd7173f8..98c71e9c6 100644 --- a/data/bash/make.sh +++ b/data/bash/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup pkg:configure bash_cv_dev_fd=absent bash_cv_sys_named_pipes=missing bash_cv_job_control_missing=present bash_cv_func_sigsetjmp=present bash_cv_func_ctype_nonascii=no bash_cv_must_reinstall_sighandlers=no bash_cv_func_strcoll_broken=yes ac_cv_c_stack_direction=-1 ac_cv_func_mmap_fixed_mapped=yes gt_cv_int_divbyzero_sigfpe=no ac_cv_func_setvbuf_reversed=no ac_cv_func_strcoll_works=yes ac_cv_func_working_mktime=yes ac_cv_type_getgroups=gid_t bash_cv_dup2_broken=no #pgrp_pipe... make diff --git a/data/bash/mdns.diff b/data/bash/mdns.diff index af119ba1c..79cfb0389 100644 --- a/data/bash/mdns.diff +++ b/data/bash/mdns.diff @@ -7,16 +7,18 @@ diff -ru bash-3.2/shell.c bash-3.2+iPhone/shell.c /* shell.c -- GNU's idea of the POSIX shell specification. */ /* Copyright (C) 1987-2005 Free Software Foundation, Inc. -@@ -328,6 +330,13 @@ +@@ -328,6 +330,15 @@ char **argv, **env; #endif /* !NO_MAIN_ENV_ARG */ { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + register int i; int code, old_errexit_flag; diff --git a/data/basic-cmds/make.sh b/data/basic-cmds/make.sh index eceb9f5cb..9f1738b2c 100644 --- a/data/basic-cmds/make.sh +++ b/data/basic-cmds/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup for bin in mesg write uudecode uuencode; do "${PKG_TARG}-gcc" -o "${bin}/${bin}" "${bin}"/*.c pkg:usrbin "${bin}/${bin}" diff --git a/data/bc/make.sh b/data/bc/make.sh index a2d6f6ae5..7dac292bc 100644 --- a/data/bc/make.sh +++ b/data/bc/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup autoconf pkg:configure make diff --git a/data/berkeleydb/make.sh b/data/berkeleydb/make.sh index 7bdf244eb..9a39a18fe 100644 --- a/data/berkeleydb/make.sh +++ b/data/berkeleydb/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup cd build_unix PKG_CONF=../dist/configure pkg:configure make diff --git a/data/bind/gen.diff b/data/bind/gen.diff deleted file mode 100644 index 9816fafba..000000000 --- a/data/bind/gen.diff +++ /dev/null @@ -1,12 +0,0 @@ -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 index d697a3f20..950c5c6b5 100644 --- a/data/bind/make.sh +++ b/data/bind/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure --with-randomdev=/dev/random BUILD_CC=gcc make pkg:install diff --git a/data/bison/make.sh b/data/bison/make.sh index 8673eeaf1..4a7f580dd 100644 --- a/data/bison/make.sh +++ b/data/bison/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure gl_cv_func_strndup=no ac_cv_func_obstack=no make pkg:install diff --git a/data/bitchx/make.sh b/data/bitchx/make.sh index bcac3cfc2..53ef8a373 100644 --- a/data/bitchx/make.sh +++ b/data/bitchx/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd BitchX -pkg:patch +pkg:setup pkg:configure make make install prefix="${PKG_DEST}/usr" diff --git a/data/bitchx/mdns.diff b/data/bitchx/mdns.diff index b6566a3f9..12a95e9f8 100644 --- a/data/bitchx/mdns.diff +++ b/data/bitchx/mdns.diff @@ -7,16 +7,18 @@ diff -ru BitchX/source/irc.c BitchX+iPhone/source/irc.c /* * ircII: a new irc client. I like it. I hope you will too! * -@@ -1464,6 +1466,13 @@ +@@ -1464,6 +1466,15 @@ int main(int argc, char *argv[], char *envp[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + srand((unsigned)time(NULL)); time(&start_time); diff --git a/data/boost_/make.sh b/data/boost_/make.sh index b3ebe3312..483aa3d4c 100644 --- a/data/boost_/make.sh +++ b/data/boost_/make.sh @@ -1,7 +1,5 @@ shopt -s extglob -pkg:extract -cd * -pkg:patch +pkg:setup ./configure --prefix=/usr --without-icu --without-libraries=python echo 'using darwin ;' >user-config.jam make diff --git a/data/bootstrap-cmds/make.sh b/data/bootstrap-cmds/make.sh index af6db12d1..ad3f9f865 100644 --- a/data/bootstrap-cmds/make.sh +++ b/data/bootstrap-cmds/make.sh @@ -1,6 +1,4 @@ -tar -zxvf "${PKG_DATA}/bootstrap_cmds-60.tar.gz" -cd bootstrap_cmds-60 -pkg:patch +pkg:setup cd migcom.tproj cat >ident.c <. * * This program is free software; you can redistribute it and/or modify -@@ -47,6 +49,13 @@ +@@ -47,6 +49,15 @@ int main(int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + int ch, nopar = 0; const char *server = NULL, *port = NULL; @@ -76,16 +82,18 @@ diff -rui inetutils-1.5/ifconfig/ifconfig.c inetutils-1.5+iPhone/ifconfig/ifconf /* ifconfig.c -- network interface configuration utility Copyright (C) 2001, 2002, 2007 Free Software Foundation, Inc. -@@ -56,6 +58,13 @@ +@@ -56,6 +58,15 @@ int main(int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + int err = 0; int sfd; @@ -99,16 +107,18 @@ diff -rui inetutils-1.5/inetd/inetd.c inetutils-1.5+iPhone/inetd/inetd.c /* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. -@@ -386,6 +388,13 @@ +@@ -386,6 +388,15 @@ int main (int argc, char *argv[], char *envp[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + int option; struct servtab *sep; @@ -122,16 +132,18 @@ diff -rui inetutils-1.5/logger/logger.c inetutils-1.5+iPhone/logger/logger.c /* * Copyright (c) 1983, 1993, 2002 * The Regents of the University of California. All rights reserved. -@@ -101,6 +103,13 @@ +@@ -101,6 +103,15 @@ int main (int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + int option, logflags, pri; char *tag, buf[1024]; @@ -145,16 +157,18 @@ diff -rui inetutils-1.5/ping/ping6.c inetutils-1.5+iPhone/ping/ping6.c /* Copyright (C) 1998, 2001, 2002, 2004, 2005, 2007 Free Software Foundation, Inc. This file is part of GNU Inetutils. -@@ -81,6 +83,13 @@ +@@ -81,6 +83,15 @@ int main (int argc, char **argv) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + int c; char *p; @@ -168,16 +182,18 @@ diff -rui inetutils-1.5/ping/ping.c inetutils-1.5+iPhone/ping/ping.c /* Copyright (C) 1998,2001, 2002, 2005, 2007 Free Software Foundation, Inc. This file is part of GNU Inetutils. -@@ -106,6 +108,13 @@ +@@ -106,6 +108,15 @@ int main (int argc, char **argv) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + int c; char *p; @@ -191,16 +207,18 @@ diff -rui inetutils-1.5/rcp/rcp.c inetutils-1.5+iPhone/rcp/rcp.c /* * Copyright (c) 1983, 1990, 1992, 1993, 2002 * The Regents of the University of California. All rights reserved. -@@ -156,6 +158,13 @@ +@@ -156,6 +158,15 @@ int main (int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + struct servent *sp; int ch, fflag, tflag; @@ -214,16 +232,18 @@ diff -rui inetutils-1.5/rexecd/rexecd.c inetutils-1.5+iPhone/rexecd/rexecd.c /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. -@@ -105,6 +107,13 @@ +@@ -105,6 +107,15 @@ int main (int argc, char **argv) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + struct sockaddr_in from; int fromlen, sockfd = STDIN_FILENO; @@ -237,16 +257,18 @@ diff -rui inetutils-1.5/rlogin/rlogin.c inetutils-1.5+iPhone/rlogin/rlogin.c /* * Copyright (c) 1983, 1990, 1993, 2002 * The Regents of the University of California. All rights reserved. -@@ -236,6 +238,13 @@ +@@ -236,6 +238,15 @@ int main(int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + struct passwd *pw; struct servent *sp; @@ -260,16 +282,18 @@ diff -rui inetutils-1.5/rlogind/rlogind.c inetutils-1.5+iPhone/rlogind/rlogind.c /* Copyright (C) 1998,2001, 2002, 2007 Free Software Foundation, Inc. This file is part of GNU Inetutils. -@@ -267,6 +269,13 @@ +@@ -267,6 +269,15 @@ int main (int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + int port = 0; int maxchildren = DEFMAXCHILDREN; @@ -283,16 +307,18 @@ diff -rui inetutils-1.5/rsh/rsh.c inetutils-1.5+iPhone/rsh/rsh.c /*- * Copyright (c) 1983, 1990, 1993, 1994, 2002 * The Regents of the University of California. All rights reserved. -@@ -220,6 +222,13 @@ +@@ -220,6 +222,15 @@ int main (int argc, char **argv) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + struct passwd *pw; struct servent *sp; @@ -306,16 +332,18 @@ diff -rui inetutils-1.5/rshd/rshd.c inetutils-1.5+iPhone/rshd/rshd.c /*- * Copyright (c) 1988, 1989, 1992, 1993, 1994, 2002 * The Regents of the University of California. All rights reserved. -@@ -158,6 +160,13 @@ +@@ -158,6 +160,15 @@ int main (int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + extern int __check_rhosts_file; /* hook in rcmd(3) */ struct linger linger; @@ -329,16 +357,18 @@ diff -rui inetutils-1.5/syslogd/syslogd.c inetutils-1.5+iPhone/syslogd/syslogd.c /* syslogd - log system messages * * Copyright (c) 1983, 1988, 1993, 1994, 2002 -@@ -353,6 +355,13 @@ +@@ -353,6 +355,15 @@ int main (int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + int option; size_t i; @@ -352,16 +382,18 @@ diff -rui inetutils-1.5/talk/talk.c inetutils-1.5+iPhone/talk/talk.c /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. -@@ -71,6 +73,13 @@ +@@ -71,6 +73,15 @@ int main (int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + int c; @@ -375,16 +407,18 @@ diff -rui inetutils-1.5/talkd/talkd.c inetutils-1.5+iPhone/talkd/talkd.c /* Copyright (C) 1998,2001, 2002, 2007 Free Software Foundation, Inc. This file is part of GNU Inetutils. -@@ -59,6 +61,13 @@ +@@ -59,6 +61,15 @@ int main(int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + int c; char *acl_file = NULL; @@ -398,16 +432,18 @@ diff -rui inetutils-1.5/telnet/main.c inetutils-1.5+iPhone/telnet/main.c /* * Copyright (c) 1988, 1990, 1993 * The Regents of the University of California. All rights reserved. -@@ -180,6 +182,13 @@ +@@ -180,6 +182,15 @@ int main(int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + extern char *optarg; extern int optind; @@ -421,16 +457,18 @@ diff -rui inetutils-1.5/telnetd/telnetd.c inetutils-1.5+iPhone/telnetd/telnetd.c /* Copyright (C) 1998, 2001, 2002, 2004, 2007x Free Software Foundation, Inc. This file is part of GNU Inetutils. -@@ -112,6 +114,13 @@ +@@ -112,6 +114,15 @@ int main (int argc, char **argv) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + int c; program_name = argv[0]; @@ -444,16 +482,18 @@ diff -rui inetutils-1.5/tftp/main.c inetutils-1.5+iPhone/tftp/main.c /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. -@@ -154,6 +156,13 @@ +@@ -154,6 +156,15 @@ int main (int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + struct sockaddr_in sin; @@ -467,16 +507,18 @@ diff -rui inetutils-1.5/tftpd/tftpd.c inetutils-1.5+iPhone/tftpd/tftpd.c /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. -@@ -124,6 +126,13 @@ +@@ -124,6 +126,15 @@ int main (int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + register struct tftphdr *tp; register int n; @@ -490,16 +532,18 @@ diff -rui inetutils-1.5/uucpd/uucpd.c inetutils-1.5+iPhone/uucpd/uucpd.c /* * Copyright (c) 1985, 1993 * The Regents of the University of California. All rights reserved. -@@ -111,6 +113,13 @@ +@@ -111,6 +113,15 @@ int main (int argc, char **argv) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + #ifndef BSDINETD register int s, tcp_socket; diff --git a/data/inputproto/make.sh b/data/inputproto/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/inputproto/make.sh +++ b/data/inputproto/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/iokittools/make.sh b/data/iokittools/make.sh index a846152d7..0815a52e9 100644 --- a/data/iokittools/make.sh +++ b/data/iokittools/make.sh @@ -1,7 +1,5 @@ shopt -s extglob -pkg:extract -cd * -pkg:patch +pkg:setup for tproj in *.tproj; do tproj=$(basename "${tproj}" .tproj) ${PKG_TARG}-gcc -lcurses -o "${tproj}" "${tproj}.tproj"/*.c -framework CoreFoundation -framework IOKit diff --git a/data/iphone-gcc/make.sh b/data/iphone-gcc/make.sh index 9d8e4e221..eaf22c2f9 100755 --- a/data/iphone-gcc/make.sh +++ b/data/iphone-gcc/make.sh @@ -1,7 +1,7 @@ shopt -s extglob -pkg:extract -mkdir llvm-gcc-bld -cd llvm-gcc-bld +pkg:setup +mkdir ../llvm-gcc-bld +cd ../llvm-gcc-bld PKG_CONF=../llvm-gcc-4.2/configure pkg:configure \ --enable-languages="c,c++,objc,obj-c++" \ --enable-wchar_t="no" \ @@ -9,3 +9,4 @@ PKG_CONF=../llvm-gcc-4.2/configure pkg:configure \ make -j3 pkg:install pkg: rm -f /usr/lib/libgcc_s.1.dylib +pkg: rm -f /usr/lib/libiberty.a diff --git a/data/irssi/make.sh b/data/irssi/make.sh index 5b2761c57..13355cdca 100644 --- a/data/irssi/make.sh +++ b/data/irssi/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup pkg:autoconf pkg:configure --enable-static make diff --git a/data/irssi/mdns.diff b/data/irssi/mdns.diff index 3afc026e1..50478e973 100644 --- a/data/irssi/mdns.diff +++ b/data/irssi/mdns.diff @@ -7,15 +7,18 @@ diff -ru irssi-0.8.12/src/fe-none/irssi.c irssi-0.8.12+iPhone/src/fe-none/irssi. /* irssi.c : irssi -@@ -81,6 +83,12 @@ +@@ -81,6 +83,15 @@ int main(int argc, char **argv) { -+ struct nlist nl[2]; -+ memset(nl, 0, sizeof(nl)); -+ nl[0].n_un.n_name = (char *) "_useMDNSResponder"; -+ if (nlist("/usr/lib/libc.dylib", nl) != -1 && nl[0].n_type != N_UNDF) -+ *(int *) nl[0].n_value = 0; ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 ++ struct nlist nl[2]; ++ memset(nl, 0, sizeof(nl)); ++ nl[0].n_un.n_name = (char *) "_useMDNSResponder"; ++ nlist("/usr/lib/libc.dylib", nl); ++ if (nl[0].n_type != N_UNDF) ++ *(int *) nl[0].n_value = 0; ++#endif + static struct poptOption options[] = { POPT_AUTOHELP @@ -29,15 +32,18 @@ diff -ru irssi-0.8.12/src/fe-text/irssi.c irssi-0.8.12+iPhone/src/fe-text/irssi. /* irssi.c : irssi -@@ -328,6 +330,12 @@ +@@ -328,6 +330,15 @@ int main(int argc, char **argv) { -+ struct nlist nl[2]; -+ memset(nl, 0, sizeof(nl)); -+ nl[0].n_un.n_name = (char *) "_useMDNSResponder"; -+ if (nlist("/usr/lib/libc.dylib", nl) != -1 && nl[0].n_type != N_UNDF) -+ *(int *) nl[0].n_value = 0; ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 ++ struct nlist nl[2]; ++ memset(nl, 0, sizeof(nl)); ++ nl[0].n_un.n_name = (char *) "_useMDNSResponder"; ++ nlist("/usr/lib/libc.dylib", nl); ++ if (nl[0].n_type != N_UNDF) ++ *(int *) nl[0].n_value = 0; ++#endif + static int version = 0; static struct poptOption options[] = { diff --git a/data/jamvm/make.sh b/data/jamvm/make.sh index 07e7447eb..5a4606496 100644 --- a/data/jamvm/make.sh +++ b/data/jamvm/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup #PKG_CONF=./autogen.sh pkg:configure --with-classpath-install-dir=/usr --enable-ffi=no make with_classpath_install_dir="$(PKG_DEST_ classpath)/usr" diff --git a/data/jamvm/mdns.diff b/data/jamvm/mdns.diff index 8dbb978ae..37d92aff2 100644 --- a/data/jamvm/mdns.diff +++ b/data/jamvm/mdns.diff @@ -7,16 +7,18 @@ diff -ru jamvm-1.5.1/src/jam.c jamvm-1.5.1+iPhone/src/jam.c /* * Copyright (C) 2003, 2004, 2005, 2006, 2007 * Robert Lougher . -@@ -292,6 +294,13 @@ +@@ -292,6 +294,15 @@ } int main(int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + Class *array_class, *main_class; Object *system_loader, *array; diff --git a/data/javasqlite/make.sh b/data/javasqlite/make.sh index 9b67a553f..ee1c112e9 100644 --- a/data/javasqlite/make.sh +++ b/data/javasqlite/make.sh @@ -1,7 +1,5 @@ -pkg:extract -cd * -pkg:patch +pkg:setup autoconf -pkg:configure --with-sqlite="${PKG_ROOT}/usr" --with-sqlite3="${PKG_ROOT}/usr" +pkg:configure --with-sqlite="$(PKG_DEST_ sqlite3)/usr" --with-sqlite3="$(PKG_DEST_ sqlite3)/usr" JAVAC_FLAGS='-source 1.5 -target 1.5' make pkg:install diff --git a/data/jikes/make.sh b/data/jikes/make.sh index 67ee2acb6..5cc237e1f 100644 --- a/data/jikes/make.sh +++ b/data/jikes/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure --enable-source15 make pkg:install diff --git a/data/kbproto/make.sh b/data/kbproto/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/kbproto/make.sh +++ b/data/kbproto/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/kext-tools/make.sh b/data/kext-tools/make.sh index 292ea7463..4b9f0242f 100755 --- a/data/kext-tools/make.sh +++ b/data/kext-tools/make.sh @@ -1,5 +1,4 @@ -tar -zxvf "${PKG_DATA}/kext_tools-117.tar.gz" -cd kext_tools-117 +pkg:setup cp -a "${PKG_DATA}/getiopolicy_np.c" . #${PKG_TARG}-gcc -o kextload kextload_main.c -framework CoreFoundation utility.c -framework IOKit getiopolicy_np.c -DPRIVATE ${PKG_TARG}-gcc -o kextstat kextstat_main.c diff --git a/data/krb5/make.sh b/data/krb5/make.sh index 6d21ae0ee..dc67e8446 100644 --- a/data/krb5/make.sh +++ b/data/krb5/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup cd src pkg:configure ac_cv_func_regcomp=yes ac_cv_printf_positional=yes ac_cv_file__etc_environment=no ac_cv_file__etc_TIMEZONE=no ac_cv_prog_AR="$(which ${PKG_TARG}-ar)" krb5_cv_attr_constructor_destructor=yes,yes make diff --git a/data/less/make.sh b/data/less/make.sh index 3e560259c..da994a135 100644 --- a/data/less/make.sh +++ b/data/less/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/libarchive/make.sh b/data/libarchive/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/libarchive/make.sh +++ b/data/libarchive/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/libassuan/make.sh b/data/libassuan/make.sh index a68682133..d1f03a780 100644 --- a/data/libassuan/make.sh +++ b/data/libassuan/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup autoconf pkg:configure --with-pth-prefix="$(PKG_DEST_ gnupth)/usr" make diff --git a/data/libdict/make.sh b/data/libdict/make.sh index b93b9a065..60a745d08 100644 --- a/data/libdict/make.sh +++ b/data/libdict/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup cd src make CC=${PKG_TARG}-gcc CXX=${PKG_TARG}-g++ pkg: mkdir -p /usr/lib /usr/include diff --git a/data/libffi/assembler.diff b/data/libffi/assembler.diff index a6b6c6c18..8d46ac5f1 100644 --- a/data/libffi/assembler.diff +++ b/data/libffi/assembler.diff @@ -1,7 +1,7 @@ -Index: src/arm/sysv.S +Index: libffi/src/arm/sysv.S =================================================================== ---- libffi/src/arm/sysv.S (revision 130618) -+++ libffi+iPhone/src/arm/sysv.S (working copy) +--- gcc/libffi/src/arm/sysv.S (revision 130618) ++++ gcc+iPhone/libffi/src/arm/sysv.S (working copy) @@ -38,7 +38,7 @@ #else #define CNAME(x) x diff --git a/data/libffi/make.sh b/data/libffi/make.sh index cf3f0feca..d8fe64d54 100644 --- a/data/libffi/make.sh +++ b/data/libffi/make.sh @@ -1,9 +1,6 @@ -pkg:extract -cd gcc/libffi -pkg:patch -cd ../.. -mkdir build -cd build +pkg:setup +mkdir ../build +cd ../build PKG_CONF=../gcc/libffi/configure pkg:configure --with-sysroot="${PKG_ROOT}" make pkg:install diff --git a/data/libffi/private.diff b/data/libffi/private.diff index cd3ee23a7..f30e5bdac 100644 --- a/data/libffi/private.diff +++ b/data/libffi/private.diff @@ -1,7 +1,7 @@ -Index: src/arm/ffi.c +Index: libffi/src/arm/ffi.c =================================================================== ---- libffi/src/arm/ffi.c (revision 130618) -+++ libffi+iPhone/src/arm/ffi.c (working copy) +--- gcc/libffi/src/arm/ffi.c (revision 130618) ++++ gcc+iPhone/libffi/src/arm/ffi.c (working copy) @@ -199,6 +199,7 @@ /* This function is jumped to by the trampoline */ diff --git a/data/libgcc/_metadata/description b/data/libgcc/_metadata/description new file mode 100644 index 000000000..414120d54 --- /dev/null +++ b/data/libgcc/_metadata/description @@ -0,0 +1 @@ +core library used by everything diff --git a/data/libgcc/_metadata/license b/data/libgcc/_metadata/license new file mode 120000 index 000000000..9c13a9a0f --- /dev/null +++ b/data/libgcc/_metadata/license @@ -0,0 +1 @@ +../../../licenses/gpl-2 \ No newline at end of file diff --git a/data/libgcc/_metadata/maintainer b/data/libgcc/_metadata/maintainer new file mode 120000 index 000000000..0fa66e077 --- /dev/null +++ b/data/libgcc/_metadata/maintainer @@ -0,0 +1 @@ +../../../people/saurik \ No newline at end of file diff --git a/data/libgcc/_metadata/priority b/data/libgcc/_metadata/priority new file mode 100644 index 000000000..d0b3ce728 --- /dev/null +++ b/data/libgcc/_metadata/priority @@ -0,0 +1 @@ ++required diff --git a/data/libgcc/_metadata/section b/data/libgcc/_metadata/section new file mode 100644 index 000000000..00b394251 --- /dev/null +++ b/data/libgcc/_metadata/section @@ -0,0 +1 @@ +System diff --git a/data/libgcc/_metadata/version b/data/libgcc/_metadata/version new file mode 100644 index 000000000..e68edd30e --- /dev/null +++ b/data/libgcc/_metadata/version @@ -0,0 +1 @@ +4.2-20080410-1 diff --git a/data/libgcc/make.sh b/data/libgcc/make.sh new file mode 100755 index 000000000..e08fc20df --- /dev/null +++ b/data/libgcc/make.sh @@ -0,0 +1,8 @@ +pkg: mkdir -p /usr/lib +prefix=$(dirname "$(which "${PKG_TARG}-gcc")")/.. +for ver in 1 10.4 10.5; do + libgcc=lib/libgcc_s.${ver}.dylib + cp -a "${prefix}/${PKG_TARG}/${libgcc}" "${PKG_DEST}/usr/lib" + #pkg: "${PKG_TARG}-strip" -x -no_uuid "/usr/${libgcc}" + #pkg: ldid -T- "/usr/${libgcc}" +done diff --git a/data/libgpg-error/make.sh b/data/libgpg-error/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/libgpg-error/make.sh +++ b/data/libgpg-error/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/libksba/make.sh b/data/libksba/make.sh index 30062eb73..a1589a105 100644 --- a/data/libksba/make.sh +++ b/data/libksba/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:autoconf pkg:configure make diff --git a/data/libpcap/make.sh b/data/libpcap/make.sh index 8ab25ab77..c7c49419f 100644 --- a/data/libpcap/make.sh +++ b/data/libpcap/make.sh @@ -1,5 +1,4 @@ -tar -zxvf "${PKG_DATA}/libpcap-0.9.8.tar.gz" -cd libpcap-0.9.8 +pkg:setup pkg:configure --with-pcap=bpf make mkdir -p "${PKG_DEST}/usr/lib" diff --git a/data/libresolv/make.sh b/data/libresolv/make.sh index 874174bc2..a4779ed62 100644 --- a/data/libresolv/make.sh +++ b/data/libresolv/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup cp -a "${PKG_DATA}"/*.[ch] . declare -a flags # XXX: don't use this on darwin8 diff --git a/data/libutil/make.sh b/data/libutil/make.sh index 3e867c082..69acb577f 100644 --- a/data/libutil/make.sh +++ b/data/libutil/make.sh @@ -1,5 +1,3 @@ -pkg:extract -cd * -pkg:patch +pkg:setup make CC="${PKG_TARG}-gcc" make install STRIP="${PKG_TARG}-strip" DSTROOT="${PKG_DEST}" diff --git a/data/libxml2/make.sh b/data/libxml2/make.sh index 67ec7bee3..457bfd295 100644 --- a/data/libxml2/make.sh +++ b/data/libxml2/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure --without-python make pkg:install diff --git a/data/lighttpd/make.sh b/data/lighttpd/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/lighttpd/make.sh +++ b/data/lighttpd/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/links/make.sh b/data/links/make.sh index df8e2a88c..7dac292bc 100644 --- a/data/links/make.sh +++ b/data/links/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup autoconf pkg:configure make diff --git a/data/links/mdns.diff b/data/links/mdns.diff index e03e19afd..c48de5c2f 100644 --- a/data/links/mdns.diff +++ b/data/links/mdns.diff @@ -7,16 +7,18 @@ diff -ru links-0.99/main.c links-0.99+iPhone/main.c #include "links.h" int retval = RET_OK; -@@ -330,6 +332,13 @@ +@@ -330,6 +332,15 @@ int main(int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + path_to_exe = argv[0]; ac = argc; diff --git a/data/lynx/make.sh b/data/lynx/make.sh index 8570529ba..b11b3f994 100644 --- a/data/lynx/make.sh +++ b/data/lynx/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup pkg:configure --with-screen=ncurses --with-ssl make pkg:install diff --git a/data/lynx/mdns.diff b/data/lynx/mdns.diff index 4a3348fa8..cdd77d105 100644 --- a/data/lynx/mdns.diff +++ b/data/lynx/mdns.diff @@ -7,16 +7,18 @@ diff -ru lynx2-8-6/src/LYMain.c lynx2-8-6+iPhone/src/LYMain.c #include #include #include -@@ -961,6 +963,13 @@ +@@ -961,6 +963,15 @@ int main(int argc, char **argv) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + int i; /* indexing variable */ int status = 0; /* exit status */ diff --git a/data/m4/make.sh b/data/m4/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/m4/make.sh +++ b/data/m4/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/make/make.sh b/data/make/make.sh index 2e15bb43c..452a4bfd5 100644 --- a/data/make/make.sh +++ b/data/make/make.sh @@ -1,5 +1,4 @@ -tar -zxvf "${PKG_DATA}/make-3.81.tar.gz" -cd make-3.81 +pkg:setup pkg:configure make pkg:install diff --git a/data/minicom/make.sh b/data/minicom/make.sh index 1b3c1b776..452a4bfd5 100644 --- a/data/minicom/make.sh +++ b/data/minicom/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup pkg:configure make pkg:install diff --git a/data/mobileterminal/make.sh b/data/mobileterminal/make.sh index 28259fe4a..b4bb8862c 100644 --- a/data/mobileterminal/make.sh +++ b/data/mobileterminal/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup make CC="${PKG_TARG}-gcc" package pkg: mkdir -p /Applications pkg: cp -a Terminal.app /Applications diff --git a/data/nail/make.sh b/data/nail/make.sh index 0e3f56bee..712cb87f9 100644 --- a/data/nail/make.sh +++ b/data/nail/make.sh @@ -1,5 +1,3 @@ -pkg:extract -cd * -pkg:patch +pkg:setup make all install PREFIX=/usr SYSCONFDIR=/etc DESTDIR="${PKG_DEST}" UCBINSTALL=/usr/bin/install CC="${PKG_TARG}-gcc" pkg: ln -s mailx /usr/bin/mail diff --git a/data/nano/make.sh b/data/nano/make.sh index daa5b3c61..ce61731da 100644 --- a/data/nano/make.sh +++ b/data/nano/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure --enable-all make pkg:install diff --git a/data/ncftp/make.sh b/data/ncftp/make.sh index 7da69beab..de71b27aa 100644 --- a/data/ncftp/make.sh +++ b/data/ncftp/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup RANLIB=$(which "${PKG_TARG}-ranlib") CC=$(which "${PKG_TARG}-gcc") pkg:configure make mkdir -p "${PKG_DEST}/usr/share" diff --git a/data/ncftp/mdns.diff b/data/ncftp/mdns.diff index e9956b8eb..696ab5480 100644 --- a/data/ncftp/mdns.diff +++ b/data/ncftp/mdns.diff @@ -7,16 +7,18 @@ diff -ru ncftp-3.2.1/ncftp/main.c ncftp-3.2.1+iPhone/ncftp/main.c /* main.c * * Copyright (c) 1992-2005 by Mike Gleason. -@@ -401,6 +403,13 @@ +@@ -401,6 +403,15 @@ main_void_return_t main(int argc, char **const argv) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + int c; int n; diff --git a/data/ncurses/make.sh b/data/ncurses/make.sh index 5fbd1dd65..60b4b1458 100644 --- a/data/ncurses/make.sh +++ b/data/ncurses/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup pkg:configure --with-shared --without-normal --without-debug make pkg:install diff --git a/data/neon/make.sh b/data/neon/make.sh index e8ae8c356..1e712d5af 100644 --- a/data/neon/make.sh +++ b/data/neon/make.sh @@ -1,6 +1,4 @@ -tar -zxvf "${PKG_DATA}/neon-0.26.4.tar.gz" -cd neon-0.26.4 -pkg:patch +pkg:setup autoconf pkg:configure --with-ssl #--with-expat="${PKG_ROOT}/usr/lib/libexpat.la" diff --git a/data/netcat/make.sh b/data/netcat/make.sh index 0750282e0..00bf96237 100644 --- a/data/netcat/make.sh +++ b/data/netcat/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup pkg:configure make pkg:install diff --git a/data/netcat/mdns.diff b/data/netcat/mdns.diff index 367f6166f..89cc0e2ed 100644 --- a/data/netcat/mdns.diff +++ b/data/netcat/mdns.diff @@ -7,16 +7,18 @@ diff -ru netcat-0.7.1/src/netcat.c netcat-0.7.1+iPhone/src/netcat.c /* * netcat.c -- main project file * Part of the GNU netcat project -@@ -137,6 +139,13 @@ +@@ -137,6 +139,15 @@ int main(int argc, char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + int c, glob_ret = EXIT_FAILURE; int total_ports, left_ports, accept_ret = -1, connect_ret = -1; diff --git a/data/network-cmds/make.sh b/data/network-cmds/make.sh index 7545bf0eb..e1b564df3 100644 --- a/data/network-cmds/make.sh +++ b/data/network-cmds/make.sh @@ -1,6 +1,5 @@ shopt -s extglob -tar -zxvf "${PKG_DATA}/network_cmds-306.tar.gz" -cd network_cmds-306 +pkg:setup for tproj in !(natd|ping|spray).tproj; do tproj=$(basename "${tproj}" .tproj) "${PKG_TARG}-gcc" -o "${tproj}" "${tproj}.tproj"/*.c -DPRIVATE -Dether_ntohost=_old_ether_ntohost diff --git a/data/ngrep/make.sh b/data/ngrep/make.sh index 53af27b91..ace9ae521 100644 --- a/data/ngrep/make.sh +++ b/data/ngrep/make.sh @@ -1,6 +1,4 @@ -tar -jxvf "${PKG_DATA}/ngrep-1.45.tar.bz2" -cd ngrep-1.45 -pkg:patch +pkg:setup autoconf cd regex-0.12 autoconf diff --git a/data/nmap/make.sh b/data/nmap/make.sh index e3a5e883d..491b00e3c 100644 --- a/data/nmap/make.sh +++ b/data/nmap/make.sh @@ -1,6 +1,4 @@ -tar -jxvf "${PKG_DATA}/nmap-4.50.tar.bz2" -cd nmap-4.50 -pkg:patch +pkg:setup autoconf cd libdnet-stripped autoconf diff --git a/data/nvi/make.sh b/data/nvi/make.sh index 0c2ecfc2e..e819fe396 100644 --- a/data/nvi/make.sh +++ b/data/nvi/make.sh @@ -1,5 +1,5 @@ -pkg:extract -cd */build.unix +pkg:setup +cd build.unix PKG_CONF=../dist/configure pkg:configure vi_cv_sprintf_count=yes vi_cv_sys5_pty=no "--with-db-prefix=$(PKG_DEST_ berkeleydb)/usr" make pkg:install diff --git a/data/odcctools/make.sh b/data/odcctools/make.sh index d7405717e..94757a91a 100644 --- a/data/odcctools/make.sh +++ b/data/odcctools/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup rm -f include/libkern/OSByteOrder.h rm -f include/mach/{task,thread_act,thread_status}.h rm -f include/mach/machine/{boolean,exception,kern_return,processor_info,rpc,thread_state,thread_status,vm_param,vm_types}.h diff --git a/data/ogg/make.sh b/data/ogg/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/ogg/make.sh +++ b/data/ogg/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/openssh/make.sh b/data/openssh/make.sh index e56d762e0..56c32ecb6 100644 --- a/data/openssh/make.sh +++ b/data/openssh/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup autoconf pkg:configure --disable-strip --sysconfdir=/etc/ssh make diff --git a/data/openssl/make.sh b/data/openssl/make.sh index 48016981d..b7ddecc22 100644 --- a/data/openssl/make.sh +++ b/data/openssl/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup ./Configure -D__DARWIN_UNIX03 "$(echo "${PKG_TARG}" | sed -e 's/\(.*\)-\(.*\)-\(.*\)/\3-\1/')-gcc" --prefix=/usr --openssldir=/usr/lib/ssl shared make AR="${PKG_TARG}-ar -r" make install INSTALL_PREFIX="${PKG_DEST}" diff --git a/data/p7zip/make.sh b/data/p7zip/make.sh index 1d0ec501a..9a0847cf7 100644 --- a/data/p7zip/make.sh +++ b/data/p7zip/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup mv -f makefile.macosx makefile.machine make all2 make install DEST_HOME="${PKG_DEST}/usr" diff --git a/data/patch/make.sh b/data/patch/make.sh index 7e498defb..0bf0c095a 100644 --- a/data/patch/make.sh +++ b/data/patch/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make make install prefix="${PKG_DEST}/usr" diff --git a/data/pcre/make.sh b/data/pcre/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/pcre/make.sh +++ b/data/pcre/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/png/make.sh b/data/png/make.sh index df8e2a88c..7dac292bc 100644 --- a/data/png/make.sh +++ b/data/png/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup autoconf pkg:configure make diff --git a/data/psmisc_/make.sh b/data/psmisc_/make.sh index 92c942f18..466385a3f 100644 --- a/data/psmisc_/make.sh +++ b/data/psmisc_/make.sh @@ -1,6 +1,4 @@ -tar -zxvf "${PKG_DATA}/psmisc-22.6.tar.gz" -cd psmisc-22.6 -pkg:patch +pkg:setup automake pkg:configure ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes make diff --git a/data/pthread-stubs/make.sh b/data/pthread-stubs/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/pthread-stubs/make.sh +++ b/data/pthread-stubs/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/pyobjc/make.sh b/data/pyobjc/make.sh index 587ee450e..9ccc2f182 100644 --- a/data/pyobjc/make.sh +++ b/data/pyobjc/make.sh @@ -1,8 +1,6 @@ shopt -s extglob -pkg:extract -cd * -pkg:patch +pkg:setup cd pyobjc-core $("${PKG_TARG}-gcc" -print-prog-name=cc1obj) -print-objc-runtime-info <(echo) >Modules/objc/objc-runtime-info.h diff --git a/data/rdesktop/make.sh b/data/rdesktop/make.sh index 886cecb4e..f7ca30387 100644 --- a/data/rdesktop/make.sh +++ b/data/rdesktop/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup pkg:configure --with-openssl="${PKG_ROOT}/usr" make pkg:install diff --git a/data/readline/make.sh b/data/readline/make.sh index a1b07204a..3eab9f214 100644 --- a/data/readline/make.sh +++ b/data/readline/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup pkg:configure ac_cv_func_strcoll_works=yes bash_cv_func_sigsetjmp=present bash_cv_func_ctype_nonascii=no bash_cv_must_reinstall_sighandlers=no bash_cv_func_strcoll_broken=yes make pkg:install diff --git a/data/rpl/make.sh b/data/rpl/make.sh index a2d6f6ae5..7dac292bc 100644 --- a/data/rpl/make.sh +++ b/data/rpl/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup autoconf pkg:configure make diff --git a/data/rsync/make.sh b/data/rsync/make.sh index 9b2e673be..29be3d25b 100644 --- a/data/rsync/make.sh +++ b/data/rsync/make.sh @@ -1,5 +1,4 @@ -tar -zxvf "${PKG_DATA}/rsync-2.6.9.tar.gz" -cd rsync-2.6.9 +pkg:setup pkg:configure make pkg:install diff --git a/data/ruby/make.sh b/data/ruby/make.sh index 49b8fc237..b99556a4b 100644 --- a/data/ruby/make.sh +++ b/data/ruby/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup autoconf pkg:configure ac_cv_func_setpgrp_void=yes rb_cv_binary_elf=no rb_cv_stack_grow_dir=-1 rb_cv_bsd_signal=yes ac_cv_type_getgroups=gid_t ac_cv_c_stack_direction=-1 ac_cv_func_memcmp_working=yes --enable-wide-getaddrinfo make diff --git a/data/ruby/mdns.diff b/data/ruby/mdns.diff index c4445ed63..678511f41 100644 --- a/data/ruby/mdns.diff +++ b/data/ruby/mdns.diff @@ -7,16 +7,18 @@ diff -ru ruby-1.8.6-p111/main.c ruby-1.8.6-p111+iPhone/main.c /********************************************************************** main.c - -@@ -34,6 +36,13 @@ +@@ -34,6 +36,15 @@ int argc; char **argv, **envp; { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + #ifdef _WIN32 NtInitialize(&argc, &argv); diff --git a/data/rubygems/make.sh b/data/rubygems/make.sh index a8de2a0bc..ce845de8a 100644 --- a/data/rubygems/make.sh +++ b/data/rubygems/make.sh @@ -1,6 +1,5 @@ shopt -s extglob -pkg:extract -cd * +pkg:setup ruby setup.rb --prefix="${PKG_DEST}/usr" pkg: sed -i -e 's/^#!.*/#!\/usr\/bin\/ruby/' /usr/bin/gem /usr/bin/update_rubygems pkg: mkdir -p /usr/lib/ruby/site_ruby/1.8 diff --git a/data/rubyobjc_/make.sh b/data/rubyobjc_/make.sh index bddcec3f2..454088fb6 100644 --- a/data/rubyobjc_/make.sh +++ b/data/rubyobjc_/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup pkg: cp -a %/UIKit.xml bridged cd objc for bridge in foundation uikit; do diff --git a/data/rzip/make.sh b/data/rzip/make.sh index 6f1113365..16c8773aa 100644 --- a/data/rzip/make.sh +++ b/data/rzip/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup autoconf pkg:configure make diff --git a/data/screen/make.sh b/data/screen/make.sh index 2408fe6d3..58b56b640 100644 --- a/data/screen/make.sh +++ b/data/screen/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup autoconf pkg:configure --disable-pam --with-sys-screenrc=/etc/screenrc make diff --git a/data/sed/make.sh b/data/sed/make.sh index 015b17dd2..38c45b684 100644 --- a/data/sed/make.sh +++ b/data/sed/make.sh @@ -1,6 +1,4 @@ -tar -zxvf "${PKG_DATA}/sed-4.1.5.tar.gz" -cd sed-4.1.5 -pkg:patch +pkg:setup pkg:configure make pkg:install diff --git a/data/sgrep/make.sh b/data/sgrep/make.sh index 8e0b49bb3..e1d044138 100644 --- a/data/sgrep/make.sh +++ b/data/sgrep/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make CC="${PKG_TARG}"-gcc pkg:install diff --git a/data/shell-cmds/make.sh b/data/shell-cmds/make.sh index a22062488..a7c235486 100644 --- a/data/shell-cmds/make.sh +++ b/data/shell-cmds/make.sh @@ -1,5 +1,4 @@ -tar -zxvf "${PKG_DATA}/shell_cmds-116.tar.gz" -cd shell_cmds-116 +pkg:setup mkdir -p "${PKG_DEST}/usr/bin" for bin in killall mktemp renice script time which; do ${PKG_TARG}-gcc -o "${bin}/${bin}" "${bin}"/*.c -D'__FBSDID(x)=' diff --git a/data/sm/make.sh b/data/sm/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/sm/make.sh +++ b/data/sm/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/spidermonkey/make.sh b/data/spidermonkey/make.sh index 75fce99de..0053653f1 100644 --- a/data/spidermonkey/make.sh +++ b/data/spidermonkey/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd js -pkg:patch +pkg:setup cd src mkdir Darwin_DBG.OBJ cp -a "${PKG_DATA}"/jsautocfg.h Darwin_DBG.OBJ diff --git a/data/spidermonkey/mdns.diff b/data/spidermonkey/mdns.diff index 656531817..460ec73e3 100644 --- a/data/spidermonkey/mdns.diff +++ b/data/spidermonkey/mdns.diff @@ -7,16 +7,18 @@ diff -ru js/src/js.c js+iPhone/src/js.c /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sw=4 et tw=78: * -@@ -3033,6 +3035,13 @@ +@@ -3033,6 +3035,15 @@ int main(int argc, char **argv, char **envp) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + int stackDummy; JSRuntime *rt; diff --git a/data/sqlite3/_metadata/priority b/data/sqlite3/_metadata/priority index ea5b3d7ee..1c96b78c1 100644 --- a/data/sqlite3/_metadata/priority +++ b/data/sqlite3/_metadata/priority @@ -1 +1 @@ -important ++important diff --git a/data/sqlite3/make.sh b/data/sqlite3/make.sh index dad8d87dc..452a4bfd5 100644 --- a/data/sqlite3/make.sh +++ b/data/sqlite3/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install -rm -f "${PKG_DEST}"/usr/lib/libsqlite3*.dylib diff --git a/data/srelay/make.sh b/data/srelay/make.sh index 03a3e0119..21d0f77c9 100644 --- a/data/srelay/make.sh +++ b/data/srelay/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup autoconf pkg:configure make diff --git a/data/stunnel/make.sh b/data/stunnel/make.sh index 05f3c03cc..eb4e10fef 100644 --- a/data/stunnel/make.sh +++ b/data/stunnel/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup pkg:configure ac_cv_file___dev_urandom_=yes ac_cv_file___dev_ptmx_=yes ac_cv_file___dev_ptc_=no --with-ssl="${PKG_ROOT}/usr" touch stunnel.pem make openssl="$(which openssl)" diff --git a/data/subversion/make.sh b/data/subversion/make.sh index f28724ec4..96932fd82 100644 --- a/data/subversion/make.sh +++ b/data/subversion/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup autoconf CFLAGS="-DSVN_NEON_0_25 -DSVN_NEON_0_26" pkg:configure --enable-maintainer-mode --disable-keychain --with-neon="$(PKG_DEST_ neon)/usr" --with-apr="$(PKG_WORK_ apr)/apr-1.2.12" --with-apr-util="$(PKG_WORK_ apr-util)/apr-util-1.2.12" make diff --git a/data/subversion/mdns.diff b/data/subversion/mdns.diff index 5455cba9b..636a3aa37 100644 --- a/data/subversion/mdns.diff +++ b/data/subversion/mdns.diff @@ -7,16 +7,18 @@ diff -ru subversion-1.4.6/contrib/client-side/mucc.c subversion-1.4.6+iPhone/con /* Multiple URL Command Client Combine a list of mv, cp and rm commands on URLs into a single commit. -@@ -445,6 +447,13 @@ +@@ -445,6 +447,15 @@ int main(int argc, const char **argv) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + apr_pool_t *pool = init("mucc"); apr_array_header_t *actions = apr_array_make(pool, 1, sizeof(struct action*)); @@ -30,16 +32,18 @@ diff -ru subversion-1.4.6/subversion/svn/main.c subversion-1.4.6+iPhone/subversi /* * main.c: Subversion command line client. * -@@ -815,6 +817,13 @@ +@@ -815,6 +817,15 @@ int main(int argc, const char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + svn_error_t *err; apr_allocator_t *allocator; @@ -53,16 +57,18 @@ diff -ru subversion-1.4.6/subversion/svnadmin/main.c subversion-1.4.6+iPhone/sub /* * main.c: Subversion server administration tool. * -@@ -1148,6 +1150,13 @@ +@@ -1148,6 +1150,15 @@ int main(int argc, const char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + svn_error_t *err; apr_status_t apr_err; @@ -76,16 +82,18 @@ diff -ru subversion-1.4.6/subversion/svnlook/main.c subversion-1.4.6+iPhone/subv /* * main.c: Subversion server inspection tool. * -@@ -1858,6 +1860,13 @@ +@@ -1858,6 +1860,15 @@ int main(int argc, const char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + svn_error_t *err; apr_status_t apr_err; @@ -99,16 +107,18 @@ diff -ru subversion-1.4.6/subversion/svnserve/main.c subversion-1.4.6+iPhone/sub /* * main.c : Main control function for svnserve * -@@ -297,6 +299,13 @@ +@@ -297,6 +299,15 @@ int main(int argc, const char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + enum run_mode run_mode = run_mode_unspecified; svn_boolean_t foreground = FALSE; @@ -122,16 +132,18 @@ diff -ru subversion-1.4.6/subversion/svnsync/main.c subversion-1.4.6+iPhone/subv /* * ==================================================================== * Copyright (c) 2005-2006 CollabNet. All rights reserved. -@@ -1295,6 +1297,13 @@ +@@ -1295,6 +1297,15 @@ int main(int argc, const char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + const svn_opt_subcommand_desc_t *subcommand = NULL; apr_array_header_t *received_opts; @@ -145,16 +157,18 @@ diff -ru subversion-1.4.6/subversion/svnversion/main.c subversion-1.4.6+iPhone/s /* * ==================================================================== * Copyright (c) 2003-2004 CollabNet. All rights reserved. -@@ -108,6 +110,13 @@ +@@ -108,6 +110,15 @@ int main(int argc, const char *argv[]) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + const char *wc_path, *trail_url; apr_allocator_t *allocator; diff --git a/data/sudo/_metadata/conffiles b/data/sudo/_metadata/conffiles new file mode 100644 index 000000000..30897f878 --- /dev/null +++ b/data/sudo/_metadata/conffiles @@ -0,0 +1 @@ +/etc/sudoers diff --git a/data/sudo/make.sh b/data/sudo/make.sh index bd48d8d9e..60d618f78 100644 --- a/data/sudo/make.sh +++ b/data/sudo/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup pkg:configure sudo_cv_uid_t_len=10 sudo_cv_type_long_is_quad=no --without-pam --with-env-editor make pkg:install diff --git a/data/system-cmds/make.sh b/data/system-cmds/make.sh index 4981007fa..329c7be27 100644 --- a/data/system-cmds/make.sh +++ b/data/system-cmds/make.sh @@ -1,7 +1,5 @@ shopt -s extglob -pkg:extract -cd * -pkg:patch +pkg:setup cd getconf.tproj for gperf in *.gperf; do diff --git a/data/tar/make.sh b/data/tar/make.sh index 47db2f3eb..59120d0f1 100644 --- a/data/tar/make.sh +++ b/data/tar/make.sh @@ -1,6 +1,4 @@ -tar -zxvf "${PKG_DATA}/tar-1.19.tar.gz" -cd tar-1.19 -pkg:patch +pkg:setup pkg:configure make pkg:install diff --git a/data/tcpdump/make.sh b/data/tcpdump/make.sh index 470217b6c..f58a4da23 100644 --- a/data/tcpdump/make.sh +++ b/data/tcpdump/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup Xprefix="$(PKG_DEST_ openssl)/usr" pkg:configure make pkg:install diff --git a/data/tcsh/make.sh b/data/tcsh/make.sh index 5e8066a60..fdcbce7d7 100644 --- a/data/tcsh/make.sh +++ b/data/tcsh/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup pkg:configure ac_cv_func_setpgrp_void=yes make pkg:install diff --git a/data/tiff/make.sh b/data/tiff/make.sh index df8e2a88c..7dac292bc 100644 --- a/data/tiff/make.sh +++ b/data/tiff/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup autoconf pkg:configure make diff --git a/data/top/make.sh b/data/top/make.sh index 072bcdce9..e7a07b185 100644 --- a/data/top/make.sh +++ b/data/top/make.sh @@ -1,5 +1,3 @@ -pkg:extract -cd * -pkg:patch +pkg:setup make CC="${PKG_TARG}-gcc" AR="${PKG_TARG}-ar" RANLIB="${PKG_TARG}-ranlib" make install STRIP="${PKG_TARG}-strip" DSTROOT="${PKG_DEST}" diff --git a/data/uikittools/make.sh b/data/uikittools/make.sh index 3ea6619c5..ec13c70bc 100644 --- a/data/uikittools/make.sh +++ b/data/uikittools/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup make pkg: mkdir -p /usr/bin pkg: cp -a uialert /usr/bin diff --git a/data/unrar/make.sh b/data/unrar/make.sh index ab228ce28..d4a5d1755 100644 --- a/data/unrar/make.sh +++ b/data/unrar/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup make -f makefile.unix CXX="${PKG_TARG}-g++" all pkg: mkdir -p /usr/bin pkg: cp -a unrar /usr/bin diff --git a/data/unzip/make.sh b/data/unzip/make.sh index 8a4b8a9b5..57f85234b 100644 --- a/data/unzip/make.sh +++ b/data/unzip/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup cp unix/Makefile . make unzips CC=${PKG_TARG}-gcc CF='-O3 -Wall -I. -DBSD -DUNIX' LF2= pkg:usrbin unzip funzip unzipsfx diff --git a/data/uuid/make.sh b/data/uuid/make.sh index ea24fc844..17b01d5cb 100644 --- a/data/uuid/make.sh +++ b/data/uuid/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup pkg:configure ac_cv_va_copy=yes make pkg:install diff --git a/data/vfdecrypt/make.sh b/data/vfdecrypt/make.sh index df7db7d63..e22c819f1 100644 --- a/data/vfdecrypt/make.sh +++ b/data/vfdecrypt/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup make CC=${PKG_TARG}-gcc pkg: mkdir -p /usr/bin pkg: mv vfdecrypt /usr/bin diff --git a/data/vim/make.sh b/data/vim/make.sh index b8e239331..619621a3e 100644 --- a/data/vim/make.sh +++ b/data/vim/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup cd src autoconf cd .. diff --git a/data/vorbis/make.sh b/data/vorbis/make.sh index 1b3c1b776..452a4bfd5 100644 --- a/data/vorbis/make.sh +++ b/data/vorbis/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup pkg:configure make pkg:install diff --git a/data/vpnc_/make.sh b/data/vpnc_/make.sh index df6b374c3..68beafe5e 100644 --- a/data/vpnc_/make.sh +++ b/data/vpnc_/make.sh @@ -1,5 +1,3 @@ -pkg:extract -cd * -pkg:patch +pkg:setup make CC=${PKG_TARG}-gcc PREFIX=/usr/local pkg:install diff --git a/data/wget/make.sh b/data/wget/make.sh index c4eebd321..a55060e86 100644 --- a/data/wget/make.sh +++ b/data/wget/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup pkg:configure --with-libssl-prefix="$(PKG_DEST_ openssl)" make pkg:install diff --git a/data/wget/mdns.diff b/data/wget/mdns.diff index 0d19bf9a7..2ca9bc131 100644 --- a/data/wget/mdns.diff +++ b/data/wget/mdns.diff @@ -7,16 +7,18 @@ diff -ru wget-1.9.1/src/main.c wget-1.9.1+iPhone/src/main.c /* Command line parsing. Copyright (C) 1995, 1996, 1997, 1998, 2000, 2001, 2002 Free Software Foundation, Inc. -@@ -267,6 +269,13 @@ +@@ -267,6 +269,15 @@ int main (int argc, char *const *argv) { ++#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 + struct nlist nl[2]; + memset(nl, 0, sizeof(nl)); + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; + nlist("/usr/lib/libc.dylib", nl); + if (nl[0].n_type != N_UNDF) + *(int *) nl[0].n_value = 0; ++#endif + char **url, **t; int i, c, nurl, status, append_to_log; diff --git a/data/whois/make.sh b/data/whois/make.sh index cdb366196..99d56c1f4 100644 --- a/data/whois/make.sh +++ b/data/whois/make.sh @@ -1,4 +1,3 @@ -pkg:extract -cd * +pkg:setup make CC="${PKG_TARG}-gcc" pkg:usrbin whois diff --git a/data/x11/make.sh b/data/x11/make.sh index d97871b34..e9f20e906 100644 --- a/data/x11/make.sh +++ b/data/x11/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure --enable-malloc0returnsnull gcc -c -o src/util/makekeys-makekeys.o src/util/makekeys.c gcc -o src/util/makekeys src/util/makekeys-makekeys.o diff --git a/data/x264/make.sh b/data/x264/make.sh index 96731bd62..81fa96b10 100644 --- a/data/x264/make.sh +++ b/data/x264/make.sh @@ -1,6 +1,4 @@ -pkg:extract -cd * -pkg:patch +pkg:setup CC=${PKG_TARG}-gcc pkg:configure make pkg:install diff --git a/data/xau/make.sh b/data/xau/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/xau/make.sh +++ b/data/xau/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/xcb-proto/make.sh b/data/xcb-proto/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/xcb-proto/make.sh +++ b/data/xcb-proto/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/xcb/make.sh b/data/xcb/make.sh index a9f265a6e..b72d32ad1 100644 --- a/data/xcb/make.sh +++ b/data/xcb/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make XCBPROTO_XCBINCLUDEDIR=$(PKG_DEST_ xcb-proto)/usr/share/xcb pkg:install diff --git a/data/xext/make.sh b/data/xext/make.sh index 7fea028a0..8a5dec098 100644 --- a/data/xext/make.sh +++ b/data/xext/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure --enable-malloc0returnsnull make pkg:install diff --git a/data/xextproto/make.sh b/data/xextproto/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/xextproto/make.sh +++ b/data/xextproto/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/xeyes/make.sh b/data/xeyes/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/xeyes/make.sh +++ b/data/xeyes/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/xi/make.sh b/data/xi/make.sh index 7fea028a0..8a5dec098 100644 --- a/data/xi/make.sh +++ b/data/xi/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure --enable-malloc0returnsnull make pkg:install diff --git a/data/xineramaproto/make.sh b/data/xineramaproto/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/xineramaproto/make.sh +++ b/data/xineramaproto/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/xml2/make.sh b/data/xml2/make.sh index d32ec9e88..b337ed376 100644 --- a/data/xml2/make.sh +++ b/data/xml2/make.sh @@ -1,5 +1,3 @@ -pkg:extract -cd * -pkg:patch +pkg:setup make CC=${PKG_TARG}-gcc CFLAGS='-O2 -I/home/saurik/iphone/sysroot/usr/include/libxml2 -I/home/saurik/iphone/sysroot/usr/include/libxml2/libxml' LDLIBS=-lxml2 pkg:usrbin 2html 2xml csv2 html2 xml2 diff --git a/data/xmu/make.sh b/data/xmu/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/xmu/make.sh +++ b/data/xmu/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/xproto/make.sh b/data/xproto/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/xproto/make.sh +++ b/data/xproto/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/xt/make.sh b/data/xt/make.sh index d3d74b7b4..e16b4aa55 100644 --- a/data/xt/make.sh +++ b/data/xt/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure --enable-malloc0returnsnull gcc -c -o util/makestrs-makestrs.o util/makestrs.c gcc -o util/makestrs util/makestrs-makestrs.o diff --git a/data/xtrans/make.sh b/data/xtrans/make.sh index 35a54076e..452a4bfd5 100644 --- a/data/xtrans/make.sh +++ b/data/xtrans/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure make pkg:install diff --git a/data/zsh/make.sh b/data/zsh/make.sh index 99c609aec..aeea49c92 100644 --- a/data/zsh/make.sh +++ b/data/zsh/make.sh @@ -1,5 +1,4 @@ -pkg:extract -cd * +pkg:setup pkg:configure ac_cv_c_stack_direction=-1 zsh_cv_rlimit_vmem_is_rss=no zsh_cv_rlimit_vmem_is_as=no zsh_cv_rlimit_rss_is_as=yes zsh_cv_sys_fifo=no zsh_cv_sys_link=yes zsh_cv_sys_killesrch=yes zsh_cv_sys_sigsuspend=yes zsh_cv_sys_tcsetpgrp=yes zsh_cv_sys_getpwnam_faked=no zsh_cv_sys_elf=no zsh_cv_func_dlsym_needs_underscore=no --bindir=/bin make pkg:install diff --git a/exec.sh b/exec.sh index be9d554aa..09eba9f9c 100755 --- a/exec.sh +++ b/exec.sh @@ -15,7 +15,9 @@ PKG_INCL= PKG_LIBS= PKG_PKGS= -for dep in $(find -L "${PKG_DATA}"/_metadata -name '*.dep' | cut -d '/' -f - | sort -u); do +for dep in $({ + find -L "${PKG_DATA}"/_metadata -name '*.dep' | cut -d '/' -f - +} | sort -u); do DEP_NAME=$(basename "${dep}" .dep) DEP_DEST=$(PKG_DEST_ "${DEP_NAME}") PKG_PATH=${PKG_PATH}:${DEP_DEST} @@ -47,5 +49,6 @@ CPLUS_INCLUDE_PATH= \ GCC_EXEC_PREFIX=${PKG_PFIX}/lib/gcc \ LD_LIBRARY_PATH=${PKG_LIBS} \ LIBRARY_PATH=${PKG_LIBS} \ +MIGCC=${PKG_TARG}-gcc \ PKG_CONFIG_PATH=${PKG_PKGS} \ "$@" diff --git a/folders.sh b/folders.sh index 0a3fcfc90..0021e7f71 100755 --- a/folders.sh +++ b/folders.sh @@ -7,13 +7,13 @@ function PKG_DATA_() { export -f PKG_DATA_ function PKG_WORK_() { - echo "${PKG_BASE}/work/${PKG_TARG}/$1" + echo "${PKG_BASE}/work/${PKG_ARCH}/$1" } export -f PKG_WORK_ function PKG_DEST_() { - echo "${PKG_BASE}/dest/${PKG_TARG}/$1" + echo "${PKG_BASE}/dest/${PKG_ARCH}/$1" } export -f PKG_DEST_ diff --git a/helper.sh b/helper.sh index d02ccd8a2..ef67c3aea 100755 --- a/helper.sh +++ b/helper.sh @@ -1,6 +1,6 @@ #!/bin/bash -export PKG_TARG=arm-apple-darwin +source "${PKG_BASE}/architect.sh" export PKG_ROOT=$("${PKG_TARG}-gcc" -dumpspecs | grep '%{isysroot' | sed -e 's/.*%{isysroot\*:\([^}]*\)}.*/\1/; s/;:/\n/g' | sed -e 's/^-syslibroot //' | tail -n 1) export PKG_PFIX=$("${PKG_TARG}-gcc" -v 2>&1 | grep -- --prefix | sed -e 's/.*--prefix=\([^ ]*\).*/\1/') @@ -11,7 +11,7 @@ export PKG_DATA=$(PKG_DATA_ "${PKG_NAME}") export PKG_WORK=$(PKG_WORK_ "${PKG_NAME}") export PKG_DEST=$(PKG_DEST_ "${PKG_NAME}") -export PKG_STAT=${PKG_BASE}/stat/${PKG_TARG}/${PKG_NAME} +export PKG_STAT=${PKG_BASE}/stat/${PKG_ARCH}/${PKG_NAME} export PKG_DATA=$(echo "${PKG_BASE}"/data/"${PKG_NAME}"?(_)) export PKG_VRSN=$(cat "${PKG_DATA}/_metadata/version") export PKG_PRIO=$(cat "${PKG_DATA}/_metadata/priority") diff --git a/make.sh b/make.sh index a5ca2311a..79c3cd6d9 100755 --- a/make.sh +++ b/make.sh @@ -22,7 +22,7 @@ for DEP_NAME in "${PKG_DEPS[@]}"; do done export PKG_HASH=$({ - "${PKG_BASE}"/util/catdir.sh -L "${PKG_DATA}" \( -name '.svn' -o -name '_*' \) -prune -o + "${PKG_BASE}"/util/catdir.sh "${PKG_DATA}" -L \( -name '.svn' -o -name '_*' \) -prune -o for DEP_NAME in "${PKG_DEPS[@]}"; do "${PKG_BASE}"/util/catdir.sh "$(PKG_DEST_ "${DEP_NAME}")" @@ -46,6 +46,9 @@ rm -rf "${PKG_WORK}" mkdir -p "${PKG_WORK}" function pkg:patch() { + pkg:libtool_ libtool + pkg:libtool_ ltmain.sh + for diff in "${PKG_DATA}"/*.diff; do patch -p1 <"${diff}" done @@ -82,11 +85,23 @@ export -f pkg:autoconf export PKG_CONF=./configure -function pkg:configure() { - for ltmain in $(find -name ltmain.sh); do +function pkg:libtool_() { + for ltmain in $(find -name "$1"); do patch -r/dev/null "${ltmain}" "${PKG_BASE}/util/libtool.diff" || true done +} + +export -f pkg:libtool_ +function pkg:setup() { + pkg:extract + cd * + pkg:patch +} + +export -f pkg:setup + +function pkg:configure() { PKG_CONFIG="$(realpath "${PKG_BASE}/util/pkg-config.sh")" \ "${PKG_CONF}" \ --build=x86_64-unknown-linux-gnu \ @@ -108,7 +123,7 @@ export -f pkg:install function pkg:extract() { for tgz in "${PKG_DATA}"/{*.tar.gz,*.tgz}; do - tar -zxvf "${tgz}" + tar -zxf "${tgz}" done for zip in "${PKG_DATA}"/*.zip; do @@ -116,7 +131,7 @@ function pkg:extract() { done for tbz2 in "${PKG_DATA}"/*.tar.bz2; do - tar -jxvf "${tbz2}" + tar -jxf "${tbz2}" done } diff --git a/package.sh b/package.sh index 5c0f8b2a8..ebba06b2d 100755 --- a/package.sh +++ b/package.sh @@ -11,7 +11,7 @@ export PKG_MAKE=$0 export PKG_NAME=${1%_} export PKG_BASE=$(realpath "$(dirname "$0")") -. "${PKG_BASE}/helper.sh" +source "${PKG_BASE}/helper.sh" ./make.sh "${PKG_NAME}" @@ -30,6 +30,10 @@ if [[ -e "${PKG_DATA}"/_metadata/prerm ]]; then cp -a "${PKG_DATA}"/_metadata/prerm "$(pkg_ /DEBIAN)" fi +if [[ -e "${PKG_DATA}"/_metadata/conffiles ]]; then + cp -a "${PKG_DATA}"/_metadata/conffiles "$(pkg_ /DEBIAN)" +fi + export PKG_HASH=$(util/catdir.sh "${PKG_DEST}" | md5sum | cut -d ' ' -f 1) echo "hashed dest ${PKG_NAME} to: ${PKG_HASH}" @@ -42,7 +46,7 @@ else PKG_RVSN=$((${PKG_RVSN} + 1)) fi - export PKG_PACK=${PKG_BASE}/debs/${PKG_NAME}_${PKG_VRSN}-${PKG_RVSN}_darwin-arm.deb + export PKG_PACK=${PKG_BASE}/debs/${PKG_NAME}_${PKG_VRSN}-${PKG_RVSN}_${PKG_ARCH}.deb if [[ -e ${PKG_PACK} ]]; then echo "package ${PKG_PACK} already exists..." else diff --git a/people/ste b/people/ste new file mode 100644 index 000000000..bf890c605 --- /dev/null +++ b/people/ste @@ -0,0 +1 @@ +Ste diff --git a/rehash.sh b/rehash.sh new file mode 100755 index 000000000..0dbb066e4 --- /dev/null +++ b/rehash.sh @@ -0,0 +1,37 @@ +#!/bin/bash +set -e +shopt -s extglob nullglob + +if [[ $# == 0 ]]; then + echo "usage: $0 " + exit +fi + +export PKG_MAKE=$0 +export PKG_NAME=${1%_} + +export PKG_BASE=$(realpath "$(dirname "$0")") +source "${PKG_BASE}/helper.sh" + +./make.sh "${PKG_NAME}" + +pkg: mkdir -p /DEBIAN +./control.sh "${PKG_NAME}" control >"$(pkg_ /DEBIAN/control)" + +if [[ -e "${PKG_DATA}"/_metadata/preinst ]]; then + cp -a "${PKG_DATA}"/_metadata/preinst "$(pkg_ /DEBIAN)" +fi + +if [[ -e "${PKG_DATA}"/_metadata/postinst ]]; then + cp -a "${PKG_DATA}"/_metadata/postinst "$(pkg_ /DEBIAN)" +fi + +if [[ -e "${PKG_DATA}"/_metadata/prerm ]]; then + cp -a "${PKG_DATA}"/_metadata/prerm "$(pkg_ /DEBIAN)" +fi + +export PKG_HASH=$(util/catdir.sh "${PKG_DEST}" | md5sum | cut -d ' ' -f 1) +echo "hashed dest ${PKG_NAME} to: ${PKG_HASH}" +echo "${PKG_HASH}" >"${PKG_STAT}/dest-md5" + +pkg: rm -rf /DEBIAN diff --git a/util/catdir.sh b/util/catdir.sh index b23b94125..19dfd2461 100755 --- a/util/catdir.sh +++ b/util/catdir.sh @@ -1,3 +1,5 @@ #!/bin/bash +cd "$1" +shift find -H "$@" -type l -printf '%p -> %l\n' -o -printf '%p (%U/%G/%#m)\n' | sort find -H "$@" -type f -print0 | sort -z | xargs -0 cat diff --git a/util/collect2 b/util/collect2 index 30cacb773..864805335 100755 --- a/util/collect2 +++ b/util/collect2 @@ -37,10 +37,16 @@ if [[ "${darwin+@}" ]]; then flags[${#flags[@]}]=-no_uuid if [[ "${PKG_PATH+@}" ]]; then - flags=("${flags[@]}"$(echo "${PKG_PATH}:" | while read -r -d ':' path; do + flags=("${flags[@]}"$({ + echo "${PKG_PATH}" | tr ':' $'\n' + + for DEP_NAME in libgcc sqlite3; do + echo "$(PKG_DEST_ "${DEP_NAME}")" + done + } | while read -r path; do find "${path}" -name '*.dylib' -print0 | while read -r -d $'\0' dylib_file; do dylib_name=${dylib_file#${path}} - echo " -dylib_file ${dylib_name}:${dylib_file}" + echo -n " -dylib_file ${dylib_name}:${dylib_file}" done done)) fi diff --git a/util/configure.sh b/util/configure.sh index 162ea207c..396c6f59b 100755 --- a/util/configure.sh +++ b/util/configure.sh @@ -7,4 +7,4 @@ if [[ -z $PKG_CONF ]]; then PKG_CONF=./configure fi -PKG_ROOT=/home/saurik/iphone/sysroot PKG_CONFIG="$(realpath ../../../util/pkg-config.sh) --define-variable=prefix=/home/saurik/iphone/sysroot/usr" PKG_CONFIG_PATH=/home/saurik/iphone/sysroot/usr/lib/pkgconfig $PKG_CONF --prefix=/usr --host=arm-apple-darwin8 --enable-static=no --enable-shared=yes "$@" +PKG_ROOT=/home/saurik/iphone/sysroot PKG_CONFIG="$(realpath ../../../util/pkg-config.sh) --define-variable=prefix=/home/saurik/iphone/sysroot/usr" PKG_CONFIG_PATH=/home/saurik/iphone/sysroot/usr/lib/pkgconfig $PKG_CONF --prefix=/usr --host=arm-apple-darwin9 --enable-static=no --enable-shared=yes "$@" -- cgit v1.2.3