diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2014-06-13 12:05:09 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2014-06-13 12:05:09 +0000 |
commit | 7734e76fb015f163f14cb48836c5f2bb1860fd73 (patch) | |
tree | 6291dfeaded8c86e86f1ba5db05640b0a151b71b /net-libs/phodav | |
parent | alpha/amd64/arm/ia64/ppc/ppc64/sparc/x86 stable wrt bug #513062 (diff) | |
download | gentoo-2-7734e76fb015f163f14cb48836c5f2bb1860fd73.tar.gz gentoo-2-7734e76fb015f163f14cb48836c5f2bb1860fd73.tar.bz2 gentoo-2-7734e76fb015f163f14cb48836c5f2bb1860fd73.zip |
Initial commit, required for spice-gtk, ebuild written by me.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x1A5D023975B0583D!)
Diffstat (limited to 'net-libs/phodav')
-rw-r--r-- | net-libs/phodav/ChangeLog | 10 | ||||
-rw-r--r-- | net-libs/phodav/files/70-spice-webdavd.rules | 1 | ||||
-rw-r--r-- | net-libs/phodav/files/spice-webdavd.initd | 17 | ||||
-rw-r--r-- | net-libs/phodav/metadata.xml | 9 | ||||
-rw-r--r-- | net-libs/phodav/phodav-0.4.ebuild | 54 |
5 files changed, 91 insertions, 0 deletions
diff --git a/net-libs/phodav/ChangeLog b/net-libs/phodav/ChangeLog new file mode 100644 index 000000000000..8da2101cd356 --- /dev/null +++ b/net-libs/phodav/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-libs/phodav +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/phodav/ChangeLog,v 1.1 2014/06/13 12:05:09 dev-zero Exp $ + +*phodav-0.4 (13 Jun 2014) + + 13 Jun 2014; Tiziano Müller <dev-zero@gentoo.org> + +files/70-spice-webdavd.rules, +files/spice-webdavd.initd, +metadata.xml, + +phodav-0.4.ebuild: + Initial commit, required for spice-gtk, ebuild written by me. diff --git a/net-libs/phodav/files/70-spice-webdavd.rules b/net-libs/phodav/files/70-spice-webdavd.rules new file mode 100644 index 000000000000..80c3b02bc933 --- /dev/null +++ b/net-libs/phodav/files/70-spice-webdavd.rules @@ -0,0 +1 @@ +ACTION=="add", SUBSYSTEM=="virtio-ports", ENV{DEVLINKS}=="/dev/virtio-ports/org.spice-space.webdav.0", RUN+="/bin/env /etc/init.d/spice-webdavd --quiet start" diff --git a/net-libs/phodav/files/spice-webdavd.initd b/net-libs/phodav/files/spice-webdavd.initd new file mode 100644 index 000000000000..9f83542f3685 --- /dev/null +++ b/net-libs/phodav/files/spice-webdavd.initd @@ -0,0 +1,17 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/phodav/files/spice-webdavd.initd,v 1.1 2014/06/13 12:05:09 dev-zero Exp $ + +description="Spice guest utility for file sharing via WebDAV" + +command="/usr/sbin/spice-webdavd" +command_args="--port 9843" + +pidfile="/run/${SVCNAME}.pid" +command_background="yes" + +depend() { + need dbus + use avahi +} diff --git a/net-libs/phodav/metadata.xml b/net-libs/phodav/metadata.xml new file mode 100644 index 000000000000..a8b26c11f754 --- /dev/null +++ b/net-libs/phodav/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>gnome</herd> + <herd>virtualization</herd> + <use> + <flag name='spice'>Install the spice-webdavd guest agent</flag> + </use> +</pkgmetadata> diff --git a/net-libs/phodav/phodav-0.4.ebuild b/net-libs/phodav/phodav-0.4.ebuild new file mode 100644 index 000000000000..8b5a59f7a27f --- /dev/null +++ b/net-libs/phodav/phodav-0.4.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/phodav/phodav-0.4.ebuild,v 1.1 2014/06/13 12:05:09 dev-zero Exp $ + +EAPI=5 + +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" + +inherit gnome2 systemd udev + +DESCRIPTION="WebDav server implementation using libsoup" +HOMEPAGE="https://wiki.gnome.org/phodav" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="avahi spice systemd" + +RDEPEND="dev-libs/glib + net-libs/libsoup:2.4 + dev-libs/libxml2 + avahi? ( net-dns/avahi )" +DEPEND="${RDEPEND} + >=dev-util/intltool-0.40.0 + >=dev-util/gtk-doc-am-1.10 + sys-devel/gettext + virtual/pkgconfig" + +src_configure() { + gnome2_src_configure \ + --disable-static \ + $(use_with avahi) \ + --with-udevdir=$(get_udevdir) \ + --with-systemdsystemunitdir=$(systemd_get_unitdir) + + if ! use avahi ; then + sed -i -e 's|avahi-daemon.service||' data/spice-webdavd.service || die + fi +} + +src_install() { + gnome2_src_install + + if use spice ; then + if ! use systemd ; then + newinitd "${FILESDIR}/spice-webdavd.initd" spice-webdavd + udev_dorules "${FILESDIR}/70-spice-webdavd.rules" + rm -r "${D}$(systemd_get_unitdir)" || die + fi + else + rm -r "${D}"{/usr/sbin,$(get_udevdir),$(systemd_get_unitdir)} || die + fi +} |