summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2009-04-08 19:54:27 +0000
committerTiziano Müller <dev-zero@gentoo.org>2009-04-08 19:54:27 +0000
commit370f8c16af55a5766969920cbf35adefdd36ff1d (patch)
treedc02d0df116b306f868e2d223098c65cfd1c5d4f /net-libs/libinfinity
parentamd64 stable wrt security bug #265250 (diff)
downloadgentoo-2-370f8c16af55a5766969920cbf35adefdd36ff1d.tar.gz
gentoo-2-370f8c16af55a5766969920cbf35adefdd36ff1d.tar.bz2
gentoo-2-370f8c16af55a5766969920cbf35adefdd36ff1d.zip
Initial commit (ebuild written by me) for new version of gobby.
(Portage version: 2.1.6.11/cvs/Linux x86_64)
Diffstat (limited to 'net-libs/libinfinity')
-rw-r--r--net-libs/libinfinity/ChangeLog11
-rw-r--r--net-libs/libinfinity/files/infinoted.confd-0.212
-rw-r--r--net-libs/libinfinity/files/infinoted.initd-0.228
-rw-r--r--net-libs/libinfinity/libinfinity-0.2.0.ebuild60
-rw-r--r--net-libs/libinfinity/metadata.xml17
5 files changed, 128 insertions, 0 deletions
diff --git a/net-libs/libinfinity/ChangeLog b/net-libs/libinfinity/ChangeLog
new file mode 100644
index 000000000000..1bf8c0173be8
--- /dev/null
+++ b/net-libs/libinfinity/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-libs/libinfinity
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libinfinity/ChangeLog,v 1.1 2009/04/08 19:54:27 dev-zero Exp $
+
+*libinfinity-0.2.0 (08 Apr 2009)
+
+ 08 Apr 2009; Tiziano Müller <dev-zero@gentoo.org>
+ +files/infinoted.confd-0.2, +files/infinoted.initd-0.2, +metadata.xml,
+ +libinfinity-0.2.0.ebuild:
+ Initial commit (ebuild written by me) for new version of gobby.
+
diff --git a/net-libs/libinfinity/files/infinoted.confd-0.2 b/net-libs/libinfinity/files/infinoted.confd-0.2
new file mode 100644
index 000000000000..81e62a4d9515
--- /dev/null
+++ b/net-libs/libinfinity/files/infinoted.confd-0.2
@@ -0,0 +1,12 @@
+# Config file for /etc/init.d/infinoted for Gentoo Linux
+
+USER="infinote"
+GROUP="infinote"
+UMASK="007"
+
+PIDFILE="/var/run/infinoted.pid"
+
+# Please read `infinoted --help` for other options.
+# This is a fast setup for local networks only (maybe not even those),
+# make sure you use appropriate security on untrusted networks.
+OPTIONS="--root-directory=/var/lib/infinote --security-policy=no-tls"
diff --git a/net-libs/libinfinity/files/infinoted.initd-0.2 b/net-libs/libinfinity/files/infinoted.initd-0.2
new file mode 100644
index 000000000000..e52fa0cd3d5d
--- /dev/null
+++ b/net-libs/libinfinity/files/infinoted.initd-0.2
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libinfinity/files/infinoted.initd-0.2,v 1.1 2009/04/08 19:54:27 dev-zero Exp $
+
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting infinoted"
+ start-stop-daemon \
+ --start --quiet --background --make-pidfile \
+ --pidfile /var/run/infinoted.pid \
+ --exec /usr/bin/infinoted \
+ --user ${USER} --group ${GROUP} --umask 007 \
+ -- ${OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping infinoted"
+ start-stop-daemon \
+ --stop --quiet \
+ --pidfile /var/run/infinoted.pid
+ eend $?
+}
diff --git a/net-libs/libinfinity/libinfinity-0.2.0.ebuild b/net-libs/libinfinity/libinfinity-0.2.0.ebuild
new file mode 100644
index 000000000000..0be14fd3bbb4
--- /dev/null
+++ b/net-libs/libinfinity/libinfinity-0.2.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libinfinity/libinfinity-0.2.0.ebuild,v 1.1 2009/04/08 19:54:27 dev-zero Exp $
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="An implementation of the Infinote protocol written in GObject-based C."
+HOMEPAGE="http://gobby.0x539.de/"
+SRC_URI="http://releases.0x539.de/${PN}/${P}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="avahi doc gtk server"
+
+RDEPEND=">=sys-libs/e2fsprogs-libs-1.41.4
+ dev-libs/glib:2
+ dev-libs/libxml2
+ net-libs/gnutls
+ >=net-misc/gsasl-0.2.21
+ avahi? ( net-dns/avahi )
+ gtk? ( >=x11-libs/gtk+-2.12:2 )"
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.23
+ doc? ( dev-util/gtk-doc )"
+
+pkg_setup() {
+ if use server ; then
+ enewgroup infinote 100
+ enewuser infinote 100 /bin/bash /var/lib/infinote infinote
+ fi
+}
+
+src_configure() {
+ econf \
+ $(use_enable doc gtk-doc) \
+ $(use_with gtk inftextgtk) \
+ $(use_with gtk infgtk) \
+ $(use_with server infinoted) \
+ $(use_with avahi)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS NEWS README TODO
+
+ if use server ; then
+ newinitd "${FILESDIR}/infinoted.initd-0.2" infinoted
+ newconfd "${FILESDIR}/infinoted.confd-0.2" infinoted
+
+ keepdir /var/lib/infinote
+ fowners infinote:infinote /var/lib/infinote
+ fperms 770 /var/lib/infinote
+
+ elog "Add local users who should have local access to the documents"
+ elog "created by infinoted to the infinote group."
+ elog "The documents are saved in /var/lib/infinote per default."
+ fi
+}
diff --git a/net-libs/libinfinity/metadata.xml b/net-libs/libinfinity/metadata.xml
new file mode 100644
index 000000000000..c56c192e8dd8
--- /dev/null
+++ b/net-libs/libinfinity/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>dev-zero@gentoo.org</email>
+</maintainer>
+<maintainer>
+ <email>humpback@gentoo.org</email>
+</maintainer>
+<use>
+ <flag name='server'>
+ Build and install the server binary including init.d/conf.d-scripts.
+ Needed if you want to host an infinote server for gobby.
+ </flag>
+</use>
+</pkgmetadata>