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