bump up tftp-hpa to 0.48
[openwrt/svn-archive/archive.git] / net / tftp-hpa / 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$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=tftp-hpa
12 PKG_VERSION:=0.48
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.kernel.org/pub/software/network/tftp
17 PKG_MD5SUM:=73dd29dfa9062a174163f6a267e0b5f7
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/tftp-hpa/Default
24 SECTION:=net
25 CATEGORY:=Network
26 URL:=http://www.kernel.org/pub/software/network/tftp
27 endef
28
29 define Package/tftp-hpa
30 $(call Package/tftp-hpa/Default)
31 TITLE:=An enhanced version of the BSD TFTP client
32 endef
33
34 define Package/tftpd-hpa
35 $(call Package/tftp-hpa/Default)
36 TITLE:=An enhanced version of the BSD TFTP server
37 endef
38
39 define Build/Configure
40 $(call Build/Configure/Default, \
41 , \
42 CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
43 )
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR)
48 endef
49
50 define Package/tftp-hpa/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tftp/tftp $(1)/usr/bin/tftp-hpa
53 endef
54
55 define Package/tftpd-hpa/install
56 $(INSTALL_DIR) $(1)/usr/sbin
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tftpd/tftpd $(1)/usr/sbin/tftpd-hpa
58 $(INSTALL_DIR) $(1)/etc/init.d
59 $(INSTALL_BIN) ./files/tftpd-hpa.init $(1)/etc/init.d/tftpd-hpa
60 endef
61
62 $(eval $(call BuildPackage,tftp-hpa))
63 $(eval $(call BuildPackage,tftpd-hpa))