nfs-utils: initial package

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2024-01-12 04:06:46 +01:00
parent 1c1c356285
commit 17960c895d

View File

@ -0,0 +1,31 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2024-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="nfs-utils"
PKG_VERSION="2.6.4"
PKG_SHA256="01b3b0fb9c7d0bbabf5114c736542030748c788ec2fd9734744201e9b0a1119d"
PKG_LICENSE="GPL-2.0-or-later"
PKG_SITE="http://www.linux-nfs.org/"
PKG_URL="https://www.kernel.org/pub/linux/utils/nfs-utils/${PKG_VERSION}/nfs-utils-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_TARGET="toolchain keyutils libevent libtirpc rpcbind sqlite util-linux"
PKG_LONGDESC="Linux NFS userland utility package"
PKG_CONFIGURE_OPTS_TARGET="--disable-gss \
--disable-nfsv41 \
--disable-nfsdcld \
--disable-nfsrahead \
--disable-nfsdcltrack \
--disable-ldap"
pre_configure_target() {
cd ${PKG_BUILD}
rm -rf .${TARGET_NAME}
}
makeinstall_target() {
mkdir -p "${INSTALL}/usr/sbin/"
cp -PR utils/mount/mount.nfs "${INSTALL}/usr/sbin/"
ln -s mount.nfs "${INSTALL}/usr/sbin/mount.nfs4"
ln -s mount.nfs "${INSTALL}/usr/sbin/umount.nfs"
ln -s mount.nfs "${INSTALL}/usr/sbin/umount.nfs4"
}