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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.mirrorservice.org
/sites
/www.ibiblio.org
/gentoo
/distfiles
/
16 PKG_MD5SUM
:=3b27365772d918050b2251d98a9c7c82
18 PKG_BUILD_DEPENDS
:=libncurses libpcre libreadline
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/atftp
/Default
26 SUBMENU
:=File Transfer
30 $(call Package
/atftp
/Default
)
31 DEPENDS
:=+libreadline
+libncurses
36 $(call Package
/atftp
/Default
)
37 DEPENDS
:=+libpcre
+libpthread
45 CFLAGS
="$(TARGET_CFLAGS) -Wall -D_REENTRANT" \
48 define Package
/atftp
/install
49 $(INSTALL_DIR
) $(1)/usr
/sbin
50 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/atftp
$(1)/usr
/sbin
/
53 define Package
/atftpd
/install
54 $(INSTALL_DIR
) $(1)/etc
55 $(INSTALL_DIR
) $(1)/usr
/sbin
56 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/atftpd
$(1)/usr
/sbin
/
59 $(eval
$(call BuildPackage
,atftp
))
60 $(eval
$(call BuildPackage
,atftpd
))