diff options
-rw-r--r-- | extra/glib/APKBUILD | 13 | ||||
-rw-r--r-- | extra/newt/APKBUILD | 35 | ||||
-rw-r--r-- | extra/newt/newt-0.52.7-notcl.patch | 35 | ||||
-rw-r--r-- | extra/popt/APKBUILD | 20 | ||||
-rw-r--r-- | extra/slang/APKBUILD | 27 | ||||
-rw-r--r-- | extra/slang/slang-2.1.3-uclibc.patch | 12 | ||||
-rw-r--r-- | testing/dahdi-tools/APKBUILD | 30 | ||||
-rw-r--r-- | testing/dahdi-tools/dahdi-tools.initd | 15 |
8 files changed, 184 insertions, 3 deletions
diff --git a/extra/glib/APKBUILD b/extra/glib/APKBUILD index b0d5aa4eb..dcc3d4668 100644 --- a/extra/glib/APKBUILD +++ b/extra/glib/APKBUILD @@ -1,13 +1,13 @@ # Maintainer: Carlo Landmeter <clandmeter at gmail.com> pkgname=glib -pkgver=2.18.3 +pkgver=2.18.4 pkgrel=0 pkgdesc="Common C routines used by Gtk+ and other libs" url="http://www.gtk.org" license='GPL' depends="gettext libiconv" makedepends="gettext-dev libiconv-dev pkgconfig" -source="http://ftp.gnome.org/pub/gnome/sources/glib/2.18/glib-2.18.3.tar.bz2" +source="http://ftp.gnome.org/pub/gnome/sources/glib/2.18/glib-$pkgver.tar.bz2" subpackages="$pkgname-doc $pkgname-dev" build() { @@ -19,4 +19,11 @@ build() { make DESTDIR="$pkgdir/" install } -md5sums="f13996a7bd57525d796a6593f26a7771 glib-2.18.3.tar.bz2" +# move the stuff in /usr/bin to the glib-dev package +dev() { + default_dev + depends="$depends perl" + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + +md5sums="ec25ed261534d870141000ab73f1a2bf glib-2.18.4.tar.bz2" diff --git a/extra/newt/APKBUILD b/extra/newt/APKBUILD new file mode 100644 index 000000000..dc81b8b67 --- /dev/null +++ b/extra/newt/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=newt +pkgver=0.52.8 +pkgrel=0 +pkgdesc="Redhat's Newt windowing toolkit development files" +url="http://www.redhat.com/" +license="LGPL-2" +depends="uclibc slang popt ncurses" +makedepends="slang-dev popt-dev python-dev ncurses-dev" +subpackages="$pkgname-dev $pkgname-doc" +source="http://distfiles.gentoo.org/distfiles/$pkgname-$pkgver.tar.gz + $pkgname-0.52.7-notcl.patch + " + +build() { + cd "$srcdir"/$pkgname-$pkgver + for i in ../*.patch; do + msg "Applying $i..." + patch -p1 < $i || return 1 + done + + sed -i -e 's:-lslang:-lslang -lncurses:g' \ + -e 's:instroot:DESTDIR:g' Makefile.in || return 1 + + ./configure --prefix=/usr \ + --without-gpm \ + --without-tcl \ + --disable-nls + make -j1 RPM_OPT_FLAGS="$CFLAGS" || return 1 + # TODO: fix the make install target to not try install po files + make -j1 DESTDIR="$pkgdir" prefix="/usr" RPM_OPT_FLAGS="ERROR" install \ + || true +} +md5sums="0daef93590e9b6fd3419c871e75f9fa7 newt-0.52.8.tar.gz +6780156f3b66a3f05efe1ee821617031 newt-0.52.7-notcl.patch" diff --git a/extra/newt/newt-0.52.7-notcl.patch b/extra/newt/newt-0.52.7-notcl.patch new file mode 100644 index 000000000..b9f86e6b6 --- /dev/null +++ b/extra/newt/newt-0.52.7-notcl.patch @@ -0,0 +1,35 @@ +--- newt-0.52.7/Makefile.in.orig 2008-01-15 16:57:12.000000000 +0100 ++++ newt-0.52.7/Makefile.in 2008-01-15 16:58:38.000000000 +0100 +@@ -15,7 +15,7 @@ + PYTHONVERS = @PYTHONVERS@ + WHIPTCLSO = @WHIPTCLSO@ + +-PROGS = test whiptail $(WHIPTCLSO) testgrid testtree showchars showkey ++PROGS = test whiptail testgrid testtree showchars showkey + TESTOBJS = test.o testgrid.o testtree.o showchars.o showkey.o + NDIALOGOBJS = whiptail.o dialogboxes.o + WHIPTCLOBJS = shared/whiptcl.o shared/dialogboxes.o +@@ -78,9 +78,6 @@ + whiptail: $(NDIALOGOBJS) $(LIBNEWTSH) + $(CC) -g -o whiptail $(NDIALOGOBJS) -L . -lnewt $(LIBS) -lpopt + +-whiptcl.so: $(WHIPTCLOBJS) $(LIBNEWTSH) +- $(CC) -shared $(SHCFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L . -lnewt $(LIBTCL) -lslang -lpopt -lm +- + $(LIBNEWT): $(LIBOBJS) + ar rv $@ $^ + +@@ -120,12 +117,11 @@ + install -m 644 whiptail.1 $(instroot)/$(man1dir) + make -C po datadir=$(instroot)/$(datadir) install + +-install-sh: sharedlib $(WHIPTCLSO) _snackmodule.so ++install-sh: sharedlib _snackmodule.so + [ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir) + install -m 755 $(LIBNEWTSH) $(instroot)/$(libdir) + ln -sf $(LIBNEWTSONAME) $(instroot)/$(libdir)/libnewt.so + ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/$(LIBNEWTSONAME) +- [ -n "$(WHIPTCLSO)" ] && install -m 755 whiptcl.so $(instroot)/$(libdir) || : + for ver in $(PYTHONVERS) ; do \ + [ -d $(instroot)/$(libdir)/$$ver/site-packages ] || install -m 755 -d $(instroot)/$(libdir)/$$ver/site-packages ;\ + install -m 755 $$ver/_snackmodule.so $(instroot)/$(libdir)/$$ver/site-packages ;\ diff --git a/extra/popt/APKBUILD b/extra/popt/APKBUILD new file mode 100644 index 000000000..4826bd2d2 --- /dev/null +++ b/extra/popt/APKBUILD @@ -0,0 +1,20 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=popt +pkgver=1.14 +pkgrel=0 +pkgdesc="Parse Options - Command line parser" +url="http://rpm5.org/" +license="as-is" +depends="uclibc" +subpackages="$pkgname-dev $pkgname-doc" +source="http://rpm5.org/files/popt/$pkgname-$pkgver.tar.gz" + +build() { + cd "$srcdir"/$pkgname-$pkgver + ./configure --prefix=/usr \ + --without-included-gettext \ + --disable-nls || return 1 + make || return 1 + make install DESTDIR="$pkgdir" +} +md5sums="4f90a07316eb825604dd10ae4f9f3f04 popt-1.14.tar.gz" diff --git a/extra/slang/APKBUILD b/extra/slang/APKBUILD new file mode 100644 index 000000000..c1fe96200 --- /dev/null +++ b/extra/slang/APKBUILD @@ -0,0 +1,27 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=slang +pkgver=2.1.4 +pkgrel=0 +pkgdesc="S-Lang is a powerful interpreted language" +url="http://www.s-lang.org/" +license="GPL" +subpackages="$pkgname-dev $pkgname-doc" +depends="uclibc pcre" +makedepends="pcre-dev" +source="ftp://ftp.fu-berlin.de/pub/unix/misc/$pkgname/v2.1/$pkgname-$pkgver.tar.gz + slang-2.1.3-uclibc.patch + " + +build () { + cd "$srcdir"/$pkgname-$pkgver + for i in ../*.patch; do + msg "Applying $i..." + patch -p1 < $i || return 1 + done + ./configure --prefix=/usr \ + --sysconfdir=/etc || return 1 + make || return 1 + make install-all DESTDIR="$pkgdir" || return 1 +} +md5sums="3516f593bc04975844f26137c18275d2 slang-2.1.4.tar.gz +56ca82f415578994b6050e769b6b7bc9 slang-2.1.3-uclibc.patch" diff --git a/extra/slang/slang-2.1.3-uclibc.patch b/extra/slang/slang-2.1.3-uclibc.patch new file mode 100644 index 000000000..d7ed5a8d6 --- /dev/null +++ b/extra/slang/slang-2.1.3-uclibc.patch @@ -0,0 +1,12 @@ +diff -ur slang-2.1.3.orig/src/slcommon.c slang-2.1.3/src/slcommon.c +--- slang-2.1.3.orig/src/slcommon.c 2007-01-10 18:09:07.000000000 +0200 ++++ slang-2.1.3/src/slcommon.c 2008-03-19 16:09:09.000000000 +0200 +@@ -191,7 +191,7 @@ + return p; + } + +-#if !defined(HAVE_ISSETUGID) && defined(__GLIBC__) && (__GLIBC__ >= 2) ++#if !defined(HAVE_ISSETUGID) && defined(__GLIBC__) && (__GLIBC__ >= 2) && !defined(__UCLIBC__) + extern int __libc_enable_secure; + # define HAVE___LIBC_ENABLE_SECURE 1 + #endif diff --git a/testing/dahdi-tools/APKBUILD b/testing/dahdi-tools/APKBUILD new file mode 100644 index 000000000..e3a1be3ac --- /dev/null +++ b/testing/dahdi-tools/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Timo Teras <timo.teras@iki.fi> +# Maintainer: Timo Teras <timo.teras@iki.fi> +pkgname=dahdi-tools +pkgver=2.1.0.2 +pkgrel=0 +pkgdesc="Digium Asterisk Hardware Device Interface management utilities" +url="http://www.asterisk.org" +license="GPL" +depends="dahdi-linux newt" +makedepends="dahdi-linux-dev perl newt-dev" +install= +subpackages="$pkgname-doc $pkgname-dev" +source="http://downloads.digium.com/pub/telephony/dahdi-tools/releases/$pkgname-$pkgver.tar.gz + $pkgname.initd" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make || return 1 + make DESTDIR="$pkgdir" install + + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/dahdi +} + +md5sums="2e0c2866112932e54aacf3dc62f548ca dahdi-tools-2.1.0.2.tar.gz +78095255f5bf640e8dde374b28897524 dahdi-tools.initd" diff --git a/testing/dahdi-tools/dahdi-tools.initd b/testing/dahdi-tools/dahdi-tools.initd new file mode 100644 index 000000000..ccdace428 --- /dev/null +++ b/testing/dahdi-tools/dahdi-tools.initd @@ -0,0 +1,15 @@ +#!/sbin/runscript + +conf=/etc/dahdi/system.conf + +start() { + ebegin "Starting dahdi" + /usr/sbin/dahdi_cfg + eend $? +} + +stop() { + ebegin "Stopping dahdi" + /usr/sbin/dahdi_cfg -s + eend $? +} |