2007-04-15 19:08:54 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2007-07-01 23:09:45 +00:00
|
|
|
# $Id$
|
2007-04-15 19:08:54 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=scponly
|
|
|
|
PKG_VERSION:=4.6
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
2007-07-01 11:14:32 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/scponly \
|
|
|
|
http://sublimation.org/scponly
|
2007-04-15 19:08:54 +00:00
|
|
|
PKG_MD5SUM:=0425cb868cadd026851238452f1db907
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2007-07-01 11:14:32 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
ac_cv_path_scponly_PROG_SFTP_SERVER="/usr/libexec/sftp-server" \
|
|
|
|
, \
|
|
|
|
--enable-winscp-compat \
|
|
|
|
--enable-scp-compat \
|
|
|
|
--disable-rsync-compat \
|
|
|
|
--with-sftp-server="/usr/libexec/sftp-server"
|
2007-04-15 19:08:54 +00:00
|
|
|
|
|
|
|
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))
|