[net] File Transfer: Moved old FTP category and combined with other file transfer...
[openwrt/svn-archive/archive.git] / net / tftp-hpa / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=tftp-hpa
11 PKG_VERSION:=0.48
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@KERNEL/software/network/tftp
16 PKG_MD5SUM:=73dd29dfa9062a174163f6a267e0b5f7
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/tftp-hpa/Default
21 SECTION:=net
22 CATEGORY:=Network
23 SUBMENU:=File Transfer
24 DEPENDS:=+libreadline
25 URL:=http://www.kernel.org/pub/software/network/tftp
26 endef
27
28 define Package/tftp-hpa
29 $(call Package/tftp-hpa/Default)
30 TITLE:=An enhanced version of the BSD TFTP client
31 endef
32
33 define Package/tftpd-hpa
34 $(call Package/tftp-hpa/Default)
35 TITLE:=An enhanced version of the BSD TFTP server
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --without-tcpwrappers, \
41 CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
42 )
43 endef
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR)
47 endef
48
49 define Package/tftp-hpa/install
50 $(INSTALL_DIR) $(1)/usr/bin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tftp/tftp $(1)/usr/bin/tftp-hpa
52 endef
53
54 define Package/tftpd-hpa/install
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tftpd/tftpd $(1)/usr/sbin/tftpd-hpa
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(INSTALL_BIN) ./files/tftpd-hpa.init $(1)/etc/init.d/tftpd-hpa
59 endef
60
61 $(eval $(call BuildPackage,tftp-hpa))
62 $(eval $(call BuildPackage,tftpd-hpa))