2 # Copyright (C) 2007-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/rssh
16 PKG_MD5SUM
:=b0c147602fcc95737ed50573b92fc468
20 include $(INCLUDE_DIR
)/package.mk
25 TITLE
:=restricted
shell for use with OpenSSH
26 URL
:=http
://www.pizzashack.org
/rssh
/index.shtml
29 define Package
/rssh
/description
30 rssh is a restricted
shell for use with OpenSSH
, allowing only scp and
/or sftp.
31 It now also includes support for rdist
, rsync
, and cvs. For example
, if you have
32 a server which you only want to allow users to copy files off of via scp
, without
33 providing
shell access
, you can use rssh to do that.
36 define Package
/rssh
/conffiles
41 --with-sftp-server
="/usr/libexec/sftp-server" \
44 ac_cv_func_malloc_0_nonnull
=yes \
46 define Package
/rssh
/install
47 $(INSTALL_DIR
) $(1)/etc
48 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/$(PKG_NAME
).conf
$(1)/etc
/
49 $(INSTALL_DIR
) $(1)/usr
/bin
50 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(PKG_NAME
) $(1)/usr
/bin
/
51 $(INSTALL_DIR
) $(1)/usr
/lib
52 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/rssh_chroot_helper
$(1)/usr
/lib
/
55 define Package
/rssh
/postinst
57 grep rssh
$${IPKG_INSTROOT}/etc
/shells || \
58 echo
"/usr/bin/rssh" >> $${IPKG_INSTROOT}/etc
/shells
61 $(eval
$(call BuildPackage
,rssh
))