source: packages/net/rssh/Makefile @ 26096

Last change on this file since 26096 was 26096, checked in by cshore, 6 years ago

[net] SSH: Moved rssh restricted shell for SSH to SSH submenu.

File size: 1.6 KB
Line 
1#
2# Copyright (C) 2007-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:=rssh
11PKG_VERSION:=2.3.3
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/rssh
16PKG_MD5SUM:=b0c147602fcc95737ed50573b92fc468
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/rssh
23  SECTION:=net
24  CATEGORY:=Network
25  SUBMENU:=SSH
26  TITLE:=restricted shell for use with OpenSSH
27  URL:=http://www.pizzashack.org/rssh/index.shtml
28endef
29
30define Package/rssh/description
31        rssh is a restricted shell for use with OpenSSH, allowing only scp and/or sftp.
32        It now also includes support for rdist, rsync, and cvs. For example, if you have
33        a server which you only want to allow users to copy files off of via scp, without
34        providing shell access, you can use rssh to do that.
35endef
36
37define Package/rssh/conffiles
38/etc/rssh.conf
39endef
40
41CONFIGURE_ARGS += \
42        --with-sftp-server="/usr/libexec/sftp-server" \
43
44CONFIGURE_VARS += \
45        ac_cv_func_malloc_0_nonnull=yes \
46
47define Package/rssh/install
48        $(INSTALL_DIR) $(1)/etc
49        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/$(PKG_NAME).conf $(1)/etc/
50        $(INSTALL_DIR) $(1)/usr/bin
51        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
52        $(INSTALL_DIR) $(1)/usr/lib
53        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/rssh_chroot_helper $(1)/usr/lib/
54endef
55
56define Package/rssh/postinst
57#!/bin/sh
58grep rssh $${IPKG_INSTROOT}/etc/shells || \
59        echo "/usr/bin/rssh" >> $${IPKG_INSTROOT}/etc/shells
60endef
61
62$(eval $(call BuildPackage,rssh))
Note: See TracBrowser for help on using the repository browser.