mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 12:58:16 -07:00
net-misc/eventd: new package.
A simple daemon to track remote or local events and do actions the user wants to. Also a tiny, customizable FDO-compliant notification daemon. Package-Manager: Portage-2.3.5, Repoman-2.3.2 Closes: https://github.com/gentoo/gentoo/pull/4401
This commit is contained in:
committed by
Patrice Clement
parent
6cb312af2b
commit
c6db404242
1
net-misc/eventd/Manifest
Normal file
1
net-misc/eventd/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST eventd-0.21.0.tar.xz 392080 SHA256 f4e1bf014e3e17bf79d3b2a61d947cf4d34000d35fab0b90b869f33f002d2349 SHA512 5907d453c493c9f2332df506037027ef7df021b1e29a6773cf8bb5c32c7a301b65ca55d3e3ea40982d3e48b837738c97b5420309a45a550f409d8912636d1dae WHIRLPOOL 864221209a50491aa9d631ff4b8d9f28b1cda77c6c34b5ac597f0496312830ae75bf10166a574df5adcd93b062fa711f79bcabb8b74e7ca254b40c99b1cb373c
|
||||
117
net-misc/eventd/eventd-0.21.0.ebuild
Normal file
117
net-misc/eventd/eventd-0.21.0.ebuild
Normal file
@@ -0,0 +1,117 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit linux-info systemd
|
||||
|
||||
DESCRIPTION="A small daemon to act on remote or local events"
|
||||
HOMEPAGE="https://www.eventd.org/"
|
||||
SRC_URI="https://www.eventd.org/download/${PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3+ LGPL-3+ MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="debug fbcon +introspection ipv6 libcanberra libnotify +notification
|
||||
pulseaudio purple speech systemd test upnp websocket +X zeroconf"
|
||||
|
||||
REQUIRED_USE="
|
||||
X? ( notification )
|
||||
fbcon? ( notification )
|
||||
notification? ( || ( X fbcon ) )
|
||||
"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=dev-libs/glib-2.40:2
|
||||
sys-apps/util-linux
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.42 )
|
||||
libcanberra? ( media-libs/libcanberra )
|
||||
libnotify? ( x11-libs/gdk-pixbuf:2 )
|
||||
notification? (
|
||||
x11-libs/cairo
|
||||
x11-libs/pango
|
||||
x11-libs/gdk-pixbuf:2
|
||||
X? (
|
||||
x11-libs/cairo[xcb]
|
||||
x11-libs/libxcb:=
|
||||
x11-libs/xcb-util
|
||||
x11-libs/xcb-util-wm
|
||||
)
|
||||
)
|
||||
pulseaudio? (
|
||||
media-libs/libsndfile
|
||||
media-sound/pulseaudio
|
||||
)
|
||||
purple? ( net-im/pidgin )
|
||||
speech? ( app-accessibility/speech-dispatcher )
|
||||
systemd? ( sys-apps/systemd:= )
|
||||
upnp? ( net-libs/gssdp:= )
|
||||
websocket? ( >=net-libs/libsoup-2.50:2.4 )
|
||||
zeroconf? ( net-dns/avahi[dbus] )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/docbook-xsl-stylesheets
|
||||
dev-libs/libxslt
|
||||
virtual/pkgconfig
|
||||
fbcon? ( virtual/os-headers )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
net-libs/glib-networking[ssl]
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
if use ipv6; then
|
||||
CONFIG_CHECK=$(usex test 'IPV6' '~IPV6')
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default_src_prepare
|
||||
|
||||
# Workaround Gentoo bug 604398.
|
||||
sed -i \
|
||||
-e 's|libspeechd|speech-dispatcher/libspeechd|g' \
|
||||
plugins/tts/src/tts.c || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--with-systemduserunitdir="$(systemd_get_userunitdir)"
|
||||
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
|
||||
--with-dbussessionservicedir="${EPREFIX}/usr/share/dbus-1/services"
|
||||
$(use_enable websocket)
|
||||
$(use_enable zeroconf dns-sd)
|
||||
$(use_enable upnp ssdp)
|
||||
$(use_enable introspection)
|
||||
$(use_enable ipv6)
|
||||
$(use_enable systemd)
|
||||
$(use_enable notification notification-daemon)
|
||||
# Wayland plugin requires wayland-wall, which is currently WIP.
|
||||
# See https://github.com/wayland-wall/wayland-wall/issues/1
|
||||
--disable-nd-wayland
|
||||
$(use_enable X nd-xcb)
|
||||
$(use_enable fbcon nd-fbdev)
|
||||
$(use_enable purple im)
|
||||
$(use_enable pulseaudio sound)
|
||||
$(use_enable speech tts)
|
||||
$(use_enable libnotify)
|
||||
$(use_enable libcanberra)
|
||||
$(use_enable debug)
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local -x EVENTD_TESTS_TMP_DIR="${T}"
|
||||
default_src_test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if { use notification || use libnotify; } && ! has_version 'gnome-base/librsvg'; then
|
||||
elog
|
||||
elog "For SVG icons in notifications, please install 'gnome-base/librsvg'."
|
||||
elog
|
||||
fi
|
||||
}
|
||||
24
net-misc/eventd/metadata.xml
Normal file
24
net-misc/eventd/metadata.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>itumaykin+gentoo@gmail.com</email>
|
||||
<name>Coacher</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="libcanberra">Enable plugin for sounds via <pkg>media-libs/libcanberra</pkg></flag>
|
||||
<flag name="libnotify">Enable plugin to relay events to notification daemon
|
||||
(Note: not required for local notifications via <pkg>net-misc/eventd</pkg>)</flag>
|
||||
<flag name="notification">Enable plugin to display on-screen notifications</flag>
|
||||
<flag name="purple">Enable plugin for IM notifications via libpurple</flag>
|
||||
<flag name="speech">Enable plugin for Text-To-Speech support</flag>
|
||||
<flag name="websocket">Enable support for WebSocket protocol</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">sardemff7/eventd</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user