summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Manison <amanison@anselsystems.com>2011-12-17 18:31:22 +0000
committerAndrew Manison <amanison@anselsystems.com>2011-12-17 18:31:22 +0000
commita9fef479eb56b8bc7f984e3998c6bdc55ed340ed (patch)
tree90b9ed0ddcde1c2a2fd6cfca212c376170b375f9
parent2c4bbae51bb79c8492e2701a2085bf060abc5248 (diff)
parent703b9580ec2d7a0f919b63cd409a526933a8eaab (diff)
downloadaports-a9fef479eb56b8bc7f984e3998c6bdc55ed340ed.tar.bz2
aports-a9fef479eb56b8bc7f984e3998c6bdc55ed340ed.tar.xz
Merge remote-tracking branch 'alpine/master'
-rw-r--r--main/acf-dnsmasq/APKBUILD6
-rw-r--r--main/amavisd-new/APKBUILD8
-rw-r--r--main/asterisk/APKBUILD16
-rw-r--r--main/asterisk/ASTERISK-18976.patch (renamed from testing/asterisk/ASTERISK-18976.patch)0
-rw-r--r--main/asterisk/ASTERISK-18977.patch (renamed from testing/asterisk/ASTERISK-18977.patch)0
-rw-r--r--main/asterisk/ASTERISK-18994.patch (renamed from testing/asterisk/ASTERISK-18994.patch)0
-rw-r--r--main/asterisk/ASTERISK-18995.patch (renamed from testing/asterisk/ASTERISK-18995.patch)0
-rw-r--r--main/coova-chilli/APKBUILD5
-rw-r--r--main/dhcp/APKBUILD6
-rw-r--r--main/doxygen/APKBUILD4
-rw-r--r--main/firefox/APKBUILD2
-rw-r--r--main/fts/APKBUILD56
-rw-r--r--main/fts/fts-header-correctness.patch20
-rw-r--r--main/fts/fts-uclibc.patch45
-rw-r--r--main/fts/stdint.patch10
-rw-r--r--main/gparted/APKBUILD4
-rw-r--r--main/ipsec-tools/90-dead-on-initial-contact.patch11
-rw-r--r--main/ipsec-tools/APKBUILD6
-rw-r--r--main/libc0.9.32/APKBUILD14
-rw-r--r--main/libc0.9.32/uclibcconfig.arm2
-rw-r--r--main/libc0.9.32/uclibcconfig.powerpc2
-rw-r--r--main/libc0.9.32/uclibcconfig.x862
-rw-r--r--main/libc0.9.32/uclibcconfig.x86_642
-rw-r--r--main/libusb/APKBUILD28
-rw-r--r--main/mpt-status/APKBUILD55
-rw-r--r--main/mysql/APKBUILD4
-rw-r--r--main/nmap/APKBUILD4
-rw-r--r--main/open-vm-tools-grsec/APKBUILD9
-rw-r--r--main/open-vm-tools-vserver/APKBUILD9
-rw-r--r--main/open-vm-tools/APKBUILD27
-rw-r--r--main/open-vm-tools/ecvt.patch205
-rw-r--r--main/open-vm-tools/getloadavg-uclibc.patch19
-rw-r--r--main/open-vm-tools/procmgrposix.patch11
-rw-r--r--main/open-vm-tools/uclibc-stubs.patch11
-rw-r--r--main/openrc/0001-fsck-add-C0-and-T-options-unless-fsck-is-busybox.patch2
-rw-r--r--main/openrc/APKBUILD10
-rw-r--r--main/openrc/hwclock-hctosys.patch2
-rw-r--r--main/pidgin/APKBUILD20
-rw-r--r--main/pidgin/pidgin-libm.patch10
-rw-r--r--main/roundcubemail/APKBUILD4
-rw-r--r--main/rsync/APKBUILD9
-rw-r--r--main/v4l-utils/APKBUILD18
-rw-r--r--main/valgrind/APKBUILD9
-rw-r--r--main/valgrind/uclibc.patch10
-rw-r--r--main/xulrunner/APKBUILD6
-rw-r--r--main/xulrunner/mozconfig2
-rw-r--r--main/xulrunner/xulrunner-mozalloc.patch11
-rw-r--r--testing/arpalert/APKBUILD48
-rwxr-xr-xtesting/arpalert/arpalert.initd18
-rw-r--r--testing/asterisk/100-uclibc-daemon.patch44
-rw-r--r--testing/asterisk/101-caps-uclibc.patch17
-rw-r--r--testing/asterisk/102-gsm-pic.patch54
-rw-r--r--testing/asterisk/400-bug-227.patch15
-rw-r--r--testing/asterisk/APKBUILD176
-rw-r--r--testing/asterisk/asterisk.confd91
-rw-r--r--testing/asterisk/asterisk.initd251
-rw-r--r--testing/asterisk/asterisk.logrotate17
-rw-r--r--testing/asterisk/asterisk.post-install11
-rw-r--r--testing/asterisk/asterisk.pre-install12
-rw-r--r--testing/asterisk/asterisk.pre-upgrade12
-rw-r--r--testing/dev86/APKBUILD81
-rw-r--r--testing/dev86/dev86-long.patch17
-rw-r--r--testing/dev86/dev86-noelks.patch15
-rw-r--r--testing/dev86/dev86-overflow.patch24
-rw-r--r--testing/dev86/dev86-pic.patch20
-rw-r--r--testing/dev86/dev86-print-overflow.patch27
-rw-r--r--testing/fakechroot/APKBUILD41
-rw-r--r--testing/lua-cjson/APKBUILD37
-rw-r--r--testing/mathomatic/APKBUILD40
-rw-r--r--testing/mathomatic/busybox.patch11
-rw-r--r--testing/plymouth/APKBUILD65
-rw-r--r--testing/plymouth/plymouth-rpmatch.patch17
72 files changed, 693 insertions, 1184 deletions
diff --git a/main/acf-dnsmasq/APKBUILD b/main/acf-dnsmasq/APKBUILD
index 6b6b03d6b..2d72758a9 100644
--- a/main/acf-dnsmasq/APKBUILD
+++ b/main/acf-dnsmasq/APKBUILD
@@ -1,17 +1,17 @@
# Contributor: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
pkgname=acf-dnsmasq
-pkgver=0.3.0
+pkgver=0.3.1
pkgrel=0
pkgdesc="A web-based system administration interface for dnsmasq"
url="http://git.alpinelinux.org/cgit/acf-dnsmasq"
arch="noarch"
license="GPL-2"
depends="acf-core lua dnsmasq"
-source="http://git.alpinelinux.org/cgit/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2"
+source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2"
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}
-md5sums="5c1843623c805fbf9be4dcde32049206 acf-dnsmasq-0.3.0.tar.bz2"
+md5sums="1f50aac0defc675ccc91135e46b08004 acf-dnsmasq-0.3.1.tar.bz2"
diff --git a/main/amavisd-new/APKBUILD b/main/amavisd-new/APKBUILD
index dae1e264c..419e4d934 100644
--- a/main/amavisd-new/APKBUILD
+++ b/main/amavisd-new/APKBUILD
@@ -1,11 +1,11 @@
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=amavisd-new
-pkgver=2.6.4
-pkgrel=3
+pkgver=2.7.0
+pkgrel=0
pkgdesc="High-performance interface between mailer (MTA) and content checkers"
url="http://www.ijs.si/software/amavisd"
-arch="all"
+arch="noarch"
license="GPL-2"
depends="sed file perl perl-archive-zip perl-convert-tnef
perl-convert-uulib perl-mime-tools perl-mail-tools perl-net-server
@@ -44,4 +44,4 @@ build() {
)
}
-md5sums="03d31657f14cd64c1cb38786214234b4 amavisd-new-2.6.4.tar.gz"
+md5sums="7d85dce11e54598c0b4010aef323eefc amavisd-new-2.7.0.tar.gz"
diff --git a/main/asterisk/APKBUILD b/main/asterisk/APKBUILD
index db6362ac9..b6bb6e6b4 100644
--- a/main/asterisk/APKBUILD
+++ b/main/asterisk/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=asterisk
-pkgver=1.8.8.0_rc5
+pkgver=10.0.0
pkgrel=0
pkgdesc="Asterisk: A Module Open Source PBX System"
url="http://www.asterisk.org/"
@@ -11,7 +11,7 @@ depends=
makedepends="autoconf automake libtool ncurses-dev popt-dev newt-dev zlib-dev
postgresql-dev unixodbc-dev dahdi-tools-dev libpri-dev tar
freetds-dev openssl-dev lua-dev alsa-lib-dev spandsp-dev tiff-dev
- libresample sqlite-dev wget speex-dev"
+ libresample sqlite-dev wget speex-dev libogg-dev"
install="$pkgname.pre-install $pkgname.pre-upgrade $pkgname.post-install"
subpackages="$pkgname-dev $pkgname-doc $pkgname-pgsql $pkgname-odbc
$pkgname-tds $pkgname-fax $pkgname-sample-config:sample $pkgname-sqlite
@@ -20,6 +20,10 @@ source="http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-$
100-uclibc-daemon.patch
101-caps-uclibc.patch
400-bug-227.patch
+ ASTERISK-18976.patch
+ ASTERISK-18977.patch
+ ASTERISK-18994.patch
+ ASTERISK-18995.patch
asterisk.initd
asterisk.confd
asterisk.logrotate"
@@ -28,7 +32,7 @@ _builddir="$srcdir/$pkgname-${pkgver/_/-}"
prepare() {
cd "$_builddir"
- for i in ../[1-9]*.patch; do
+ for i in ../[1-9A]*.patch; do
msg "Apply $i"
patch -p1 < $i || return 1
done
@@ -159,10 +163,14 @@ sound_en() {
_move_dir var/lib/asterisk/sounds/en
}
-md5sums="737c309d970112b39c44ea246e4c9b21 asterisk-1.8.8.0-rc5.tar.gz
+md5sums="6b52336b9dc01eeecb9de2eb2818e127 asterisk-10.0.0.tar.gz
b00c9d98ce2ad445501248a197c6e436 100-uclibc-daemon.patch
6e1129e30c4fd2c25c86c81685a485a9 101-caps-uclibc.patch
79e9634b5054bceb3b8dc246654bb243 400-bug-227.patch
+da5a3c500192dee4275aae5235d25f97 ASTERISK-18976.patch
+1ddadef41aa7120e168738b6f3ed8917 ASTERISK-18977.patch
+0af5e797f0a99d0f81f95e3710baf5b6 ASTERISK-18994.patch
+bc6713f5434e07b79d3afdd155461d72 ASTERISK-18995.patch
0ce3219e05f55af884a7dc6b99c2b276 asterisk.initd
ed31d7ba37bcf8b0346dcf8593c395f0 asterisk.confd
3e65172275684373e1a25c8a11224411 asterisk.logrotate"
diff --git a/testing/asterisk/ASTERISK-18976.patch b/main/asterisk/ASTERISK-18976.patch
index 36c613ff4..36c613ff4 100644
--- a/testing/asterisk/ASTERISK-18976.patch
+++ b/main/asterisk/ASTERISK-18976.patch
diff --git a/testing/asterisk/ASTERISK-18977.patch b/main/asterisk/ASTERISK-18977.patch
index fffce032c..fffce032c 100644
--- a/testing/asterisk/ASTERISK-18977.patch
+++ b/main/asterisk/ASTERISK-18977.patch
diff --git a/testing/asterisk/ASTERISK-18994.patch b/main/asterisk/ASTERISK-18994.patch
index 702e91375..702e91375 100644
--- a/testing/asterisk/ASTERISK-18994.patch
+++ b/main/asterisk/ASTERISK-18994.patch
diff --git a/testing/asterisk/ASTERISK-18995.patch b/main/asterisk/ASTERISK-18995.patch
index cd144847b..cd144847b 100644
--- a/testing/asterisk/ASTERISK-18995.patch
+++ b/main/asterisk/ASTERISK-18995.patch
diff --git a/main/coova-chilli/APKBUILD b/main/coova-chilli/APKBUILD
index c93d5a860..f32af87da 100644
--- a/main/coova-chilli/APKBUILD
+++ b/main/coova-chilli/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=coova-chilli
pkgver=1.2.8
-pkgrel=1
+pkgrel=2
pkgdesc="CoovaChilli is an open source access controller for wireless LAN"
url="http://www.coova.org/"
arch="all"
@@ -37,7 +37,8 @@ build() {
--sysconfdir=/etc \
--with-openssl \
--enable-layer3 \
- --enable-dhcpopt
+ --enable-dhcpopt \
+ --enable-largelimits
make -j1 || return 1
}
diff --git a/main/dhcp/APKBUILD b/main/dhcp/APKBUILD
index 06e8c827c..a5f26da7a 100644
--- a/main/dhcp/APKBUILD
+++ b/main/dhcp/APKBUILD
@@ -1,6 +1,6 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dhcp
-pkgver=4.2.3
+pkgver=4.2.3_p1
_realver=${pkgver/_p/-P}
pkgrel=0
pkgdesc="ISC Dynamic Host Configuration Protocol (DHCP)"
@@ -11,7 +11,7 @@ depends=
makedepends="perl"
install="dhcp.pre-install dhcp.post-install dhcp.pre-upgrade dhcp.post-upgrade"
subpackages="$pkgname-doc $pkgname-dev dhclient dhcrelay"
-source="http://ftp.isc.org/isc/dhcp/${pkgver}/$pkgname-$_realver.tar.gz
+source="http://ftp.isc.org/isc/dhcp/${_realver}/$pkgname-$_realver.tar.gz
linux_ipv6_discover.patch
dhcp-3.0-fix-perms.patch
dhcrelay.initd
@@ -75,7 +75,7 @@ dhcrelay() {
"$subpkgdir"/etc/conf.d/dhcrelay
}
-md5sums="a06649ec5336d284fc86a0232c0edd63 dhcp-4.2.3.tar.gz
+md5sums="04599f1557a5cafd10d7745267a68c8b dhcp-4.2.3-P1.tar.gz
37abf1fb047a353e91b022fafdabf39a linux_ipv6_discover.patch
a9eaf182dae3984670da52f20ae10fba dhcp-3.0-fix-perms.patch
1597c012bb1a2c0828254c87f0a904ad dhcrelay.initd
diff --git a/main/doxygen/APKBUILD b/main/doxygen/APKBUILD
index 54c97c61f..405054911 100644
--- a/main/doxygen/APKBUILD
+++ b/main/doxygen/APKBUILD
@@ -1,6 +1,6 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=doxygen
-pkgver=1.7.6
+pkgver=1.7.6.1
pkgrel=0
pkgdesc="A documentation system for C++, C, Java, IDL and PHP"
url="http://www.doxygen.org/"
@@ -43,4 +43,4 @@ package() {
make DESTDIR="$pkgdir" MAN1DIR=share/man/man1 install
}
-md5sums="79f67eea3d43a5c9964194786d786f37 doxygen-1.7.6.src.tar.gz"
+md5sums="084f1db244b77b3abff335550ef8eec5 doxygen-1.7.6.1.src.tar.gz"
diff --git a/main/firefox/APKBUILD b/main/firefox/APKBUILD
index ef7702e8f..c0978fb09 100644
--- a/main/firefox/APKBUILD
+++ b/main/firefox/APKBUILD
@@ -4,7 +4,7 @@ pkgname=firefox
pkgver=8.0.1
_pkgver=$pkgver
_xulver=8.0.1
-pkgrel=1
+pkgrel=2
pkgdesc="firefox web browser"
url="http://www.firefox.com"
arch="all"
diff --git a/main/fts/APKBUILD b/main/fts/APKBUILD
deleted file mode 100644
index e6f2850ec..000000000
--- a/main/fts/APKBUILD
+++ /dev/null
@@ -1,56 +0,0 @@
-# Contributor: William Pitcock <nenolod@dereferenced.org>
-# Maintainer: William Pitcock <nenolod@dereferenced.org>
-pkgname=fts
-pkgver=0
-pkgrel=3
-pkgdesc="keith bostic's POSIX file tree stream operations library"
-url="http://bostic.com/"
-arch="all"
-license="BSD"
-depends=
-depends_dev=
-makedepends="$depends_dev wget"
-install=""
-subpackages="$pkgname-dev $pkgname-doc"
-replaces_doc="man-pages"
-source="saveas-https://sites.google.com/a/bostic.com/keithbostic/files/fts.tar.gz?attredirects=0/fts.tar.gz
- fts-uclibc.patch
- fts-header-correctness.patch
- stdint.patch"
-
-_builddir="${srcdir}/${pkgname}"
-prepare() {
- local i
- cd "$_builddir"
- chmod +w *.c
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
-
-build() {
- cd "$_builddir"
- gcc -I. -fPIC -shared -o libfts.so -Wl,-soname,libfts.so.${pkgver} fts.c
-}
-
-package() {
- cd "$_builddir"
-
- install -d "$pkgdir"/usr/lib
-
- install -m 755 libfts.so "$pkgdir"/usr/lib/libfts.so.${pkgver}
- ln -sf libfts.so.${pkgver} "$pkgdir"/usr/lib/libfts.so
-
- install -d "$pkgdir"/usr/include
- install -m 644 fts.h "$pkgdir"/usr/include/fts.h
-
- install -d "$pkgdir"/usr/share/man/man3
- install -m 644 fts.3 "$pkgdir"/usr/share/man/man3/fts.3
-}
-
-md5sums="120c14715485ec6ced14f494d059d20a fts.tar.gz
-588fead4044bf535ff97298651aaab8f fts-uclibc.patch
-b197744ece4ef9a5fa52692acf9b6666 fts-header-correctness.patch
-a8a5a8e81e1c67738aef00f3f13a718b stdint.patch"
diff --git a/main/fts/fts-header-correctness.patch b/main/fts/fts-header-correctness.patch
deleted file mode 100644
index 59061bfc9..000000000
--- a/main/fts/fts-header-correctness.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- fts.orig/fts.h
-+++ fts/fts.h
-@@ -38,6 +38,17 @@
- #ifndef _FTS_H_
- #define _FTS_H_
-
-+#include <sys/types.h>
-+#include <sys/param.h>
-+#include <sys/stat.h>
-+
-+#include <dirent.h>
-+#include <errno.h>
-+#include <fcntl.h>
-+#include <stdlib.h>
-+#include <string.h>
-+#include <unistd.h>
-+
- typedef struct {
- struct _ftsent *fts_cur; /* current node */
- struct _ftsent *fts_child; /* linked list of children */
diff --git a/main/fts/fts-uclibc.patch b/main/fts/fts-uclibc.patch
deleted file mode 100644
index 359353039..000000000
--- a/main/fts/fts-uclibc.patch
+++ /dev/null
@@ -1,45 +0,0 @@
---- fts.orig/fts.c
-+++ fts/fts.c
-@@ -31,6 +31,10 @@
- * SUCH DAMAGE.
- */
-
-+#define alignof(TYPE) ((int) &((struct { char dummy1; TYPE dummy2; } *) 0)->dummy2)
-+#define ALIGNBYTES (alignof(long double) - 1)
-+#define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) & ~ALIGNBYTES)
-+
- #if defined(LIBC_SCCS) && !defined(lint)
- static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
- #endif /* LIBC_SCCS and not lint */
-@@ -652,10 +656,10 @@
- if (!ISSET(FTS_SEEDOT) && ISDOT(dp->d_name))
- continue;
-
-- if ((p = fts_alloc(sp, dp->d_name, (int)dp->d_namlen)) == NULL)
-+ if ((p = fts_alloc(sp, dp->d_name, (int)dp->d_reclen)) == NULL)
- goto mem1;
-- if (dp->d_namlen > maxlen) {
-- if (fts_palloc(sp, (size_t)dp->d_namlen)) {
-+ if (dp->d_reclen > maxlen) {
-+ if (fts_palloc(sp, (size_t)dp->d_reclen)) {
- /*
- * No more memory for path or structures. Save
- * errno, free up the current structure and the
-@@ -675,7 +679,7 @@
- maxlen = sp->fts_pathlen - sp->fts_cur->fts_pathlen - 1;
- }
-
-- p->fts_pathlen = len + dp->d_namlen + 1;
-+ p->fts_pathlen = len + dp->d_reclen + 1;
- p->fts_parent = sp->fts_cur;
- p->fts_level = level;
-
-@@ -784,7 +788,7 @@
- /* If user needs stat info, stat buffer already allocated. */
- sbp = ISSET(FTS_NOSTAT) ? &sb : p->fts_statp;
-
--#ifdef DT_WHT
-+#ifdef S_IFWHT
- /*
- * Whited-out files don't really exist. However, there's stat(2) file
- * mask for them, so we set it so that programs (i.e., find) don't have
diff --git a/main/fts/stdint.patch b/main/fts/stdint.patch
deleted file mode 100644
index 1ad7157e5..000000000
--- a/main/fts/stdint.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- ./fts.c.orig
-+++ ./fts.c
-@@ -46,6 +46,7 @@
- #include <errno.h>
- #include <fcntl.h>
- #include <fts.h>
-+#include <stdint.h>
- #include <stdlib.h>
- #include <string.h>
- #include <unistd.h>
diff --git a/main/gparted/APKBUILD b/main/gparted/APKBUILD
index 4044b7d2f..9cee1e6bd 100644
--- a/main/gparted/APKBUILD
+++ b/main/gparted/APKBUILD
@@ -1,6 +1,6 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gparted
-pkgver=0.10.0
+pkgver=0.11.0
pkgrel=0
pkgdesc="a graphical partition editor for creating, reorganizing, and deleting disk partitions"
url="http://gparted.sourceforge.net/"
@@ -34,4 +34,4 @@ package() {
make DESTDIR="$pkgdir" install
}
-md5sums="d5b339eb5bef7a99ff73f750834b37b9 gparted-0.10.0.tar.bz2"
+md5sums="93db664bad4c5f0c9a1384b7eac7df5c gparted-0.11.0.tar.bz2"
diff --git a/main/ipsec-tools/90-dead-on-initial-contact.patch b/main/ipsec-tools/90-dead-on-initial-contact.patch
new file mode 100644
index 000000000..9554ae3d3
--- /dev/null
+++ b/main/ipsec-tools/90-dead-on-initial-contact.patch
@@ -0,0 +1,11 @@
+--- a/src/racoon/isakmp_inf.c 15 Mar 2011 13:20:14 -0000 1.47
++++ b/src/racoon/isakmp_inf.c 10 Aug 2011 08:42:20 -0000
+@@ -1248,6 +1248,8 @@
+ if (f_local)
+ return 0;
+
++ script_hook(iph1, SCRIPT_PHASE1_DEAD);
++
+ #if 0
+ loc = racoon_strdup(saddrwop2str(iph1->local));
+ rem = racoon_strdup(saddrwop2str(iph1->remote));
diff --git a/main/ipsec-tools/APKBUILD b/main/ipsec-tools/APKBUILD
index 99804bce5..9076efd53 100644
--- a/main/ipsec-tools/APKBUILD
+++ b/main/ipsec-tools/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ipsec-tools
pkgver=0.8.0
-pkgrel=3
+pkgrel=4
pkgdesc="User-space IPsec tools for various IPsec implementations"
url="http://ipsec-tools.sourceforge.net/"
arch="all"
@@ -16,6 +16,7 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
50-reverse-connect.patch
70-defer-isakmp-ident-handling.patch
75-racoonctl-rcvbuf.patch
+ 90-dead-on-initial-contact.patch
"
_builddir="$srcdir"/$pkgname-$pkgver
@@ -62,4 +63,5 @@ md5sums="c9a318cdbc0946f4e51464866d529739 ipsec-tools-0.8.0.tar.gz
79b919ab23080f54dc3e7686877ca6bd 20-grekey-support.patch
f97205eea3dc68d2437a2ad8720f4520 50-reverse-connect.patch
94773c94233e14cdce0fa02ff780a43e 70-defer-isakmp-ident-handling.patch
-2d5d24c4a3684a38584f88720f71c7d6 75-racoonctl-rcvbuf.patch"
+2d5d24c4a3684a38584f88720f71c7d6 75-racoonctl-rcvbuf.patch
+1d0d8ef21c65138d40f902502412da9c 90-dead-on-initial-contact.patch"
diff --git a/main/libc0.9.32/APKBUILD b/main/libc0.9.32/APKBUILD
index 398f6a3bd..019712353 100644
--- a/main/libc0.9.32/APKBUILD
+++ b/main/libc0.9.32/APKBUILD
@@ -4,7 +4,7 @@ pkgname=libc$_abiver
_gitver=
pkgver=0.9.32
_ver=${pkgver/_/-}
-pkgrel=12
+pkgrel=14
pkgdesc="C library for developing embedded Linux systems"
url=http://uclibc.org
license="LGPL-2"
@@ -112,7 +112,7 @@ package() {
dev() {
default_dev
- replaces="uclibc linux-headers"
+ replaces="uclibc linux-headers fts-dev"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/*.so "$subpkgdir"/usr/lib/
}
@@ -149,11 +149,11 @@ e814d39ab0adab58d69396ac0b9acdea 0001-libc-x86-fix-stack-unwinding-and-backtrac
42416385763f7cd50775ed9bfaf2d59e libm-cexp.patch
7c47e9cb284b0da8df6ed2096b2c9c66 uclibc-ubacktrace-asneeded-fix.patch
0ed588014227935fbb83b207282f3c15 uclibc-epoll_pwait-hack.patch
-b313290b2d700e82b7292c1dcd7d559e uclibcconfig.x86
-8e49d9b5bb7b77a27beb53d5580367d5 uclibcconfig.x86_64
-b313290b2d700e82b7292c1dcd7d559e uclibcconfig.i486
-0a0ec8a921773bf28ec8253f85166421 uclibcconfig.arm
-3b1dc51e9e887485c9e946e7def68fce uclibcconfig.powerpc
+0e40006f3c284a27313e0d54f91452e2 uclibcconfig.x86
+f6aee6bcbc43dcbfcaaba7be244ad368 uclibcconfig.x86_64
+0e40006f3c284a27313e0d54f91452e2 uclibcconfig.i486
+8ae78c9ab4bd7b1223c29c335c76a8c5 uclibcconfig.arm
+70fcde1955810a2369c023b293bae5c5 uclibcconfig.powerpc
436bf7bea962b477bb93119514c90c9b sha512-crypt.patch
26dd7611fda4d29f3dc4a7cf24916931 uclibc-eventfd.patch
f3be4f2bc54d7561d252937e10abf0d2 uclibc-utils.trigger"
diff --git a/main/libc0.9.32/uclibcconfig.arm b/main/libc0.9.32/uclibcconfig.arm
index 8f35012dd..01f5ee4d7 100644
--- a/main/libc0.9.32/uclibcconfig.arm
+++ b/main/libc0.9.32/uclibcconfig.arm
@@ -222,7 +222,7 @@ UCLIBC_HAS_FNMATCH=y
UCLIBC_HAS_WORDEXP=y
UCLIBC_HAS_NFTW=y
UCLIBC_HAS_FTW=y
-# UCLIBC_HAS_FTS is not set
+UCLIBC_HAS_FTS=y
UCLIBC_HAS_GLOB=y
UCLIBC_HAS_GNU_GLOB=y
UCLIBC_HAS_UTMPX=y
diff --git a/main/libc0.9.32/uclibcconfig.powerpc b/main/libc0.9.32/uclibcconfig.powerpc
index 37dc98f46..471423cd7 100644
--- a/main/libc0.9.32/uclibcconfig.powerpc
+++ b/main/libc0.9.32/uclibcconfig.powerpc
@@ -206,7 +206,7 @@ UCLIBC_HAS_FNMATCH=y
UCLIBC_HAS_WORDEXP=y
UCLIBC_HAS_NFTW=y
UCLIBC_HAS_FTW=y
-# UCLIBC_HAS_FTS is not set
+UCLIBC_HAS_FTS=y
UCLIBC_HAS_GLOB=y
UCLIBC_HAS_GNU_GLOB=y
UCLIBC_HAS_UTMPX=y
diff --git a/main/libc0.9.32/uclibcconfig.x86 b/main/libc0.9.32/uclibcconfig.x86
index 335117980..6698e446f 100644
--- a/main/libc0.9.32/uclibcconfig.x86
+++ b/main/libc0.9.32/uclibcconfig.x86
@@ -221,7 +221,7 @@ UCLIBC_HAS_FNMATCH=y
UCLIBC_HAS_WORDEXP=y
UCLIBC_HAS_NFTW=y
UCLIBC_HAS_FTW=y
-# UCLIBC_HAS_FTS is not set
+UCLIBC_HAS_FTS=y
UCLIBC_HAS_GLOB=y
UCLIBC_HAS_GNU_GLOB=y
UCLIBC_HAS_UTMPX=y
diff --git a/main/libc0.9.32/uclibcconfig.x86_64 b/main/libc0.9.32/uclibcconfig.x86_64
index e76bbc31c..513b1224d 100644
--- a/main/libc0.9.32/uclibcconfig.x86_64
+++ b/main/libc0.9.32/uclibcconfig.x86_64
@@ -204,7 +204,7 @@ UCLIBC_HAS_FNMATCH=y
UCLIBC_HAS_WORDEXP=y
UCLIBC_HAS_NFTW=y
UCLIBC_HAS_FTW=y
-# UCLIBC_HAS_FTS is not set
+UCLIBC_HAS_FTS=y
UCLIBC_HAS_GLOB=y
UCLIBC_HAS_GNU_GLOB=y
UCLIBC_HAS_UTMPX=y
diff --git a/main/libusb/APKBUILD b/main/libusb/APKBUILD
index d9c58aa60..f97d5cf4f 100644
--- a/main/libusb/APKBUILD
+++ b/main/libusb/APKBUILD
@@ -1,7 +1,8 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libusb
-pkgver=1.0.8
-pkgrel=3
+pkgver=1.0.9_rc1
+_ver=${pkgver/_/-}
+pkgrel=0
pkgdesc="Library to enable user space application programs to communicate with USB devices"
url="http://libusb.sourceforge.net/"
arch="all"
@@ -9,17 +10,30 @@ license="LGPL"
subpackages="$pkgname-dev"
depends=""
makedepends=""
-source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"
+# This is a git snapshot of what will hopefully soon become 1.0.9, but
+# we need this now, to get things in place for usb over network
+# To regenerate do:
+# git clone git://git.libusb.org/libusb.git
+# cd libusb
+# git checkout 1.0.9-rc1
+# ./autogen.sh
+# make dist
+# mv libusb-1.0.8.tar.bz2 libusb-1.0.9-rc1.tar.bz2
+
+#source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"
+source="http://dev.alpinelinux.org/~ncopa/alpine/$pkgname-$_ver.tar.bz2"
+
+_builddir="$srcdir"/$pkgname-$_ver
build() {
- cd "$srcdir"/$pkgname-$pkgver
- ./configure --prefix=/usr --disable-build-docs
+ cd "$_builddir"
+ ./configure --prefix=/usr
make || return 1
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
}
-md5sums="37d34e6eaa69a4b645a19ff4ca63ceef libusb-1.0.8.tar.bz2"
+md5sums="4d131792dd73cb8cf7156a88065e462f libusb-1.0.9-rc1.tar.bz2"
diff --git a/main/mpt-status/APKBUILD b/main/mpt-status/APKBUILD
new file mode 100644
index 000000000..a6e8a0b21
--- /dev/null
+++ b/main/mpt-status/APKBUILD
@@ -0,0 +1,55 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=mpt-status
+pkgver=1.2.0
+pkgrel=0
+pkgdesc="status inquiry tool for MPT devices"
+url="http://www.red-bean.com/~mab/mpt-status.html"
+arch="all"
+license="GPL"
+depends=""
+makedepends="pciutils-dev"
+install=""
+subpackages="$pkgname-doc"
+
+# XXX: main site seems to be down right now; we shadow the Debian patch anyway
+source="http://ftp.de.debian.org/debian/pool/main/m/mpt-status/mpt-status_${pkgver}.orig.tar.gz
+ http://ftp.de.debian.org/debian/pool/main/m/mpt-status/mpt-status_${pkgver}-7.debian.tar.gz"
+
+_builddir="${srcdir}/mpt-status-${pkgver}"
+prepare() {
+ local i
+ cd "$_builddir"
+ mv "${srcdir}/debian" "${_builddir}"
+
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+
+ # apply debian patches too...
+ for i in $(cat ${_builddir}/debian/patches/series); do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "${_builddir}/debian/patches/${i}" || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make
+}
+
+package() {
+ cd "$_builddir"
+
+ mkdir -p "$pkgdir"/usr/sbin
+ make DESTDIR="$pkgdir" install
+
+ mkdir -p "$pkgdir"/usr/share/man/man8
+ cp man/mpt-status.8 "$pkgdir"/usr/share/man/man8
+}
+
+md5sums="e836a0dc05746b45ee1b77e475c2a76b mpt-status_1.2.0.orig.tar.gz
+18897cdd77a3ecbea13ca13d53b40796 mpt-status_1.2.0-7.debian.tar.gz"
diff --git a/main/mysql/APKBUILD b/main/mysql/APKBUILD
index 0ce4b7095..c3b5e7c66 100644
--- a/main/mysql/APKBUILD
+++ b/main/mysql/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mysql
-pkgver=5.5.18
+pkgver=5.5.19
pkgrel=0
pkgdesc="A fast SQL database server"
url="http://www.mysql.com/"
@@ -187,6 +187,6 @@ bench() {
mv "$pkgdir"/usr/share/sql-bench "$subpkgdir"/usr/share/
}
-md5sums="38b65815249f3bcacf3b0ee85171c486 mysql-5.5.18.tar.gz
+md5sums="a78cf450974e9202bd43674860349b5a mysql-5.5.19.tar.gz
b2b038b1905fa5b80f6723d0ee2f811f mysql-prefer-dynamic-library.patch
d46df8ab94cb5686862ff90c0a6bf707 mysql.initd"
diff --git a/main/nmap/APKBUILD b/main/nmap/APKBUILD
index 34dc38a0c..0464a0e7a 100644
--- a/main/nmap/APKBUILD
+++ b/main/nmap/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=nmap
-pkgver=5.51.5
+pkgver=5.51.6
pkgrel=0
pkgdesc="A network exploration tool and security/port scanner"
url="http:/nmap.org"
@@ -35,4 +35,4 @@ package() {
install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
-md5sums="534d4f42d73404267392584ba3170a29 nmap-5.51.5.tgz"
+md5sums="75492e55330bded27f6132f052adae7e nmap-5.51.6.tgz"
diff --git a/main/open-vm-tools-grsec/APKBUILD b/main/open-vm-tools-grsec/APKBUILD
index 9bad72444..a169d5c29 100644
--- a/main/open-vm-tools-grsec/APKBUILD
+++ b/main/open-vm-tools-grsec/APKBUILD
@@ -2,9 +2,10 @@
_flavor=grsec
_realname=open-vm-tools
-_mypkgrel=0
-_realver=2011.09.23
-_realsubver=491607
+_mypkgrel=1
+
+_realver=2011.11.20
+_realsubver=535097
_kver=3.0.12
_kpkgrel=2
@@ -80,6 +81,6 @@ package() {
done
}
-md5sums="599342eee8d531b35ca1cc948b61868f open-vm-tools-2011.09.23-491607.tar.gz
+md5sums="428d803f6fe3424af88768fc2f88f9ae open-vm-tools-2011.11.20-535097.tar.gz
afba2c3487d0b12cee80eb2f04b05ba1 vmware-modules.initd
993aac6dce319e41c1b922b9672c39bc vmci_driver_c.patch"
diff --git a/main/open-vm-tools-vserver/APKBUILD b/main/open-vm-tools-vserver/APKBUILD
index 1644eaf9d..f0367ea0a 100644
--- a/main/open-vm-tools-vserver/APKBUILD
+++ b/main/open-vm-tools-vserver/APKBUILD
@@ -6,10 +6,11 @@ _name=$_realname-$_flavor
_kver=3.0.10
_kpkgrel=1
_myvsver=vs2.3.2.1
-_mypkgrel=0
+_mypkgrel=1
+
+_realver=2011.11.20
+_realsubver=535097
-_realver=2011.09.23
-_realsubver=491607
# source open-vm-tools version
if [ -f ../$_realname/APKBUILD ]; then
@@ -77,5 +78,5 @@ package() {
done
}
-md5sums="599342eee8d531b35ca1cc948b61868f open-vm-tools-2011.09.23-491607.tar.gz
+md5sums="428d803f6fe3424af88768fc2f88f9ae open-vm-tools-2011.11.20-535097.tar.gz
afba2c3487d0b12cee80eb2f04b05ba1 vmware-modules.initd"
diff --git a/main/open-vm-tools/APKBUILD b/main/open-vm-tools/APKBUILD
index 866c3d5d6..b5093e01e 100644
--- a/main/open-vm-tools/APKBUILD
+++ b/main/open-vm-tools/APKBUILD
@@ -1,8 +1,8 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=open-vm-tools
-pkgver=2011.09.23
-_pkgsubver=491607
-pkgrel=2
+pkgver=2011.11.20
+_pkgsubver=535097
+pkgrel=0
pkgdesc="The Open Virtual Machine Tools are the open source implementation of VMware Tools."
url="http://open-vm-tools.sourceforge.net/"
arch="all"
@@ -12,25 +12,24 @@ install="$pkgname.pre-install"
makedepends="procps-dev libdnet-dev icu-dev glib-dev pkgconfig bash
libtirpc-dev rpcgen icu-dev automake autoconf
gtk+-dev libxext-dev libxinerama-dev libxtst-dev gtkmm-dev
- libnotify-dev libxrandr-dev
+ libnotify-dev libxrandr-dev libxcomposite-dev
"
source="http://downloads.sourceforge.net/open-vm-tools/open-vm-tools-$pkgver-$_pkgsubver.tar.gz
- getloadavg-uclibc.patch
codeset-uclibc.patch
- ecvt.patch
iconv-uclibc.patch
+ uclibc-stubs.patch
libm.patch
open-vm-tools.initd
- procmgrposix.patch
"
_builddir="$srcdir"/$pkgname-$pkgver-$_pkgsubver
prepare() {
cd "$_builddir"
- for i in "$srcdir"/*.patch; do
- [ -r "$i" ] || continue
- patch -p1 -i "$i" || return 1
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
done
sed -i -e 's/__unused1/st_atim.tv_nsec/g' \
@@ -81,11 +80,9 @@ gtk() {
"$subpkgdir"/usr/lib/open-vm-tools/plugins/
}
-md5sums="599342eee8d531b35ca1cc948b61868f open-vm-tools-2011.09.23-491607.tar.gz
-49e2e394d0b567fa71fcd295e96bc1c8 getloadavg-uclibc.patch
+md5sums="428d803f6fe3424af88768fc2f88f9ae open-vm-tools-2011.11.20-535097.tar.gz
82840b6bed002284b9bd2358707ee826 codeset-uclibc.patch
-840e4d6ff3f53fc22bdedf4d64aabc91 ecvt.patch
89c7449323ddac4666b73a8467baf95a iconv-uclibc.patch
+30a4161baf6274ac9cceb879460cd894 uclibc-stubs.patch
7d02fc25aba5c248f3d98dac238f175b libm.patch
-905ef6a3bac87c9ba2e5d3897ca230e7 open-vm-tools.initd
-7b833102a56009bdfc2fef2fb9ffa297 procmgrposix.patch"
+905ef6a3bac87c9ba2e5d3897ca230e7 open-vm-tools.initd"
diff --git a/main/open-vm-tools/ecvt.patch b/main/open-vm-tools/ecvt.patch
deleted file mode 100644
index 53e88e998..000000000
--- a/main/open-vm-tools/ecvt.patch
+++ /dev/null
@@ -1,205 +0,0 @@
-commit e996e91ca5951c50769dcaa8e074daa973006849
-Author: Natanael Copa <ncopa@alpinelinux.org>
-Date: Thu Jul 8 06:39:36 2010 +0000
-
- add ecvt() implementation
-
-diff --git a/lib/string/Makefile.am b/lib/string/Makefile.am
-index 1edab81..5f2e7ab 100644
---- a/lib/string/Makefile.am
-+++ b/lib/string/Makefile.am
-@@ -23,6 +23,7 @@ libString_la_SOURCES += bsd_vsnprintf.c
- libString_la_SOURCES += bsd_vsnwprintf.c
- libString_la_SOURCES += convertutf.c
- libString_la_SOURCES += str.c
-+libString_la_SOURCES += ecvt.c
-
- AM_CFLAGS = @LIB_STRING_CPPFLAGS@
-
-diff --git a/lib/string/bsd_output_shared.c b/lib/string/bsd_output_shared.c
-index 3616947..321d6f1 100644
---- a/lib/string/bsd_output_shared.c
-+++ b/lib/string/bsd_output_shared.c
-@@ -64,6 +64,9 @@
-
- #ifndef NO_FLOATING_POINT
-
-+extern char* ecvt(double arg, int ndigits, int *decptp, int *signp);
-+extern char* fcvt(double arg, int ndigits, int *decptp, int *signp);
-+
- /*
- *-----------------------------------------------------------------------------
- *
-diff --git a/lib/string/ecvt.c b/lib/string/ecvt.c
-new file mode 100644
-index 0000000..1979c3d
---- /dev/null
-+++ b/lib/string/ecvt.c
-@@ -0,0 +1,167 @@
-+/*
-+ * Copyright (c) 1999 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@
-+ */
-+/*
-+ * ecvt converts to decimal
-+ * the number of digits is specified by ndigit
-+ * decptp is set to the position of the decimal point
-+ * signp is set to 0 for positive, 1 for negative
-+ */
-+
-+
-+static double ecvt_rint(double x);
-+
-+static char *cvt();
-+
-+/* big enough to handle %.20f conversion of 1e308 */
-+#define NDIG 350
-+
-+char*
-+ecvt(arg, ndigits, decptp, signp)
-+double arg;
-+int ndigits, *decptp, *signp;
-+{
-+ return(cvt(arg, ndigits, decptp, signp, 1));
-+}
-+
-+char*
-+fcvt(arg, ndigits, decptp, signp)
-+double arg;
-+int ndigits, *decptp, *signp;
-+{
-+ return(cvt(arg, ndigits, decptp, signp, 0));
-+}
-+
-+static char*
-+cvt(arg, ndigits, decptp, signp, eflag)
-+double arg;
-+int ndigits, *decptp, *signp;
-+int eflag;
-+{
-+ register int decpt;
-+ double fi, fj;
-+ register char *p, *p1;
-+ static char buf[NDIG] = { 0 };
-+ double modf();
-+
-+ if (ndigits < 0)
-+ ndigits = 0;
-+ if (ndigits >= NDIG-1)
-+ ndigits = NDIG-2;
-+
-+ decpt = 0;
-+ *signp = 0;
-+ p = &buf[0];
-+
-+ if (arg == 0) {
-+ *decptp = 0;
-+ while (p < &buf[ndigits])
-+ *p++ = '0';
-+ *p = '\0';
-+ return(buf);
-+ } else if (arg < 0) {
-+ *signp = 1;
-+ arg = -arg;
-+ }
-+
-+ arg = modf(arg, &fi);
-+ p1 = &buf[NDIG];
-+
-+ /*
-+ * Do integer part
-+ */
-+ if (fi != 0) {
-+ while (fi != 0) {
-+ fj = modf(fi/10, &fi);
-+ /**--p1 = (int)((fj+.03)*10) + '0';*/
-+ *--p1 = (int)ecvt_rint((fj)*10) + '0';
-+ decpt++;
-+ }
-+ while (p1 < &buf[NDIG])
-+ *p++ = *p1++;
-+ } else if (arg > 0) {
-+ while ((fj = arg*10) < 1) {
-+ arg = fj;
-+ decpt--;
-+ }
-+ }
-+ *decptp = decpt;
-+
-+ /*
-+ * do fraction part
-+ * p pts to where fraction should be concatenated
-+ * p1 is how far conversion must go to
-+ */
-+ p1 = &buf[ndigits];
-+ if (eflag==0) {
-+ /* fcvt must provide ndigits after decimal pt */
-+ p1 += decpt;
-+ /* if decpt was negative, we might done for fcvt */
-+ if (p1 < &buf[0]) {
-+ buf[0] = '\0';
-+ return(buf);
-+ }
-+ }
-+ while (p <= p1 && p < &buf[NDIG]) {
-+ arg *= 10;
-+ arg = modf(arg, &fj);
-+ *p++ = (int)fj + '0';
-+ }
-+ /*
-+ * if we converted all the way to the end of the
-+ * buf, don't mess with rounding since there's nothing
-+ * significant out here anyway
-+ */
-+ if (p1 >= &buf[NDIG]) {
-+ buf[NDIG-1] = '\0';
-+ return(buf);
-+ }
-+ /*
-+ * round by adding 5 to last digit and propagating
-+ * carries
-+ */
-+ p = p1;
-+ *p1 += 5;
-+ while (*p1 > '9') {
-+ *p1 = '0';
-+ if (p1 > buf)
-+ ++*--p1;
-+ else {
-+ *p1 = '1';
-+ (*decptp)++;
-+ if (eflag == 0) {
-+ if (p > buf)
-+ *p = '0';
-+ p++;
-+ }
-+ }
-+ }
-+ *p = '\0';
-+ return(buf);
-+}
-+
-+static double ecvt_rint(double x)
-+{
-+ asm("frndint" : "=t" (x) : "0" (x));
-+ return(x);
-+}
-+
diff --git a/main/open-vm-tools/getloadavg-uclibc.patch b/main/open-vm-tools/getloadavg-uclibc.patch
deleted file mode 100644
index ccc4c388e..000000000
--- a/main/open-vm-tools/getloadavg-uclibc.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- a/lib/misc/hostinfoPosix.c
-+++ b/lib/misc/hostinfoPosix.c
-@@ -1398,7 +1398,15 @@
- float *avg1, // IN/OUT:
- float *avg2) // IN/OUT:
- {
--#if defined(__linux__) || defined(__APPLE__)
-+#if defined(__UCLIBC__)
-+ FILE *f;
-+ if ((f = fopen("/proc/loadavg", "r")) == NULL)
-+ return FALSE;
-+ fscanf(f, "%f %f %f", avg0, avg1, avg2);
-+ fclose(f);
-+ return TRUE;
-+
-+#elif defined(GLIBC_VERSION_22) || defined(__APPLE__)
- double avg[3];
- int res;
-
diff --git a/main/open-vm-tools/procmgrposix.patch b/main/open-vm-tools/procmgrposix.patch
deleted file mode 100644
index 510c48a72..000000000
--- a/main/open-vm-tools/procmgrposix.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/lib/procMgr/procMgrPosix.c
-+++ b/lib/procMgr/procMgrPosix.c
-@@ -114,7 +114,7 @@
- #define SOLARIS_BASH_PATH "/usr/bin/bash"
- #endif
-
--#if defined(linux) && !defined(GLIBC_VERSION_23)
-+#if defined(linux) && !defined(GLIBC_VERSION_23) && !defined(__UCLIBC__)
- /*
- * Implements the system calls (they are not wrapped by glibc til 2.3.2).
- *
diff --git a/main/open-vm-tools/uclibc-stubs.patch b/main/open-vm-tools/uclibc-stubs.patch
new file mode 100644
index 000000000..0aeec6c94
--- /dev/null
+++ b/main/open-vm-tools/uclibc-stubs.patch
@@ -0,0 +1,11 @@
+--- ./lib/stubs/Makefile.am.orig
++++ ./lib/stubs/Makefile.am
+@@ -32,7 +32,5 @@
+ libStubsCS_la_SOURCES += stub-user-msg.c
+ libStubsCS_la_SOURCES += stub-user-panic.c
+
+-if !LINUX
+- libStubsCS_la_SOURCES += stub-msgfmt-fbsd.c
+-endif
++libStubsCS_la_SOURCES += stub-msgfmt-fbsd.c
+
diff --git a/main/openrc/0001-fsck-add-C0-and-T-options-unless-fsck-is-busybox.patch b/main/openrc/0001-fsck-add-C0-and-T-options-unless-fsck-is-busybox.patch
index 86676e5ad..f79d62cfb 100644
--- a/main/openrc/0001-fsck-add-C0-and-T-options-unless-fsck-is-busybox.patch
+++ b/main/openrc/0001-fsck-add-C0-and-T-options-unless-fsck-is-busybox.patch
@@ -30,7 +30,7 @@ index de44ea8..3b55fbd 100644
+ if ! _fsck_is_busybox; then
+ fsck_opts="$fsck_opts -C0 -T"
+ fi
- if [ -z "$fsck_passno" ]; then
+ if [ -z "$fsck_passno" -a -z "$fsck_mnt" ]; then
fsck_args=${fsck_args--A -p}
if echo 2>/dev/null >/.test.$$; then
--
diff --git a/main/openrc/APKBUILD b/main/openrc/APKBUILD
index 9a91ef059..4b568d37b 100644
--- a/main/openrc/APKBUILD
+++ b/main/openrc/APKBUILD
@@ -1,8 +1,8 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openrc
-pkgver=0.8.3
+pkgver=0.9.7
_ver=${pkgver/_git*/}
-pkgrel=7
+pkgrel=0
pkgdesc="OpenRC manages the services, startup and shutdown of a host"
url="http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git"
arch="all"
@@ -65,13 +65,13 @@ package() {
install -d "$pkgdir"/etc/local.d "$pkgdir"/run
}
-md5sums="c2c964d29e91a32dec4df75cd6d79102 openrc-0.8.3.tar.bz2
+md5sums="b7b2690b9e011479c8f6ba12bfac1931 openrc-0.9.7.tar.bz2
8c2c1c2ee0509b63966b7187a2079f4b openrc-0.4.3-mkmntdirs.patch
4fd036ff07ed9ad7fb76af6a3ffc0695 0001-Force-root-be-rw-before-localmount.patch
-fb8baeaf32f4d53491312675f28a9939 0001-fsck-add-C0-and-T-options-unless-fsck-is-busybox.patch
+f66dbabe0859abbd4b996c5ba8976b41 0001-fsck-add-C0-and-T-options-unless-fsck-is-busybox.patch
bc4f9ccd4036f9c458b89afe877fa8c2 0001-sysctl-Use-dev-null-instead-of-q.patch
2a1749ee829877d80c3696eade59be8a remove-rc_sys-warning.patch
-95927c85beb1476bda46ab8933c5e780 hwclock-hctosys.patch
+ce6ccda132e579cd2464b8f72daa3d2e hwclock-hctosys.patch
ddb34ea87994df3126f5e6b7e8f9ac93 swap-umount-tmpfs.patch
c32e15b0858eef708497e7ee6355a055 hostname.initd
b1e64885f301166df30be3e3cf5338ff hwdrivers.initd
diff --git a/main/openrc/hwclock-hctosys.patch b/main/openrc/hwclock-hctosys.patch
index 6616a9990..6302da3e8 100644
--- a/main/openrc/hwclock-hctosys.patch
+++ b/main/openrc/hwclock-hctosys.patch
@@ -10,6 +10,6 @@
- _hwclock --systz $utc_cmd $clock_args
- fi
+ _hwclock --hctosys $utc_cmd $clock_args
- retval=$(($retval + $?))
+ : $(( retval += $? ))
fi
diff --git a/main/pidgin/APKBUILD b/main/pidgin/APKBUILD
index 7d2cfcd1a..0078fb446 100644
--- a/main/pidgin/APKBUILD
+++ b/main/pidgin/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pidgin
-pkgver=2.10.0
-pkgrel=4
+pkgver=2.10.1
+pkgrel=0
pkgdesc="graphical multi-protocol instant messaging client for X"
url="http://pidgin.im/"
arch="all"
@@ -9,13 +9,22 @@ license="GPL"
depends=
makedepends="gtk+-dev intltool libsm-dev startup-notification-dev gtkspell-dev
libxml2-dev gstreamer-dev libidn-dev dbus-glib-dev gnutls-dev
- cyrus-sasl-dev ncurses-dev nss-dev"
+ cyrus-sasl-dev ncurses-dev nss-dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc finch libpurple $pkgname-lang"
-source="http://downloads.sourceforge.net/pidgin/pidgin-$pkgver.tar.bz2"
+source="http://downloads.sourceforge.net/pidgin/pidgin-$pkgver.tar.bz2
+ pidgin-libm.patch
+ "
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
+ for i in $source; do
+ case "$i" in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ libtoolize || return 1
+ aclocal -I m4macros && autoconf && automake || return 1
}
build() {
@@ -60,4 +69,5 @@ libpurple() {
mv "$pkgdir"/usr/share/purple "$pkgdir"/usr/share/sounds \
"$subpkgdir"/usr/share/
}
-md5sums="e1453c9093c4f32beec19abd14069a3f pidgin-2.10.0.tar.bz2"
+md5sums="eafb06b4083a201fe22d310e897a19dd pidgin-2.10.1.tar.bz2
+3cf0c3a476007781f4b0d855817cf58a pidgin-libm.patch"
diff --git a/main/pidgin/pidgin-libm.patch b/main/pidgin/pidgin-libm.patch
new file mode 100644
index 000000000..f86e80572
--- /dev/null
+++ b/main/pidgin/pidgin-libm.patch
@@ -0,0 +1,10 @@
+--- ./pidgin/Makefile.am.orig
++++ ./pidgin/Makefile.am
+@@ -148,6 +148,7 @@
+ pidgin_DEPENDENCIES = @LIBOBJS@
+ pidgin_LDFLAGS = -export-dynamic
+ pidgin_LDADD = \
++ -lm \
+ @LIBOBJS@ \
+ $(GLIB_LIBS) \
+ $(DBUS_LIBS) \
diff --git a/main/roundcubemail/APKBUILD b/main/roundcubemail/APKBUILD
index 908fe104f..eba839a88 100644
--- a/main/roundcubemail/APKBUILD
+++ b/main/roundcubemail/APKBUILD
@@ -1,6 +1,6 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=roundcubemail
-pkgver=0.6
+pkgver=0.7
pkgrel=0
pkgdesc="A PHP web-based mail client"
url="http://www.roundcube.net"
@@ -63,5 +63,5 @@ installer() {
"$subpkgdir"/usr/share/webapps/roundcube
}
-md5sums="bdb9039d6fb95614a609aa1cb6476cf9 roundcubemail-0.6.tar.gz
+md5sums="ff54d9b840f1c5a82859b7b97133f4fc roundcubemail-0.7.tar.gz
1a134edb94ff52e8a046725e485a381d fix-dirs.patch"
diff --git a/main/rsync/APKBUILD b/main/rsync/APKBUILD
index 2ae337618..ed226d7c3 100644
--- a/main/rsync/APKBUILD
+++ b/main/rsync/APKBUILD
@@ -1,13 +1,13 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rsync
pkgver=3.0.9
-pkgrel=0
+pkgrel=1
pkgdesc="A file transfer program to keep remote files in sync"
url="http://samba.anu.edu.au/rsync/"
arch="all"
license="GPL3"
depends=
-makedepends="perl"
+makedepends="perl acl-dev popt-dev"
source="http://$pkgname.samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.gz
rsyncd.initd
rsyncd.confd
@@ -19,10 +19,7 @@ subpackages="$pkgname-doc"
build() {
cd "$srcdir/$pkgname-$pkgver"
./prepare-source || return 1
- ./configure --prefix=/usr \
- --with-included-popt \
- --disable-acl-support \
- --disable-xattr-support || return 1
+ ./configure --prefix=/usr || return 1
make || return 1
}
diff --git a/main/v4l-utils/APKBUILD b/main/v4l-utils/APKBUILD
index 62ef1acb3..67db16a7f 100644
--- a/main/v4l-utils/APKBUILD
+++ b/main/v4l-utils/APKBUILD
@@ -2,31 +2,27 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=v4l-utils
pkgver=0.8.5
-pkgrel=0
+pkgrel=1
pkgdesc="Userspace tools and conversion library for Video 4 Linux"
url="http://freshmeat.net/projects/libv4l"
arch="all"
license="LGPL"
depends=""
-makedepends="qt-dev jpeg-dev"
+makedepends="qt-dev jpeg-dev argp-standalone"
install=""
subpackages="$pkgname-dev qv4l2"
source="http://linuxtv.org/downloads/v4l-utils/$pkgname-$pkgver.tar.bz2
qv4l2.svg
- qv4l2.desktop"
-
+ qv4l2.desktop
+ "
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
sed -i 's|CFLAGS :=|CFLAGS ?=|' Make.rules
- # TODO: make a proper patch insted of this hugly hack
- # uclibc does not have argp.h
- # http://www.spinics.net/lists/linux-media/msg28619.html
- rm -rf utils/decode_tm6000 utils/keytable
- sed -i 's/decode_tm6000 //g' utils/Makefile
- sed -i 's/keytable //g' utils/Makefile
- sed -i 's/v4l2-sysfs-path //g' utils/Makefile
+ sed -ie 's/\$\^/$\^\ -largp/' utils/decode_tm6000/Makefile
+ sed -ie 's/\$\^/$\^\ -largp/' utils/keytable/Makefile
+ sed -ie 's/\$\^/$\^\ -largp/' utils/v4l2-sysfs-path/Makefile
}
build() {
diff --git a/main/valgrind/APKBUILD b/main/valgrind/APKBUILD
index 1f1ec11a7..f1895dbe4 100644
--- a/main/valgrind/APKBUILD
+++ b/main/valgrind/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=valgrind
-pkgver=3.6.1
-pkgrel=1
+pkgver=3.7.0
+pkgrel=2
pkgdesc="A tool to help find memory-management problems in programs"
url="http://valgrind.org/"
arch="all"
@@ -17,6 +17,7 @@ makedepends="sed paxctl pax-utils perl bash"
options="!strip"
subpackages="$pkgname-dev $pkgname-doc"
source="http://$pkgname.org/downloads/$pkgname-$pkgver.tar.bz2
+ uclibc.patch
"
_builddir="$srcdir"/$pkgname-$pkgver
@@ -34,6 +35,7 @@ build() {
cd "$_builddir"
# fails to build with ccache
export CC="gcc"
+ export CFLAGS="$CFLAGS -fno-stack-protector -fno-pie"
./configure --prefix=/usr \
--without-mpicc \
--mandir=/usr/share/man || return 1
@@ -59,4 +61,5 @@ package() {
fi
}
-md5sums="2c3aa122498baecc9d69194057ca88f5 valgrind-3.6.1.tar.bz2"
+md5sums="a855fda56edf05614f099dca316d1775 valgrind-3.7.0.tar.bz2
+c29b4572a070eb0d3a6a977be586c771 uclibc.patch"
diff --git a/main/valgrind/uclibc.patch b/main/valgrind/uclibc.patch
new file mode 100644
index 000000000..69281ab2c
--- /dev/null
+++ b/main/valgrind/uclibc.patch
@@ -0,0 +1,10 @@
+--- ./coregrind/vg_preloaded.c.orig
++++ ./coregrind/vg_preloaded.c
+@@ -42,6 +42,7 @@
+ originates from Valgrind.
+ ------------------------------------------------------------------ */
+
++#include <features.h>
+ #include "pub_core_basics.h"
+ #include "pub_core_clreq.h"
+ #include "pub_core_debuginfo.h" // Needed for pub_core_redir.h
diff --git a/main/xulrunner/APKBUILD b/main/xulrunner/APKBUILD
index 23c794b1c..24f95afa8 100644
--- a/main/xulrunner/APKBUILD
+++ b/main/xulrunner/APKBUILD
@@ -3,7 +3,7 @@
pkgname=xulrunner
pkgver=8.0.1
_ffoxver=8.0.1
-pkgrel=0
+pkgrel=1
pkgdesc="runtime environment for xul-based applications"
url="http://developer.mozilla.org/en/XULRunner"
arch="all"
@@ -27,7 +27,6 @@ depends_dev="nspr-dev
startup-notification-dev
sqlite-dev
libidl-dev
- fts-dev
mesa-dev"
makedepends="$depends_dev
@@ -52,7 +51,6 @@ source="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${_ffoxver}
0004-xulrunner-malloc_usable_size.patch
"
-# xulrunner-mozalloc.patch
_builddir="${srcdir}/mozilla-release"
prepare() {
local i
@@ -105,7 +103,7 @@ dev() {
}
md5sums="b7d09b082e88a74860a51a8e04e29333 firefox-8.0.1.source.tar.bz2
-cc43a2bd96bd2395aa72d0bbb88e5594 mozconfig
+b0f7d491bc800b69ec718667a4b08acb mozconfig
731ec4084e57eb05e93000c971aad0d4 0001-mozilla-pkgconfig.patch.patch
1867db217d10722675c88b655db8c2d7 0002-Use-C99-math-isfinite.patch
7faa279d64c9ec2e7abc7c0497c7e07e 0003-xulrunner-jemalloc-aslr.patch
diff --git a/main/xulrunner/mozconfig b/main/xulrunner/mozconfig
index d0cf2c104..2cbb45b7a 100644
--- a/main/xulrunner/mozconfig
+++ b/main/xulrunner/mozconfig
@@ -30,7 +30,7 @@ ac_add_options --enable-extensions=default
ac_add_options --enable-jemalloc
ac_add_options --disable-elf-hack
-export LIBS="-lfts -lubacktrace"
+# export LIBS="-lubacktrace"
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
diff --git a/main/xulrunner/xulrunner-mozalloc.patch b/main/xulrunner/xulrunner-mozalloc.patch
deleted file mode 100644
index 31027a23e..000000000
--- a/main/xulrunner/xulrunner-mozalloc.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- mozilla-2.0.orig/memory/mozalloc/mozalloc.cpp
-+++ mozilla-2.0/memory/mozalloc/mozalloc.cpp
-@@ -237,7 +237,7 @@
- return 0;
-
- #if defined(MOZ_MEMORY)
-- return malloc_usable_size(ptr);
-+ return 0;
- #elif defined(XP_MACOSX)
- return malloc_size(ptr);
- #elif defined(XP_WIN)
diff --git a/testing/arpalert/APKBUILD b/testing/arpalert/APKBUILD
new file mode 100644
index 000000000..bc23f5e79
--- /dev/null
+++ b/testing/arpalert/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=arpalert
+pkgver=2.0.11
+pkgrel=0
+pkgdesc="Monitor ARP changes in ethernet networks"
+url="http://www.arpalert.org"
+arch="all"
+license="GPL"
+depends=""
+depends_dev="libpcap-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://www.arpalert.org/src/$pkgname-$pkgver.tar.gz
+ $pkgname.initd"
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --exec-prefix=/usr \
+ --sysconfdir=/etc \
+ --sharedstatedir=/usr/share \
+ --localstatedir=/var \
+ --includedir=/usr/include \
+ --datarootdir=/usr/share
+
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+ install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+}
+
+md5sums="4b2b7682b27c7f260716f59ecfa50ecc arpalert-2.0.11.tar.gz
+da046bdcd1dde63930a3353b37e35ddd arpalert.initd"
diff --git a/testing/arpalert/arpalert.initd b/testing/arpalert/arpalert.initd
new file mode 100755
index 000000000..2567dbab1
--- /dev/null
+++ b/testing/arpalert/arpalert.initd
@@ -0,0 +1,18 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting arpalert"
+ start-stop-daemon --quiet --start --pidfile /var/run/arpalert.lock --exec /usr/sbin/arpalert -- -d
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping arpalert"
+ start-stop-daemon --quiet --stop --pidfile /var/run/arpalert.lock
+ eend $?
+}
+
diff --git a/testing/asterisk/100-uclibc-daemon.patch b/testing/asterisk/100-uclibc-daemon.patch
deleted file mode 100644
index 4956791d4..000000000
--- a/testing/asterisk/100-uclibc-daemon.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-diff -Nru asterisk-1.6.1-beta4.org/main/asterisk.c asterisk-1.6.1-beta4/main/asterisk.c
---- asterisk-1.6.1-beta4.org/main/asterisk.c 2008-12-12 23:05:58.000000000 +0100
-+++ asterisk-1.6.1-beta4/main/asterisk.c 2008-12-23 15:28:21.000000000 +0100
-@@ -3295,9 +3295,40 @@
- #if HAVE_WORKING_FORK
- if (ast_opt_always_fork || !ast_opt_no_fork) {
- #ifndef HAVE_SBIN_LAUNCHD
-+#ifndef __UCLIBC__
- if (daemon(1, 0) < 0) {
- ast_log(LOG_ERROR, "daemon() failed: %s\n", strerror(errno));
- }
-+#else
-+ /*
-+ * workaround for uClibc-0.9.29 mipsel bug:
-+ * recursive mutexes do not work if uClibc daemon() function has been called,
-+ * if parent thread locks a mutex
-+ * the child thread cannot acquire a lock with the same name
-+ * (same code works if daemon() is not called)
-+ * but duplication of uClibc daemon.c code in here does work.
-+ */
-+ int fd;
-+ switch (fork()) {
-+ case -1:
-+ exit(1);
-+ case 0:
-+ break;
-+ default:
-+ _exit(0);
-+ }
-+ if (setsid() == -1)
-+ exit(1);
-+ if (fork())
-+ _exit(0);
-+ if ((fd = open("/dev/null", O_RDWR, 0)) != -1) {
-+ dup2(fd, STDIN_FILENO);
-+ dup2(fd, STDOUT_FILENO);
-+ dup2(fd, STDERR_FILENO);
-+ if (fd > 2)
-+ close(fd);
-+ }
-+#endif
- ast_mainpid = getpid();
- /* Blindly re-write pid file since we are forking */
- unlink(ast_config_AST_PID);
diff --git a/testing/asterisk/101-caps-uclibc.patch b/testing/asterisk/101-caps-uclibc.patch
deleted file mode 100644
index bb32d1ece..000000000
--- a/testing/asterisk/101-caps-uclibc.patch
+++ /dev/null
@@ -1,17 +0,0 @@
---- asterisk-1.6.0.18/configure.ac.orig Mon Oct 26 23:13:28 2009
-+++ asterisk-1.6.0.18/configure.ac Fri Nov 27 21:42:36 2009
-@@ -627,9 +627,11 @@
-
- AST_EXT_LIB_CHECK([CURSES], [curses], [initscr], [curses.h])
-
--if test "x${OSARCH}" = "xlinux-gnu" ; then
-- AST_EXT_LIB_CHECK([CAP], [cap], [cap_from_text], [sys/capability.h])
--fi
-+case "${OSARCH}" in
-+ linux*)
-+ AST_EXT_LIB_CHECK([CAP], [cap], [cap_from_text], [sys/capability.h])
-+ ;;
-+esac
-
- AST_C_DEFINE_CHECK([DAHDI], [DAHDI_CODE], [dahdi/user.h])
-
diff --git a/testing/asterisk/102-gsm-pic.patch b/testing/asterisk/102-gsm-pic.patch
deleted file mode 100644
index 71370ec0b..000000000
--- a/testing/asterisk/102-gsm-pic.patch
+++ /dev/null
@@ -1,54 +0,0 @@
---- a/codecs/gsm/Makefile.org 2008-03-29 11:33:09.000000000 +0100
-+++ b/codecs/gsm/Makefile 2008-03-29 11:44:40.000000000 +0100
-@@ -37,23 +37,6 @@
- ######### ppro's, etc, as well as the AMD K6 and K7. The compile will
- ######### probably require gcc.
-
--ifeq (, $(findstring $(OSARCH) , Darwin SunOS ))
--ifeq (, $(findstring $(PROC) , x86_64 amd64 ultrasparc sparc64 arm armv5b armeb ppc powerpc ppc64 ia64 s390 bfin mipsel mips))
--ifeq (, $(findstring $(shell uname -m) , ppc ppc64 alpha armv4l s390 ))
--OPTIMIZE+=-march=$(PROC)
--endif
--endif
--endif
--
--#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
--#This works for even old (2.96) versions of gcc and provides a small boost either way.
--#A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesn't support it.
--#So we go lowest common available by gcc and go a step down, still a step up from
--#the default as we now have a better instruction set to work with. - Belgarath
--ifeq ($(PROC),ultrasparc)
--OPTIMIZE+=-mcpu=v8 -mtune=$(PROC) -O3
--endif
--
- PG =
- #PG = -g -pg
- ######### Profiling flags. If you don't know what that means, leave it blank.
-@@ -208,12 +191,10 @@
- # XXX Keep a space after each findstring argument
- # XXX should merge with GSM_OBJECTS
- ifeq ($(OSARCH),linux-gnu)
--ifeq (,$(findstring $(shell uname -m) , x86_64 amd64 ppc ppc64 alpha armv4l sparc64 parisc s390 ))
--ifeq (,$(findstring $(PROC) , arm armv5b armeb powerpc ia64 s390 bfin mipsel mips ))
-+ifneq ($(K6OPT),)
- GSM_SOURCES+= $(SRC)/k6opt.s
- endif
- endif
--endif
-
- TOAST_SOURCES = $(SRC)/toast.c \
- $(SRC)/toast_lin.c \
-@@ -260,12 +241,10 @@
- $(SRC)/table.o
-
- ifeq ($(OSARCH),linux-gnu)
--ifeq (,$(findstring $(shell uname -m) , x86_64 amd64 ppc ppc64 alpha armv4l sparc64 parisc ))
--ifeq (,$(findstring $(PROC) , arm armv5b armeb powerpc ia64 bfin mipsel mips ))
-+ifneq ($(K6OPT),)
- GSM_OBJECTS+= $(SRC)/k6opt.o
- endif
- endif
--endif
-
- TOAST_OBJECTS = $(SRC)/toast.o \
- $(SRC)/toast_lin.o \
diff --git a/testing/asterisk/400-bug-227.patch b/testing/asterisk/400-bug-227.patch
deleted file mode 100644
index f8187379e..000000000
--- a/testing/asterisk/400-bug-227.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-Index: channels/chan_sip.c
-===================================================================
---- a/channels/chan_sip.c (revision 212243)
-+++ b/channels/chan_sip.c (working copy)
-@@ -3675,8 +3675,8 @@
- char method_str[31];
- ast_debug(3, "Re-scheduled destruction of SIP call %s\n", p->callid ? p->callid : "<unknown>");
- append_history(p, "ReliableXmit", "timeout");
-- if (sscanf(p->lastmsg, "Tx: %30s", method_str) == 1 || sscanf(p->lastmsg, "Rx: %30s", method_str) == 1) {
-- if (method_match(SIP_CANCEL, method_str) || method_match(SIP_BYE, method_str)) {
-+ if (sscanf(p->lastmsg, "Tx: %30s", method_str) == 1 || sscanf(p->lastmsg, "Rx: %30s", method_str) == 1 || sscanf(p->lastmsg, "Init: %30s", method_str) == 1) {
-+ if (method_match(SIP_CANCEL, method_str) || method_match(SIP_BYE, method_str) || method_match(SIP_INVITE, method_str)) {
- pvt_set_needdestroy(p, "autodestruct");
- }
- }
diff --git a/testing/asterisk/APKBUILD b/testing/asterisk/APKBUILD
deleted file mode 100644
index 4a258fb40..000000000
--- a/testing/asterisk/APKBUILD
+++ /dev/null
@@ -1,176 +0,0 @@
-# Contributor: Timo Teras <timo.teras@iki.fi>
-# Maintainer: Timo Teras <timo.teras@iki.fi>
-pkgname=asterisk
-pkgver=10.0.0_rc3
-pkgrel=0
-pkgdesc="Asterisk: A Module Open Source PBX System"
-url="http://www.asterisk.org/"
-arch="all"
-license="GPL"
-depends=
-makedepends="autoconf automake libtool ncurses-dev popt-dev newt-dev zlib-dev
- postgresql-dev unixodbc-dev dahdi-tools-dev libpri-dev tar
- freetds-dev openssl-dev lua-dev alsa-lib-dev spandsp-dev tiff-dev
- libresample sqlite-dev wget speex-dev libogg-dev"
-install="$pkgname.pre-install $pkgname.pre-upgrade $pkgname.post-install"
-subpackages="$pkgname-dev $pkgname-doc $pkgname-pgsql $pkgname-odbc
- $pkgname-tds $pkgname-fax $pkgname-sample-config:sample $pkgname-sqlite
- $pkgname-sounds-moh:sound_moh $pkgname-sounds-en:sound_en"
-source="http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-${pkgver/_/-}.tar.gz
- 100-uclibc-daemon.patch
- 101-caps-uclibc.patch
- 400-bug-227.patch
- ASTERISK-18976.patch
- ASTERISK-18977.patch
- ASTERISK-18994.patch
- ASTERISK-18995.patch
- asterisk.initd
- asterisk.confd
- asterisk.logrotate"
-
-_builddir="$srcdir/$pkgname-${pkgver/_/-}"
-
-prepare() {
- cd "$_builddir"
- for i in ../[1-9A]*.patch; do
- msg "Apply $i"
- patch -p1 < $i || return 1
- done
-
- sed -i -e 's:lua5.1/::' pbx/pbx_lua.c
- sed -i -e 's/PBX_ICONV=1/PBX_ICONV=0/g' configure.ac
-
- ./bootstrap.sh
-}
-
-build() {
- cd "$_builddir"
- SHA1SUM="$PWD"/build_tools/sha1sum-sh ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --libdir=/usr/lib \
- --localstatedir=/var \
- --disable-xmldoc --with-gsm=internal \
- --without-iconv --with-popt --with-z --with-newt \
- --with-odbc --with-postgres --with-tds \
- --with-dahdi --with-pri --with-tonezone \
- --with-resample \
- --with-sqlite3 \
- --with-speex \
- --with-asound \
- --without-x11 \
- --with-spandsp \
- || return 1
-
- # and figure out which modules to build
- rm menuselect.makeopts
- make menuselect.makeopts
- make ASTLDFLAGS="$LDFLAGS" || return 1
-}
-
-package() {
- cd "$_builddir"
- make -j1 DESTDIR="$pkgdir" install
-
- install -d "$pkgdir"/var/run/asterisk
- install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
- install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
- install -m644 -D "$srcdir"/$pkgname.logrotate \
- "$pkgdir"/etc/logrotate.d/$pkgname
-}
-
-_move_dir() {
- for DIR in "$@"; do
- local dest=`dirname "$subpkgdir/$DIR"`
- echo mkdir -p $dest
- mkdir -p "$dest"
- echo mv "$pkgdir"/$DIR $dest
- mv "$pkgdir"/"$DIR" "$dest"
- done
-}
-
-_find_and_move() {
- local pattern="$1"
- cd "$pkgdir" || return 1
- find -name "$pattern" -type f | while read f; do
- local dest="$subpkgdir/${f%/*}"
- mkdir -p "$dest"
- mv "$f" "$dest"
- done
-}
-
-doc() {
- default_doc
-}
-
-dev() {
- default_dev
- depends="asterisk"
-}
-
-pgsql() {
- depends=
- install=
- _find_and_move '*_pgsql*'
-}
-
-sqlite() {
- depends=
- install=
- _find_and_move '*_sqlite*'
-}
-
-odbc() {
- depends=
- install=
- _find_and_move '*odbc*'
-}
-
-tds() {
- depends=
- install=
- _find_and_move '*_tds*'
-}
-
-fax() {
- depends=
- install=
- _find_and_move '*_fax*'
-}
-
-sample() {
- arch="noarch"
- pkgdesc="Sample configuration files for asterisk"
- cd "$_builddir"
- mkdir -p "$subpkgdir"/var/lib/asterisk/phoneprov
- make -j1 samples DESTDIR="$subpkgdir"
-}
-
-sound_moh() {
- arch="noarch"
- pkgdesc="Default on-hold music files for asterisk"
- depends=
- install=
- _move_dir var/lib/asterisk/moh
-}
-
-sound_en() {
- arch="noarch"
- pkgdesc="English sound files for asterisk"
- depends=
- install=
- _move_dir var/lib/asterisk/sounds/en
-}
-
-md5sums="c0cfc71a26d56487ffa570fd3169919c asterisk-10.0.0-rc3.tar.gz
-b00c9d98ce2ad445501248a197c6e436 100-uclibc-daemon.patch
-6e1129e30c4fd2c25c86c81685a485a9 101-caps-uclibc.patch
-79e9634b5054bceb3b8dc246654bb243 400-bug-227.patch
-da5a3c500192dee4275aae5235d25f97 ASTERISK-18976.patch
-1ddadef41aa7120e168738b6f3ed8917 ASTERISK-18977.patch
-0af5e797f0a99d0f81f95e3710baf5b6 ASTERISK-18994.patch
-bc6713f5434e07b79d3afdd155461d72 ASTERISK-18995.patch
-0ce3219e05f55af884a7dc6b99c2b276 asterisk.initd
-ed31d7ba37bcf8b0346dcf8593c395f0 asterisk.confd
-3e65172275684373e1a25c8a11224411 asterisk.logrotate"
diff --git a/testing/asterisk/asterisk.confd b/testing/asterisk/asterisk.confd
deleted file mode 100644
index fe9f138ab..000000000
--- a/testing/asterisk/asterisk.confd
+++ /dev/null
@@ -1,91 +0,0 @@
-#
-# Additional options for asterisk
-#
-# see "asterisk -h" for a list of options
-#
-ASTERISK_OPTS=""
-
-#
-# User and group to run asterisk as
-#
-# Value: double-colon separated list of user and group, or empty to run as root:
-#
-#
-# "asterisk:asterisk" to run as user "asterisk" and group "asterisk"
-# "asterisk" to run as user "asterisk" and all groups that user "asterisk" is a member of
-# ":asterisk" to run as user "root" and group "asterisk"
-# "" to run as user "root" and group "root"
-#
-ASTERISK_USER="asterisk"
-
-#
-# Nicelevel
-#
-# Set the priority of the asterisk process
-#
-# Value: (highest) -20..19 (lowest)
-#
-#ASTERISK_NICE="19"
-
-#
-# Wrapper script
-#
-# Value: yes or no/empty
-#
-ASTERISK_WRAPPER="no"
-
-############# Wrapper script settings #############
-
-#
-# Send crash notifications emails to this address
-# (needs a working mail service and /usr/sbin/sendmail to do so (e.g. ssmtp))
-#
-# Value: Email address or empty to disable
-#
-#ASTERISK_NOTIFY_EMAIL="root"
-
-#
-# Send asterisk's output to this terminal
-#
-# Value: Full path to device node or a number
-#
-#ASTERISK_TTY="/dev/tty9"
-
-#
-# Start an asterisk console on the terminal specified by ASTERISK_TTY
-#
-# Warning! Use only for debugging, this is a potential security issue!
-#
-# Value: yes or no/empty
-#
-ASTERISK_CONSOLE="no"
-
-#
-# Maximum size of core files.
-#
-# Value: Size in bytes, unlimited for no limit or empty to disable.
-#
-#ASTERISK_CORE_SIZE="unlimited"
-
-#
-# ASTERISK_CORE_DIR
-#
-# Value: Directory (will be created if non-existant), default is /tmp
-#
-ASTERISK_CORE_DIR="/var/lib/asterisk/coredump"
-
-#
-# Max number of filedescriptors
-#
-# Value: Number of descriptors
-#
-#ASTERISK_MAX_FD="1024"
-
-#
-# Kill these tasks after asterisk crashed (ASTERISK_WRAPPER=yes only!)
-#
-# Warning! This will kill _ALL_ tasks with the specified names!
-#
-# Value: Space separated list of names in double quotes (e.g. "mpg123 mad")
-#
-#ASTERISK_CLEANUP_ON_CRASH="mpg123 asterisk-mpg123 mad"
diff --git a/testing/asterisk/asterisk.initd b/testing/asterisk/asterisk.initd
deleted file mode 100644
index 284898ae2..000000000
--- a/testing/asterisk/asterisk.initd
+++ /dev/null
@@ -1,251 +0,0 @@
-#!/sbin/runscript
-
-opts="${opts} forcestop reload"
-
-depend() {
- need net
- after firewall
- use nscd dns zaptel mysql postgresql slapd capi
-}
-
-is_running() {
- if [ -z "$(pidof asterisk)" ]; then
- return 1
- else
- PID="$(cat /var/run/asterisk/asterisk.pid 2>/dev/null)"
- for x in $(pidof asterisk); do
- if [ "${x}" = "${PID}" ]; then
- return 0
- fi
- done
- fi
-
- return 1
-}
-
-asterisk_run_loop() {
- local OPTS ARGS MSG NICE=""
- local result=0 signal=0
-
- # default options
- OPTS="-f" # don't fork / detach breaks wrapper script...
-
- # filter (redundant) arguments
- ARGS="$(echo "${@}" | sed -e "s:-c\|-f::g")"
-
- # mangle yes/no options
- ASTERISK_CONSOLE="$(echo ${ASTERISK_CONSOLE} | tr '[:lower:]' '[:upper:]')"
-
- if [ -n "${ASTERISK_CORE_SIZE}" ] &&
- [ "${ASTERISK_CORE_SIZE}" != "0" ]; then
- ulimit -c ${ASTERISK_CORE_SIZE}
-
- if [ -n "${ASTERISK_CORE_DIR}" ] && \
- [ ! -d "${ASTERISK_CORE_DIR}" ]
- then
- mkdir -m750 -p "${ASTERISK_CORE_DIR}"
-
- if [ -n "${ASTERISK_USER}" ]; then
- chown -R "${ASTERISK_USER}" "${ASTERISK_CORE_DIR}"
- fi
- fi
- ASTERISK_CORE_DIR="${ASTERISK_CORE_DIR:-/tmp}"
-
- cd "${ASTERISK_CORE_DIR}"
- echo " Core dump size : ${ASTERISK_CORE_SIZE}"
- echo " Core dump location : ${ASTERISK_CORE_DIR}"
- fi
-
- if [ -n "${ASTERISK_MAX_FD}" ]; then
- ulimit -n ${ASTERISK_MAX_FD}
- echo " Max open filedescriptors : ${ASTERISK_MAX_FD}"
- fi
-
- if [ -n "${ASTERISK_NICE}" ]; then
- echo " Nice level : ${ASTERISK_NICE}"
- NICE="nice -n ${ASTERISK_NICE} --"
- fi
-
- if [ -n "${ASTERISK_NOTIFY_EMAIL}" ]; then
- if [ -x /usr/sbin/sendmail ]; then
- echo " Email notifications go to : ${ASTERISK_NOTIFY_EMAIL}"
- else
- echo " Notifications disabled, /usr/sbin/sendmail doesn't exist or is not executable!"
- unset ASTERISK_NOTIFY_EMAIL
- fi
- fi
-
- if [ -n "${ASTERISK_TTY}" ]; then
- for x in ${ASTERISK_TTY} \
- /dev/tty${ASTERISK_TTY} \
- /dev/vc/${ASTERISK_TTY}
- do
- if [ -c "${x}" ]; then
- TTY="${x}"
- fi
- done
- [ -n "${TTY}" ] && \
- echo " Messages are sent to : ${TTY}"
- fi
-
- if [ "${ASTERISK_CONSOLE}" = "YES" ] && [ -n "${TTY}" ]; then
- echo " Starting Asterisk console : ${ASTERISK_CONSOLE}"
- OPTS="${OPTS} -c"
- fi
-
- OPTS="${OPTS} ${ARGS}"
-
- while :; do
-
- if [ -n "${TTY}" ]; then
- /usr/bin/stty -F ${TTY} sane
- ${NICE} /usr/sbin/asterisk ${OPTS} >${TTY} 2>&1 <${TTY}
- result=$?
- else
- ${NICE} /usr/sbin/asterisk ${OPTS} &>/dev/null
- result=$?
- fi
-
- if [ $result -eq 0 ]; then
- echo "Asterisk terminated normally"
- break
- else
- if [ $result -gt 128 ]; then
- signal=$((result - 128))
- MSG="Asterisk terminated with Signal: $signal"
-
- CORE_TARGET="core-$(date "+%Y%m%d-%h%M%s")"
-
- local CORE_DUMPED=0
- if [ -f "${ASTERISK_CORE_DIR}/core" ]; then
- mv "${ASTERISK_CORE_DIR}/core" \
- "${ASTERISK_CORE_DIR}/${CORE_TARGET}"
- CORE_DUMPED=1
-
- elif [ -f "${ASTERISK_CORE_DIR}/core.${PID}" ]; then
- mv "${ASTERISK_CORE_DIR}/core.${PID}" \
- "${ASTERISK_CORE_DIR}/${CORE_TARGET}"
- CORE_DUMPED=1
-
- fi
-
- [ $CORE_DUMPED -eq 1 ] && \
- MSG="${MSG}\n\rCore dumped: ${ASTERISK_CORE_DIR}/${CORE_TARGET}"
- else
- MSG="Asterisk terminated with return code: $result"
- fi
-
- # kill left-over tasks
- for X in ${ASTERISK_CLEANUP_ON_CRASH}; do
- kill -9 $(pidof ${X});
- done
- fi
-
- [ -n "${TTY}" ] \
- && echo "${MSG}" >${TTY} \
- || echo "${MSG}"
-
-
- if [ -n "${ASTERISK_NOTIFY_EMAIL}" ] && \
- [ -x /usr/sbin/sendmail ]; then
- echo -e -n "Subject: Asterisk crashed\n\r${MSG}\n\r" |\
- /usr/sbin/sendmail "${ASTERISK_NOTIFY_EMAIL}"
- fi
- sleep 5
- echo "Restarting Asterisk..."
- done
- return 0
-}
-
-start() {
- local OPTS USER GROUP PID
- local tmp x
-
- if [ -n "${ASTERISK_NICE}" ]; then
- if [ ${ASTERISK_NICE} -ge -20 ] && \
- [ ${ASTERISK_NICE} -le 19 ]; then
- OPTS="--nicelevel ${ASTERISK_NICE}"
- else
- eerror "Nice value must be between -20 and 19"
- return 1
- fi
- fi
-
- if [ -n "${ASTERISK_USER}" ]; then
- USER=$(echo $ASTERISK_USER | sed 's/:.*//')
- GROUP=$(echo $ASTERISK_USER | awk -F: '/.*:.*/ { print $2 }')
- if [ -n "${USER}" ]; then
- ASTERISK_OPTS="${ASTERISK_OPTS} -U ${USER}"
- fi
- if [ -n "${GROUP}" ]; then
- ASTERISK_OPTS="${ASTERISK_OPTS} -G ${GROUP}"
- GROUP=":${GROUP}" # make it look nice...
- fi
- ebegin "Starting asterisk PBX (as ${USER}${GROUP})"
- else
- ebegin "Starting asterisk PBX (as root)"
- fi
-
- if [ "$(echo ${ASTERISK_WRAPPER} | tr '[:upper:]' '[:lower:]')" != "yes" ]; then
- start-stop-daemon --start --exec /usr/sbin/asterisk \
- ${OPTS} -- ${ASTERISK_OPTS}
- result=$?
- else
- asterisk_run_loop ${ASTERISK_OPTS} 2>/dev/null &
- result=$?
- fi
-
- if [ $result -eq 0 ]; then
- # 2 seconds should be enough for asterisk to start
- sleep 2
- is_running
- result=$?
- fi
-
- eend $result
-}
-
-forcestop() {
- ebegin "Stopping asterisk PBX"
- start-stop-daemon --stop --pidfile /var/run/asterisk/asterisk.pid
- eend $?
-}
-
-stop() {
- if ! is_running; then
- eerror "Asterisk is not running!"
- return 0
- fi
-
- ebegin "Stopping asterisk PBX now"
- /usr/sbin/asterisk -r -x "core stop now" &>/dev/null
- # Now we have to wait until asterisk has _really_ stopped.
- sleep 1
- if is_running; then
- einfon "Waiting for asterisk to shutdown ."
- local cnt=0
- while is_running; do
- cnt=`expr $cnt + 1`
- if [ $cnt -gt 60 ] ; then
- # Waited 120 seconds now. Fail.
- echo
- eend 1 "Failed."
- return
- fi
- sleep 2
- echo -n "."
- done
- echo
- fi
- eend 0
-}
-
-reload() {
- if is_running; then
- ebegin "Forcing asterisk to reload configuration"
- /usr/sbin/asterisk -r -x "modules reload" &>/dev/null
- eend $?
- else
- eerror "Asterisk is not running!"
- fi
-}
diff --git a/testing/asterisk/asterisk.logrotate b/testing/asterisk/asterisk.logrotate
deleted file mode 100644
index 30836c5c1..000000000
--- a/testing/asterisk/asterisk.logrotate
+++ /dev/null
@@ -1,17 +0,0 @@
-/var/log/asterisk/messages /var/log/asterisk/*log {
- missingok
- rotate 5
- weekly
- create 0640 asterisk asterisk
- postrotate
- /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
- endscript
-}
-
-/var/log/asterisk/cdr-csv/*csv {
- missingok
- rotate 5
- monthly
- create 0640 asterisk asterisk
-}
-
diff --git a/testing/asterisk/asterisk.post-install b/testing/asterisk/asterisk.post-install
deleted file mode 100644
index fd51c7fa5..000000000
--- a/testing/asterisk/asterisk.post-install
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-chown -R asterisk:asterisk /var/*/asterisk
-chown -R asterisk:asterisk /etc/asterisk
-chmod -R u=rwX,g=rX,o= /etc/asterisk
-
-# set IP ToS
-# iptables -A OUTPUT -t mangle -p udp -m udp --dport 5060 -j DSCP --set-dscp 0x28
-#iptables -A OUTPUT -t mangle -p udp -m udp --sport 10000:20000 -j DSCP --set-dscp 0x28
-# more info: http://www.voip-info.org/wiki-Asterisk+non-root
-
diff --git a/testing/asterisk/asterisk.pre-install b/testing/asterisk/asterisk.pre-install
deleted file mode 100644
index 09985d7cd..000000000
--- a/testing/asterisk/asterisk.pre-install
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-user=asterisk
-home=/var/lib/asterisk
-adduser -h $home -s /bin/false -D $user 2>/dev/null
-mkdir -p $home
-chown $user:$user $home
-
-addgroup dialout 2>/dev/null
-addgroup $user dialout 2>/dev/null
-exit 0
-
diff --git a/testing/asterisk/asterisk.pre-upgrade b/testing/asterisk/asterisk.pre-upgrade
deleted file mode 100644
index 09985d7cd..000000000
--- a/testing/asterisk/asterisk.pre-upgrade
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-user=asterisk
-home=/var/lib/asterisk
-adduser -h $home -s /bin/false -D $user 2>/dev/null
-mkdir -p $home
-chown $user:$user $home
-
-addgroup dialout 2>/dev/null
-addgroup $user dialout 2>/dev/null
-exit 0
-
diff --git a/testing/dev86/APKBUILD b/testing/dev86/APKBUILD
new file mode 100644
index 000000000..84a08e424
--- /dev/null
+++ b/testing/dev86/APKBUILD
@@ -0,0 +1,81 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=dev86
+pkgver=0.16.18
+pkgrel=0
+pkgdesc="A real mode 80x86 assembler and linker"
+url="http://www.debath.co.uk/dev86/"
+arch="all"
+license="GPL+ and GPLv2+ and LGPLv2+"
+depends=
+makedepends="bash coreutils"
+install=""
+subpackages="$pkgname-doc"
+source="http://www.debath.co.uk/dev86/Dev86src-$pkgver.tar.gz
+ dev86-noelks.patch
+ dev86-pic.patch
+ dev86-overflow.patch
+ dev86-print-overflow.patch
+ dev86-long.patch
+ "
+
+_builddir="$srcdir"/dev86-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ # use our CFLAGS
+ sed -i -e "s/-O2 -g/${CFLAGS}/" makefile.in
+# if [ "$CARCH" = x86_64 ]; then
+ sed -i \
+ -e 's,alt-libs elksemu,alt-libs,' \
+ -e 's,install-lib install-emu,install-lib,' \
+ makefile.in || return 1
+# fi
+ sed -i \
+ -e "s:-O2 -g:${CFLAGS}:" \
+ -e '/INEXE=/s:-s::' \
+ makefile.in || return 1
+ # no stripping
+ sed -i -e '/INSTALL_OPTS=/s:-s::' bin86/Makefile
+ sed -i -e '/install -m 755 -s/s:-s::' dis88/Makefile
+
+}
+
+build() {
+ cd "$_builddir"
+ export CPPFLAGS=""
+ export SHELL=/bin/bash
+ msg "building bcc86 unproto copt as86 ld86"
+ make -j1 bcc86 unproto copt as86 ld86 CFLAGS="$CFLAGS" CC="${CC:-gcc}" \
+ || return 1
+ msg "building cpp"
+ make -C cpp CFLAGS="$CFLAGS" CC="${CC:-gcc}" || return 1
+ msg "building ar"
+ make -C ar CFLAGS="$CFLAGS" CC="${CC:-gcc}" || return 1
+ msg "building ld"
+ make -C ld CFLAGS="$CFLAGS" CC="${CC:-gcc}" || return 1
+ msg "building the rest..."
+ make -j1 DIST="$pkgdir" CC="${CC:-gcc}" || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DIST="$pkgdir" \
+ MANDIR=/usr/share/man \
+ LIBDIR=/usr/lib/bcc \
+ INCLDIR=/usr/lib/bcc \
+ LOCALPREFIX=/usr \
+ install install-man
+}
+
+md5sums="f2e06b547397383b2b2650b9c4fd9bab Dev86src-0.16.18.tar.gz
+eba7081bc5dbd72b7b9b902275251499 dev86-noelks.patch
+d508a2a8ededa9e34dbd9105dfd66290 dev86-pic.patch
+8f462d57fe4d5c9393331ba917db0258 dev86-overflow.patch
+7ce097efcb8c043727b4b3bf6c396c75 dev86-print-overflow.patch
+cad5918764234a9ab0492147a336d437 dev86-long.patch"
diff --git a/testing/dev86/dev86-long.patch b/testing/dev86/dev86-long.patch
new file mode 100644
index 000000000..34cde195b
--- /dev/null
+++ b/testing/dev86/dev86-long.patch
@@ -0,0 +1,17 @@
+diff -up dev86-0.16.17/ld/x86_aout.h.long dev86-0.16.17/ld/x86_aout.h
+--- dev86-0.16.17/ld/x86_aout.h.long 2003-01-28 23:17:14.000000000 +0100
++++ dev86-0.16.17/ld/x86_aout.h 2009-02-19 11:37:10.000000000 +0100
+@@ -11,10 +11,11 @@
+ /* If the host isn't an x86 all bets are off, use chars. */
+ #if defined(i386) || defined(__BCC__) || defined(MSDOS)
+ typedef long Long;
+-#define __OUT_OK 1
+ #else
+-typedef char Long[4];
++#include <stdint.h>
++typedef int32_t Long;
+ #endif
++#define __OUT_OK 1
+
+ struct exec { /* a.out header */
+ unsigned char a_magic[2]; /* magic number */
diff --git a/testing/dev86/dev86-noelks.patch b/testing/dev86/dev86-noelks.patch
new file mode 100644
index 000000000..9fd46e957
--- /dev/null
+++ b/testing/dev86/dev86-noelks.patch
@@ -0,0 +1,15 @@
+--- dev86-0.16.17/makefile.in.noelks 2006-01-25 17:03:02.000000000 -0500
++++ dev86-0.16.17/makefile.in 2006-01-25 17:03:19.000000000 -0500
+@@ -89,10 +89,10 @@
+
+ #ifdef GNUMAKE
+ all: check_config bcc86 cpp unproto copt as86 ar86 ld86 objdump86 \
+- library lib-bsd alt-libs elksemu
++ library lib-bsd alt-libs
+
+ install: check_config install-bcc install-man \
+- install-lib install-emu
++ install-lib
+
+ install-all: install install-other
+
diff --git a/testing/dev86/dev86-overflow.patch b/testing/dev86/dev86-overflow.patch
new file mode 100644
index 000000000..7b2e5666f
--- /dev/null
+++ b/testing/dev86/dev86-overflow.patch
@@ -0,0 +1,24 @@
+diff -up dev86-0.16.17/bcc/bcc.c.overflow dev86-0.16.17/bcc/bcc.c
+--- dev86-0.16.17/bcc/bcc.c.overflow 2005-01-03 23:41:55.000000000 +0100
++++ dev86-0.16.17/bcc/bcc.c 2009-02-19 10:49:32.000000000 +0100
+@@ -16,6 +16,7 @@
+ * -M0 A framework for the -B option.
+ */
+ #include <stdio.h>
++#include <limits.h>
+ #ifdef __STDC__
+ #include <stdlib.h>
+ #ifndef MSDOS
+@@ -1308,11 +1309,7 @@ void reset_prefix_path()
+
+ for(d=s=ptr; d && *s; s=d)
+ {
+-#ifdef MAXPATHLEN
+- char buf[MAXPATHLEN];
+-#else
+- char buf[1024];
+-#endif
++ char buf[PATH_MAX];
+
+ free(temp);
+ d=strchr(s, ':');
diff --git a/testing/dev86/dev86-pic.patch b/testing/dev86/dev86-pic.patch
new file mode 100644
index 000000000..41076f3da
--- /dev/null
+++ b/testing/dev86/dev86-pic.patch
@@ -0,0 +1,20 @@
+--- ./elksemu/elks.c.orig 2005-11-04 01:35:37.000000000 +0100
++++ ./elksemu/elks.c 2005-11-04 01:45:28.000000000 +0100
+@@ -129,8 +129,17 @@
+ static inline int vm86_mine(struct vm86_struct* v86)
+ {
+ int __res;
++#ifndef __PIC__
+ __asm__ __volatile__("int $0x80\n"
+ :"=a" (__res):"a" ((int)OLD_SYS_vm86), "b" ((int)v86));
++#else
++ __asm__ __volatile__(
++ "movl %%ebx,%%ecx\n\t"
++ "movl %2,%%ebx\n\t"
++ "int $0x80\n\t"
++ "movl %%ecx,%%ebx\n\t"
++ :"=a" (__res):"a" ((int)OLD_SYS_vm86), "r" ((int)v86) : "ecx");
++#endif
+ return __res;
+ }
+ #endif
diff --git a/testing/dev86/dev86-print-overflow.patch b/testing/dev86/dev86-print-overflow.patch
new file mode 100644
index 000000000..c75e18c9b
--- /dev/null
+++ b/testing/dev86/dev86-print-overflow.patch
@@ -0,0 +1,27 @@
+From: Lubomir Rintel <lkundrak@v3.sk>
+
+There are off-by-one errors when filling the ar headers, the trailing nul
+would overflow the target buffer.
+
+diff -urp dev86-0.16.17/ld/mkar.c dev86-0.16.17.fixed/ld/mkar.c
+--- dev86-0.16.17/ld/mkar.c 2004-06-20 09:23:27.000000000 +0200
++++ dev86-0.16.17.fixed/ld/mkar.c 2010-03-29 23:34:30.351426404 +0200
+@@ -51,12 +51,12 @@ char buf[128];
+ memset(&arbuf, ' ', sizeof(arbuf));
+ strcpy(buf, ptr); strcat(buf, "/ ");
+ strncpy(arbuf.ar_name, buf, sizeof(arbuf.ar_name));
+-
+- sprintf(arbuf.ar_date, "%-12ld", (long)st.st_mtime);
+- sprintf(arbuf.ar_uid, "%-6d", (int)(st.st_uid%1000000L));
+- sprintf(arbuf.ar_gid, "%-6d", (int)(st.st_gid%1000000L));
+- sprintf(arbuf.ar_mode, "%-8lo", (long)st.st_mode);
+- sprintf(arbuf.ar_size, "%-10ld", (long)st.st_size);
++
++ snprintf(arbuf.ar_date, 12, "%-12ld", (long)st.st_mtime);
++ snprintf(arbuf.ar_uid, 6, "%-6d", (int)(st.st_uid%1000000L));
++ snprintf(arbuf.ar_gid, 6, "%-6d", (int)(st.st_gid%1000000L));
++ snprintf(arbuf.ar_mode, 8, "%-8lo", (long)st.st_mode);
++ snprintf(arbuf.ar_size, 10, "%-10ld", (long)st.st_size);
+ memcpy(arbuf.ar_fmag, ARFMAG, sizeof(arbuf.ar_fmag));
+
+ if( fwrite(&arbuf, 1, sizeof(arbuf), fd) != sizeof(arbuf) )
diff --git a/testing/fakechroot/APKBUILD b/testing/fakechroot/APKBUILD
new file mode 100644
index 000000000..96525b3ba
--- /dev/null
+++ b/testing/fakechroot/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer:
+pkgname=fakechroot
+pkgver=2.16
+pkgrel=0
+pkgdesc="fakeroot-like utility for chrooting"
+url="http://github.com/fakechroot/fakechroot"
+arch="all"
+license="LGPL"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://cloud.github.com/downloads/fakechroot/fakechroot/fakechroot-${pkgver}.tar.gz"
+
+_builddir="${srcdir}/fakechroot-${pkgver}"
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc || return 1
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make install DESTDIR="$pkgdir" || return 1
+ rm "$pkgdir"/usr/lib/fakechroot/*.la
+}
+
+md5sums="3ea5efb76664e787450e0cfcefc1b807 fakechroot-2.16.tar.gz"
diff --git a/testing/lua-cjson/APKBUILD b/testing/lua-cjson/APKBUILD
new file mode 100644
index 000000000..2126d959a
--- /dev/null
+++ b/testing/lua-cjson/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=lua-cjson
+pkgver=1.0.4
+pkgrel=0
+pkgdesc="fast JSON parsing and encoding support for Lua"
+url="http://www.kyne.com.au/~mark/software/lua-cjson.php"
+arch="all"
+license="MIT"
+depends=""
+makedepends="lua-dev"
+install=""
+subpackages=""
+source="http://www.kyne.com.au/~mark/software/lua-cjson-$pkgver.tar.gz"
+
+_builddir="$srcdir"/lua-cjson-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make CFLAGS_EXTRA= PREFIX=/usr|| return 1
+}
+
+package() {
+ cd "$_builddir"
+ make PREFIX=/usr DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="9b04196a37f724c7530794248f8e1f96 lua-cjson-1.0.4.tar.gz"
diff --git a/testing/mathomatic/APKBUILD b/testing/mathomatic/APKBUILD
new file mode 100644
index 000000000..01f36612e
--- /dev/null
+++ b/testing/mathomatic/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer:
+pkgname=mathomatic
+pkgver=15.7.1
+pkgrel=0
+pkgdesc="free software computer algebra system (CAS)"
+url="http://www.mathomatic.org/math/"
+arch="all"
+license="LGPL"
+depends="m4"
+depends_dev="readline-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://mathomatic.org/mathomatic-$pkgver.tar.bz2
+ busybox.patch"
+
+_builddir="$srcdir"/mathomatic-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make READLINE=1 CC_OPTIMIZE="$CFLAGS" prefix="/usr"
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" prefix="/usr" m4install
+}
+
+md5sums="f8144e9c17edf688cbb296d20efaf808 mathomatic-15.7.1.tar.bz2
+c8e6c51e094625c3912cbcf8f2bb21e8 busybox.patch"
diff --git a/testing/mathomatic/busybox.patch b/testing/mathomatic/busybox.patch
new file mode 100644
index 000000000..07061ca60
--- /dev/null
+++ b/testing/mathomatic/busybox.patch
@@ -0,0 +1,11 @@
+--- mathomatic-15.7.1.orig/makefile
++++ mathomatic-15.7.1/makefile
+@@ -33,7 +33,7 @@
+ CC ?= gcc # C compiler to use; this statement doesn't work usually, instead using cc.
+ M4 ?= m4 # Change this to gm4 in Unix or a non-GNU system.
+ INSTALL ?= install # Installer utility to use; change to ginstall under Unix.
+-INSTALL_PROGRAM ?= $(INSTALL) -Cv # Command to install executable program files; compares to see if any differences, first.
++INSTALL_PROGRAM ?= $(INSTALL) -c # Command to install executable program files; compares to see if any differences, first.
+ INSTALL_DATA ?= $(INSTALL) -m 0644 # command to install data files
+
+ CC_OPTIMIZE ?= -O3 # Default C compiler optimization flags that are safe.
diff --git a/testing/plymouth/APKBUILD b/testing/plymouth/APKBUILD
new file mode 100644
index 000000000..24e6821ee
--- /dev/null
+++ b/testing/plymouth/APKBUILD
@@ -0,0 +1,65 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=plymouth
+pkgver=0.8.3
+pkgrel=0
+pkgdesc="graphical bootsplash on linux"
+url="http://www.freedesktop.org/wiki/Software/Plymouth"
+arch="all"
+license="GPL"
+depends=""
+depends_dev="pango-dev
+ gtk+-dev
+ libpng-dev
+ libdrm-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-x11 $pkgname-log-viewer:logviewer"
+source="http://www.freedesktop.org/software/plymouth/releases/plymouth-$pkgver.tar.bz2
+ plymouth-rpmatch.patch"
+
+_builddir="$srcdir"/plymouth-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --with-system-root-install \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+
+ rm -f "$pkgdir"/lib/*.la
+ rm -f "$pkgdir"/usr/lib/*.la
+ rm -f "$pkgdir"/usr/lib/plymouth/*.la
+ rm -f "$pkgdir"/usr/lib/plymouth/renderers/*.la
+}
+
+x11() {
+ mkdir -p "$subpkgdir"/usr/lib/plymouth/renderers
+ mv "$pkgdir"/usr/lib/plymouth/renderers/x11.so "$subpkgdir"/usr/lib/plymouth/renderers
+}
+
+logviewer() {
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/plymouth-log-viewer "$subpkgdir"/usr/bin
+}
+
+md5sums="a479180467b21dd1c5477160d5a1fd35 plymouth-0.8.3.tar.bz2
+7d342aa2f011833647f1c696007b190c plymouth-rpmatch.patch"
diff --git a/testing/plymouth/plymouth-rpmatch.patch b/testing/plymouth/plymouth-rpmatch.patch
new file mode 100644
index 000000000..f6e194874
--- /dev/null
+++ b/testing/plymouth/plymouth-rpmatch.patch
@@ -0,0 +1,17 @@
+--- plymouth-0.8.3.orig/src/libply/ply-command-parser.c
++++ plymouth-0.8.3/src/libply/ply-command-parser.c
+@@ -671,6 +671,14 @@
+ return argument[0] == '-' && argument[1] == '-';
+ }
+
++static inline int
++rpmatch (const char *response)
++{
++ /* Test against "^[yY]" and "^[nN]", hardcoded to avoid requiring regex */
++ return (*response == 'y' || *response == 'Y' ? 1
++ : *response == 'n' || *response == 'N' ? 0 : -1);
++}
++
+ static bool
+ ply_command_option_read_arguments (ply_command_option_t *option,
+ ply_list_t *arguments)