123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- # 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.9
- PKG_RELEASE:= 2
- PKG_MD5SUM:= 18869d16db3f49c053f8c68eba3fe2e0
- PKG_DESCR:= Utilities for NFS kernel server implementation
- PKG_SECTION:= net/fs
- PKG_DEPENDS:= keyutils libtirpc rpcbind libdevmapper libpthread
- PKG_FDEPENDS:= $(PKG_DEPENDS)
- PKG_BUILDDEP:= keyutils libtirpc lvm
- PKG_URL:= http://sourceforge.net/projects/nfs
- PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=nfs/}
- PKG_LIBC_DEPENDS:= uclibc glibc
- PKG_SUBPKGS:= NFS_UTILS NFS_UTILS_CLIENT NFS_UTILS_SERVER
- PKGSS_NFS_UTILS_CLIENT:=kmod-nfs-fs kmod-sunrpc
- PKGSD_NFS_UTILS_CLIENT:=NFS client utilities (mount)
- PKGSS_NFS_UTILS_SERVER:=kmod-nfsd kmod-sunrpc
- PKGSD_NFS_UTILS_SERVER:=NFS server daemons and utilities
- 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
- ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
- PKG_FDEPENDS+= $(PKGFS_WITH_KERBEROS)
- endif
- include ${TOPDIR}/mk/package.mk
- $(eval $(call PKG_template,NFS_UTILS,nfs-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_FDEPENDS},${PKG_DESCR},${PKG_SECTION}))
- $(eval $(call PKG_template,NFS_UTILS_CLIENT,nfs-utils-client,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_NFS_UTILS_CLIENT},${PKGSD_NFS_UTILS_CLIENT},${PKG_SECTION}))
- $(eval $(call PKG_template,NFS_UTILS_SERVER,nfs-utils-server,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_NFS_UTILS_SERVER},${PKGSD_NFS_UTILS_SERVER},${PKG_SECTION}))
- KRB5INC:= ${STAGING_TARGET_DIR}/usr
- TIRPCINC:= ${STAGING_TARGET_DIR}/usr/include/tirpc
- 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-nfsv41 \
- --disable-gss
- endif
- CONFIGURE_ENV+= knfsd_cv_bsd_signals=no \
- ac_cv_lib_nsl_gethostbyname=no
- CONFIGURE_ARGS+= --without-tcp-wrappers \
- --disable-nfsdcltrack \
- --with-rpcgen=internal \
- --enable-tirpc \
- --with-tirpcinclude=${TIRPCINC} \
- --disable-uuid
- nfs-utils-client-install:
- ${INSTALL_DIR} ${IDIR_NFS_UTILS_CLIENT}/sbin
- ${CP} ${WRKINST}/sbin/{u,}mount.nfs* ${IDIR_NFS_UTILS_CLIENT}/sbin
- nfs-utils-server-install:
- ${INSTALL_DIR} ${IDIR_NFS_UTILS_SERVER}/usr/sbin ${IDIR_NFS_UTILS_SERVER}/etc
- ${INSTALL_BIN} ${WRKBUILD}/utils/exportfs/exportfs \
- ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
- ${INSTALL_DATA} ./files/nfsd.exports ${IDIR_NFS_UTILS_SERVER}/etc/exports
- ${INSTALL_BIN} ${WRKBUILD}/utils/nfsd/nfsd \
- ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
- ${INSTALL_BIN} ${WRKBUILD}/utils/mountd/mountd \
- ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
- ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS),y)
- ${INSTALL_DATA} ./files/idmapd.conf ${IDIR_NFS_UTILS_SERVER}/etc
- ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/gssd \
- ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
- ${INSTALL_BIN} ${WRKBUILD}/utils/gssd/svcgssd \
- ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
- ${INSTALL_BIN} ${WRKBUILD}/utils/idmapd/idmapd \
- ${IDIR_NFS_UTILS_SERVER}/usr/sbin/
- endif
- nfs-utils-install:
- ${INSTALL_DIR} ${IDIR_NFS_UTILS}/etc
- ${INSTALL_DATA} ./files/rpc ${IDIR_NFS_UTILS}/etc
- include ${TOPDIR}/mk/pkg-bottom.mk
|