summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2009-11-24 19:22:35 +0000
committerCédric Krier <cedk@gentoo.org>2009-11-24 19:22:35 +0000
commit5e70f7a43ef2737350122c1f6d571f4b69074f74 (patch)
tree6ca4ea15888d2f0cec2aaf01fb1a95c6660abe10 /net-im/minbif
parentalpha/ia64/s390/sh stable wrt #293502 (diff)
downloadgentoo-2-5e70f7a43ef2737350122c1f6d571f4b69074f74.tar.gz
gentoo-2-5e70f7a43ef2737350122c1f6d571f4b69074f74.tar.bz2
gentoo-2-5e70f7a43ef2737350122c1f6d571f4b69074f74.zip
New ebuild
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'net-im/minbif')
-rw-r--r--net-im/minbif/ChangeLog10
-rw-r--r--net-im/minbif/files/minbif.initd24
-rw-r--r--net-im/minbif/metadata.xml13
-rw-r--r--net-im/minbif/minbif-1.0.ebuild73
4 files changed, 120 insertions, 0 deletions
diff --git a/net-im/minbif/ChangeLog b/net-im/minbif/ChangeLog
new file mode 100644
index 000000000000..25a6d7827b2e
--- /dev/null
+++ b/net-im/minbif/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-im/minbif
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/minbif/ChangeLog,v 1.1 2009/11/24 19:22:35 cedk Exp $
+
+*minbif-1.0 (24 Nov 2009)
+
+ 24 Nov 2009; Cédric Krier <cedk@gentoo.org> +minbif-1.0.ebuild,
+ +files/minbif.initd, +metadata.xml:
+ New ebuild
+
diff --git a/net-im/minbif/files/minbif.initd b/net-im/minbif/files/minbif.initd
new file mode 100644
index 000000000000..37cc7031b01b
--- /dev/null
+++ b/net-im/minbif/files/minbif.initd
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/minbif/files/minbif.initd,v 1.1 2009/11/24 19:22:35 cedk Exp $
+
+MINBIF_EXEC="/usr/bin/minbif"
+
+depend() {
+ need logger net
+}
+
+start() {
+ ebegin "Starting minbif"
+ start-stop-daemon --start --startas ${MINBIF_EXEC} \
+ -c minbif:minbif --exec ${MINBIF_EXEC} -- \
+ /etc/minbif/minbif.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping minbif"
+ start-stop-daemon --stop --exec ${MINBIF_EXEC}
+ eend $?
+}
diff --git a/net-im/minbif/metadata.xml b/net-im/minbif/metadata.xml
new file mode 100644
index 000000000000..d29f3c8bbf5e
--- /dev/null
+++ b/net-im/minbif/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd></herd>
+ <maintainer>
+ <email>cedk@gentoo.org</email>
+ <name>Cédric Krier</name>
+ </maintainer>
+ <longdescription lang="en">
+ an IRC gateway to IM networks
+ </longdescription>
+</pkgmetadata>
+
diff --git a/net-im/minbif/minbif-1.0.ebuild b/net-im/minbif/minbif-1.0.ebuild
new file mode 100644
index 000000000000..cb1ffaceaed6
--- /dev/null
+++ b/net-im/minbif/minbif-1.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/minbif/minbif-1.0.ebuild,v 1.1 2009/11/24 19:22:35 cedk Exp $
+
+EAPI=2
+
+inherit cmake-utils
+
+DESCRIPTION="an IRC gateway to IM networks"
+HOMEPAGE="http://minbif.im/"
+SRC_URI="http://symlink.me/attachments/download/30/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="libcaca gstreamer xinetd"
+
+DEPEND=">=net-im/pidgin-2.6[gstreamer?]
+ libcaca? ( media-libs/libcaca media-libs/imlib2 )"
+RDEPEND="${DEPEND}
+ virtual/logger
+ xinetd? ( sys-apps/xinetd )"
+
+src_prepare() {
+ sed -i "s/-Werror//g" CMakeLists.txt || die "sed failed"
+
+ sed -i "s#share/doc/minbif#share/doc/${P}#" \
+ CMakeLists.txt || die "sed failed"
+
+ if use xinetd; then
+ sed -i "s/type\s=\s[0-9]/type = 0/" \
+ minbif.conf || die "sed failed"
+ fi
+}
+
+src_configure() {
+ use gstreamer && ! use libcaca && \
+ die "You need to enable libcaca if you enable gstreamer"
+
+ local mycmakeargs
+ mycmakeargs="${mycmakeargs}
+ -DCONF_PREFIX=${PREFIX:-/etc/minbif}
+ $(cmake-utils_use_enable libcaca CACA)
+ $(cmake-utils_use_enable gstreamer VIDEO)"
+
+ cmake-utils_src_configure
+}
+
+pkg_preinst() {
+ enewgroup minbif
+ enewuser minbif -1 -1 /var/lib/minbif minbif
+}
+
+src_install() {
+ cmake-utils_src_install
+ keepdir /var/lib/minbif
+ fperms 700 /var/lib/minbif
+ fowners minbif:minbif /var/lib/minbif
+
+ dodoc ChangeLog README
+ doman man/minbif.8
+
+ if use xinetd; then
+ insinto /etc/xinetd.d
+ newins doc/minbif.xinetd minbif
+ fi
+
+ newinitd "${FILESDIR}"/minbif.initd minbif || die
+
+ dodir /usr/share/minbif
+ insinto /usr/share/minbif
+ doins -r scripts
+}