Add yafc, closes #549
[openwrt/svn-archive/archive.git] / net / yafc / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 4112 2006-07-02 20:33:21Z nico $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=yafc
12 PKG_VERSION:=1.1.1
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=832d074183a36ee15b47553ed5962fce
15
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18 PKG_CAT:=bzcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/yafc
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libpcap
29 TITLE:=Yafc is yet another ftp client.
30 DESCRIPTION:=console-based FTP client
31 URL:=http://yacf.sourceforge.net
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default,--includedir=$(PKG_BUILD_DIR)/)
36 endef
37
38 define Build/Compile
39 rm -rf $(PKG_INSTALL_DIR)
40 mkdir -p $(PKG_INSTALL_DIR)
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 CC=$(TARGET_CC)
43 endef
44
45 define Package/yafc/install
46 install -m0755 -d $(1)/usr/sbin
47 $(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/sbin/
48 endef
49
50 $(eval $(call BuildPackage,yafc))