firebird: enable PIE; fix dependencies
This commit is contained in:
parent
1c9e4ebfbb
commit
e6add1b302
1 changed files with 10 additions and 10 deletions
|
@ -1,16 +1,14 @@
|
||||||
# Template file for 'firebird'
|
# Template file for 'firebird'
|
||||||
pkgname=firebird
|
pkgname=firebird
|
||||||
version=2.5.5.26952
|
version=2.5.5.26952
|
||||||
revision=1
|
revision=2
|
||||||
_build=0
|
_build=0
|
||||||
wrksrc="${pkgname^}-${version}-${_build}"
|
wrksrc="${pkgname^}-${version}-${_build}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--prefix=/opt/firebird --with-system-icu --with-system-editline"
|
configure_args="--prefix=/opt/firebird --with-system-icu --with-system-editline"
|
||||||
nopie=yes
|
|
||||||
nocross=yes
|
nocross=yes
|
||||||
hostmakedepends="automake libtool pkg-config icu"
|
hostmakedepends="automake libtool pkg-config icu"
|
||||||
makedepends="boost-devel libedit-devel icu-devel ncurses-devel libatomic_ops-devel"
|
makedepends="boost-devel libedit-devel icu-devel ncurses-devel libatomic_ops-devel"
|
||||||
depends="libfbclient>=${version}_${revision}"
|
|
||||||
short_desc="Relational database offering many ANSI SQL standard features"
|
short_desc="Relational database offering many ANSI SQL standard features"
|
||||||
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||||
license="custom"
|
license="custom"
|
||||||
|
@ -20,20 +18,22 @@ checksum=b33e63ede88184d9ef2ae6760537ab75bfe641513821410b83e837946162b7d1
|
||||||
disable_parallel_build=yes
|
disable_parallel_build=yes
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
mv configure.{in,ac}
|
|
||||||
mkdir -p m4
|
|
||||||
echo "ACLOCAL_AMFLAGS = -I m4" > Makefile.am
|
|
||||||
|
|
||||||
# Avoid errors telling we are not 'root' and
|
# Avoid errors telling we are not 'root' and
|
||||||
# do not cange ownership to root:root or
|
# do not change ownership to root:root and
|
||||||
# permissions to read-only
|
# do not change permissions to read-only
|
||||||
find -iname "*.sh.in" -exec sed -i "{}" \
|
find -iname "*.sh.in" -exec sed -i "{}" \
|
||||||
-e 's;"`whoami`";"root";' \
|
-e 's;"`whoami`";"root";' \
|
||||||
-e 's;chown root:root;#&;' \
|
-e 's;chown root:root;#&;' \
|
||||||
-e 's;chown -R;#&;' \
|
-e 's;chown -R;#&;' \
|
||||||
-e 's;chmod 0444;chmod 0644;' \
|
-e 's;chmod 0444;chmod 0644;' \
|
||||||
-e 's;chmod 0555;chmod 0755;' \;
|
-e 's;chmod 0555;chmod 0755;' \;
|
||||||
|
mv configure.{in,ac}
|
||||||
|
mkdir -p m4
|
||||||
|
echo "ACLOCAL_AMFLAGS = -I m4" > Makefile.am
|
||||||
autoreconf -if
|
autoreconf -if
|
||||||
|
|
||||||
|
# Set -fPIC for btyacc tool to support PIE linker flags
|
||||||
|
sed -i extern/btyacc/Makefile -e 's;CFLAGS=;CFLAGS=-fPIC;'
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
@ -87,6 +87,7 @@ libfbclient_package() {
|
||||||
short_desc+=" - client libraries"
|
short_desc+=" - client libraries"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
local _v _v0=${version%.*} _v1=${version%.*.*} _v2=${version%.*.*.*}
|
local _v _v0=${version%.*} _v1=${version%.*.*} _v2=${version%.*.*.*}
|
||||||
|
vmove usr/bin/fb_config
|
||||||
for _v in ${_v0} ${_v1} ${_v2}; do
|
for _v in ${_v0} ${_v1} ${_v2}; do
|
||||||
vmove usr/lib/libfbclient.so.${_v}
|
vmove usr/lib/libfbclient.so.${_v}
|
||||||
vmove usr/lib/libfbembed.so.${_v}
|
vmove usr/lib/libfbembed.so.${_v}
|
||||||
|
@ -94,7 +95,6 @@ libfbclient_package() {
|
||||||
vmove usr/lib/libgds.so.0
|
vmove usr/lib/libgds.so.0
|
||||||
vmove usr/lib/libib_util.so
|
vmove usr/lib/libib_util.so
|
||||||
vmove opt/firebird/*.msg
|
vmove opt/firebird/*.msg
|
||||||
vmove usr/bin/fb_config
|
|
||||||
vlicense doc/license/IDPL.txt IDPL
|
vlicense doc/license/IDPL.txt IDPL
|
||||||
vlicense doc/license/README.license.usage.txt LICENSE
|
vlicense doc/license/README.license.usage.txt LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue