diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-11 10:23:56 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-11 10:23:56 +0000 |
commit | 5656f8d8ccc746346629dca9074e9bef9e3477d3 (patch) | |
tree | 4c5d4b111ccd6347f3c80adea674298f7dc2a4dd /main | |
parent | 4e8f06e280ffe22dfbf26df0c41ffd23d1048f3b (diff) | |
download | aports-5656f8d8ccc746346629dca9074e9bef9e3477d3.tar.bz2 aports-5656f8d8ccc746346629dca9074e9bef9e3477d3.tar.xz |
main/fts: move from testing
needed by opensmtpd
Diffstat (limited to 'main')
-rw-r--r-- | main/fts/00-static-and-shared-libs.patch | 49 | ||||
-rw-r--r-- | main/fts/APKBUILD | 51 |
2 files changed, 100 insertions, 0 deletions
diff --git a/main/fts/00-static-and-shared-libs.patch b/main/fts/00-static-and-shared-libs.patch new file mode 100644 index 0000000000..b65b1d0d67 --- /dev/null +++ b/main/fts/00-static-and-shared-libs.patch @@ -0,0 +1,49 @@ +diff --git a/.gitignore b/.gitignore +index 528fe32..663e6bb 100644 +--- a/.gitignore ++++ b/.gitignore +@@ -10,4 +10,5 @@ config.status + configure + depcomp + install-sh ++ltmain.sh + missing +diff --git a/Makefile.am b/Makefile.am +index aa93562..f09994e 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -1,5 +1,5 @@ + ## Makefile.am - procress this file with automake to produce Makefile.in +-lib_LIBRARIES = libfts.a +-libfts_a_SOURCES = fts.c +-libfts_a_HEADERS = fts.h +-libfts_adir = $(includedir) ++lib_LTLIBRARIES = libfts.la ++libfts_la_SOURCES = fts.c ++libfts_la_HEADERS = fts.h ++libfts_ladir = $(includedir) +diff --git a/bootstrap.sh b/bootstrap.sh +index 9e026b5..cd4a585 100755 +--- a/bootstrap.sh ++++ b/bootstrap.sh +@@ -1,4 +1,5 @@ + #!/bin/sh ++libtoolize + aclocal + autoconf + automake --add-missing +diff --git a/configure.ac b/configure.ac +index 28dd6c6..6f12859 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -7,7 +7,9 @@ AC_INIT([fts], [1.1], [Jürgen Buchmüller <pullmoll@t-online.de>]) + AM_INIT_AUTOMAKE([1.15]) + + AC_PROG_CC +-AC_PROG_RANLIB ++AC_PROG_LIBTOOL ++ ++LT_INIT + + AC_CHECK_HEADERS(assert.h dirent.h errno.h fcntl.h stdlib.h string.h unistd.h sys/param.h sys/stat.h) + diff --git a/main/fts/APKBUILD b/main/fts/APKBUILD new file mode 100644 index 0000000000..ad95ee5108 --- /dev/null +++ b/main/fts/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=fts +pkgver=1.1 +pkgrel=5 +pkgdesc="Provides the fts(3) functions, which are missing in musl libc" +url="https://github.com/pullmoll/musl-fts/" +arch="all" +license="BSD" +depends= +depends_dev="" +makedepends="$depends_dev automake autoconf libtool" +install="" +subpackages="$pkgname-dev" +source="https://github.com/pullmoll/musl-fts/archive/v1.1.zip + 00-static-and-shared-libs.patch" + +_builddir="${srcdir}/musl-${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" + ./bootstrap.sh + CFLAGS=-fPIC ./configure --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR=${pkgdir} install || return 1 + + mkdir -p "$pkgdir"/usr/lib/pkgconfig + cp "$_builddir"/musl-fts.pc "$pkgdir"/usr/lib/pkgconfig/libfts.pc +} + +md5sums="9ee52bbf56df87d3cf5349407d26ab01 v1.1.zip +db14405fba57173dc1f72bae322bcddb 00-static-and-shared-libs.patch" +sha256sums="17154766ca2c1e2e7ca55039a4a10a0334427fe986cd52b8c936667e80350954 v1.1.zip +aea0dde6690df477b4575362c9101981835abbf2bf04cf1a02911917efc23695 00-static-and-shared-libs.patch" +sha512sums="e2e03589d31a0494c1652fa411260646497c623598569443fd18718f63013c871bebef1765ebe6129895f5fd6008c0bf6d2a0d843ac2645eb6d9615056f6ba7e v1.1.zip +dc455af94a97524024ae714ae57ca123a6732e3d9872a56d1cf282107cba09e30efd976b9c448c0c520407b1e43c71e36deec3e0655dcf3076d293ac7af8a9ac 00-static-and-shared-libs.patch" |