blob: b7322feec5cf308e491fe54fa41f1c9e701e657f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Maintainer: Benjamin Bukowski <bbukowski@posteo.de>
pkgname=firebird-superserver
_pkgver=2.5.9
pkgver=$_pkgver.27139
pkgrel=1
pkgdesc="A open source SQL relational database management system (RDMS)"
arch=('i686' 'x86_64')
url="http://www.firebirdsql.org/"
license=('custom:IPL' 'custom:IDPL')
depends=('icu' 'libedit')
provides=("libfbclient=$pkgver")
conflicts=('firebird-classicserver' 'libfbclient')
options=('!makeflags')
install=firebird-superserver.install
backup=('etc/firebird/firebird.conf' 'etc/firebird/fbtrace.conf' 'etc/firebird/aliases.conf')
source=("https://github.com/FirebirdSQL/firebird/releases/download/R${_pkgver//./_}/Firebird-${pkgver}-0.tar.bz2"
'default.password'
'firebird-tmpfiles.conf'
'firebird-sysusers.conf'
'firebird.service')
md5sums=('e32043e61511f53703df6c47441ff6ab'
'ee601f52f1ba2481fe1f05b25d000bb8'
'79a1416e307e4dfb99640311b8defe07'
'a43ab472f4d95e48ac21910bb33a5e86'
'90b4631c9bff99aab08511b3a184593e')
build() {
cd $srcdir/Firebird-$pkgver-0
./autogen.sh \
--prefix=/usr \
--with-fbbin=/usr/bin \
--with-fbconf=/etc/firebird \
--with-fbdoc=/usr/share/doc/firebird \
--with-fbglock=/run/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 \
--without-fbmisc \
--without-fbsample \
--without-fbsample-db \
--enable-superserver \
--with-system-icu \
--with-system-editline
make
}
package() {
cd $srcdir/Firebird-$pkgver-0/gen
./install/makeInstallImage.sh
cd $srcdir/Firebird-$pkgver-0
cp -av gen/buildroot/* $pkgdir/
install -Dm644 $srcdir/firebird-tmpfiles.conf $pkgdir/usr/lib/tmpfiles.d/firebird.conf
install -Dm644 $srcdir/firebird-sysusers.conf $pkgdir/usr/lib/sysusers.d/firebird.conf
install -Dm644 $srcdir/firebird.service $pkgdir/usr/lib/systemd/system/firebird.service
install -Dm440 $srcdir/default.password $pkgdir/var/lib/firebird/system/SYSDBA.password
install -Dm644 $pkgdir/etc/firebird/I{,D}PLicense.txt -t $pkgdir/usr/share/licenses/${pkgname}
# Remove unused files and dirs
rm $pkgdir/etc/firebird/I{,D}PLicense.txt
rm $pkgdir/etc/firebird/README
rm $pkgdir/etc/firebird/WhatsNew
rm -rf $pkgdir/var/log
rm -rf $pkgdir/run
mv $pkgdir/usr/bin/isql{,-fb}
chmod -R ugo-w $pkgdir/usr/share/doc/firebird
chmod -R o= $pkgdir/var/lib/firebird
chown -R 184:184 $pkgdir/var/lib/firebird
}
# vim:set ts=2 sw=2 et:
|