1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= ca92f1ab86b2af4dcd62d7716d46a6cdec268e83fe8d564cd8ff1464cc495989
10 PKG_DESCR
:= network filesystem utilities
12 PKG_DEPENDS
:= keyutils libtirpc rpcbind
13 PKG_BUILDDEP
:= keyutils libtirpc
16 PKG_URL
:= http
://sourceforge.net
/projects
/nfs
17 PKG_SITES
:= ${MASTER_SITE_SOURCEFORGE
:=nfs
/}
19 PKG_CFLINE_NFS_UTILS
:= select ADK_PACKAGE_LIBTIRPC_WITH_GSS if ADK_PACKAGE_NFS_UTILS_V4
21 PKG_SUBPKGS
:= NFS_UTILS NFS_UTILS_CLIENT NFS_UTILS_SERVER
22 PKGSD_NFS_UTILS_CLIENT
:=client utilities
23 PKGSN_NFS_UTILS_CLIENT
:=nfs-utils
24 PKGSD_NFS_UTILS_SERVER
:=server daemons and utilities
25 PKGSN_NFS_UTILS_SERVER
:=nfs-utils
26 PKGSK_NFS_UTILS_SERVER
:=nfsd
28 PKG_CHOICES_NFS_UTILS
:= V3 V4
29 PKGCD_V3
:= nfs version
3
30 PKGCD_V4
:= nfs version
4
31 PKGCB_V4
:= libevent libnfsidmap krb5 libgssglue librpcsecgss
32 PKGCS_V4
:= libkrb5 libevent libnfsidmap librpcsecgss libcom-err libgssglue
34 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.bz2
36 include ${ADK_TOPDIR}/mk
/package.mk
38 $(eval
$(call PKG_template
,NFS_UTILS
,nfs-utils
,${PKG_VERSION}-${PKG_RELEASE},${PKG_FDEPENDS},${PKG_DESCR},${PKG_SECTION}))
39 $(eval
$(call PKG_template
,NFS_UTILS_CLIENT
,nfs-utils-client
,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_NFS_UTILS_CLIENT},${PKGSD_NFS_UTILS_CLIENT},${PKG_SECTION}))
40 $(eval
$(call PKG_template
,NFS_UTILS_SERVER
,nfs-utils-server
,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_NFS_UTILS_SERVER},${PKGSD_NFS_UTILS_SERVER},${PKG_SECTION}))
42 AUTOTOOL_STYLE
:= autoreconf
43 ifeq ($(ADK_PACKAGE_NFS_UTILS_V4
),y
)
44 CONFIGURE_ARGS
+= --enable-nfsv4 \
46 --with-krb5
=${STAGING_TARGET_DIR}/usr \
49 CONFIGURE_ARGS
+= --disable-nfsv4 \
54 CONFIGURE_ENV
+= knfsd_cv_bsd_signals
=no \
55 ac_cv_lib_nsl_gethostbyname
=no
56 CONFIGURE_ARGS
+= --without-tcp-wrappers \
57 --disable-nfsdcltrack \
58 --with-rpcgen
=internal \
61 --with-tirpcinclude
=${STAGING_TARGET_DIR}/usr
/include/tirpc \
64 nfs-utils-client-install
:
65 ${INSTALL_DIR} ${IDIR_NFS_UTILS_CLIENT}/sbin
66 ${CP} ${WRKINST}/sbin
/{u
,}mount.nfs
* ${IDIR_NFS_UTILS_CLIENT}/sbin
68 nfs-utils-server-install
:
69 ${INSTALL_DIR} ${IDIR_NFS_UTILS_SERVER}/usr
/sbin
${IDIR_NFS_UTILS_SERVER}/etc
70 ${INSTALL_BIN} ${WRKBUILD}/utils
/exportfs
/exportfs \
71 ${IDIR_NFS_UTILS_SERVER}/usr
/sbin
/
72 ${INSTALL_DATA} .
/files
/nfsd.exports
${IDIR_NFS_UTILS_SERVER}/etc
/exports
73 ${INSTALL_BIN} ${WRKBUILD}/utils
/nfsd
/nfsd \
74 ${IDIR_NFS_UTILS_SERVER}/usr
/sbin
/
75 ${INSTALL_BIN} ${WRKBUILD}/utils
/mountd
/mountd \
76 ${IDIR_NFS_UTILS_SERVER}/usr
/sbin
/
77 ifeq ($(ADK_PACKAGE_NFS_UTILS_WITH_KERBEROS
),y
)
78 ${INSTALL_DATA} .
/files
/idmapd.conf
${IDIR_NFS_UTILS_SERVER}/etc
79 ${INSTALL_BIN} ${WRKBUILD}/utils
/gssd
/gssd \
80 ${IDIR_NFS_UTILS_SERVER}/usr
/sbin
/
81 ${INSTALL_BIN} ${WRKBUILD}/utils
/gssd
/svcgssd \
82 ${IDIR_NFS_UTILS_SERVER}/usr
/sbin
/
83 ${INSTALL_BIN} ${WRKBUILD}/utils
/idmapd
/idmapd \
84 ${IDIR_NFS_UTILS_SERVER}/usr
/sbin
/
88 ${INSTALL_DIR} ${IDIR_NFS_UTILS}/etc
89 ${INSTALL_DATA} .
/files
/rpc
${IDIR_NFS_UTILS}/etc
91 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk