This commit is contained in:
nemunaire 2020-06-25 07:46:13 +02:00
parent decebb66fb
commit b9d4f517ed
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,4 @@
AUX target.service 330 BLAKE2B 81d01885925feeef2a1fe9214b520d0d4035b971fea22f4efcbe295a7316568cc6b6e152aa53a7e7defa602e55df61c3a06f3c028ef20301bb0032a4c919a43a SHA512 3c634f1c466d0a8c3dd2b57a230438aaeeb0e66324863a2ded57dd69a2ca5946f83c4ab511766f510f3e63b43aedcf7e368bcf5bc325ee69c016bb0bb2612de5
DIST rtslib-fb-2.1.72.tar.gz 73332 BLAKE2B 2e3f79564c455f4d9a5d97b3c57dc208b9459b9b88d38aaa188a72bf2d830dd0b9c5764cf0df54ac008b9d02e79f3a4502dbd159b2354756abad1b6dca113b2e SHA512 206f11884395c12248baf90742b60ff889597f6ce3d3a243b30b7d8462631855d5c98b4301be9a015bed5a4d540115b5922229b430388730a31485343599fb9a
EBUILD rtslib-fb-2.1.72.ebuild 675 BLAKE2B 74e94a2ed8e30b842a86c896f0c60520a620bfa74c2e78520ab918e4cb0fbdb590f75b60acfc1a17c4b3cb735f8b029ab4eca6490d48cf784407d436f9854667 SHA512 a2490189809ff5ecbb573503d3725bd4f525b34ac1d921fc6d0ca5484c83b7ed9a4868f549ad283cf6512761b2e5e89d2343f1e2daffc0b9ad7225d16219bfda
MISC metadata.xml 827 BLAKE2B 488d8f9e2e3cdbf10224b0312e83fa23887952e960b6aa8ff95780acbbd9ef96175aa51bbd14e934af300903cecdcc50795c6078d210e833b5db9654bd5f217c SHA512 2082be66a05829bef801444b95306dbfe427e11f3f3f64049c1e96207f62603708c503bae6c92ababb371e640a2c0a071bd07bf37e69d341926d5654c6b8337f

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,24 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1 systemd
DESCRIPTION="A Python object API for managing the Linux LIO kernel target"
HOMEPAGE="https://github.com/open-iscsi/rtslib-fb"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~mips x86 ~amd64-linux ~x86-linux"
IUSE=""
BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="dev-python/pyudev[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]"
src_install() {
distutils-r1_src_install
systemd_dounit "${FILESDIR}/target.service"
}