1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- # This file is part of the OpenADK project. OpenADK is copyrighted
- # material, please see the LICENCE file in the top-level directory.
- include ${TOPDIR}/rules.mk
- PKG_NAME:= nfs-utils
- PKG_VERSION:= 1.2.4
- PKG_RELEASE:= 1
- PKG_MD5SUM:= 938dc0574f3eb9891a8ed4746f806277
- PKG_DESCR:= Utilities for NFS kernel server implementation
- PKG_SECTION:= net/fs
- PKG_DEPENDS:= kmod-nfsd keyutils
- PKG_BUILDDEP:= keyutils
- PKG_URL:= http://sourceforge.net/projects/nfs
- PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=nfs/}
- PKG_CHOICES_NFS_UTILS:= WITH_TIRPC WITHOUT_TIRPC
- PKGCD_WITH_TIRPC:= enable Transport Independent RPC
- PKGCS_WITH_TIRPC:= libtirpc rpcbind
- PKGCB_WITH_TIRPC:= libtirpc rpcbind
- PKGCD_WITHOUT_TIRPC:= disable Transport Independent RPC
- PKGCS_WITHOUT_TIRPC:= portmap
- PKGCB_WITHOUT_TIRPC:= portmap
- PKG_FLAVOURS_NFS_UTILS:=WITH_KERBEROS
- PKGFD_WITH_KERBEROS:= enable Kerberos support (MIT)
- PKGFS_WITH_KERBEROS:= libkrb5 libevent libnfsidmap librpcsecgss libcom-err libgssglue kmod-rpcsec-gss-krb5 kmod-sunrpc-gss
- PKGFB_WITH_KERBEROS:= libnfsidmap krb5 libevent libgssglue librpcsecgss
- DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
- include ${TOPDIR}/mk/package.mk
- $(eval $(call PKG_template,NFS_UTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
- ifeq ($(ADK_NATIVE),)
- KRB5INC:= ${STAGING_TARGET_DIR}/usr
- TIRPCINC:= ${STAGING_TARGET_DIR}/usr/include/tirpc
- else
- KRB5INC:= /usr
- TIRPCINC:= /usr/include/tirpc
- endif
- ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
- CONFIGURE_ARGS+= --enable-nfsv4 \
- --with-krb5=$(KRB5INC) \
- --enable-gss
- CONFIGURE_ENV+= LIBS="-lrpcsecgss"
- else
- CONFIGURE_ARGS+= --disable-nfsv4 \
- --disable-gss
- endif
- ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_TIRPC),y)
- CONFIGURE_ARGS+= --enable-tirpc \
- --with-tirpcinclude=${TIRPCINC}
- else
- CONFIGURE_ARGS+= --disable-tirpc
- endif
- CONFIGURE_ENV+= knfsd_cv_bsd_signals=no \
- ac_cv_lib_nsl_gethostbyname=no
- CONFIGURE_ARGS+= --without-tcp-wrappers \
- --with-rpcgen=internal \
- --disable-uuid
- post-install:
- ${INSTALL_DIR} ${IDIR_NFS_UTILS}/usr/sbin ${IDIR_NFS_UTILS}/etc
- ${INSTALL_DIR} ${IDIR_NFS_UTILS}/sbin
- ${CP} ${WRKINST}/sbin/{u,}mount.nfs* ${IDIR_NFS_UTILS}/sbin
- ${INSTALL_DATA} ./files/rpc ${IDIR_NFS_UTILS}/etc
- ${INSTALL_BIN} ${WRKBUILD}/utils/exportfs/exportfs \
- ${IDIR_NFS_UTILS}/usr/sbin/
- ${INSTALL_DATA} ./files/nfsd.exports ${IDIR_NFS_UTILS}/etc/exports
- ${INSTALL_BIN} ${WRKBUILD}/utils/nfsd/nfsd \
- ${IDIR_NFS_UTILS}/usr/sbin/
- ${INSTALL_BIN} ${WRKBUILD}/utils/mountd/mountd \
- ${IDIR_NFS_UTILS}/usr/sbin/
- ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
- ${INSTALL_DATA} ./files/idmapd.conf ${IDIR_NFS_UTILS}/etc
- ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/gssd \
- ${IDIR_NFS_UTILS}/usr/sbin/
- ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/svcgssd \
- ${IDIR_NFS_UTILS}/usr/sbin/
- ${INSTALL_BIN} ${WRKBUILD}/utils/idmapd/idmapd \
- ${IDIR_NFS_UTILS}/usr/sbin/
- endif
- include ${TOPDIR}/mk/pkg-bottom.mk
|