2006-10-30 13:51:50 +00:00
|
|
|
#
|
2006-07-30 22:12:08 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=atftp
|
|
|
|
PKG_VERSION:=0.7
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2007-08-02 21:13:22 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/distfiles/
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_MD5SUM:=3b27365772d918050b2251d98a9c7c82
|
2006-07-30 22:12:08 +00:00
|
|
|
|
2007-01-22 17:33:10 +00:00
|
|
|
PKG_BUILD_DEPENDS:=libncurses libpcre libreadline
|
2007-01-09 14:26:10 +00:00
|
|
|
|
2006-07-30 22:12:08 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
define Package/atftp/Default
|
2006-07-30 22:12:08 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2006-10-30 13:51:50 +00:00
|
|
|
TITLE:=TFTP
|
2011-03-12 05:50:28 +00:00
|
|
|
SUBMENU:=File Transfer
|
2006-07-30 22:12:08 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
define Package/atftp
|
|
|
|
$(call Package/atftp/Default)
|
2007-01-09 14:26:10 +00:00
|
|
|
DEPENDS:=+libreadline +libncurses
|
2006-10-30 13:51:50 +00:00
|
|
|
TITLE+= client
|
|
|
|
endef
|
|
|
|
|
2006-07-30 22:12:08 +00:00
|
|
|
define Package/atftpd
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/atftp/Default)
|
2007-01-09 14:26:10 +00:00
|
|
|
DEPENDS:=+libpcre +libpthread
|
2006-10-30 13:51:50 +00:00
|
|
|
TITLE+= server
|
2006-07-30 22:12:08 +00:00
|
|
|
endef
|
|
|
|
|
2007-08-02 21:13:22 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-libwrap
|
2006-10-30 13:51:50 +00:00
|
|
|
|
2007-08-02 21:13:22 +00:00
|
|
|
MAKE_FLAGS += \
|
2007-08-02 21:17:05 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -Wall -D_REENTRANT" \
|
2007-08-02 21:13:22 +00:00
|
|
|
all
|
2006-07-30 22:12:08 +00:00
|
|
|
|
|
|
|
define Package/atftp/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-01-08 11:19:08 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/atftp $(1)/usr/sbin/
|
2006-07-30 22:12:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/atftpd/install
|
2007-05-20 12:00:39 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/atftpd $(1)/usr/sbin/
|
2006-07-30 22:12:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,atftp))
|
|
|
|
$(eval $(call BuildPackage,atftpd))
|