summaryrefslogtreecommitdiff
path: root/net-irc/iroffer-dinoex
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-irc/iroffer-dinoex
reinit the tree, so we can have metadata
Diffstat (limited to 'net-irc/iroffer-dinoex')
-rw-r--r--net-irc/iroffer-dinoex/Manifest10
-rw-r--r--net-irc/iroffer-dinoex/files/iroffer-dinoex-3.29-config.patch130
-rw-r--r--net-irc/iroffer-dinoex/files/iroffer-dinoex-Werror.patch21
-rw-r--r--net-irc/iroffer-dinoex/files/iroffer-dinoex.conf18
-rw-r--r--net-irc/iroffer-dinoex/files/iroffer-dinoex.init47
-rw-r--r--net-irc/iroffer-dinoex/files/iroffer-dinoex.logrotate7
-rw-r--r--net-irc/iroffer-dinoex/iroffer-dinoex-3.29.ebuild119
-rw-r--r--net-irc/iroffer-dinoex/metadata.xml21
8 files changed, 373 insertions, 0 deletions
diff --git a/net-irc/iroffer-dinoex/Manifest b/net-irc/iroffer-dinoex/Manifest
new file mode 100644
index 000000000000..5883b3fd072d
--- /dev/null
+++ b/net-irc/iroffer-dinoex/Manifest
@@ -0,0 +1,10 @@
+AUX iroffer-dinoex-3.29-config.patch 7014 SHA256 2d634a778eeff7fa5014b23b4608040f13708303a439cf6b61e605c610be3121 SHA512 dfb8930341ba93dfec9d29fa5ddb1d457d055e27c74d2dbfba197a17b16685810bf63dceeb19dc6182f8d8086825741cb5e87f952837265084acea0266e0f2e8 WHIRLPOOL 8a7229feb528f2cefd0599eee224b879327af4004b238e08b31f50953aa965e76a82946a209e799b7f7425e707660027e0fdc53a8f7d7df9f0987ed2fc8ef349
+AUX iroffer-dinoex-Werror.patch 498 SHA256 a475717491baac498f4865be62097bc75f31880bd5b6ff3888dbe04fc11effab SHA512 6d8b1e9410c90f635186749f0335e1de689333bcde2918453e7fd6e4ed3e917553d36cba694c1a8a4077a6e45c3019290cd56646aa39c6677802042e5ab131db WHIRLPOOL a6a8780ad4959246cecb4f9cea303222da4c76b25e04eab0c9b8dac3c41859c2f1c5e4445b3073f37170eb02dd9fd961c884850892b562f78c13f3319bc598b4
+AUX iroffer-dinoex.conf 378 SHA256 e934eba1390e7492101c02dab4c3867dd9df61139063d072ce8115ef2bd23d0d SHA512 6dee05c4fdc5d8e62c9ac76406a7e85f1e944bb2b1f82237422f01002c6adceaf4f05073c3e378e3f61000652814292639640e1dcc2a0dbcd2bd68a76687d634 WHIRLPOOL a6a24945c1a144b4d4d818e0af0800673418ac29e92fc0e301d9088a7dbbe50a09a41c1c26e4bbebb13d6fd1df826e8bb757d2803302576ea19f743369d4b8a6
+AUX iroffer-dinoex.init 1130 SHA256 38557694ab8cf5ff75e49680f2e5d56fc9f45d7d14374a38549931cd847c51e0 SHA512 5fdae78dac704cfc8594fff417e0d223069d2a3f33536043550aef4f7143a3cdb69e6ae102d21cd14b97e3ccf61c6d1c11fbb3a87c3e1a1096fa40e36a1c772a WHIRLPOOL 609a7b9cfea7896cab448cad80c812564717a95604af595d52229eea6212888a0a22d9b10c109ce2aa29c180f43a7fd18efbc76173d3d12567bb2f9cc89d0fa6
+AUX iroffer-dinoex.logrotate 173 SHA256 f6c52cb4411cf83718b537ee4271144b9fb0347a03d0d3b5ea677108ac6317c5 SHA512 6eb9a7f1949720a7d1544b90a22a190ad868b77d3ed604c5ec3acdc62e5711353d84a8e10dbfa332c4ceab13fedc3fa06d1679ce95d4612443a055f04f310015 WHIRLPOOL 34124d5e7ebff5bcb0bf35c197b832095b27774923e0f2966fb1ebbf422bd267beb073a7b8197b141265d2c385dd3dbaa6f829065db6324f94c1c20c929956eb
+DIST iroffer-dinoex-3.29.tar.gz 537027 SHA256 d96c307062552878d7594e280eef3a8669b4af955f1efe1d6e3e7ad660f9a6fb SHA512 bac4feaa0db11de3faed0beb7302cb090d3a6629a6c299bd1b4ee136bce7290f1a9fa998aab909f1fafe54f5577bed90f487d4b2592521a87d5d9ae7512eecb0 WHIRLPOOL 2917244bfc2c0d05f5660b767dfa39da6099e5388dedea5c2578a483fc52747959c296f65a71cd3a8a24740afca1c3fab8e7825052fec4ac5eadce558917fcd7
+EBUILD iroffer-dinoex-3.29.ebuild 2646 SHA256 c72cce16b468b6327f71febe397818e2aa484fb9e7e0c679109cd1532669c74b SHA512 d47ffa947ae63147ce8939ce99f63114f9593b32f23d3a34d0ba3567bee14bb3d2ebcd14ae608fc0c841cc88d38abe7c2e57a06a54da0fbb3befd38af32b859e WHIRLPOOL 767ee3b0dc2d64a9f320e37270215895e25f1af307ff2521389b252a5b4cae61405d48e3034f740d62bf75a3f7dd03b34d982af37d0c79f9cd29fd49805b7d41
+MISC ChangeLog 2540 SHA256 828f011072153b88fb328d5dd27c13ff3e3a25739406bfb7700630da44cdaa48 SHA512 a4d10d42398209d2b3eef631043f89343735df5dcd1f0d4d47afb350ecb0044fe9b1c8c5fa9b483736223373fd2e4b886e8ba34aa997bfaa9cab4ec0425e965c WHIRLPOOL f14f3e63c21d0ddbba2befaec13ad55682235d8f1afdce4bce10f3b07da7a993ac1326407248ea98ef9f3be4458f4f64d12d63267efee290b6a1c3783f6704d3
+MISC ChangeLog-2015 2060 SHA256 0c19a710c56943e824a48b81eb3c10b709ba679cff6dbaf9074f1c41507eae67 SHA512 59509214873a2db554e84edce6706ef4a9f4601c0423da04892af059173a389dbcfdd7d43487d5a2b808641c0c7ffc4d900a6aa5af4189ee8e9ea727290927b0 WHIRLPOOL 6544b161e0e23fd08c3d650852e5fad1e460eb86490fa9c982004a6aa8a0557718104da15b6bb78e1adf691e584c96fab590ef24b424dda68a7c9312adb65657
+MISC metadata.xml 795 SHA256 f715e2f691ffb98083f12ab8ab10cda9df63164650fa1654d0d18e9dc890986f SHA512 9e0690f67c3039e88a122fc149049bbb604958d3f5a4d07fe80b67845a7e8005f79901ade56ab4e55ffab885d3fefb1aac16419b4c56c206479f9e97edf062b3 WHIRLPOOL 52ec0025415dab0cd5225a2bc51d2290c6db396a58ec2acb25bbc229a291375ebeda49445e9a09eefc1e5a436e912a1b906b8dfa22bb57bdac680aa23928663a
diff --git a/net-irc/iroffer-dinoex/files/iroffer-dinoex-3.29-config.patch b/net-irc/iroffer-dinoex/files/iroffer-dinoex-3.29-config.patch
new file mode 100644
index 000000000000..5dc9d6183ef6
--- /dev/null
+++ b/net-irc/iroffer-dinoex/files/iroffer-dinoex-3.29-config.patch
@@ -0,0 +1,130 @@
+diff -ru iroffer-dinoex-3.29/beispiel.config iroffer-dinoex-3.29.NEW/beispiel.config
+--- iroffer-dinoex-3.29/beispiel.config 2013-02-01 08:28:18.000000000 +0100
++++ iroffer-dinoex-3.29.NEW/beispiel.config 2013-03-09 18:43:33.084000000 +0100
+@@ -15,19 +15,19 @@
+ ##############################################################################
+ ### - pid file - ###
+ ### Schreibt die Prozess-ID beim Start in diese Datei ###
+-pidfile mybot.pid
++pidfile /var/run/iroffer-dinoex/iroffer-dinoex.pid
+
+ ##############################################################################
+ ### - log file - ###
+ ### logfile gibt die Logdatei für den Bot an. ###
+-logfile mybot.log
++logfile /var/log/iroffer-dinoex/mybot.log
+
+ ##############################################################################
+ ### - log rotate - ###
+ ### logrotate gibt den Zeitraum vor, nach dem die Logdatei gewechselt ###
+ ### wird, mögliche Werte "none" (nie), "monthly" (monatlich), ###
+ ### "weekly" (wöchentlich), "daily" (täglich) und 1-24 (stündlich). ###
+-logrotate weekly
++logrotate none
+
+ ##############################################################################
+ ### - expire logfiles - ###
+@@ -48,7 +48,7 @@
+ ### Diese Datei dient als allgemeines Datenlager für die bereitgestellten ###
+ ### Dateien und die dazugehörigen statistische Daten. Hier werden auch die ###
+ ### Beschreibungen der Pakete gespeichert. ###
+-statefile mybot.state
++statefile /var/lib/iroffer-dinoex/mybot.state
+
+ ##############################################################################
+ ### - old state file - ###
+@@ -74,7 +74,7 @@
+ ### als Packliste auf einer Webseite zu dienen, oder für andere Zwecke. ###
+ ### Wenn xdcclistfileraw gesetzt ist, werden die IRC-Farbcode auch mit ###
+ ### ausgegeben. ###
+-xdcclistfile mybot.txt
++xdcclistfile /var/lib/iroffer-dinoex/mybot.txt
+ #xdcclistfileraw
+
+ ##############################################################################
+diff -ru iroffer-dinoex-3.29/exemple.config iroffer-dinoex-3.29.NEW/exemple.config
+--- iroffer-dinoex-3.29/exemple.config 2013-02-01 08:26:21.000000000 +0100
++++ iroffer-dinoex-3.29.NEW/exemple.config 2013-03-09 18:45:35.340000000 +0100
+@@ -15,18 +15,18 @@
+ ##############################################################################
+ ### - pid file - ###
+ ### Écrit l'identifiant du processus dans ce fichier au lancement. ###
+-pidfile monbot.pid
++pidfile /var/run/iroffer-dinoex/iroffer-dinoex.pid
+
+ ##############################################################################
+ ### - log file - ###
+ ### Écrit le journal du robot dans ce fichier. ###
+-logfile monbot.log
++logfile /var/log/iroffer-dinoex/mybot.log
+
+ ##############################################################################
+ ### - log rotate - ###
+ ### Archivage du journal jamais (« none »), quotidien (« daily »), ###
+ ### hebdomadaire (« weekly ») ou mensuelle (« monthly »). ###
+-logrotate weekly
++logrotate none
+
+ ##############################################################################
+ ### - expire logfiles - ###
+@@ -44,7 +44,7 @@
+ ##############################################################################
+ ### - state file - ###
+ ### Fichier temporaire de stockage des informations d'état d'Iroffer. ###
+-statefile monbot.state
++statefile /var/lib/iroffer-dinoex/mybot.state
+
+ ##############################################################################
+ ### - old state file - ###
+@@ -71,7 +71,7 @@
+ ### « xdcclistfile » et Iroffer écrira la liste XDCC dès que nécessaire. ###
+ ### Si « xdcclistfileraw » est défini, le fichier sera écrit avec les ###
+ ### caractères spéciaux IRC (couleur, format, etc.) ###
+-xdcclistfile monbot.txt
++xdcclistfile /var/lib/iroffer-dinoex/mybot.txt
+ #xdcclistfileraw
+
+ ##############################################################################
+diff -ru iroffer-dinoex-3.29/sample.config iroffer-dinoex-3.29.NEW/sample.config
+--- iroffer-dinoex-3.29/sample.config 2013-02-01 08:26:58.000000000 +0100
++++ iroffer-dinoex-3.29.NEW/sample.config 2013-03-09 18:46:30.612000000 +0100
+@@ -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-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.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..ea6363c71d13
--- /dev/null
+++ b/net-irc/iroffer-dinoex/files/iroffer-dinoex.init
@@ -0,0 +1,47 @@
+#!/sbin/openrc-run
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+extra_commands="reload reconnect"
+
+description_reload="Reload the config file"
+description_reconnect="Force reconnection to an IRC server"
+
+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 $?
+}
+
+reload(){
+ ebegin "Reload iroffer-dinoex"
+ start-stop-daemon --signal SIGUSR2 --pidfile "${PIDFILE}"
+ eend $?
+}
+
+reconnect(){
+ ebegin "Try to reconnect iroffer-dinoex to servers"
+ start-stop-daemon --signal SIGUSR1 --pidfile "${PIDFILE}"
+ 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..67e4d65e0e4e
--- /dev/null
+++ b/net-irc/iroffer-dinoex/files/iroffer-dinoex.logrotate
@@ -0,0 +1,7 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+/var/log/iroffer-dinoex/*.log {
+ missingok
+ su iroffer iroffer
+}
diff --git a/net-irc/iroffer-dinoex/iroffer-dinoex-3.29.ebuild b/net-irc/iroffer-dinoex/iroffer-dinoex-3.29.ebuild
new file mode 100644
index 000000000000..e07c9359c4a9
--- /dev/null
+++ b/net-irc/iroffer-dinoex/iroffer-dinoex-3.29.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PLOCALES="de en fr it"
+PLOCALE_BACKUP="en"
+
+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
+ http://iroffer.dinoex.net/HISTORY/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+admin +blowfish +chroot curl debug geoip gnutls +http kqueue +memsave ruby ssl +telnet upnp"
+
+REQUIRED_USE="
+ admin? ( http )
+ gnutls? ( ssl )
+"
+
+RDEPEND="chroot? ( 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}/${P}-config.patch"\
+ "${FILESDIR}/${PN}-Werror.patch"
+ epatch_user
+ 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 chroot '' '-no-chroot' '' '')\
+ $(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)" $(l10n_get_locales)
+}
+
+myloc() {
+ emake DESTDIR="${D}" install-${1}
+
+ dodoc help-admin-${1}.txt
+ use http && dohtml doc/INSTALL-linux-${1}.html
+
+ insinto /etc/${PN}
+ case ${1} in
+ "de")
+ doins beispiel.config;;
+ "fr")
+ doins exemple.config;;
+ *)
+ doins sample.config;;
+ esac
+}
+
+src_install() {
+ l10n_for_each_locale_do myloc
+
+ dodoc README* THANKS TODO
+ doman iroffer.1 xdcc.7
+
+ newinitd "${FILESDIR}/${PN}.init" ${PN}
+ newconfd "${FILESDIR}/${PN}.conf" ${PN}
+
+ 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..dbdad77e576d
--- /dev/null
+++ b/net-irc/iroffer-dinoex/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zlogene@gentoo.org</email>
+ <name>Mikle Kolyada</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </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>