openscap-daemon: new ebuild

This commit is contained in:
Yury Martynov 2019-07-07 11:41:55 +03:00
parent 348c02a445
commit 8d7baf4ad2
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
6 changed files with 68 additions and 1 deletions

View file

@ -0,0 +1 @@
DIST openscap-daemon-0.1.10.tar.gz 820662 BLAKE2B 1167518f0534dc9f494f889892acbf7d74a86af6caf22220345516c39ed4863cbdd0a4064d9ee291ed7eccd81ab057241db2b04ee28d79a0c1f3c5152154e8a9 SHA512 93946b390cc95281b606967df783b8be6beb83da9fbca1951f2095dc24abe518440b6f967b29ae2b093536abe9af4effc3776e8d30f0ab2193b923c1bcf54e17

View file

@ -0,0 +1,15 @@
diff -ur a/setup.py b/setup.py
--- a/setup.py 2018-02-08 18:52:16.000000000 +0300
+++ b/setup.py 2019-07-07 00:50:24.699965784 +0300
@@ -57,10 +57,8 @@
data_files=[
(os.path.join("/", "etc", "dbus-1", "system.d"),
["org.oscapd.conf"]),
- (os.path.join("/", "usr", "lib", "systemd", "system"),
+ (os.path.join("/", "lib", "systemd", "system"),
["oscapd.service"]),
- (os.path.join("/", "usr", "share", "doc", "openscap-daemon"),
- ["README.md", "LICENSE"]),
(os.path.join("/", "usr", "share", "man", "man8"),
["man/oscapd.8", "man/oscapd-cli.8", "man/oscapd-evaluate.8"]),
],

View file

@ -0,0 +1,11 @@
#!/sbin/openrc-run
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="OpenSCAP Daemon"
command="/usr/bin/oscapd"
command_background="true"
pidfile="/run/${RC_SVCNAME}.pid"
start_stop_daemon_args="--quiet -1 /var/log/${RC_SVCNAME}.log -2 /var/log/${RC_SVCNAME}.log"
# vim: set ft=gentoo-init-d ts=4 :

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>email@linxon.ru</email>
<name>Yury Martynov</name>
</maintainer>
</pkgmetadata>

View file

@ -0,0 +1,32 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6,7} )
PYTHON_REQ_USE="xml"
inherit distutils-r1
DESCRIPTION="Manages continuous scans of your infrastructure"
HOMEPAGE="https://www.open-scap.org/tools/openscap-daemon"
SRC_URI="https://github.com/OpenSCAP/openscap-daemon/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT=0
KEYWORDS="~amd64"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
PATCHES=( "${FILESDIR}"/${P}_gentoo.patch )
RDEPEND="${PYTHON_DEPS}
app-forensics/scap-security-guide
dev-python/dbus-python[${PYTHON_USEDEP}]"
src_install() {
distutils-r1_src_install
newinitd "${FILESDIR}"/oscapd.initd oscapd
keepdir "/var/lib/oscapd" "/etc/oscapd"
dodoc container/config.ini
}

View file

@ -8,7 +8,7 @@ inherit cmake-utils gnome2-utils xdg-utils
DESCRIPTION="SCAP Scanner And Tailoring Graphical User Interface"
HOMEPAGE="http://www.open-scap.org https://github.com/OpenSCAP/scap-workbench"
SRC_URI="https://github.com/OpenSCAP/scap-workbench/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
KEYWORDS="~amd64"
LICENSE="GPL-3"
SLOT="0"
IUSE="policykit"