boost: update to 1.67, hack out an compile issue with arm
[openadk.git] / package / nfs-utils / Makefile
blobfb0982fc79dba43ac155e9c43cd585c771a1600c
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
6 PKG_NAME:= nfs-utils
7 PKG_VERSION:= 2.3.1
8 PKG_RELEASE:= 1
9 PKG_HASH:= ca92f1ab86b2af4dcd62d7716d46a6cdec268e83fe8d564cd8ff1464cc495989
10 PKG_DESCR:= network filesystem utilities
11 PKG_SECTION:= net/fs
12 PKG_DEPENDS:= keyutils libtirpc rpcbind
13 PKG_BUILDDEP:= keyutils libtirpc
14 PKG_KDEPENDS:= nfs-fs
15 PKG_NEEDS:= threads
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 \
45 --disable-nfsv41 \
46 --with-krb5=${STAGING_TARGET_DIR}/usr \
47 --enable-gss
48 else
49 CONFIGURE_ARGS+= --disable-nfsv4 \
50 --disable-nfsv41 \
51 --disable-gss
52 endif
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 \
59 --disable-caps \
60 --enable-tirpc \
61 --with-tirpcinclude=${STAGING_TARGET_DIR}/usr/include/tirpc \
62 --disable-uuid
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/
85 endif
87 nfs-utils-install:
88 ${INSTALL_DIR} ${IDIR_NFS_UTILS}/etc
89 ${INSTALL_DATA} ./files/rpc ${IDIR_NFS_UTILS}/etc
91 include ${ADK_TOPDIR}/mk/pkg-bottom.mk