flow-tools: Make the 'all' compile target explicit, else the build fails with make...
[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 PKG_CONFIGURE_OPTS:= \
25 --enable-winscp-compat \
26 --enable-scp-compat \
27 --disable-rsync-compat \
28 --without-sftp-server
29
30
31 define Package/scponly
32 SECTION:=utils
33 CATEGORY:=Utilities
34 TITLE=:alternative 'shell' (of sorts) for sysadmins
35 URL:=http://sublimation.org/scponly
36 endef
37
38 define Package/scponly/postinst
39 #!/bin/sh
40 echo "/usr/bin/scponly" >> $${IPKG_INSTROOT}/etc/shells
41 endef
42
43 define Build/Compile
44 $(call Build/Compile/Default)
45 endef
46
47 define Package/scponly/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/scponly $(1)/usr/bin/
50 endef
51
52 $(eval $(call BuildPackage,scponly))