2607d572b182af648fc8659f72b6cd9ba2f3f7dc
[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
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=tftp-hpa is an enhanced version of the BSD TFTP client
28 URL:=http://www.kernel.org/pub/software/network/tftp
29 endef
30
31 define Package/tftpd-hpa
32 SECTION:=net
33 CATEGORY:=Network
34 TITLE:=tftp-hpa is an enhanced version of the BSD TFTP server
35 URL:=http://www.kernel.org/pub/software/network/tftp
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default)
40 endef
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR)
44 endef
45
46 define Package/tftp-hpa/install
47 install -d -m0755 $(1)/usr/bin
48 install -m0755 $(PKG_BUILD_DIR)/tftp/tftp $(1)/usr/bin/tftp-hpa
49 endef
50
51 define Package/tftpd-hpa/install
52 install -d -m0755 $(1)/usr/sbin
53 install -m0755 $(PKG_BUILD_DIR)/tftpd/tftpd $(1)/usr/sbin/tftpd-hpa
54 install -d -m0755 $(1)/etc/init.d
55 install -m0755 ./files/tftpd-hpa.init $(1)/etc/init.d/tftpd-hpa
56 endef
57
58 $(eval $(call BuildPackage,tftp-hpa))
59 $(eval $(call BuildPackage,tftpd-hpa))