summaryrefslogtreecommitdiffstats
path: root/package/nfs-utils/nfs-utils.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-02-20 22:39:04 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2011-02-20 22:39:04 +0100
commit16e7b8255c82815126a2c502c3787d442d254a86 (patch)
tree118151a0292dfa16bc4733ebdc5e73ce68081016 /package/nfs-utils/nfs-utils.mk
parentb1a3545a3f9dc3f18154dcfbe467c62a5088ed3d (diff)
downloadbuildroot-novena-16e7b8255c82815126a2c502c3787d442d254a86.tar.gz
buildroot-novena-16e7b8255c82815126a2c502c3787d442d254a86.zip
nfs-utils: bump version, convert to autotargets
Fixes build when host doesn't have rpcgen. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/nfs-utils/nfs-utils.mk')
-rw-r--r--package/nfs-utils/nfs-utils.mk96
1 files changed, 16 insertions, 80 deletions
diff --git a/package/nfs-utils/nfs-utils.mk b/package/nfs-utils/nfs-utils.mk
index efaa6e374..382676cc3 100644
--- a/package/nfs-utils/nfs-utils.mk
+++ b/package/nfs-utils/nfs-utils.mk
@@ -3,94 +3,30 @@
# nfs-utils
#
#############################################################
-NFS_UTILS_VERSION:=1.0.10
-NFS_UTILS_SOURCE:=nfs-utils-$(NFS_UTILS_VERSION).tar.gz
-NFS_UTILS_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/nfs/
-NFS_UTILS_CAT:=$(ZCAT)
-NFS_UTILS_DIR:=$(BUILD_DIR)/nfs-utils-$(NFS_UTILS_VERSION)
-NFS_UTILS_BINARY:=utils/nfsd/nfsd
-NFS_UTILS_TARGET_BINARY:=usr/sbin/rpc.nfsd
+NFS_UTILS_VERSION = 1.2.3
+NFS_UTILS_SOURCE = nfs-utils-$(NFS_UTILS_VERSION).tar.bz2
+NFS_UTILS_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/nfs/
-BR2_NFS_UTILS_CFLAGS=
-ifeq ($(BR2_LARGEFILE),)
-BR2_NFS_UTILS_CFLAGS+=-U_LARGEFILE64_SOURCE -U_FILE_OFFSET_BITS
-endif
-BR2_NFS_UTILS_CFLAGS+=-DUTS_RELEASE='\"$(LINUX_HEADERS_VERSION)\"'
+NFS_UTILS_CONF_ENV = knfsd_cv_bsd_signals=no
-
-$(DL_DIR)/$(NFS_UTILS_SOURCE):
- $(call DOWNLOAD,$(NFS_UTILS_SITE),$(NFS_UTILS_SOURCE))
-
-nfs-utils-source: $(DL_DIR)/$(NFS_UTILS_SOURCE)
-
-$(NFS_UTILS_DIR)/.unpacked: $(DL_DIR)/$(NFS_UTILS_SOURCE)
- $(NFS_UTILS_CAT) $(DL_DIR)/$(NFS_UTILS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- toolchain/patch-kernel.sh $(NFS_UTILS_DIR) package/nfs-utils/ nfs-utils\*.patch
- toolchain/patch-kernel.sh $(NFS_UTILS_DIR) $(NFS_UTILS_DIR)/debian/ \*.patch
- $(CONFIG_UPDATE) $(NFS_UTILS_DIR)
- touch $@
-
-$(NFS_UTILS_DIR)/.configured: $(NFS_UTILS_DIR)/.unpacked
- (cd $(NFS_UTILS_DIR); rm -rf config.cache; \
- $(TARGET_CONFIGURE_OPTS) \
- $(TARGET_CONFIGURE_ARGS) \
- CFLAGS="$(TARGET_CFLAGS) $(BR2_NFS_UTILS_CFLAGS)" \
- knfsd_cv_bsd_signals=no \
- ./configure $(QUIET) \
- --target=$(GNU_TARGET_NAME) \
- --host=$(GNU_TARGET_NAME) \
- --build=$(GNU_HOST_NAME) \
- --prefix=/usr \
+NFS_UTILS_CONF_OPT = \
--disable-nfsv4 \
--disable-gss \
- )
- touch $@
-
-$(NFS_UTILS_DIR)/$(NFS_UTILS_BINARY): $(NFS_UTILS_DIR)/.configured
- $(MAKE) CC="$(TARGET_CC)" CC_FOR_BUILD="$(HOSTCC)" \
- RPCGEN=/usr/bin/rpcgen -C $(NFS_UTILS_DIR)
- touch -c $@
-
-NFS_UTILS_TARGETS_ :=
-NFS_UTILS_TARGETS_y := usr/sbin/exportfs usr/sbin/rpc.mountd \
- usr/sbin/rpc.nfsd usr/sbin/rpc.statd
+ --disable-tirpc \
+ --disable-uuid \
+ --without-tcp-wrappers \
+ --with-rpcgen=internal
NFS_UTILS_TARGETS_$(BR2_PACKAGE_NFS_UTILS_RPCDEBUG) += usr/sbin/rpcdebug
NFS_UTILS_TARGETS_$(BR2_PACKAGE_NFS_UTILS_RPC_LOCKD) += usr/sbin/rpc.lockd
NFS_UTILS_TARGETS_$(BR2_PACKAGE_NFS_UTILS_RPC_RQUOTAD) += usr/sbin/rpc.rquotad
-$(BUILD_DIR)/.fakeroot.nfs-utils: $(NFS_UTILS_DIR)/$(NFS_UTILS_BINARY)
- # Use fakeroot to pretend to do 'make install' as root
- echo '$(MAKE) prefix=$(TARGET_DIR)/usr statedir=$(TARGET_DIR)/var/lib/nfs $(TARGET_CONFIGURE_OPTS) -C $(NFS_UTILS_DIR) install' > $@
- echo 'rm -f $(TARGET_DIR)/usr/bin/event_rpcgen.py $(TARGET_DIR)/usr/sbin/nhfs* $(TARGET_DIR)/usr/sbin/nfsstat $(TARGET_DIR)/usr/sbin/showmount' >> $@
- echo 'rm -rf $(TARGET_DIR)/usr/share/man' >> $@
- echo '$(INSTALL) -m 0755 package/nfs-utils/S60nfs $(TARGET_DIR)/etc/init.d' >> $@
- echo -n 'for file in $(NFS_UTILS_TARGETS_); do rm -f $(TARGET_DIR)/' >> $@
- echo -n "\$$" >> $@
- echo "file; done" >> $@
- echo 'rm -rf $(TARGET_DIR)/var/lib/nfs' >> $@
-
-$(TARGET_DIR)/$(NFS_UTILS_TARGET_BINARY): $(BUILD_DIR)/.fakeroot.nfs-utils
- touch -c $@
+define NFS_UTILS_INSTALL_FIXUP
+ $(INSTALL) -m 0755 package/nfs-utils/S60nfs \
+ $(TARGET_DIR)/etc/init.d/S60nfs
+ rm -f $(NFS_UTILS_TARGETS_)
+endef
-nfs-utils: host-fakeroot $(TARGET_DIR)/$(NFS_UTILS_TARGET_BINARY)
+NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_FIXUP
-nfs-utils-clean:
- rm -f $(TARGET_DIR)/etc/init.d/S60nfs
- for file in $(NFS_UTILS_TARGETS_y); do \
- rm -f $(TARGET_DIR)/$$file; \
- done
- -$(MAKE) -C $(NFS_UTILS_DIR) clean
- rm -f $(BUILD_DIR)/.fakeroot.nfs-utils
-
-nfs-utils-dirclean:
- rm -rf $(NFS_UTILS_DIR)
-
-#############################################################
-#
-# Toplevel Makefile options
-#
-#############################################################
-ifeq ($(BR2_PACKAGE_NFS_UTILS),y)
-TARGETS+=nfs-utils
-endif
+$(eval $(call AUTOTARGETS,package,nfs-utils))