source: packages/net/tftp-hpa/Makefile @ 26066

Last change on this file since 26066 was 26066, checked in by cshore, 5 years ago

[net] File Transfer: Moved old FTP category and combined with other file transfer programs (HTTP, uucp, rsync, TFTP) to create the FIle Transfer submenu.

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=tftp-hpa
11PKG_VERSION:=0.48
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@KERNEL/software/network/tftp
16PKG_MD5SUM:=73dd29dfa9062a174163f6a267e0b5f7
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/tftp-hpa/Default
21  SECTION:=net
22  CATEGORY:=Network
23  SUBMENU:=File Transfer
24  DEPENDS:=+libreadline
25  URL:=http://www.kernel.org/pub/software/network/tftp
26endef
27
28define Package/tftp-hpa
29  $(call Package/tftp-hpa/Default)
30  TITLE:=An enhanced version of the BSD TFTP client
31endef
32
33define Package/tftpd-hpa
34  $(call Package/tftp-hpa/Default)
35  TITLE:=An enhanced version of the BSD TFTP server
36endef
37
38define Build/Configure 
39        $(call Build/Configure/Default, \
40                --without-tcpwrappers, \
41                CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
42        )
43endef
44
45define Build/Compile   
46        $(MAKE) -C $(PKG_BUILD_DIR)
47endef
48
49define Package/tftp-hpa/install
50        $(INSTALL_DIR) $(1)/usr/bin
51        $(INSTALL_BIN) $(PKG_BUILD_DIR)/tftp/tftp $(1)/usr/bin/tftp-hpa
52endef
53
54define Package/tftpd-hpa/install
55        $(INSTALL_DIR) $(1)/usr/sbin
56        $(INSTALL_BIN) $(PKG_BUILD_DIR)/tftpd/tftpd $(1)/usr/sbin/tftpd-hpa
57        $(INSTALL_DIR) $(1)/etc/init.d
58        $(INSTALL_BIN) ./files/tftpd-hpa.init $(1)/etc/init.d/tftpd-hpa
59endef
60
61$(eval $(call BuildPackage,tftp-hpa))
62$(eval $(call BuildPackage,tftpd-hpa))
Note: See TracBrowser for help on using the repository browser.