0adddf12255ffeecda48bec225066939fe519823
[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 DEPENDS:=+libreadline
24 URL:=http://www.kernel.org/pub/software/network/tftp
25 endef
26
27 define Package/tftp-hpa
28 $(call Package/tftp-hpa/Default)
29 TITLE:=An enhanced version of the BSD TFTP client
30 endef
31
32 define Package/tftpd-hpa
33 $(call Package/tftp-hpa/Default)
34 TITLE:=An enhanced version of the BSD TFTP server
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --without-tcpwrappers, \
40 CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
41 )
42 endef
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR)
46 endef
47
48 define Package/tftp-hpa/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tftp/tftp $(1)/usr/bin/tftp-hpa
51 endef
52
53 define Package/tftpd-hpa/install
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tftpd/tftpd $(1)/usr/sbin/tftpd-hpa
56 $(INSTALL_DIR) $(1)/etc/init.d
57 $(INSTALL_BIN) ./files/tftpd-hpa.init $(1)/etc/init.d/tftpd-hpa
58 endef
59
60 $(eval $(call BuildPackage,tftp-hpa))
61 $(eval $(call BuildPackage,tftpd-hpa))