be71fe5ee688383f73088a611c074501aef11e32
[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 DESCRIPTION:=\
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
34 endef
35
36 define Package/rssh/conffiles
37 /etc/rssh.conf
38 endef
39
40 define Build/Configure
41 $(call Build/Configure/Default,\
42 ,\
43 ac_cv_func_malloc_0_nonnull=yes \
44 )
45 endef
46
47 define Build/Compile
48 $(call Build/Compile/Default,\
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 all \
51 )
52 endef
53
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/
61 endef
62
63 $(eval $(call BuildPackage,rssh))