summaryrefslogtreecommitdiff
path: root/package/nfs-utils/Makefile
blob: 0b4090ccac93601728fddf34c9a7ed9f26f7f662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# 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.0
PKG_RELEASE:=		1
PKG_MD5SUM:=		779cf81044e92cb51ad590960e7b3671
PKG_DESCR:= 		Utilities for NFS kernel server implementation
PKG_SECTION:=		net
PKG_DEPENDS:=		portmap libtirpc
PKG_URL:=		http://sourceforge.net/projects/nfs
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=nfs/}

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.bz2

include ${TOPDIR}/mk/package.mk

ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_KRB5),y)
PKG_DEPENDS+=		krb5-libs libevent libnfsidmap librpcsecgss libcom_err libgssglue
endif

ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_HEIMDAL),y)
PKG_DEPENDS+=		heimdal-libs libevent libnfsidmap librpcsecgss libcom_err
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_COMPILE_NFS_UTILS_WITH_KRB5),y)
CONFIGURE_ARGS+=	--enable-nfsv4 \
			--with-krb5-config=${STAGING_DIR}/usr/bin/krb5-config \
			--enable-gss
CONFIGURE_ENV+=		LIBS="-lrpcsecgss"
endif

ifeq ($(ADK_COMPILE_NFS_UTILS_WITH_HEIMDAL),y)
CONFIGURE_ARGS+=	--enable-nfsv4 \
			--with-krb5-config=${STAGING_DIR}/usr/bin/krb5-config \
			--enable-gss
CONFIGURE_ENV+=		LIBS="-lrpcsecgss"
endif

ifneq ($(ADK_COMPILE_NFS_UTILS_WITH_KERBEROS),y)
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:=	autotool 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_COMPILE_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