mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-23 18:14:54 +08:00
45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas[at]chakra-project[dot]org>
|
|
|
|
pkgname=libtirpc
|
|
pkgver=0.2.2
|
|
pkgrel=5
|
|
pkgdesc="Transport Independent RPC library (SunRPC replacement)"
|
|
arch=('x86_64')
|
|
url="http://libtirpc.sourceforge.net/"
|
|
license=('BSD')
|
|
depends=('libgssglue')
|
|
backup=('etc/netconfig')
|
|
options=('!libtool')
|
|
source=("http://downloads.sourceforge.net/sourceforge/libtirpc/${pkgname}-${pkgver}.tar.bz2"
|
|
'libtirpc-0.2.1-fortify.patch'
|
|
'libtirpc-0.2.3rc1.patch'
|
|
'libtirpc-fix-segfault-0.2.2.patch')
|
|
md5sums=('74c41c15c2909f7d11d9c7bfa7db6273'
|
|
'2e5c067f1651469dfbbdc91d3c9c60e8'
|
|
'ac2a1657b44f4a99c37d8265b05b9133'
|
|
'5a3ab55934cad4e8b38fc90c54756472')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
# from http://bugs.gentoo.org/293593
|
|
patch -p1 -i ../libtirpc-0.2.1-fortify.patch
|
|
# patches from fedora git for nfs-utils
|
|
patch -p1 -i ../libtirpc-0.2.3rc1.patch
|
|
patch -p1 -i ../libtirpc-fix-segfault-0.2.2.patch
|
|
sh autogen.sh
|
|
autoreconf -fisv
|
|
./configure --prefix=/usr --enable-gss
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
install -D -m644 doc/etc_netconfig "${pkgdir}"/etc/netconfig
|
|
install -D -m644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|