Add nufw
[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
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/rssh
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=restricted shell for use with OpenSSH
27 URL:=http://www.pizzashack.org/rssh/index.shtml
28 endef
29
30 define 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.
35 endef
36
37 define Package/rssh/conffiles
38 /etc/rssh.conf
39 endef
40
41 define Build/Configure
42 $(call Build/Configure/Default,\
43 --with-sftp-server="/usr/libexec/sftp-server" \
44 ,\
45 ac_cv_func_malloc_0_nonnull=yes \
46 )
47 endef
48
49 define Build/Compile
50 $(call Build/Compile/Default,\
51 DESTDIR="$(PKG_INSTALL_DIR)" \
52 all \
53 )
54 endef
55
56 define Package/rssh/install
57 $(INSTALL_DIR) $(1)/etc/
58 $(INSTALL_CONF) $(PKG_BUILD_DIR)/$(PKG_NAME).conf $(1)/etc/
59 $(INSTALL_DIR) $(1)/usr/sbin
60 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin
61 $(INSTALL_DIR) $(1)/usr/lib/
62 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rssh_chroot_helper $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,rssh))