mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 14:44:36 +08:00
btrfs-progs 4.0.1 gdbm 1.11 linux-api-headers 4.0 mkinitcpio-busybox 1.23.2 rpcbind 0.2.3
51 lines
1.4 KiB
Bash
51 lines
1.4 KiB
Bash
|
|
pkgname=gdbm
|
|
pkgver=1.11
|
|
pkgrel=1
|
|
pkgdesc="GNU database library"
|
|
url="http://www.gnu.org/software/gdbm/gdbm.html"
|
|
license=('GPL3')
|
|
arch=('x86_64')
|
|
depends=('glibc' 'sh')
|
|
options=('!makeflags')
|
|
install=gdbm.install
|
|
source=(ftp://ftp.gnu.org/gnu/gdbm/${pkgname}-${pkgver}.tar.gz{,.sig}
|
|
gdbm-1.10-zeroheaders.patch)
|
|
validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732')
|
|
md5sums=('72c832680cf0999caedbe5b265c8c1bd'
|
|
'SKIP'
|
|
'2a5979910c338dabda6935263b3d8af9')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
# Prevent gdbm from storing uninitialized memory content
|
|
# to database files. This patch improves security, as the
|
|
# uninitialized memory might contain sensitive informations
|
|
# from other applications.
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=4457
|
|
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208927
|
|
patch -Np1 -i ../gdbm-1.10-zeroheaders.patch
|
|
|
|
./configure --prefix=/usr \
|
|
--enable-libgdbm-compat
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
# create symlinks for compatibility
|
|
install -dm755 "${pkgdir}"/usr/include/gdbm
|
|
ln -sf ../gdbm.h "${pkgdir}"/usr/include/gdbm/gdbm.h
|
|
ln -sf ../ndbm.h "${pkgdir}"/usr/include/gdbm/ndbm.h
|
|
ln -sf ../dbm.h "${pkgdir}"/usr/include/gdbm/dbm.h
|
|
}
|