From 6f627c21f3fbec4271c65c43157e7ed703970a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sat, 6 Jul 2019 14:18:15 +0200 Subject: [PATCH] New package: firebird3-3.0.4.33054 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces firebird (v2) Signed-off-by: Jürgen Buchmüller --- common/shlibs | 6 +- .../firebird3/patches/musl-os_utils_h.patch | 10 ++ srcpkgs/firebird3/template | 98 +++++++++++++++++++ srcpkgs/libfbclient3 | 1 + srcpkgs/libfbclient3-devel | 1 + 5 files changed, 111 insertions(+), 5 deletions(-) create mode 100644 srcpkgs/firebird3/patches/musl-os_utils_h.patch create mode 100644 srcpkgs/firebird3/template create mode 120000 srcpkgs/libfbclient3 create mode 120000 srcpkgs/libfbclient3-devel diff --git a/common/shlibs b/common/shlibs index d4a66b6b79..8f92f249b4 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2392,11 +2392,7 @@ libUTF.so opencollada-0.0.20160223_1 libbuffer.so opencollada-0.0.20160223_1 libftoa.so opencollada-0.0.20160223_1 libzlib.so opencollada-1.6.51_1 -libfbclient.so.2 libfbclient-2.5.5.26952_1 -libfbembed.so.2 libfbclient-2.5.5.26952_1 -libfbembed.so.2.5 libfbclient-2.5.5.26952_1 -libib_util.so libfbclient-2.5.5.26952_1 -libgds.so.0 libfbclient-2.5.5.26952_1 +libfbclient.so.2 libfbclient-3.0.4.33054_1 libipmiutil.so.1 ipmiutil-3.0.0_1 libqxmpp.so.0 qxmpp-0.9.3_1 libunwind.so.1 llvm-libunwind-3.8.0_1 diff --git a/srcpkgs/firebird3/patches/musl-os_utils_h.patch b/srcpkgs/firebird3/patches/musl-os_utils_h.patch new file mode 100644 index 0000000000..b3cee228b1 --- /dev/null +++ b/srcpkgs/firebird3/patches/musl-os_utils_h.patch @@ -0,0 +1,10 @@ +--- src/common/os/os_utils.h 2016-04-14 16:07:29.000000000 +0200 ++++ src/common/os/os_utils.h 2019-02-15 02:22:49.698708718 +0100 +@@ -40,6 +40,7 @@ + #define mode_t int + #define DEFAULT_OPEN_MODE (_S_IREAD | _S_IWRITE) + #else ++#include + #define DEFAULT_OPEN_MODE (0666) + #endif + diff --git a/srcpkgs/firebird3/template b/srcpkgs/firebird3/template new file mode 100644 index 0000000000..212f7aac86 --- /dev/null +++ b/srcpkgs/firebird3/template @@ -0,0 +1,98 @@ +# Template file for 'firebird3' +pkgname=firebird3 +version=3.0.4.33054 +revision=1 +_build=0 +_uver=${version//./_} +wrksrc="Firebird-${version}-${_build}" +build_style=gnu-configure +configure_args="--prefix=/usr + --with-fbbin=/usr/bin + --with-fbconf=/etc/firebird + --with-fbdoc=/usr/share/doc/firebird + --with-fbhelp=/usr/share/doc/firebird/help + --with-fbinclude=/usr/include/firebird + --with-fblib=/usr/lib + --with-fblog=/var/log + --with-fbmsg=/usr/lib/firebird/msg + --with-fbplugins=/usr/lib/firebird/plugins + --with-fbsbin=/usr/lib/firebird/bin + --with-fbudf=/usr/lib/firebird/UDF + --with-fbsecure-db=/var/lib/firebird/system + --with-fbintl=/usr/lib/firebird/intl + --with-fbmisc + --without-fbsample + --without-fbsample-db + --with-system-icu + --with-system-editline" +nocross=yes +hostmakedepends="automake libtool pkg-config icu" +makedepends="boost-devel libedit-devel icu-devel ncurses-devel libatomic_ops-devel + libtommath-devel zlib-devel" +short_desc="Relational database offering many ANSI SQL standard features (V3)" +maintainer="Jürgen Buchmüller " +license="custom" +homepage="https://www.firebirdsql.org/en/start/" +distfiles="https://github.com/FirebirdSQL/firebird/releases/download/R${_uver%_*}/Firebird-${version}-${_build}.tar.bz2" +checksum=b208931d309029d05dbcd8f6c1b4fd9d21be1d60cee2ff29c08b5002db83756b +replaces="firebird>=0" + +pre_configure() { + # Avoid errors telling we are not 'root' and + # do not change ownership to root:root and + # do not change permissions to read-only + find -iname "*.sh.in" -exec sed -i "{}" \ + -e 's;"`whoami`";"root";' \ + -e 's;chown root:root;#&;' \ + -e 's;chown -R;#&;' \ + -e 's;chmod 0444;chmod 0644;' \ + -e 's;chmod 0555;chmod 0755;' \; + autoreconf -if +} + +do_install() { + local _lib _v0=${version%.*} _v1=${version%.*.*} _v2=${version%.*.*.*} + + cd ${wrksrc}/gen + ./install/makeInstallImage.sh + + cd ${wrksrc} + + # Fix permissions + find gen/buildroot -type f -perm 0444 -exec chmod 0644 "{}" \; + find gen/buildroot -type f -perm 0555 -exec chmod 0755 "{}" \; + + vlicense doc/license/IDPL.txt IDPL + vlicense doc/license/README.license.usage.txt LICENSE + + cp -pR gen/buildroot/* ${DESTDIR}/ + + # TODO: create superserver? + # system account? + # runit service? + # Example https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=firebird-superserver +} + +libfbclient3_package() { + short_desc+=" - client libraries" + replaces="ilibfbclient>=0" + pkg_install() { + vmove "usr/lib/libfbclient.so.*" + vmove usr/lib/firebird/msg/firebird.msg + vlicense doc/license/IDPL.txt IDPL + vlicense doc/license/README.license.usage.txt LICENSE + } +} + +libfbclient3-devel_package() { + short_desc+=" - development files" + replaces="ilibfbclient-devel>=0" + depends="libfbclient3>=${version}_${revision}" + pkg_install() { + vmove usr/lib/firebird/bin/fb_config + vmkdir usr/bin + ln -s ../lib/firebird/bin/fb_config ${PKGDESTDIR}/usr/bin/fb_config + vmove usr/include/firebird + vmove usr/lib/libfbclient.so + } +} diff --git a/srcpkgs/libfbclient3 b/srcpkgs/libfbclient3 new file mode 120000 index 0000000000..291f5ca1a3 --- /dev/null +++ b/srcpkgs/libfbclient3 @@ -0,0 +1 @@ +firebird3 \ No newline at end of file diff --git a/srcpkgs/libfbclient3-devel b/srcpkgs/libfbclient3-devel new file mode 120000 index 0000000000..291f5ca1a3 --- /dev/null +++ b/srcpkgs/libfbclient3-devel @@ -0,0 +1 @@ +firebird3 \ No newline at end of file