12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- # 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.1
- PKG_RELEASE:= 1
- PKG_MD5SUM:= c3ccd16c147befd49fe4541a506dd177
- PKG_DESCR:= Utilities for NFS kernel server implementation
- PKG_SECTION:= net
- PKG_DEPENDS:= portmap libtirpc
- PKG_BUILDDEP+= libtirpc
- ifeq (${ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS},y)
- PKG_BUILDDEP+= libnfsidmap krb5 libevent libgssglue librpcsecgss
- endif
- PKG_URL:= http://sourceforge.net/projects/nfs
- PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=nfs/}
- DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
- PKG_FLAVOURS:= WITH_KERBEROS
- PKGFD_WITH_KERBEROS:= enable Kerberos support (MIT)
- include ${TOPDIR}/mk/package.mk
- ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
- PKG_DEPENDS+= krb5-libs libevent libnfsidmap librpcsecgss libcom-err libgssglue
- endif
- $(eval $(call PKG_template,NFS_UTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
- TCPPFLAGS+= -I${LINUX_DIR}/include
- ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
- CONFIGURE_ARGS+= --enable-nfsv4 \
- --with-krb5=${STAGING_DIR}/usr/ \
- --enable-gss
- CONFIGURE_ENV+= LIBS="-lrpcsecgss"
- else
- CONFIGURE_ARGS+= --disable-nfsv4 \
- --disable-gss
- endif
- CONFIGURE_ENV+= knfsd_cv_bsd_signals=no \
- ac_cv_lib_nsl_gethostbyname=no
- CONFIGURE_ARGS+= --without-tcp-wrappers \
- --enable-tirpc \
- --with-tirpcinclude=${STAGING_DIR}/usr/include/tirpc \
- --disable-uuid
- CONFIGURE_STYLE:= gnu
- BUILD_STYLE:= auto
- INSTALL_STYLE:= auto
- post-install:
- ${INSTALL_DIR} ${IDIR_NFS_UTILS}/usr/sbin
- ${INSTALL_DIR} ${IDIR_NFS_UTILS}/etc
- ${INSTALL_DATA} ./files/rpc ${IDIR_NFS_UTILS}/etc
- ${INSTALL_BIN} ${WRKBUILD}/utils/exportfs/exportfs ${IDIR_NFS_UTILS}/usr/sbin/
- ${INSTALL_DIR} ${IDIR_NFS_UTILS}/usr/sbin
- ${INSTALL_DATA} ./files/nfsd.exports ${IDIR_NFS_UTILS}/etc/exports
- ${INSTALL_BIN} ${WRKBUILD}/utils/statd/statd ${IDIR_NFS_UTILS}/usr/sbin/
- ${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
|