Fix the path to the sfpt-server binary (#1952)
[openwrt/svn-archive/archive.git] / utils / scponly / 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:=scponly
12 PKG_VERSION:=4.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=http://sublimation.org/scponly
17 PKG_MD5SUM:=0425cb868cadd026851238452f1db907
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 CONFIGURE_ARGS+= \
25 --enable-winscp-compat \
26 --enable-scp-compat \
27 --disable-rsync-compat \
28 --with-sftp-server="/usr/libexec/sftp-server"
29
30 define Package/scponly
31 SECTION:=utils
32 CATEGORY:=Utilities
33 TITLE=:alternative 'shell' (of sorts) for sysadmins
34 URL:=http://sublimation.org/scponly
35 endef
36
37 define Package/scponly/postinst
38 #!/bin/sh
39 echo "/usr/bin/scponly" >> $${IPKG_INSTROOT}/etc/shells
40 endef
41
42 define Build/Compile
43 $(call Build/Compile/Default)
44 endef
45
46 define Package/scponly/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/scponly $(1)/usr/bin/
49 endef
50
51 $(eval $(call BuildPackage,scponly))