source: packages/net/gesftpserver/Makefile @ 19771

Last change on this file since 19771 was 19771, checked in by thepeople, 6 years ago

this patch adds geftpserver package.
-Raphael

File size: 1.4 KB
Line 
1#
2# Copyright (C) 2006-2010 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:=sftpserver
11PKG_REV:=228
12PKG_VERSION:=r$(PKG_REV)
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://www.greenend.org.uk/rjk/bzr/sftpserver.dev
17PKG_SOURCE_PROTO:=bzr
18PKG_SOURCE_SUBDIR:=$(PKG_NAME)
19PKG_SOURCE_VERSION:=$(PKG_REV)
20
21PKG_INSTALL:=1
22
23TAR_OPTIONS:=--transform='s,$(PKG_NAME),$(PKG_NAME)-$(PKG_VERSION),' -xvf -
24
25include $(INCLUDE_DIR)/package.mk
26
27define Package/gesftpserver
28  SECTION:=net
29  CATEGORY:=Network
30  DEPENDS:=+libpthread +libiconv
31  TITLE:=SFTP server
32  URL:=http://www.greenend.org.uk/rjk/sftpserver/
33endef
34
35define Package/gesftpserver/description
36This is an experimental free SFTP server. It is currently still under development
37(so don't trust it with critical data). It should be possible to use it as a
38drop-in replacement for the widely-used OpenSSH SFTP server. It does not include
39an SSH server, but rather runs as a subsystem of one.
40endef
41
42CONFIGURE_CMD:=./prepare
43
44TARGET_CFLAGS+= \
45        -I$(STAGING_DIR)/usr/lib/libiconv/include/
46
47TARGET_LDFLAGS+= \
48        -L$(STAGING_DIR)/usr/lib/libiconv/lib \
49        -lpthread
50
51define Package/gesftpserver/install     
52        $(INSTALL_DIR) $(1)/usr/bin
53        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/gesftpserver $(1)/usr/bin/
54endef
55
56$(eval $(call BuildPackage,gesftpserver))
Note: See TracBrowser for help on using the repository browser.