Move all to deprecated folder.

This commit is contained in:
2016-11-16 21:57:57 +01:00
parent 01738a7684
commit 05de7d6c04
9777 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
comment "targetcli-fb depends on Python"
depends on !BR2_PACKAGE_PYTHON && !BR2_PACKAGE_PYTHON3
config BR2_PACKAGE_TARGETCLI_FB
bool "targetcli-fb"
depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
select BR2_PACKAGE_PYTHON_CONFIGSHELL_FB
select BR2_PACKAGE_PYTHON_RTSLIB_FB
select BR2_PACKAGE_PYTHON_SIX
help
targetcli-fb is a command-line interface for configuring the
LIO generic SCSI target, present in 3.x Linux kernel
versions.
https://github.com/agrover/targetcli-fb

View File

@@ -0,0 +1,46 @@
#!/bin/sh
#
# Restore / clear the Linux "SCSI target" driver configuration with `targetctl`
#
start() {
local ret
printf "Restoring target configuration: "
/usr/bin/targetctl restore >/dev/null 2>&1
ret=$?
echo "done"
return $ret
}
stop() {
local ret
printf "Clearing target configuration: "
/usr/bin/targetctl clear >/dev/null 2>&1
ret=$?
echo "done"
return $ret
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Restore LIO kernel target configuration
Requires=sys-kernel-config.mount
After=sys-kernel-config.mount network.target local-fs.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/targetctl restore
ExecStop=/usr/bin/targetctl clear
SyslogIdentifier=target
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,32 @@
################################################################################
#
# targetcli-fb
#
################################################################################
TARGETCLI_FB_VERSION = v2.1.fb41
TARGETCLI_FB_SITE = $(call github,agrover,targetcli-fb,$(TARGETCLI_FB_VERSION))
TARGETCLI_FB_LICENSE = Apache-2.0
TARGETCLI_FB_LICENSE_FILES = COPYING
TARGETCLI_FB_SETUP_TYPE = setuptools
TARGETCLI_FB_DEPENDENCIES = python-configshell-fb python-rtslib-fb python-six
define TARGETCLI_FB_INSTALL_INIT_SYSV
$(INSTALL) -m 0755 -D package/targetcli-fb/S50target \
$(TARGET_DIR)/etc/init.d/S50target
endef
define TARGETCLI_FB_INSTALL_INIT_SYSTEMD
$(INSTALL) -m 0644 -D package/targetcli-fb/target.service \
$(TARGET_DIR)/usr/lib/systemd/system/target.service
endef
# Targetcli stores its configuration in /etc/target/saveconfig.json
# and complains if the /etc/target/ directory does not exist.
define TARGETCLI_FB_INSTALL_CONF_DIR
$(INSTALL) -m 0755 -d $(TARGET_DIR)/etc/target
endef
TARGETCLI_FB_POST_INSTALL_TARGET_HOOKS += TARGETCLI_FB_INSTALL_CONF_DIR
$(eval $(python-package))