mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-27 07:52:55 +02:00
nfs-utils: simplify and unbreak musl cross.
This commit is contained in:
parent
fa4bb9c635
commit
9c3785d8ef
1 changed files with 17 additions and 18 deletions
|
@ -1,7 +1,13 @@
|
||||||
# Template file for 'nfs-utils'
|
# Template file for 'nfs-utils'
|
||||||
pkgname=nfs-utils
|
pkgname=nfs-utils
|
||||||
version=1.3.3
|
version=1.3.3
|
||||||
revision=2
|
revision=3
|
||||||
|
build_style=gnu-configure
|
||||||
|
configure_args="--with-statduser=nobody --enable-gss --enable-nfsv4
|
||||||
|
--with-statedir=/var/lib/nfs --enable-libmount-mount --enable-gss
|
||||||
|
--enable-uuid --enable-ipv6 --without-tcp-wrappers
|
||||||
|
--with-tirpcinclude=$XBPS_CROSS_BASE/usr/include/tirpc
|
||||||
|
--with-krb5=$XBPS_CROSS_BASE"
|
||||||
short_desc="Network File System utilities"
|
short_desc="Network File System utilities"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
|
@ -9,7 +15,7 @@ homepage="http://nfs.sourceforge.net"
|
||||||
distfiles="${KERNEL_SITE}/utils/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
|
distfiles="${KERNEL_SITE}/utils/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
|
||||||
checksum=700d689c5622c87953c34102e5befafc4d3c811e676852238f0dd79c9c0c084d
|
checksum=700d689c5622c87953c34102e5befafc4d3c811e676852238f0dd79c9c0c084d
|
||||||
|
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config libtirpc-devel"
|
||||||
makedepends="libblkid-devel libmount-devel libtirpc-devel
|
makedepends="libblkid-devel libmount-devel libtirpc-devel
|
||||||
libnfsidmap-devel keyutils-devel libevent-devel mit-krb5-devel
|
libnfsidmap-devel keyutils-devel libevent-devel mit-krb5-devel
|
||||||
libevent-devel device-mapper-devel libcap-devel sqlite-devel"
|
libevent-devel device-mapper-devel libcap-devel sqlite-devel"
|
||||||
|
@ -22,23 +28,16 @@ make_dirs="
|
||||||
/etc/exports.d 0750 root root
|
/etc/exports.d 0750 root root
|
||||||
"
|
"
|
||||||
|
|
||||||
do_configure() {
|
pre_build() {
|
||||||
configure_args+=" --with-statduser=nobody --enable-gss --enable-nfsv4
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
--with-statedir=/var/lib/nfs --enable-libmount-mount
|
*-musl)
|
||||||
--without-tcp-wrappers --enable-gss --enable-uuid --enable-ipv6
|
sed -i '/SUBDIRS/s,tools,,' Makefile.in
|
||||||
--sbindir=/usr/bin "
|
cd tools/rpcgen
|
||||||
|
make CC=cc CFLAGS= CPPFLAGS= LDFLAGS= ${makejobs}
|
||||||
./configure ${configure_args} \
|
;;
|
||||||
--with-tirpcinclude=$XBPS_CROSS_BASE/usr/include/tirpc \
|
esac
|
||||||
--with-krb5=$XBPS_CROSS_BASE \
|
|
||||||
CC_FOR_BUILD="$CC" CFLAGS_FOR_BUILD="$CFLAGS"
|
|
||||||
}
|
}
|
||||||
do_build() {
|
post_install() {
|
||||||
make ${makejobs}
|
|
||||||
}
|
|
||||||
do_install() {
|
|
||||||
make DESTDIR=${DESTDIR} install
|
|
||||||
|
|
||||||
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
|
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
|
||||||
# conffiles
|
# conffiles
|
||||||
vconf ${FILESDIR}/exports
|
vconf ${FILESDIR}/exports
|
||||||
|
|
Loading…
Add table
Reference in a new issue