mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-01 11:11:08 +02:00
scap-workbench: new ebuild
This commit is contained in:
parent
5464668add
commit
c334271ecf
4 changed files with 133 additions and 0 deletions
1
app-forensics/scap-workbench/Manifest
Normal file
1
app-forensics/scap-workbench/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST scap-workbench-1.2.0.tar.gz 1881051 BLAKE2B d00f58943262a8489ed7595315c44bbc1e3d293640e63f1377e13658b86524d94789f0596b66221ce9cc314bcdd9fa19f1ac4bad4547de816373446c0c988975 SHA512 c766b3a93721a2abc52cd47f44f9ed4b1ad02c733ef89dfb3f368f0f3e016c39b188f6ba29e06f1d3ca3b1b6cdc17e057a80198b105e94c60e484acafd7e1373
|
||||
|
|
@ -0,0 +1,67 @@
|
|||
diff --git a/.travis.yml b/.travis.yml
|
||||
index f928331c..809bfd19 100644
|
||||
--- a/.travis.yml
|
||||
+++ b/.travis.yml
|
||||
@@ -11,7 +11,7 @@ before_install:
|
||||
- brew update
|
||||
- brew install jq
|
||||
- brew install cartr/qt4/qt@4
|
||||
- - brew install asciidoctor
|
||||
+ - brew install asciidoc
|
||||
|
||||
before_script:
|
||||
- git clone --depth 1 https://github.com/openscap/openscap.git -b master
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 993b949f..b4427f1f 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -89,15 +89,15 @@ if (SCAP_AS_RPM_EXECUTABLE)
|
||||
endif()
|
||||
|
||||
# This is optional, only required if user wants documentation rebuilt
|
||||
-find_program(ASCIIDOCTOR_EXECUTABLE NAMES asciidoctor)
|
||||
-option(SCAP_WORKBENCH_REBUILD_MANUAL "If enabled, user manual will be rebuilt (requires asciidoctor to be installed)" TRUE)
|
||||
+find_program(ASCIIDOC_EXECUTABLE NAMES asciidoc)
|
||||
+option(SCAP_WORKBENCH_REBUILD_MANUAL "If enabled, user manual will be rebuilt (requires asciidoc to be installed)" TRUE)
|
||||
option(SCAP_WORKBENCH_USE_NATIVE_FILE_DIALOGS "If enabled, native desktop environment file dialogs are used (disable if you have crashes at startup)" TRUE)
|
||||
-if (SCAP_WORKBENCH_REBUILD_MANUAL AND NOT ASCIIDOCTOR_EXECUTABLE)
|
||||
- message("asciidoctor has not been found, user manual won't be rebuilt even though SCAP_WORKBENCH_REBUILD_MANUAL has been enabled.")
|
||||
+if (SCAP_WORKBENCH_REBUILD_MANUAL AND NOT ASCIIDOC_EXECUTABLE)
|
||||
+ message("asciidoc has not been found, user manual won't be rebuilt even though SCAP_WORKBENCH_REBUILD_MANUAL has been enabled.")
|
||||
endif()
|
||||
if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/doc/user_manual.html")
|
||||
- if (NOT ASCIIDOCTOR_EXECUTABLE)
|
||||
- message(FATAL_ERROR "You seem to be using scap-workbench from the repository ('${CMAKE_SOURCE_DIR}/doc/user_manual.html' hasn't been found). Please install asciidoctor to build the manual! You can use `gem install asciidoctor` if asciidoctor is not in your distribution package repository. If you don't have access to asciidoctor and don't mind not having a manual, run `touch ${CMAKE_SOURCE_DIR}/doc/user_manual.html` and rerun cmake.")
|
||||
+ if (NOT ASCIIDOC_EXECUTABLE)
|
||||
+ message(FATAL_ERROR "You seem to be using scap-workbench from the repository ('${CMAKE_SOURCE_DIR}/doc/user_manual.html' hasn't been found). Please install asciidoc to build the manual! If you don't have access to asciidoc and don't mind not having a manual, run `touch ${CMAKE_SOURCE_DIR}/doc/user_manual.html` and rerun cmake.")
|
||||
endif()
|
||||
set(SCAP_WORKBENCH_REBUILD_MANUAL TRUE)
|
||||
endif()
|
||||
@@ -269,12 +269,12 @@ install(FILES "share/pixmaps/scap-workbench.svg"
|
||||
install(FILES "scap-workbench.appdata.xml"
|
||||
DESTINATION "${CMAKE_INSTALL_DATADIR}/appdata")
|
||||
|
||||
-if (ASCIIDOCTOR_EXECUTABLE)
|
||||
+if (ASCIIDOC_EXECUTABLE)
|
||||
file(GLOB USER_MANUAL_SCREENSHOTS "${CMAKE_CURRENT_SOURCE_DIR}/doc/user_manual/*.png")
|
||||
add_custom_command(
|
||||
OUTPUT doc/user_manual.html
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/doc
|
||||
- COMMAND ${ASCIIDOCTOR_EXECUTABLE} --destination-dir ${CMAKE_CURRENT_BINARY_DIR}/doc -b html5 -a data-uri user_manual.adoc
|
||||
+ COMMAND ${ASCIIDOC_EXECUTABLE} -o ${CMAKE_CURRENT_BINARY_DIR}/doc/user_manual.html -b html5 -a data-uri user_manual.adoc
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/doc/user_manual.html ${CMAKE_CURRENT_SOURCE_DIR}/doc/user_manual.html
|
||||
DEPENDS doc/user_manual.adoc ${USER_MANUAL_SCREENSHOTS}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/doc
|
||||
diff --git a/README.md b/README.md
|
||||
index 934c8240..8cf7ec93 100644
|
||||
--- a/README.md
|
||||
+++ b/README.md
|
||||
@@ -24,7 +24,7 @@ required dependencies:
|
||||
|
||||
required dependencies (only for the git repo, not required for released tarballs):
|
||||
```console
|
||||
-# yum install rubygem-asciidoctor
|
||||
+# yum install asciidoc
|
||||
```
|
||||
|
||||
optional dependencies:
|
||||
8
app-forensics/scap-workbench/metadata.xml
Normal file
8
app-forensics/scap-workbench/metadata.xml
Normal 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>
|
||||
57
app-forensics/scap-workbench/scap-workbench-1.2.0.ebuild
Normal file
57
app-forensics/scap-workbench/scap-workbench-1.2.0.ebuild
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
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"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="policykit"
|
||||
|
||||
RDEPEND="
|
||||
app-forensics/openscap
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5[png]
|
||||
dev-qt/qtxml:5
|
||||
dev-qt/qtxmlpatterns:5
|
||||
dev-libs/libxslt
|
||||
policykit? ( sys-auth/polkit )
|
||||
virtual/ssh
|
||||
x11-libs/libxcb"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/asciidoc
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}"/${P}_replace_asciidoctor_by_asciidoc.diff
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_INSTALL_DOCDIR="/usr/share/doc/${P}"
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
Loading…
Reference in a new issue