Upgrade smartmontools to 5.38 (#3696)
[openwrt/svn-archive/archive.git] / utils / scponly / Makefile
1 #
2 # Copyright (C) 2007-2008 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:=scponly
12 PKG_VERSION:=4.8
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_MD5SUM:=139ac9abd7f3b8dbc5c5520745318f8a
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/scponly
22 SECTION:=utils
23 CATEGORY:=Utilities
24 TITLE:=Alternative 'shell' (of sorts) for sysadmins
25 URL:=http://sourceforge.net/projects/scponly
26 endef
27
28 define Package/scponly/description
29 "scponly" is an alternative 'shell' (of sorts) for system
30 administrators who would like to provide access to remote
31 users to both read and write local files without providing
32 any remote execution priviledges. Functionally, it is best
33 described as a wrapper to the mostly trusted suite of ssh
34 applications.
35 endef
36
37 CONFIGURE_ARGS += \
38 ac_cv_path_scponly_PROG_SFTP_SERVER="/usr/libexec/sftp-server" \
39 \
40 --enable-winscp-compat \
41 --enable-scp-compat \
42 --disable-rsync-compat \
43 --with-sftp-server="/usr/libexec/sftp-server" \
44
45 define Package/scponly/postinst
46 #!/bin/sh
47 echo "/usr/bin/scponly" >> $${IPKG_INSTROOT}/etc/shells
48 endef
49
50 define Package/scponly/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
53 endef
54
55 $(eval $(call BuildPackage,scponly))