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