2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-05-22 13:59:22 +02:00
|
|
|
#
|
2013-06-06 01:53:29 +02:00
|
|
|
# ncftp
|
2007-05-22 13:59:22 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-05-22 13:59:22 +02:00
|
|
|
|
2011-10-16 05:04:33 +02:00
|
|
|
NCFTP_VERSION = 3.2.5
|
|
|
|
NCFTP_SOURCE = ncftp-$(NCFTP_VERSION)-src.tar.bz2
|
|
|
|
NCFTP_SITE = ftp://ftp.ncftp.com/ncftp
|
|
|
|
NCFTP_TARGET_BINS = ncftp
|
2013-10-08 12:06:57 +02:00
|
|
|
NCFTP_LICENSE = Clarified Artistic License
|
|
|
|
NCFTP_LICENSE_FILES = doc/LICENSE.txt
|
2007-05-22 13:59:22 +02:00
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_GET),y)
|
2011-10-16 05:04:33 +02:00
|
|
|
NCFTP_TARGET_BINS += ncftpget
|
2007-10-31 07:37:44 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_PUT),y)
|
2011-10-16 05:04:33 +02:00
|
|
|
NCFTP_TARGET_BINS += ncftpput
|
2007-10-31 07:37:44 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_LS),y)
|
2011-10-16 05:04:33 +02:00
|
|
|
NCFTP_TARGET_BINS += ncftpls
|
2007-10-31 07:37:44 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_BATCH),y)
|
2011-10-16 05:04:33 +02:00
|
|
|
NCFTP_TARGET_BINS += ncftpbatch
|
|
|
|
NCFTP_INSTALL_NCFTP_BATCH = \
|
2013-10-14 15:21:30 +02:00
|
|
|
ln -sf /usr/bin/ncftpbatch $(TARGET_DIR)/usr/bin/ncftpspooler
|
2007-10-31 07:37:44 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCFTP_BOOKMARKS),y)
|
2011-10-16 05:04:33 +02:00
|
|
|
NCFTP_TARGET_BINS += ncftpbookmarks
|
|
|
|
NCFTP_DEPENDENCIES += ncurses
|
2007-05-22 13:59:22 +02:00
|
|
|
endif
|
|
|
|
|
2010-09-01 23:15:59 +02:00
|
|
|
define NCFTP_INSTALL_TARGET_CMDS
|
2009-04-01 22:52:41 +02:00
|
|
|
$(INSTALL) -m 0755 $(addprefix $(NCFTP_DIR)/bin/, $(NCFTP_TARGET_BINS)) $(TARGET_DIR)/usr/bin
|
2010-09-01 23:15:59 +02:00
|
|
|
$(NCFTP_INSTALL_NCFTP_BATCH)
|
|
|
|
endef
|
2007-05-22 13:59:22 +02:00
|
|
|
|
2010-09-01 23:15:59 +02:00
|
|
|
define NCFTP_UNINSTALL_TARGET_CMDS
|
2009-04-01 22:52:41 +02:00
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/bin/, $(NCFTP_TARGET_BINS) ncftpspooler)
|
2010-09-01 23:15:59 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|