diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-libs/phodav |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-libs/phodav')
-rw-r--r-- | net-libs/phodav/Manifest | 9 | ||||
-rw-r--r-- | net-libs/phodav/files/70-spice-webdavd.rules | 1 | ||||
-rw-r--r-- | net-libs/phodav/files/spice-webdavd.initd | 16 | ||||
-rw-r--r-- | net-libs/phodav/metadata.xml | 15 | ||||
-rw-r--r-- | net-libs/phodav/phodav-2.1.ebuild | 55 | ||||
-rw-r--r-- | net-libs/phodav/phodav-2.2.ebuild | 58 |
6 files changed, 154 insertions, 0 deletions
diff --git a/net-libs/phodav/Manifest b/net-libs/phodav/Manifest new file mode 100644 index 000000000000..1467e5ae65ad --- /dev/null +++ b/net-libs/phodav/Manifest @@ -0,0 +1,9 @@ +AUX 70-spice-webdavd.rules 159 SHA256 eb5b7af994160f4283da3e2a8c19954171818c0c26240a8f56d52f8e90a3aa22 SHA512 f9a427f0d4f4db4aa3e0c7a4f77281b405ebde3e932bf591f018f39f6094fa47f16649534b2dc45434433367f60b98d58e32e49c5b03ba1333015319de5644cc WHIRLPOOL d03a9a703a42eccecfafd064c79ea048afcad3d6a578fefb444c35b8be57b23e9304ebaf22ba44c4e56b5500d13ebd3246cc8e5a4506e8f30caf32aa000a8d23 +AUX spice-webdavd.initd 344 SHA256 6904201571b9b0c642cea1db747de633f3343a642f3264c77f37a99a425ba17a SHA512 df4e08bb5fec88bd7c0002e25c5ce348f538d49de9b74890c97a53516e8c3d0f60c87c77050c5357e73f5d33f1daaabb9007d7e35d4d34b15b105dc4ce273dfb WHIRLPOOL 64e22c2d397e8b0e74129bece9914ed7f1b2c4b94beed9f1ce2dd32ce2e628a4b7a8d3b547da9e9639bea0f8dd917d01ac240232c1304139d925bbe412d2bf2e +DIST phodav-2.1.tar.xz 293128 SHA256 da6073440b4cfd63f4d65b17e1a2a35ff501c7c940591da4533a03c2233ab898 SHA512 e43bd4c9ed97b7454e8452246c37211905b4cff430e91f3d2d36182736e1b8924d6ad477f58f110c98b85f02c085cd12c099020a0bea8abb19e65a9d52e1f4a8 WHIRLPOOL 4091fb0ac23b6a57c385054afa66a61eb038a37593167d888755dad38894898b45d7fcab6fa6d7582e4e2c5f0879e1ac782df2efc03e7e4372ac0a3341a4b10d +DIST phodav-2.2.tar.xz 294216 SHA256 080305dc9e804562f200ffc8c7d345c76754fce9cb01489dddb1b2c52c0557c1 SHA512 1d16716c1bda674a6695b651e9b1bcb4b7cfefd9b60291ed3f5691f4f6f45f68a970d99fc4820bed0484cf0a43c1bf32e4d208fcc239ac0c0b7a75bf779e8913 WHIRLPOOL 6f5dd0ab04a48d307254f8aa0e0e02440b3f2e39a750f7da3fee24cd463a76dfe06e07779c789c7f2ca30093511ee774740b4ab19662fca27c5aff8af556d885 +EBUILD phodav-2.1.ebuild 1255 SHA256 7df309032762605a32b4ef3470ad3bde214bd1d6fe387805bf0157e224cd72dd SHA512 2a09d351e0b45efcb5efce2d58fe6e265c4e98d54795ff4d89c0751933534e8dc8dc0ce69031d7361f14155c822dcf90e6f9d322caffbf25c631729714a8fc1c WHIRLPOOL e01cb3f39548f1da0a4c6cd7cded91950cd75c6c66ed9ef439f7fb9f1efad6176f9479262913489a9817cd360fe09fb24c6da9c0b3dbcdca9620ca7428112681 +EBUILD phodav-2.2.ebuild 1519 SHA256 d4b760dcac4d99d13c807ee1242816a436c326b28fd772551ce08b66d7dcc780 SHA512 2329f59358f7da30e1df03cf365f00527d3b3fde5f8783081981e0e06ff09c7e6419a4fdd8f75c7c6cd25d1e742b9d2704cfd3c0a7dc4f66943bdd4662e9b341 WHIRLPOOL 736a4489da4ace38fa540f825cfc4852904c5111a2c48ee6c3e634554a75416fb18260592cc248be8dd76f6997f4b21d5c89e8a87d2a72dd3efc5d5e99dc0558 +MISC ChangeLog 4256 SHA256 869ef6b79dc1454ae4c79c131a5250ec986cede805db04f6fa9c78ca5c29335e SHA512 a5e1934b8cf90508d192cc658e1207e4f60a65cee38e3f62cfd4ceba7338d17407a514d536192245484be5d3248348dc3f21e2d9024fd099540ff9b19362e7ac WHIRLPOOL f8f20f2ef5e081bc0cf43e8eb1c9fb89de58df409e63eb230fc4009f9cd3b8028f9a747116068e0cf060e0c91cbbd7ac0e8bf4cad5b1a7774cb492bcdd267ca0 +MISC ChangeLog-2015 1953 SHA256 0950c4633aaac3a4365a6b1a1e287ac29334e31f4f0992c3123937c815f5c141 SHA512 27f57a6630d85dbd0d8ded203e7c05a2af982bf68a9d5d61b31ddf94cefcb39c21fabd51923887116affd8fd4b1afeec291d94a8339e1bffde3c80db802cc3c7 WHIRLPOOL ee389381929cc2d56e4a4e1d5263998755f9bfec590e6c7e5c0afddb76e8007e8c27d5de493878113a6c01f545815296c1433bdee68b430eda226f08c68fdd3f +MISC metadata.xml 477 SHA256 8810ec510a0446a338c6b78bc9ff0810c30bfcc78e6fac5d8543b60608da61de SHA512 30ad4932fe0c1785b8e5aa041ca37c5f4ff15a19df7128b19a507c228268e663a6623d6c6b736b31fd90f8fa50831bd2ec0d82e1466ce01ad3ecd9200f6670e4 WHIRLPOOL 706e455e1193dd59fafde348e23dd96986eb52da9f82a6d6834bc86b148cd0b5988bfb192ce954889543f3c6e556ebed3c66be4b196a6bd7761de7388639561d 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..938024058f9c --- /dev/null +++ b/net-libs/phodav/files/spice-webdavd.initd @@ -0,0 +1,16 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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..805ad1db73c1 --- /dev/null +++ b/net-libs/phodav/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>gnome@gentoo.org</email> + <name>Gentoo GNOME Desktop</name> + </maintainer> + <maintainer type="project"> + <email>virtualization@gentoo.org</email> + <name>Gentoo Virtualization Project</name> + </maintainer> + <use> + <flag name="spice">Install the spice-webdavd guest agent</flag> + </use> +</pkgmetadata> diff --git a/net-libs/phodav/phodav-2.1.ebuild b/net-libs/phodav/phodav-2.1.ebuild new file mode 100644 index 000000000000..91ed0ed6f210 --- /dev/null +++ b/net-libs/phodav/phodav-2.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +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="2.0" +KEYWORDS="alpha amd64 arm ppc ppc64 x86" +IUSE="spice systemd zeroconf" + +RDEPEND=" + dev-libs/glib:2 + >=net-libs/libsoup-2.48:2.4 + dev-libs/libxml2 + zeroconf? ( net-dns/avahi ) +" +DEPEND="${RDEPEND} + >=dev-util/gtk-doc-am-1.10 + >=dev-util/intltool-0.40.0 + sys-devel/gettext + virtual/pkgconfig +" + +src_configure() { + gnome2_src_configure \ + --disable-static \ + --program-suffix=-${SLOT} \ + $(use_with zeroconf avahi) \ + --with-udevdir=$(get_udevdir) \ + --with-systemdsystemunitdir=$(systemd_get_systemunitdir) + + if ! use zeroconf ; 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_systemunitdir)" || die + fi + else + rm -r "${D}"{/usr/sbin,$(get_udevdir),$(systemd_get_systemunitdir)} || die + fi +} diff --git a/net-libs/phodav/phodav-2.2.ebuild b/net-libs/phodav/phodav-2.2.ebuild new file mode 100644 index 000000000000..cb299868916a --- /dev/null +++ b/net-libs/phodav/phodav-2.2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +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="2.0" +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="spice systemd zeroconf" + +# It included g_uuid_* symbols of its own from an unapplied patch to glib; now that they +# were merged, it conflicts and crashes. Ensure glib versions from >2.51 are used, so it +# doesn't break badly when phodav-2.2 is upgraded to before glib to 2.52 +RDEPEND=" + >=dev-libs/glib-2.51:2 + >=net-libs/libsoup-2.48:2.4 + dev-libs/libxml2 + zeroconf? ( net-dns/avahi ) +" +DEPEND="${RDEPEND} + >=dev-util/gtk-doc-am-1.10 + >=dev-util/intltool-0.40.0 + sys-devel/gettext + virtual/pkgconfig +" + +src_configure() { + gnome2_src_configure \ + --disable-static \ + --program-suffix=-${SLOT} \ + $(use_with zeroconf avahi) \ + --with-udevdir=$(get_udevdir) \ + --with-systemdsystemunitdir=$(systemd_get_systemunitdir) + + if ! use zeroconf ; 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_systemunitdir)" || die + fi + else + rm -r "${D}"{/usr/sbin,$(get_udevdir),$(systemd_get_systemunitdir)} || die + fi +} |