usbguard: 0.7.6 bump

This commit is contained in:
blshkv 2019-12-25 08:47:14 +08:00
parent f8f5860b2f
commit 80225c63e2
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
2 changed files with 89 additions and 0 deletions

View file

@ -1,2 +1,3 @@
DIST usbguard-0.7.4.tar.gz 1043630 BLAKE2B f34227f08aedb52b753dc6eaea0e56120f6779b7c16d520f77020e06ab2e80f255e34206c59d4275051844c2351da0005972325830ee0639f5ab9cd365be4845 SHA512 7138361e16e57f88609b1db2b80721c5cb4c09b9a6b9e17c915b4866ee9f9fa2e34f3576838a804123ef75a54abfa6f6e2fb5988180a9a86f50f8d6779ac6688
DIST usbguard-0.7.5.tar.gz 1049304 BLAKE2B 7def5187af5704c5108ce48e19de297a07280e5e85c6c980d82f8d74e05dc1e7a5e692077945b135f7ea9c233007caf04ca1970fe7aff1a2cee1e4aaac02ac9c SHA512 50a6176ec2f7714e6d2cae797bbae46ced20474e4333a517f3a16b751c2a20378330dc025997d2bc0beedd611b980e00b32a3b165d7a8f78147000ed47d87bfe
DIST usbguard-0.7.6.tar.gz 1042453 BLAKE2B c83d4a0b722e8da6b65c65f3dd9de71c748faa69859cee911d372c74800a380211f291888d8d94c21ac6e6f03a784326d7ebfad47a1bc38fbda95787c2fa3e4d SHA512 11f17b619a8c3610f0e0037288a3bec2b5ecec7276a16c78f578dec5095fa17c0cf4c58db67fa8f9797034cdf6de41c9170ecd1010b66755d94481e7d26e7edb

View file

@ -0,0 +1,88 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools systemd
DESCRIPTION="The USBGuard software framework helps to protect your computer against BadUSB."
HOMEPAGE="https://github.com/dkopecek/usbguard"
if [[ ${PV} == "9999" ]] ; then
inherit git-r3
EGIT_BRANCH="master"
EGIT_REPO_URI="https://github.com/dkopecek/${PN}.git"
EGIT_SUBMODULES=( src/ThirdParty/Catch src/ThirdParty/PEGTL src/ThirdParty/usbmon )
KEYWORDS=""
else
KEYWORDS="~x86 ~amd64"
SRC_URI="https://github.com/USBGuard/usbguard/archive/${P}.tar.gz"
S=${WORKDIR}/${PN}-${PN}-${PV}
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="caps-ng crypt dbus qt5 policykit protobuf seccomp systemd"
DEPEND="sys-cluster/libqb
sys-libs/libseccomp
sys-libs/libcap-ng
dev-libs/protobuf
dev-ruby/asciidoctor
dev-cpp/catch:1
>=dev-libs/pegtl-2.0
systemd? ( sys-apps/systemd )
dbus? ( sys-apps/dbus
dev-libs/dbus-glib )
policykit? ( sys-auth/polkit )
qt5? ( dev-qt/qtgui:5
dev-qt/qtsvg:5
dev-qt/qtwidgets:5
dev-qt/qtcore:5 )
crypt? ( || ( dev-libs/libgcrypt:0 dev-libs/libsodium ) )
seccomp? ( sys-libs/libseccomp )
caps-ng? ( sys-libs/libcap-ng )
protobuf? ( dev-libs/protobuf )
"
RDEPEND="${DEPEND}
virtual/udev"
src_prepare() {
default
eautoreconf
}
src_configure() {
econf $(use_enable systemd) \
$(use_with dbus) \
--with-gui-qt=$(usex qt5 qt5) \
$(use_with policykit polkit) \
--disable-dependency-tracking
}
src_compile() {
if use qt5; then
export QT_SELECT=qt5
fi
emake
}
src_install() {
emake DESTDIR="${D}" install
if use systemd ; then
systemd_dounit usbguard.service
fi
insinto /etc/usbguard
doins usbguard-daemon.conf
keepdir /var/lib/log/usbguard
}
pkg_postinst() {
elog "You will need to allow access to your user for accessing the QT gui."
elog "Execute as root. usbguard add-user YOUR_USERNAME --devices ALL --exceptions ALL"
}