diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
commit | 21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch) | |
tree | e1810a4b135afce04b34862ef0fab2bfaeb8aeca /sys-apps/usbguard | |
parent | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff) |
gentoo resync : 15.01.2020
Diffstat (limited to 'sys-apps/usbguard')
-rw-r--r-- | sys-apps/usbguard/Manifest | 5 | ||||
-rwxr-xr-x | sys-apps/usbguard/files/usbguard-0.7.6-usbguard-dbus.openrc | 12 | ||||
-rwxr-xr-x | sys-apps/usbguard/files/usbguard-0.7.6-usbguard.openrc | 12 | ||||
-rw-r--r-- | sys-apps/usbguard/metadata.xml | 8 | ||||
-rw-r--r-- | sys-apps/usbguard/usbguard-0.7.6-r1.ebuild | 81 |
5 files changed, 118 insertions, 0 deletions
diff --git a/sys-apps/usbguard/Manifest b/sys-apps/usbguard/Manifest new file mode 100644 index 000000000000..df38e4a4dd87 --- /dev/null +++ b/sys-apps/usbguard/Manifest @@ -0,0 +1,5 @@ +AUX usbguard-0.7.6-usbguard-dbus.openrc 278 BLAKE2B 58f11c693e25436605af6ad41a1f618e30b20f336cda6a11db480fdda65022c28ce84d6aa9e804c1344221f3aa4ab8a262094106bb677414c2b24e7971f9acad SHA512 f66bee161324610755371fa04199fcd81887c1a55ab73cc1922be719d61e8315b7a869e1d8af6c3df2d6922b07027dced3605e63b130e8f094fcb606aea20b9e +AUX usbguard-0.7.6-usbguard.openrc 309 BLAKE2B d5297058d0ee8ce0f9fc91f2158f4aef5f077e1087800449a0319038d677a2a70274305058cd104ba30529b3c9daf82ffbe16ca5cdf20a3b4817e66d499d08c5 SHA512 512a08f59caf9de22b0776473a1ea9a4322b05c6286c99dac3055e0c6d52c78542448c33e19708338080cfdcdfcfb0f9868e8c523155e978c0161c262081da09 +DIST usbguard-0.7.6.tar.gz 1189194 BLAKE2B 4fefd9ccf13b094f64942559f481144f08986dc71154b87c1623459d2429c07e2738a17877d3f6c275e83ce904067b1284c588c9a95023c7205cc5e21ca118f0 SHA512 0b0d42276e48baac2dc1f9031eec25e3f622a8d6178cb0400b97c7d32005bfa158b60fd286fdc66206a8684658fefaf6389ef93511e942f025e75671d7455628 +EBUILD usbguard-0.7.6-r1.ebuild 1939 BLAKE2B 1aa5a2b004220759ee7183279f94dfb1132f97da5d7507208f6c69ae932b68ab1385ba9da78f261e9de9f01a4d756ec810b8ddd6b7646ef2875f1dfecd3decc8 SHA512 8685e97b343b13291a28aa0372e1f85cdc288e59b969488bcd88c4c161a1837de1da3f8da5925eb49cb89f6ab8d9cb6c20a3214ef62d23d25ff9f769baf1c4a2 +MISC metadata.xml 249 BLAKE2B 3647e2ef94ad009c86dc9d42c1396ad9420ade97042882b8d8f60f676c465cfd6ea3cea4b77caccadd99eb0cbe1ef83b18b799ec676da4ecfbff528d21bb5ffb SHA512 334ac61f9acc5c4917fd29afb3b420b1689b39be80cada419bed1db033e64130866d0995abe5f1c75eb1290f51734e9ad4c8d06fd8b49c288ecf617a0693d273 diff --git a/sys-apps/usbguard/files/usbguard-0.7.6-usbguard-dbus.openrc b/sys-apps/usbguard/files/usbguard-0.7.6-usbguard-dbus.openrc new file mode 100755 index 000000000000..2c923123c186 --- /dev/null +++ b/sys-apps/usbguard/files/usbguard-0.7.6-usbguard-dbus.openrc @@ -0,0 +1,12 @@ +#!/sbin/openrc-run +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/sbin/usbguard-dbus" +command_args="--system" +command_background="true" +pidfile="/run/usbguard-dbus.pid" + +depend() { + need dbus usbguard +} diff --git a/sys-apps/usbguard/files/usbguard-0.7.6-usbguard.openrc b/sys-apps/usbguard/files/usbguard-0.7.6-usbguard.openrc new file mode 100755 index 000000000000..3ea514cce169 --- /dev/null +++ b/sys-apps/usbguard/files/usbguard-0.7.6-usbguard.openrc @@ -0,0 +1,12 @@ +#!/sbin/openrc-run +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/sbin/usbguard-daemon" +command_args="-k -c /etc/usbguard/usbguard-daemon.conf" +command_background="true" +pidfile="/run/usbguard.pid" + +depend() { + need udev localmount +} diff --git a/sys-apps/usbguard/metadata.xml b/sys-apps/usbguard/metadata.xml new file mode 100644 index 000000000000..6d2298876faa --- /dev/null +++ b/sys-apps/usbguard/metadata.xml @@ -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>sping@gentoo.org</email> + <name>Sebastian Pipping</name> + </maintainer> +</pkgmetadata> diff --git a/sys-apps/usbguard/usbguard-0.7.6-r1.ebuild b/sys-apps/usbguard/usbguard-0.7.6-r1.ebuild new file mode 100644 index 000000000000..ec5fcfb642d2 --- /dev/null +++ b/sys-apps/usbguard/usbguard-0.7.6-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Daemon protecting your computer against BadUSB" +HOMEPAGE="https://github.com/USBGuard/usbguard" +SRC_URI="https://github.com/USBGuard/usbguard/releases/download/${P}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bash-completion dbus ldap policykit systemd" + +REQUIRED_USE="policykit? ( dbus )" + +CDEPEND=" + dev-libs/pegtl + >=dev-libs/libsodium-0.4.5:= + >=dev-libs/protobuf-2.5.0:= + >=sys-cluster/libqb-0.16.0:= + sys-devel/gcc:*[cxx] + >=sys-libs/libcap-ng-0.7.0 + >=sys-libs/libseccomp-2.0.0 + >=sys-process/audit-2.7.7 + bash-completion? ( >=app-shells/bash-completion-2.0 ) + dbus? ( + >=dev-libs/dbus-glib-0.100 + dev-libs/glib:2 + sys-apps/dbus + policykit? ( sys-auth/polkit[introspection] ) + ) + ldap? ( net-nds/openldap ) + systemd? ( sys-apps/systemd ) + " +RDEPEND="${CDEPEND} + virtual/udev + " +DEPEND="${CDEPEND} + app-text/asciidoc + dev-cpp/catch:1 + dbus? ( + dev-libs/libxml2 + dev-libs/libxslt + dev-util/gdbus-codegen + ) + " + +src_configure() { + local myargs=( + $(use_with dbus) + $(use_with ldap) + $(use_with policykit polkit) + $(use_enable systemd) + --disable-dependency-tracking + ) + + econf "${myargs[@]}" +} + +src_install() { + default + + keepdir /var/lib/log/usbguard + + newinitd "${FILESDIR}"/${P}-usbguard.openrc usbguard + use dbus && newinitd "${FILESDIR}"/${P}-usbguard-dbus.openrc usbguard-dbus +} + +pkg_postinst() { + ewarn + ewarn 'BEFORE STARTING USBGUARD please be sure to create/generate' + ewarn ' a rules file at /etc/usbguard/rules.conf' + ewarn ' so that you do not' + ewarn ' GET LOCKED OUT' + ewarn " of this system (\"$(hostname)\")." + ewarn + ewarn 'This command may be of help:' + ewarn ' sudo sh -c "usbguard generate-policy > /etc/usbguard/rules.conf"' + ewarn +} |