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