2007-05-22 13:59:22 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# ncftp client
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-10-06 11:23:08 +02:00
|
|
|
NCFTP_VERSION:=3.2.2
|
2007-05-22 13:59:22 +02:00
|
|
|
NCFTP_SOURCE:=ncftp-$(NCFTP_VERSION)-src.tar.bz2
|
|
|
|
NCFTP_SITE:=ftp://ftp.ncftp.com/ncftp
|
|
|
|
|
|
|
|
NCFTP_TARGET_BINS:=ncftp
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_GET),y)
|
2007-10-31 07:37:44 +01:00
|
|
|
NCFTP_TARGET_BINS+=ncftpget
|
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_PUT),y)
|
2007-10-31 07:37:44 +01:00
|
|
|
NCFTP_TARGET_BINS+=ncftpput
|
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_LS),y)
|
2007-10-31 07:37:44 +01:00
|
|
|
NCFTP_TARGET_BINS+=ncftpls
|
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_BATCH),y)
|
2007-10-31 07:37:44 +01:00
|
|
|
NCFTP_TARGET_BINS+=ncftpbatch
|
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_BOOKMARKS),y)
|
2007-10-31 07:37:44 +01:00
|
|
|
NCFTP_TARGET_BINS+=ncftpbookmarks
|
2009-04-01 22:52:41 +02:00
|
|
|
NCFTP_DEPENDENCIES:=ncurses
|
2007-05-22 13:59:22 +02:00
|
|
|
endif
|
|
|
|
|
2009-04-01 22:52:41 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,ncftp))
|
2007-05-22 13:59:22 +02:00
|
|
|
|
2009-04-01 22:52:41 +02:00
|
|
|
$(NCFTP_TARGET_INSTALL_TARGET):
|
|
|
|
$(call MESSAGE,"Installing to target")
|
|
|
|
$(INSTALL) -m 0755 $(addprefix $(NCFTP_DIR)/bin/, $(NCFTP_TARGET_BINS)) $(TARGET_DIR)/usr/bin
|
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_BATCH),y)
|
|
|
|
ln -s /usr/bin/ncftpbatch $(TARGET_DIR)/usr/bin/ncftpspooler
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_ENABLE_DEBUG),)
|
|
|
|
$(STRIPCMD) $(STRIP_STRIP_ALL) $(addprefix $(TARGET_DIR)/usr/bin/, $(NCFTP_TARGET_BINS))
|
|
|
|
endif
|
2007-05-22 13:59:22 +02:00
|
|
|
touch $@
|
|
|
|
|
2009-04-01 22:52:41 +02:00
|
|
|
$(NCFTP_TARGET_UNINSTALL):
|
|
|
|
$(call MESSAGE,"Uninstalling")
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/bin/, $(NCFTP_TARGET_BINS) ncftpspooler)
|
|
|
|
rm -f $(NCFTP_TARGET_INSTALL_TARGET)
|