2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
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
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/tftp-hpa
/Default
26 URL
:=http
://www.kernel.org
/pub
/software
/network
/tftp
29 define Package
/tftp-hpa
30 $(call Package
/tftp-hpa
/Default
)
31 TITLE
:=An enhanced version of the BSD TFTP client
34 define Package
/tftpd-hpa
35 $(call Package
/tftp-hpa
/Default
)
36 TITLE
:=An enhanced version of the BSD TFTP server
39 define Build
/Configure
40 $(call Build
/Configure
/Default
, \
42 CFLAGS
="$$$$CFLAGS $$$$CPPFLAGS" \
47 $(MAKE
) -C
$(PKG_BUILD_DIR
)
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
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
62 $(eval
$(call BuildPackage
,tftp-hpa
))
63 $(eval
$(call BuildPackage
,tftpd-hpa
))