From 8605ed42517fb85e88e2917d9a2a65d6871a2d4c Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 15 Apr 2007 19:08:54 +0000 Subject: [PATCH] Add scponly (#1581) SVN-Revision: 6957 --- utils/scponly/Makefile | 52 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 utils/scponly/Makefile diff --git a/utils/scponly/Makefile b/utils/scponly/Makefile new file mode 100644 index 0000000000..ce6ec05343 --- /dev/null +++ b/utils/scponly/Makefile @@ -0,0 +1,52 @@ +# +# Copyright (C) 2007 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id: $ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=scponly +PKG_VERSION:=4.6 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz +PKG_SOURCE_URL:=http://sublimation.org/scponly +PKG_MD5SUM:=0425cb868cadd026851238452f1db907 +PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +PKG_CONFIGURE_OPTS:= \ + --enable-winscp-compat \ + --enable-scp-compat \ + --disable-rsync-compat \ + --without-sftp-server + + +define Package/scponly + SECTION:=utils + CATEGORY:=Utilities + TITLE=:alternative 'shell' (of sorts) for sysadmins + URL:=http://sublimation.org/scponly +endef + +define Package/scponly/postinst +#!/bin/sh +echo "/usr/bin/scponly" >> $${IPKG_INSTROOT}/etc/shells +endef + +define Build/Compile + $(call Build/Compile/Default) +endef + +define Package/scponly/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/scponly $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,scponly)) -- 2.30.2