Upgrade httping to 1.2.2 (#1414)
[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: Makefile 5348 2006-10-30 13:51:50Z nico $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=tftp-hpa
12 PKG_VERSION:=0.43
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:=
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/tftp-hpa/Default
25 SECTION:=net
26 CATEGORY:=Network
27 URL:=http://www.kernel.org/pub/software/network/tftp
28 endef
29
30 define Package/tftp-hpa
31 $(call Package/tftp-hpa/Default)
32 TITLE:=An enhanced version of the BSD TFTP client
33 endef
34
35 define Package/tftpd-hpa
36 $(call Package/tftp-hpa/Default)
37 TITLE:=An enhanced version of the BSD TFTP server
38 endef
39
40 define Build/Configure
41 $(call Build/Configure/Default, \
42 , \
43 CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
44 )
45 endef
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR)
49 endef
50
51 define Package/tftp-hpa/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tftp/tftp $(1)/usr/bin/tftp-hpa
54 endef
55
56 define Package/tftpd-hpa/install
57 $(INSTALL_DIR) $(1)/usr/sbin
58 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tftpd/tftpd $(1)/usr/sbin/tftpd-hpa
59 $(INSTALL_DIR) $(1)/etc/init.d
60 $(INSTALL_BIN) ./files/tftpd-hpa.init $(1)/etc/init.d/tftpd-hpa
61 endef
62
63 $(eval $(call BuildPackage,tftp-hpa))
64 $(eval $(call BuildPackage,tftpd-hpa))