summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2013-02-08 11:44:38 +0000
committerSergey Popov <pinkbyte@gentoo.org>2013-02-08 11:44:38 +0000
commit182975dd37d48a965c5223e5a14af353614e7d6c (patch)
treee84feccfacf1c81603578234c103083468c2888e /net-irc
parentversion bump, bug #456106 (diff)
downloadgentoo-2-182975dd37d48a965c5223e5a14af353614e7d6c.tar.gz
gentoo-2-182975dd37d48a965c5223e5a14af353614e7d6c.tar.bz2
gentoo-2-182975dd37d48a965c5223e5a14af353614e7d6c.zip
Initial commit, wrt bug #426616. Ebuild made by Mikle Kolyada, who will maintain this package through proxy maintainers. Logrotate script was picked up from sunrise overlay
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/iroffer-dinoex/ChangeLog14
-rw-r--r--net-irc/iroffer-dinoex/files/iroffer-dinoex-Werror.patch21
-rw-r--r--net-irc/iroffer-dinoex/files/iroffer-dinoex-config.patch42
-rw-r--r--net-irc/iroffer-dinoex/files/iroffer-dinoex.conf18
-rw-r--r--net-irc/iroffer-dinoex/files/iroffer-dinoex.init31
-rw-r--r--net-irc/iroffer-dinoex/files/iroffer-dinoex.logrotate8
-rw-r--r--net-irc/iroffer-dinoex/iroffer-dinoex-3.28.ebuild113
-rw-r--r--net-irc/iroffer-dinoex/metadata.xml24
8 files changed, 271 insertions, 0 deletions
diff --git a/net-irc/iroffer-dinoex/ChangeLog b/net-irc/iroffer-dinoex/ChangeLog
new file mode 100644
index 000000000000..e7b1af6f085a
--- /dev/null
+++ b/net-irc/iroffer-dinoex/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for net-irc/iroffer-dinoex
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/iroffer-dinoex/ChangeLog,v 1.1 2013/02/08 11:44:38 pinkbyte Exp $
+
+*iroffer-dinoex-3.28 (08 Feb 2013)
+
+ 08 Feb 2013; Sergey Popov <pinkbyte@gentoo.org> +iroffer-dinoex-3.28.ebuild,
+ +files/iroffer-dinoex.conf, +files/iroffer-dinoex.init,
+ +files/iroffer-dinoex.logrotate, +files/iroffer-dinoex-Werror.patch,
+ +files/iroffer-dinoex-config.patch, +metadata.xml:
+ Initial commit, wrt bug #426616. Ebuild made by Mikle Kolyada, who will
+ maintain this package through proxy maintainers. Logrotate script was picked
+ up from sunrise overlay
+
diff --git a/net-irc/iroffer-dinoex/files/iroffer-dinoex-Werror.patch b/net-irc/iroffer-dinoex/files/iroffer-dinoex-Werror.patch
new file mode 100644
index 000000000000..cb8bf9248b03
--- /dev/null
+++ b/net-irc/iroffer-dinoex/files/iroffer-dinoex-Werror.patch
@@ -0,0 +1,21 @@
+--- Configure1 2013-02-07 22:10:22.000000000 +0400
++++ Configure 2013-02-07 22:11:37.000000000 +0400
+@@ -884,18 +884,6 @@
+ ${msg} " ${irt_no}"
+ fi
+
+-${msg} -n "${irt_seeingif} $cctype ${irt_accepts} '-Werror'... "
+-echo "
+-#include <stdlib.h>
+-${main0}" > config.temp.c
+-if $cctype -o config.temp -Werror $CFLAGS config.temp.c $LDFLAGS $libs $LIBS; then
+- ${msg} "${irt_yes}"
+- WERROR="-Werror"
+-else
+- ${msg} " ${irt_no}"
+-fi
+-
+-
+ ${msg} -n "${irt_seeing16bit}... "
+ echo "
+ #include <stdlib.h>
diff --git a/net-irc/iroffer-dinoex/files/iroffer-dinoex-config.patch b/net-irc/iroffer-dinoex/files/iroffer-dinoex-config.patch
new file mode 100644
index 000000000000..3a4dd563c6a7
--- /dev/null
+++ b/net-irc/iroffer-dinoex/files/iroffer-dinoex-config.patch
@@ -0,0 +1,42 @@
+--- sample.config.orig 2013-02-01 13:40:39.000000000 +0400
++++ sample.config 2013-02-05 14:11:45.000000000 +0400
+@@ -15,18 +15,18 @@
+ ##############################################################################
+ ### - pid file - ###
+ ### Writes the process id to this file on startup ###
+-pidfile mybot.pid
++pidfile /var/run/iroffer-dinoex/iroffer-dinoex.pid
+
+ ##############################################################################
+ ### - log file - ###
+ ### Writes logging information to this file. ###
+-logfile mybot.log
++logfile /var/log/iroffer-dinoex/mybot.log
+
+ ##############################################################################
+ ### - log rotate - ###
+ ### After the time given here a logfile will be rotated. ###
+ ### logrotate can be set to none, 1 - 24 hours, daily, weekly or monthly ###
+-logrotate weekly
++logrotate none
+
+ ##############################################################################
+ ### - expire logfiles - ###
+@@ -44,7 +44,7 @@
+ ##############################################################################
+ ### - state file - ###
+ ### temporary storage for iroffer state information across restarts ###
+-statefile mybot.state
++statefile /var/lib/iroffer-dinoex/mybot.state
+
+ ##############################################################################
+ ### - old state file - ###
+@@ -71,7 +71,7 @@
+ ### needed. ###
+ ### If xdcclistfileraw is set the file will be written with the IRC ###
+ ### control characters included (color, formatting, etc..). ###
+-xdcclistfile mybot.txt
++xdcclistfile /var/lib/iroffer-dinoex/mybot.txt
+ #xdcclistfileraw
+
+ ##############################################################################
diff --git a/net-irc/iroffer-dinoex/files/iroffer-dinoex.conf b/net-irc/iroffer-dinoex/files/iroffer-dinoex.conf
new file mode 100644
index 000000000000..a26ccf6a4218
--- /dev/null
+++ b/net-irc/iroffer-dinoex/files/iroffer-dinoex.conf
@@ -0,0 +1,18 @@
+# Binary for executing as a daemon
+BIN="/usr/bin/iroffer"
+
+# User/Group to drop privileges
+USER="iroffer"
+GROUP="iroffer"
+
+# PID file location
+PIDFILE="/var/run/iroffer-dinoex/iroffer-dinoex.pid"
+
+# Directory for log files
+LOG="/var/log/iroffer-dinoex"
+
+# Directory for runtime files
+STATE="/var/lib/iroffer-dinoex"
+
+# Bot configuration
+MYBOT="/etc/iroffer-dinoex/mybot.config"
diff --git a/net-irc/iroffer-dinoex/files/iroffer-dinoex.init b/net-irc/iroffer-dinoex/files/iroffer-dinoex.init
new file mode 100644
index 000000000000..248dd8136161
--- /dev/null
+++ b/net-irc/iroffer-dinoex/files/iroffer-dinoex.init
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/iroffer-dinoex/files/iroffer-dinoex.init,v 1.1 2013/02/08 11:44:38 pinkbyte Exp $
+
+depend() {
+ need net
+}
+
+start_pre() {
+ if [ ! -f "${MYBOT}" ]; then
+ eerror "${MYBOT} not found"
+ return 1
+ fi
+
+ checkpath -d -o "${USER}":"${GROUP}" /var/run/iroffer-dinoex
+ checkpath -d -o "${USER}":"${GROUP}" /var/log/iroffer-dinoex
+ checkpath -d -o "${USER}":"${GROUP}" /var/lib/iroffer-dinoex
+}
+
+start() {
+ ebegin "Starting iroffer-dinoex"
+ start-stop-daemon --start --quiet --pidfile "${PIDFILE}" --user "${USER}:${GROUP}" --exec "${BIN}" -- -b "${MYBOT}" -w "${STATE}" -s
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping iroffer-dinoex"
+ start-stop-daemon --stop --pidfile "${PIDFILE}" --exec "${BIN}"
+ eend $?
+}
diff --git a/net-irc/iroffer-dinoex/files/iroffer-dinoex.logrotate b/net-irc/iroffer-dinoex/files/iroffer-dinoex.logrotate
new file mode 100644
index 000000000000..403ebd119444
--- /dev/null
+++ b/net-irc/iroffer-dinoex/files/iroffer-dinoex.logrotate
@@ -0,0 +1,8 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/iroffer-dinoex/files/iroffer-dinoex.logrotate,v 1.1 2013/02/08 11:44:38 pinkbyte Exp $
+
+/var/log/iroffer-dinoex/*.log {
+ missingok
+ su iroffer-dinoex iroffer-dinoex
+}
diff --git a/net-irc/iroffer-dinoex/iroffer-dinoex-3.28.ebuild b/net-irc/iroffer-dinoex/iroffer-dinoex-3.28.ebuild
new file mode 100644
index 000000000000..d9c33066bb3a
--- /dev/null
+++ b/net-irc/iroffer-dinoex/iroffer-dinoex-3.28.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/iroffer-dinoex/iroffer-dinoex-3.28.ebuild,v 1.1 2013/02/08 11:44:38 pinkbyte Exp $
+
+EAPI=5
+
+PLOCALES="de en fr it"
+
+inherit eutils l10n toolchain-funcs user
+
+DESCRIPTION="IRC fileserver using DCC"
+HOMEPAGE="http://iroffer.dinoex.net/"
+SRC_URI="http://iroffer.dinoex.net/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+admin +blowfish curl debug geoip gnutls +http kqueue +memsave ruby ssl +telnet upnp"
+
+REQUIRED_USE="
+ admin? ( http )
+ gnutls? ( ssl )
+"
+
+# Dependency on NSS should be optional, but it causes automagic, so it is hard for now.
+# chroot? ( dev-libs/nss )
+# $(usex chroot '' '-no-chroot' '' '')\
+RDEPEND="dev-libs/nss
+ curl? (
+ net-misc/curl[ssl?]
+ gnutls? ( net-misc/curl[curl_ssl_gnutls] )
+ !gnutls? ( ssl? ( net-misc/curl[curl_ssl_openssl] ) )
+ )
+ geoip? ( dev-libs/geoip )
+ gnutls? ( net-libs/gnutls )
+ ruby? ( dev-lang/ruby )
+ ssl? ( !gnutls? ( dev-libs/openssl ) )"
+
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ enewgroup iroffer
+ enewuser iroffer -1 -1 -1 iroffer
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-config.patch"\
+ "${FILESDIR}/${PN}-Werror.patch"
+ l10n_find_plocales_changes "" 'help-admin-' '.txt'
+}
+
+do_configure() {
+ echo ./Configure $*
+ ./Configure $* || die "configure phase failed"
+}
+
+src_configure() {
+ do_configure \
+ PREFIX="${EPREFIX}/usr"\
+ $(usex debug '-profiling' '' '' '')\
+ $(usex debug '-debug' '' '' '')\
+ $(usex geoip '-geoip' '' '' '')\
+ $(usex curl '-curl' '' '' '' )\
+ $(usex gnutls '-tls' '' '' '' '')\
+ $(usex upnp '-upnp' '' '' '')\
+ $(usex ruby '-ruby' '' '' '')\
+ $(usex kqueue '-kqueue' '' '' '')\
+ $(usex blowfish '' '-no-blowfish' '' '')\
+ $(usex ssl '' '-no-openssl' '' '')\
+ $(usex http '' '-no-http' '' '')\
+ $(usex admin '' '-no-admin' '' '')\
+ $(usex telnet '' '-no-telnet' '' '')\
+ $(usex memsave '' '-no-memsave' '' '')
+}
+
+src_compile() {
+ # TODO: default compile targets always include chrooted target, which is not good
+ emake CC="$(tc-getCC)"
+}
+
+myloc() {
+ use admin && dodoc help-admin-${1}.txt
+ use http && dohtml doc/INSTALL-linux-${1}.html
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc README* THANKS TODO
+
+ doman iroffer.1
+ doman xdcc.7
+
+ l10n_for_each_locale_do myloc
+
+ newinitd "${FILESDIR}/${PN}.init" ${PN}
+ newconfd "${FILESDIR}/${PN}.conf" ${PN}
+
+ insinto /etc/${PN}
+ doins sample.config
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotate" ${PN}
+
+ if use ruby; then
+ insinto /usr/share/${PN}
+ doins ruby-sample.rb
+ fi
+
+ if use http; then
+ insinto /usr/share/${PN}/htdocs
+ doins htdocs/*
+ fi
+}
diff --git a/net-irc/iroffer-dinoex/metadata.xml b/net-irc/iroffer-dinoex/metadata.xml
new file mode 100644
index 000000000000..37a3c09e396e
--- /dev/null
+++ b/net-irc/iroffer-dinoex/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>zlog.gentoo@gmail.com</email>
+ <name>Mikle Kolyada</name>
+ <description>Maintainer. Assign bugs to him</description>
+ </maintainer>
+ <maintainer>
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ <description>Proxy maintainer. CC him on bugs</description>
+ </maintainer>
+ <use>
+ <flag name="admin">Compile with HTTP Admin</flag>
+ <flag name="blowfish">Compile with blowfish encryption support</flag>
+ <flag name="chroot">Compile with chroot support</flag>
+ <flag name="http">Compile with HTTP server support</flag>
+ <flag name="kqueue">Compile with kqueue() support</flag>
+ <flag name="memsave">Compile with memory protection</flag>
+ <flag name="telnet">Compile with Telnet server support</flag>
+ </use>
+</pkgmetadata>