diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/freetds/APKBUILD | 44 | ||||
-rw-r--r-- | user/freetds/fix-includes.patch | 12 |
2 files changed, 56 insertions, 0 deletions
diff --git a/user/freetds/APKBUILD b/user/freetds/APKBUILD new file mode 100644 index 000000000..c90663bc4 --- /dev/null +++ b/user/freetds/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=freetds +pkgver=1.00.89 +pkgrel=0 +pkgdesc="Tabular Datastream Library" +url="http://www.freetds.org/" +arch="all" +license="LGPL-2.0+" +depends= +makedepends="linux-headers openssl-dev unixodbc-dev" +install= +subpackages="$pkgname-doc $pkgname-dev" +source="ftp://ftp.freetds.org/pub/freetds/stable/$pkgname-$pkgver.tar.gz + fix-includes.patch" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-msdblib \ + --with-openssl=/usr \ + --enable-odbc \ + --with-unixodbc=/usr + make +} + +check() { + cd "$builddir" + make -C "src/replacements" check +} + +package() { + cd "$builddir" + make -j1 DESTDIR="$pkgdir" install +} + +sha512sums="44d9257cf3b2e80f192c3ff7f7356d06b1995ccfc738273e2474ecb154fb4cd7502cc37f7894cc4ec91ef9871c41e718dd12b612bbe2d6d2d80b9024279ac3eb freetds-1.00.89.tar.gz +d75d1aab6687586697f3e430db1e82f21208f10076b45996542eea682e36cbbbb344f479a9336fcfd294b5b87d7acb2ec5fb8ddd1914e990e23dd5e7ae93a0b6 fix-includes.patch" diff --git a/user/freetds/fix-includes.patch b/user/freetds/fix-includes.patch new file mode 100644 index 000000000..af9465d75 --- /dev/null +++ b/user/freetds/fix-includes.patch @@ -0,0 +1,12 @@ +diff --git a/src/apps/fisql/fisql.c b/src/apps/fisql/fisql.c +index ec8fded..fd76956 100644 +--- a/src/apps/fisql/fisql.c ++++ b/src/apps/fisql/fisql.c +@@ -25,6 +25,7 @@ + #include <unistd.h> + #include <setjmp.h> + #include <signal.h> ++#include <sys/stat.h> + #ifdef HAVE_READLINE + #include <readline/readline.h> + #include <readline/history.h> |