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