DESCRIPTION:= is obselete
[openwrt/svn-archive/archive.git] / net / rssh / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=rssh
12 PKG_VERSION:=2.3.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/rssh
17 PKG_MD5SUM:=65712f2c06ff5fc6fc783bc8c2e4e1ba
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/rssh
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=restricted shell for use with OpenSSH
28 URL:=http://www.pizzashack.org/rssh/index.shtml
29 endef
30
31 define Package/rssh/description
32 rssh is a restricted shell for use with OpenSSH, allowing only scp and/or sftp.
33 It now also includes support for rdist, rsync, and cvs. For example, if you have
34 a server which you only want to allow users to copy files off of via scp, without
35 providing shell access, you can use rssh to do that.
36 endef
37
38 define Package/rssh/conffiles
39 /etc/rssh.conf
40 endef
41
42 define Build/Configure
43 $(call Build/Configure/Default,\
44 --with-sftp-server="/usr/libexec/sftp-server" \
45 ,\
46 ac_cv_func_malloc_0_nonnull=yes \
47 )
48 endef
49
50 define Build/Compile
51 $(call Build/Compile/Default,\
52 DESTDIR="$(PKG_INSTALL_DIR)" \
53 all \
54 )
55 endef
56
57 define Package/rssh/install
58 $(INSTALL_DIR) $(1)/etc/
59 $(INSTALL_CONF) $(PKG_BUILD_DIR)/$(PKG_NAME).conf $(1)/etc/
60 $(INSTALL_DIR) $(1)/usr/sbin
61 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin
62 $(INSTALL_DIR) $(1)/usr/lib/
63 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rssh_chroot_helper $(1)/usr/lib/
64 endef
65
66 $(eval $(call BuildPackage,rssh))