diff --git a/srcpkgs/apr-util-db b/srcpkgs/apr-util-db new file mode 120000 index 0000000000..97932747b0 --- /dev/null +++ b/srcpkgs/apr-util-db @@ -0,0 +1 @@ +apr-util \ No newline at end of file diff --git a/srcpkgs/apr-util-devel b/srcpkgs/apr-util-devel new file mode 120000 index 0000000000..97932747b0 --- /dev/null +++ b/srcpkgs/apr-util-devel @@ -0,0 +1 @@ +apr-util \ No newline at end of file diff --git a/srcpkgs/apr-util-gdbm b/srcpkgs/apr-util-gdbm new file mode 120000 index 0000000000..97932747b0 --- /dev/null +++ b/srcpkgs/apr-util-gdbm @@ -0,0 +1 @@ +apr-util \ No newline at end of file diff --git a/srcpkgs/apr-util-ldap b/srcpkgs/apr-util-ldap new file mode 120000 index 0000000000..97932747b0 --- /dev/null +++ b/srcpkgs/apr-util-ldap @@ -0,0 +1 @@ +apr-util \ No newline at end of file diff --git a/srcpkgs/apr-util-mysql b/srcpkgs/apr-util-mysql new file mode 120000 index 0000000000..97932747b0 --- /dev/null +++ b/srcpkgs/apr-util-mysql @@ -0,0 +1 @@ +apr-util \ No newline at end of file diff --git a/srcpkgs/apr-util-pgsql b/srcpkgs/apr-util-pgsql new file mode 120000 index 0000000000..97932747b0 --- /dev/null +++ b/srcpkgs/apr-util-pgsql @@ -0,0 +1 @@ +apr-util \ No newline at end of file diff --git a/srcpkgs/apr-util-sqlite b/srcpkgs/apr-util-sqlite new file mode 120000 index 0000000000..97932747b0 --- /dev/null +++ b/srcpkgs/apr-util-sqlite @@ -0,0 +1 @@ +apr-util \ No newline at end of file diff --git a/srcpkgs/apr-util/apr-util-db.template b/srcpkgs/apr-util/apr-util-db.template new file mode 100644 index 0000000000..03f159d04a --- /dev/null +++ b/srcpkgs/apr-util/apr-util-db.template @@ -0,0 +1,18 @@ +# Template file for 'apr-util-db'. +# +short_desc="${short_desc} - Berkeley DB module" +long_desc=" + ${long_desc} + + This packages contains APR Utility module for Berkeley DB." + +Add_dependency run glibc +Add_dependency run db +Add_dependency run apr-util + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib/apr-util-1 + mv ${SRCPKGDESTDIR}/usr/lib/apr-util-1/apr_dbm_db* \ + ${DESTDIR}/usr/lib/apr-util-1 +} diff --git a/srcpkgs/apr-util/apr-util-devel.template b/srcpkgs/apr-util/apr-util-devel.template new file mode 100644 index 0000000000..fa2df8f9f7 --- /dev/null +++ b/srcpkgs/apr-util/apr-util-devel.template @@ -0,0 +1,28 @@ +# Template file for 'apr-util-devel'. +# +short_desc="${short_desc} - development files" +long_desc=" + ${long_desc} + + This packages contains files for development, static files, headers, etc." + +Add_dependency run zlib-devel +Add_dependency run openssl-devel +Add_dependency run apr-devel +Add_dependency run libuuid-devel +Add_dependency run expat-devel +Add_dependency run db-devel +Add_dependency run gdbm-devel +Add_dependency run sqlite-devel +Add_dependency run libldap-devel +Add_dependency run libmysqlclient-devel +Add_dependency run postgresql-libs-devel +Add_dependency run apr-util + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.{a,exp} ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/{include,bin} ${DESTDIR}/usr +} diff --git a/srcpkgs/apr-util/apr-util-gdbm.template b/srcpkgs/apr-util/apr-util-gdbm.template new file mode 100644 index 0000000000..2e294e2ffa --- /dev/null +++ b/srcpkgs/apr-util/apr-util-gdbm.template @@ -0,0 +1,18 @@ +# Template file for 'apr-util-gdbm'. +# +short_desc="${short_desc} - GDBM module" +long_desc=" + ${long_desc} + + This packages contains the APR Utility module for GDBM." + +Add_dependency run glibc +Add_dependency run gdbm +Add_dependency run apr-util + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib/apr-util-1 + mv ${SRCPKGDESTDIR}/usr/lib/apr-util-1/apr_dbm_gdbm* \ + ${DESTDIR}/usr/lib/apr-util-1 +} diff --git a/srcpkgs/apr-util/apr-util-ldap.template b/srcpkgs/apr-util/apr-util-ldap.template new file mode 100644 index 0000000000..8090426956 --- /dev/null +++ b/srcpkgs/apr-util/apr-util-ldap.template @@ -0,0 +1,17 @@ +# Template file for 'apr-util-ldap'. +# +short_desc="${short_desc} - LDAP support" +long_desc=" + ${long_desc} + + This packages contains APR Utility support for LDAP." + +Add_dependency run glibc +Add_dependency run libldap +Add_dependency run apr-util + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/apr-util-1 ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/apr-util/apr-util-mysql.template b/srcpkgs/apr-util/apr-util-mysql.template new file mode 100644 index 0000000000..b31bbeb13b --- /dev/null +++ b/srcpkgs/apr-util/apr-util-mysql.template @@ -0,0 +1,20 @@ +# Template file for 'apr-util-mysql'. +# +short_desc="${short_desc} - MySQL module" +long_desc=" + ${long_desc} + + This packages contains the APR Utility module for MySQL." + +Add_dependency run glibc +Add_dependency run zlib +Add_dependency run openssl +Add_dependency run libmysqlclient +Add_dependency run apr-util + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib/apr-util-1 + mv ${SRCPKGDESTDIR}/usr/lib/apr-util-1/apr_dbd_mysql* \ + ${DESTDIR}/usr/lib/apr-util-1 +} diff --git a/srcpkgs/apr-util/apr-util-pgsql.template b/srcpkgs/apr-util/apr-util-pgsql.template new file mode 100644 index 0000000000..46b4231725 --- /dev/null +++ b/srcpkgs/apr-util/apr-util-pgsql.template @@ -0,0 +1,18 @@ +# Template file for 'apr-util-pgsql'. +# +short_desc="${short_desc} - PostgreSQL module" +long_desc=" + ${long_desc} + + This packages contains the APR Utility module for PostgreSQL." + +Add_dependency run glibc +Add_dependency run postgresql-libs +Add_dependency run apr-util + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib/apr-util-1 + mv ${SRCPKGDESTDIR}/usr/lib/apr-util-1/apr_dbd_pgsql* \ + ${DESTDIR}/usr/lib/apr-util-1 +} diff --git a/srcpkgs/apr-util/apr-util-sqlite.template b/srcpkgs/apr-util/apr-util-sqlite.template new file mode 100644 index 0000000000..843443b229 --- /dev/null +++ b/srcpkgs/apr-util/apr-util-sqlite.template @@ -0,0 +1,18 @@ +# Template file for 'apr-util-sqlite'. +# +short_desc="${short_desc} - SQLite module" +long_desc=" + ${long_desc} + + This packages contains the APR Utility module for SQLite." + +Add_dependency run glibc +Add_dependency run sqlite +Add_dependency run apr-util + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib/apr-util-1 + mv ${SRCPKGDESTDIR}/usr/lib/apr-util-1/apr_dbd_sqlite* \ + ${DESTDIR}/usr/lib/apr-util-1 +} diff --git a/srcpkgs/apr-util/depends b/srcpkgs/apr-util/depends new file mode 100644 index 0000000000..02ffa848c3 --- /dev/null +++ b/srcpkgs/apr-util/depends @@ -0,0 +1,2 @@ +abi_depends=">=1.3.9" +api_depends="${abi_depends}" diff --git a/srcpkgs/apr-util/template b/srcpkgs/apr-util/template new file mode 100644 index 0000000000..e12da29826 --- /dev/null +++ b/srcpkgs/apr-util/template @@ -0,0 +1,45 @@ +# Template file for 'apr-util' +pkgname=apr-util +version=1.3.9 +distfiles="http://www.apache.org/dist/apr/apr-util-${version}.tar.bz2" +build_style=gnu_configure +configure_args="--with-pgsql --with-mysql --with-sqlite3 --with-ldap +--with-berkeley-db --with-gdbm --with-apr=/usr --without-odbc +--with-expat=/usr --without-oracle" +short_desc="The Apache Portable Runtime Utility Library" +maintainer="Juan RP " +checksum=8741a76c77ce605e723fd9683e99bee9da8c94a83b47ea2cea72f66255f0ec83 +long_desc=" + APR is Apache's Portable Runtime Library, designed to be a support library + that provides a predictable and consistent interface to underlying + platform-specific implementations. + + APR Util is a utilities library implemented on top of APR, providing database + access, xml parsing, and other useful functionality." + +# XXX: add freetds and unixodbc modules. +subpackages="$pkgname-db $pkgname-gdbm $pkgname-sqlite $pkgname-mysql" +subpackages="${subpackages} $pkgname-pgsql $pkgname-ldap $pkgname-devel" + +Add_dependency run glibc +Add_dependency run libuuid +Add_dependency run expat +Add_dependency run apr + +Add_dependency build zlib-devel +Add_dependency build openssl-devel +Add_dependency build apr-devel +Add_dependency build libuuid-devel +Add_dependency build expat-devel +Add_dependency build db-devel +Add_dependency build gdbm-devel +Add_dependency build sqlite-devel +Add_dependency build libldap-devel +Add_dependency build libmysqlclient-devel +Add_dependency build postgresql-libs-devel + +post_install() +{ + # Remove unused stuff. + rm -f ${DESTDIR}/usr/lib/apr-util-1/*.a +} diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index f3e3697e8d..e4aa5e4a47 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -628,3 +628,4 @@ libLLVMHello.so llvm llvm-devel libLTO.so llvm llvm-devel libprofile_rt.so llvm llvm-devel libapr-1.so apr apr-devel +ibaprutil-1.so apr-util apr-util-devel