2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/rssh
17 PKG_MD5SUM
:=65712f2c06ff5fc6fc783bc8c2e4e1ba
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
27 TITLE
:=restricted
shell for use with OpenSSH
29 rssh is a restricted
shell for use with OpenSSH
, allowing only scp and
/or sftp.
\\\
30 It now also includes support for rdist
, rsync
, and cvs. For example
, if you have
\\\
31 a server which you only want to allow users to copy files off of via scp
, without
\\\
32 providing
shell access
, you can use rssh to do that.
33 URL
:=http
://www.pizzashack.org
/rssh
/index.shtml
36 define Package
/rssh
/conffiles
40 define Build
/Configure
41 $(call Build
/Configure
/Default
,\
43 ac_cv_func_malloc_0_nonnull
=yes \
48 $(call Build
/Compile
/Default
,\
49 DESTDIR
="$(PKG_INSTALL_DIR)" \
54 define Package
/rssh
/install
55 $(INSTALL_DIR
) $(1)/etc
/
56 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/$(PKG_NAME
).conf
$(1)/etc
/
57 $(INSTALL_DIR
) $(1)/usr
/sbin
58 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_NAME
) $(1)/usr
/sbin
59 $(INSTALL_DIR
) $(1)/usr
/lib
/
60 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/rssh_chroot_helper
$(1)/usr
/lib
/
63 $(eval
$(call BuildPackage
,rssh
))