Use the gnu configure options (#1771)
[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
29 define Package/scponly
30 SECTION:=utils
31 CATEGORY:=Utilities
32 TITLE=:alternative 'shell' (of sorts) for sysadmins
33 URL:=http://sublimation.org/scponly
34 endef
35
36 define Package/scponly/postinst
37 #!/bin/sh
38 echo "/usr/bin/scponly" >> $${IPKG_INSTROOT}/etc/shells
39 endef
40
41 define Build/Compile
42 $(call Build/Compile/Default)
43 endef
44
45 define Package/scponly/install
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/scponly $(1)/usr/bin/
48 endef
49
50 $(eval $(call BuildPackage,scponly))