utils/psmisc: fix peekfd issue on mips/big-endian targets, included upstream patch...
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=rssh
11 PKG_VERSION:=2.3.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/rssh
16 PKG_MD5SUM:=65712f2c06ff5fc6fc783bc8c2e4e1ba
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/rssh
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=restricted shell for use with OpenSSH
24 URL:=http://www.pizzashack.org/rssh/index.shtml
25 endef
26
27 define Package/rssh/description
28 rssh is a restricted shell for use with OpenSSH, allowing only scp and/or sftp.
29 It now also includes support for rdist, rsync, and cvs. For example, if you have
30 a server which you only want to allow users to copy files off of via scp, without
31 providing shell access, you can use rssh to do that.
32 endef
33
34 define Package/rssh/conffiles
35 /etc/rssh.conf
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default,\
40 --with-sftp-server="/usr/libexec/sftp-server" \
41 ,\
42 ac_cv_func_malloc_0_nonnull=yes \
43 )
44 endef
45
46 define Build/Compile
47 $(call Build/Compile/Default,\
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 all \
50 )
51 endef
52
53 define Package/rssh/install
54 $(INSTALL_DIR) $(1)/etc/
55 $(INSTALL_CONF) $(PKG_BUILD_DIR)/$(PKG_NAME).conf $(1)/etc/
56 $(INSTALL_DIR) $(1)/usr/sbin
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin
58 $(INSTALL_DIR) $(1)/usr/lib/
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rssh_chroot_helper $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,rssh))