mirror of
https://notabug.org/Sages-of-Gensokyo/gensokyo_kappa-overlay
synced 2025-01-18 13:41:14 +01:00
Added older usbguard ebuilds, and removed invalid USE for newer usbguard versions.
This commit is contained in:
parent
d636141f08
commit
b732b4ee1c
@ -2,4 +2,7 @@ AUX openRC/conf.d/usbguard 132 BLAKE2B cb19420298b5c0c629e9b92244c5df4629d803a88
|
|||||||
AUX openRC/conf.d/usbguard-dbus 101 BLAKE2B 2c384b1cd0cbe1b696fb5ce449e248322541fdfc80bfe7c44024998edc4119cdc0d4ef7fdff0d8c78d55fffe4a0af2ab802e12ff2c70953949d7dc660c142d56 SHA512 daad24cff716655d1f9e90243f099f394b173115fc0217a625368cd1959b5d526e82173bdbbfebd7f61a8404c5c347759a77a6c8dae5c2fedfd966728ba7adb5
|
AUX openRC/conf.d/usbguard-dbus 101 BLAKE2B 2c384b1cd0cbe1b696fb5ce449e248322541fdfc80bfe7c44024998edc4119cdc0d4ef7fdff0d8c78d55fffe4a0af2ab802e12ff2c70953949d7dc660c142d56 SHA512 daad24cff716655d1f9e90243f099f394b173115fc0217a625368cd1959b5d526e82173bdbbfebd7f61a8404c5c347759a77a6c8dae5c2fedfd966728ba7adb5
|
||||||
AUX openRC/usbguard 766 BLAKE2B 5599b931f14623468b480214fc433d7d358651d72c67c476d06b308113c8bfb8fbf398e40d7077841c3a0173ee0b682d3bc17899371a8e291315874d7d19c888 SHA512 e1a5321e4b62b5fd8b16ea7345274d39cedf82077e1644e987dd4a1a9649f190a5aa68e03e7e5133238be9e610fffcb8fddaeded1891529918ac8c8ebf727dc1
|
AUX openRC/usbguard 766 BLAKE2B 5599b931f14623468b480214fc433d7d358651d72c67c476d06b308113c8bfb8fbf398e40d7077841c3a0173ee0b682d3bc17899371a8e291315874d7d19c888 SHA512 e1a5321e4b62b5fd8b16ea7345274d39cedf82077e1644e987dd4a1a9649f190a5aa68e03e7e5133238be9e610fffcb8fddaeded1891529918ac8c8ebf727dc1
|
||||||
AUX openRC/usbguard-dbus 523 BLAKE2B 3b453ef383ec2bced8790837b75b8886f16e62ce61bcc284e99e8dc873a944e726794595e770c41225acad8af6b4e409cbec85b52c5d2a671903948653b8ea8d SHA512 1bf1db53d654221f5b10b8480bf667db008355c75eb0a64d30aec43fd3d6e493645b750bb96547ff967724efec1a9312da089385c435549efe1c701ef27f6fdf
|
AUX openRC/usbguard-dbus 523 BLAKE2B 3b453ef383ec2bced8790837b75b8886f16e62ce61bcc284e99e8dc873a944e726794595e770c41225acad8af6b4e409cbec85b52c5d2a671903948653b8ea8d SHA512 1bf1db53d654221f5b10b8480bf667db008355c75eb0a64d30aec43fd3d6e493645b750bb96547ff967724efec1a9312da089385c435549efe1c701ef27f6fdf
|
||||||
EBUILD usbguard-9999.ebuild 2598 BLAKE2B 49c7ce0eec5e9ffea223fdc7e137a410d1763256f0552c9848ba34eaae0c07cccea219cf847c36daeb33e354e608738e1dffd46d29dc393170f3dadddae93c77 SHA512 3f1b92d238f959cdac86ed1a543a5c62b3fcfa654a827a40c924795f128bb15dd1fea3feb472babc23f3c7cf9986a6da37c8231f8e27edb60e72969706809b00
|
EBUILD usbguard-0.7.4.ebuild 2615 BLAKE2B f62d510427231a2da6faa85de3114350efd210102c0a7c3d89bb17eda291aee4094c98276228d0130cb673bb3782d1351d85ef44f38f933bbabc084271c85ce5 SHA512 560adfece5c5b130d231d1f52b69e5a65c3be96130a7a92864ee6e5c02d2c83199df2dd48347225945a3023e458dd9dbe8eefb7807b877d08a0116d88fa4ea4b
|
||||||
|
EBUILD usbguard-0.7.6.ebuild 2207 BLAKE2B bc531bb8f29aa79a0fce1788ed5adfe8b8ccdb92f5e68d0ca1adb3a080f190b7fd1d81c3e8a3ac5913d362c38f8ccbc61e53cc41016f2c8a48ccb302082a66df SHA512 f329ac3956529ac25fc3411a041a27b2cf4029b16cc4f59c05ef209f4784361379518da73ac760264185dcb6d68a2bccf86455b479c1030a6ed6934483deb3c7
|
||||||
|
EBUILD usbguard-9999.ebuild 2188 BLAKE2B aa5199417741d49fde61301771a0ae98658af4af759c0d49594fcb709ecd196a2c8ab474435f45d331bef1cf8e86f7adf3a994cd3ae97bca54cae79ebe18ebd3 SHA512 457cdde1265270df21687a9d65ac8f4018b7792ec0031dbb281bcb0e095fc7639c5a9ce0c88ac329506e1b71a021b4daccb1b2561fc1919f627e458639533624
|
||||||
|
MISC usbguard-9999.ebuild.bak 2598 BLAKE2B 49c7ce0eec5e9ffea223fdc7e137a410d1763256f0552c9848ba34eaae0c07cccea219cf847c36daeb33e354e608738e1dffd46d29dc393170f3dadddae93c77 SHA512 3f1b92d238f959cdac86ed1a543a5c62b3fcfa654a827a40c924795f128bb15dd1fea3feb472babc23f3c7cf9986a6da37c8231f8e27edb60e72969706809b00
|
||||||
|
131
sys-apps/usbguard/usbguard-0.7.4.ebuild
Normal file
131
sys-apps/usbguard/usbguard-0.7.4.ebuild
Normal file
@ -0,0 +1,131 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit autotools git-r3 systemd
|
||||||
|
|
||||||
|
DESCRIPTION="The USBGuard software framework helps to protect your computer against BadUSB."
|
||||||
|
HOMEPAGE="https://github.com/dkopecek/usbguard"
|
||||||
|
MY_AUTHOR="dkopecek"
|
||||||
|
EGIT_REPO_URI="https://github.com/${MY_AUTHOR}/${PN}.git"
|
||||||
|
EGIT_SUBMODULES=( src/ThirdParty/Catch src/ThirdParty/PEGTL src/ThirdParty/usbmon )
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
EGIT_BRANCH="master"
|
||||||
|
KEYWORDS=""
|
||||||
|
else
|
||||||
|
EGIT_COMMIT="usbguard-${PV}"
|
||||||
|
KEYWORDS="x86 amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="crypt +dbus +policykit qt4 qt5 +systemd"
|
||||||
|
IUSE+=" crypt_gcrypt crypt_sodium"
|
||||||
|
|
||||||
|
DEPEND="sys-cluster/libqb
|
||||||
|
sys-libs/libseccomp
|
||||||
|
sys-libs/libcap-ng
|
||||||
|
dev-ruby/asciidoctor
|
||||||
|
dev-libs/protobuf
|
||||||
|
systemd? ( sys-apps/systemd )
|
||||||
|
dbus? ( sys-apps/dbus
|
||||||
|
dev-libs/dbus-glib )
|
||||||
|
policykit? ( sys-auth/polkit )
|
||||||
|
qt4? ( dev-qt/qtgui:4
|
||||||
|
dev-qt/qtsvg:4
|
||||||
|
dev-qt/qtcore:4 )
|
||||||
|
qt5? ( dev-qt/qtgui:5
|
||||||
|
dev-qt/qtsvg:5
|
||||||
|
dev-qt/qtwidgets:5
|
||||||
|
dev-qt/qtcore:5 )
|
||||||
|
crypt? (
|
||||||
|
crypt_gcrypt? ( dev-libs/libgcrypt )
|
||||||
|
crypt_sodium? ( dev-libs/libsodium )
|
||||||
|
)"
|
||||||
|
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
virtual/udev"
|
||||||
|
|
||||||
|
REQUIRED_USE="
|
||||||
|
crypt? (
|
||||||
|
^^ (
|
||||||
|
crypt_sodium
|
||||||
|
crypt_gcrypt
|
||||||
|
)
|
||||||
|
)
|
||||||
|
?? ( qt4 qt5 )"
|
||||||
|
|
||||||
|
#PATCHES=(
|
||||||
|
# "${FILESDIR}/openrc-support.patch"
|
||||||
|
#)
|
||||||
|
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
#eapply "${WORKDIR}"/openrc-support.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf=()
|
||||||
|
|
||||||
|
if use crypt_gcrypt; then
|
||||||
|
myconf+=( --with-crypto-library=gcrypt )
|
||||||
|
elif use crypt_sodium; then
|
||||||
|
myconf+=( --with-crypto-library=sodium )
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use qt5; then
|
||||||
|
myconf+=( --with-gui-qt=qt5 )
|
||||||
|
elif use qt4; then
|
||||||
|
myconf+=( --with-gui-qt=qt4 )
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use policykit; then
|
||||||
|
myconf+=( --with-polkit )
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf \
|
||||||
|
$(use_enable systemd) \
|
||||||
|
$(use_with dbus) \
|
||||||
|
--with-bundled-catch \
|
||||||
|
--with-bundled-pegtl \
|
||||||
|
"${myconf[@]}" \
|
||||||
|
LIBS=-lpthread
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
if use qt5; then
|
||||||
|
export QT_SELECT=qt5
|
||||||
|
elif use qt4; then
|
||||||
|
export QT_SELECT=qt4
|
||||||
|
fi
|
||||||
|
|
||||||
|
emake
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" install
|
||||||
|
|
||||||
|
if use systemd; then
|
||||||
|
systemd_dounit usbguard.service
|
||||||
|
fi
|
||||||
|
|
||||||
|
doinitd "${FILESDIR}"/openRC/usbguard
|
||||||
|
doinitd "${FILESDIR}"/openRC/usbguard-dbus
|
||||||
|
doconfd "${FILESDIR}"/openRC/conf.d/usbguard
|
||||||
|
doconfd "${FILESDIR}"/openRC/conf.d/usbguard-dbus
|
||||||
|
|
||||||
|
insinto "/etc/usbguard"
|
||||||
|
doins usbguard-daemon.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
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"
|
||||||
|
}
|
107
sys-apps/usbguard/usbguard-0.7.6.ebuild
Normal file
107
sys-apps/usbguard/usbguard-0.7.6.ebuild
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit autotools git-r3 systemd
|
||||||
|
|
||||||
|
DESCRIPTION="The USBGuard software framework helps to protect your computer against BadUSB."
|
||||||
|
HOMEPAGE="https://github.com/dkopecek/usbguard"
|
||||||
|
MY_AUTHOR="dkopecek"
|
||||||
|
EGIT_REPO_URI="https://github.com/${MY_AUTHOR}/${PN}.git"
|
||||||
|
EGIT_SUBMODULES=( src/ThirdParty/Catch src/ThirdParty/PEGTL src/ThirdParty/usbmon )
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
EGIT_BRANCH="master"
|
||||||
|
KEYWORDS=""
|
||||||
|
else
|
||||||
|
EGIT_COMMIT="usbguard-${PV}"
|
||||||
|
KEYWORDS="~x86 ~amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="crypt +dbus +policykit +systemd"
|
||||||
|
IUSE+=" crypt_gcrypt crypt_sodium"
|
||||||
|
|
||||||
|
DEPEND="sys-cluster/libqb
|
||||||
|
sys-libs/libseccomp
|
||||||
|
sys-libs/libcap-ng
|
||||||
|
dev-ruby/asciidoctor
|
||||||
|
dev-libs/protobuf
|
||||||
|
systemd? ( sys-apps/systemd )
|
||||||
|
dbus? ( sys-apps/dbus
|
||||||
|
dev-libs/dbus-glib )
|
||||||
|
policykit? ( sys-auth/polkit )
|
||||||
|
crypt? (
|
||||||
|
crypt_gcrypt? ( dev-libs/libgcrypt )
|
||||||
|
crypt_sodium? ( dev-libs/libsodium )
|
||||||
|
)"
|
||||||
|
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
virtual/udev"
|
||||||
|
|
||||||
|
REQUIRED_USE="
|
||||||
|
crypt? (
|
||||||
|
^^ (
|
||||||
|
crypt_sodium
|
||||||
|
crypt_gcrypt
|
||||||
|
)
|
||||||
|
)"
|
||||||
|
|
||||||
|
#PATCHES=(
|
||||||
|
# "${FILESDIR}/openrc-support.patch"
|
||||||
|
#)
|
||||||
|
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
#eapply "${WORKDIR}"/openrc-support.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf=()
|
||||||
|
|
||||||
|
if use crypt_gcrypt; then
|
||||||
|
myconf+=( --with-crypto-library=gcrypt )
|
||||||
|
elif use crypt_sodium; then
|
||||||
|
myconf+=( --with-crypto-library=sodium )
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use policykit; then
|
||||||
|
myconf+=( --with-polkit )
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf \
|
||||||
|
$(use_enable systemd) \
|
||||||
|
$(use_with dbus) \
|
||||||
|
--with-bundled-catch \
|
||||||
|
--with-bundled-pegtl \
|
||||||
|
"${myconf[@]}" \
|
||||||
|
LIBS=-lpthread
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" install
|
||||||
|
|
||||||
|
if use systemd; then
|
||||||
|
systemd_dounit usbguard.service
|
||||||
|
fi
|
||||||
|
|
||||||
|
doinitd "${FILESDIR}"/openRC/usbguard
|
||||||
|
doinitd "${FILESDIR}"/openRC/usbguard-dbus
|
||||||
|
doconfd "${FILESDIR}"/openRC/conf.d/usbguard
|
||||||
|
doconfd "${FILESDIR}"/openRC/conf.d/usbguard-dbus
|
||||||
|
|
||||||
|
insinto "/etc/usbguard"
|
||||||
|
doins usbguard-daemon.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
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"
|
||||||
|
}
|
@ -22,7 +22,7 @@ fi
|
|||||||
|
|
||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="crypt +dbus +policykit qt4 qt5 +systemd"
|
IUSE="crypt +dbus +policykit +systemd"
|
||||||
IUSE+=" crypt_gcrypt crypt_sodium"
|
IUSE+=" crypt_gcrypt crypt_sodium"
|
||||||
|
|
||||||
DEPEND="sys-cluster/libqb
|
DEPEND="sys-cluster/libqb
|
||||||
@ -34,13 +34,6 @@ DEPEND="sys-cluster/libqb
|
|||||||
dbus? ( sys-apps/dbus
|
dbus? ( sys-apps/dbus
|
||||||
dev-libs/dbus-glib )
|
dev-libs/dbus-glib )
|
||||||
policykit? ( sys-auth/polkit )
|
policykit? ( sys-auth/polkit )
|
||||||
qt4? ( dev-qt/qtgui:4
|
|
||||||
dev-qt/qtsvg:4
|
|
||||||
dev-qt/qtcore:4 )
|
|
||||||
qt5? ( dev-qt/qtgui:5
|
|
||||||
dev-qt/qtsvg:5
|
|
||||||
dev-qt/qtwidgets:5
|
|
||||||
dev-qt/qtcore:5 )
|
|
||||||
crypt? (
|
crypt? (
|
||||||
crypt_gcrypt? ( dev-libs/libgcrypt )
|
crypt_gcrypt? ( dev-libs/libgcrypt )
|
||||||
crypt_sodium? ( dev-libs/libsodium )
|
crypt_sodium? ( dev-libs/libsodium )
|
||||||
@ -55,8 +48,7 @@ REQUIRED_USE="
|
|||||||
crypt_sodium
|
crypt_sodium
|
||||||
crypt_gcrypt
|
crypt_gcrypt
|
||||||
)
|
)
|
||||||
)
|
)"
|
||||||
?? ( qt4 qt5 )"
|
|
||||||
|
|
||||||
#PATCHES=(
|
#PATCHES=(
|
||||||
# "${FILESDIR}/openrc-support.patch"
|
# "${FILESDIR}/openrc-support.patch"
|
||||||
@ -78,12 +70,6 @@ src_configure() {
|
|||||||
myconf+=( --with-crypto-library=sodium )
|
myconf+=( --with-crypto-library=sodium )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if use qt5; then
|
|
||||||
myconf+=( --with-gui-qt=qt5 )
|
|
||||||
elif use qt4; then
|
|
||||||
myconf+=( --with-gui-qt=qt4 )
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use policykit; then
|
if use policykit; then
|
||||||
myconf+=( --with-polkit )
|
myconf+=( --with-polkit )
|
||||||
fi
|
fi
|
||||||
@ -98,16 +84,6 @@ src_configure() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
if use qt5; then
|
|
||||||
export QT_SELECT=qt5
|
|
||||||
elif use qt4; then
|
|
||||||
export QT_SELECT=qt4
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
emake DESTDIR="${D}" install
|
emake DESTDIR="${D}" install
|
||||||
|
|
||||||
|
130
sys-apps/usbguard/usbguard-9999.ebuild.bak
Normal file
130
sys-apps/usbguard/usbguard-9999.ebuild.bak
Normal file
@ -0,0 +1,130 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit autotools git-r3 systemd
|
||||||
|
|
||||||
|
DESCRIPTION="The USBGuard software framework helps to protect your computer against BadUSB."
|
||||||
|
HOMEPAGE="https://github.com/dkopecek/usbguard"
|
||||||
|
MY_AUTHOR="dkopecek"
|
||||||
|
EGIT_REPO_URI="https://github.com/${MY_AUTHOR}/${PN}.git"
|
||||||
|
EGIT_SUBMODULES=( src/ThirdParty/Catch src/ThirdParty/PEGTL src/ThirdParty/usbmon )
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
EGIT_BRANCH="master"
|
||||||
|
KEYWORDS=""
|
||||||
|
else
|
||||||
|
EGIT_COMMIT="usbguard-${PV}"
|
||||||
|
KEYWORDS="~x86 ~amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="crypt +dbus +policykit qt4 qt5 +systemd"
|
||||||
|
IUSE+=" crypt_gcrypt crypt_sodium"
|
||||||
|
|
||||||
|
DEPEND="sys-cluster/libqb
|
||||||
|
sys-libs/libseccomp
|
||||||
|
sys-libs/libcap-ng
|
||||||
|
dev-ruby/asciidoctor
|
||||||
|
dev-libs/protobuf
|
||||||
|
systemd? ( sys-apps/systemd )
|
||||||
|
dbus? ( sys-apps/dbus
|
||||||
|
dev-libs/dbus-glib )
|
||||||
|
policykit? ( sys-auth/polkit )
|
||||||
|
qt4? ( dev-qt/qtgui:4
|
||||||
|
dev-qt/qtsvg:4
|
||||||
|
dev-qt/qtcore:4 )
|
||||||
|
qt5? ( dev-qt/qtgui:5
|
||||||
|
dev-qt/qtsvg:5
|
||||||
|
dev-qt/qtwidgets:5
|
||||||
|
dev-qt/qtcore:5 )
|
||||||
|
crypt? (
|
||||||
|
crypt_gcrypt? ( dev-libs/libgcrypt )
|
||||||
|
crypt_sodium? ( dev-libs/libsodium )
|
||||||
|
)"
|
||||||
|
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
virtual/udev"
|
||||||
|
|
||||||
|
REQUIRED_USE="
|
||||||
|
crypt? (
|
||||||
|
^^ (
|
||||||
|
crypt_sodium
|
||||||
|
crypt_gcrypt
|
||||||
|
)
|
||||||
|
)
|
||||||
|
?? ( qt4 qt5 )"
|
||||||
|
|
||||||
|
#PATCHES=(
|
||||||
|
# "${FILESDIR}/openrc-support.patch"
|
||||||
|
#)
|
||||||
|
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
#eapply "${WORKDIR}"/openrc-support.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf=()
|
||||||
|
|
||||||
|
if use crypt_gcrypt; then
|
||||||
|
myconf+=( --with-crypto-library=gcrypt )
|
||||||
|
elif use crypt_sodium; then
|
||||||
|
myconf+=( --with-crypto-library=sodium )
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use qt5; then
|
||||||
|
myconf+=( --with-gui-qt=qt5 )
|
||||||
|
elif use qt4; then
|
||||||
|
myconf+=( --with-gui-qt=qt4 )
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use policykit; then
|
||||||
|
myconf+=( --with-polkit )
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf \
|
||||||
|
$(use_enable systemd) \
|
||||||
|
$(use_with dbus) \
|
||||||
|
--with-bundled-catch \
|
||||||
|
--with-bundled-pegtl \
|
||||||
|
"${myconf[@]}"
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
if use qt5; then
|
||||||
|
export QT_SELECT=qt5
|
||||||
|
elif use qt4; then
|
||||||
|
export QT_SELECT=qt4
|
||||||
|
fi
|
||||||
|
|
||||||
|
emake
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" install
|
||||||
|
|
||||||
|
if use systemd; then
|
||||||
|
systemd_dounit usbguard.service
|
||||||
|
fi
|
||||||
|
|
||||||
|
doinitd "${FILESDIR}"/openRC/usbguard
|
||||||
|
doinitd "${FILESDIR}"/openRC/usbguard-dbus
|
||||||
|
doconfd "${FILESDIR}"/openRC/conf.d/usbguard
|
||||||
|
doconfd "${FILESDIR}"/openRC/conf.d/usbguard-dbus
|
||||||
|
|
||||||
|
insinto "/etc/usbguard"
|
||||||
|
doins usbguard-daemon.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
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"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user