Add tftp-hpa (#928)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5487 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
480b4c834b
commit
6c866c7bd3
59
net/tftp-hpa/Makefile
Normal file
59
net/tftp-hpa/Makefile
Normal file
@ -0,0 +1,59 @@
|
||||
#
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
# $Id: Makefile 5348 2006-10-30 13:51:50Z nico $
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=tftp-hpa
|
||||
PKG_VERSION:=0.43
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=ftp://ftp.kernel.org/pub/software/network/tftp
|
||||
PKG_MD5SUM:=
|
||||
PKG_CAT:=zcat
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/tftp-hpa
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=tftp-hpa is an enhanced version of the BSD TFTP client
|
||||
URL:=http://www.kernel.org/pub/software/network/tftp
|
||||
endef
|
||||
|
||||
define Package/tftpd-hpa
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=tftp-hpa is an enhanced version of the BSD TFTP server
|
||||
URL:=http://www.kernel.org/pub/software/network/tftp
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default)
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR)
|
||||
endef
|
||||
|
||||
define Package/tftp-hpa/install
|
||||
install -d -m0755 $(1)/usr/bin
|
||||
install -m0755 $(PKG_BUILD_DIR)/tftp/tftp $(1)/usr/bin/tftp-hpa
|
||||
endef
|
||||
|
||||
define Package/tftpd-hpa/install
|
||||
install -d -m0755 $(1)/usr/sbin
|
||||
install -m0755 $(PKG_BUILD_DIR)/tftpd/tftpd $(1)/usr/sbin/tftpd-hpa
|
||||
install -d -m0755 $(1)/etc/init.d
|
||||
install -m0755 ./files/tftpd-hpa.init $(1)/etc/init.d/tftpd-hpa
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,tftp-hpa))
|
||||
$(eval $(call BuildPackage,tftpd-hpa))
|
12
net/tftp-hpa/files/tftpd-hpa.init
Normal file
12
net/tftp-hpa/files/tftpd-hpa.init
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
RUN_D=/var/tftpd-hpa
|
||||
|
||||
start() {
|
||||
[ -d $RUN_D ] || mkdir -p $RUN_D
|
||||
tftpd-hpa -l -s $RUN_D
|
||||
}
|
||||
|
||||
stop() {
|
||||
killall tftpd-hpa
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user