summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-irc/iroffer-dinoex/files
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-irc/iroffer-dinoex/files')
-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-config.patch130
-rw-r--r--net-irc/iroffer-dinoex/files/iroffer-dinoex.conf18
-rw-r--r--net-irc/iroffer-dinoex/files/iroffer-dinoex.init48
-rw-r--r--net-irc/iroffer-dinoex/files/iroffer-dinoex.logrotate8
6 files changed, 355 insertions, 0 deletions
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-config.patch b/net-irc/iroffer-dinoex/files/iroffer-dinoex-config.patch
new file mode 100644
index 000000000000..588c24fd687c
--- /dev/null
+++ b/net-irc/iroffer-dinoex/files/iroffer-dinoex-config.patch
@@ -0,0 +1,130 @@
+diff -ru configs.orig/beispiel.config configs/beispiel.config
+--- configs.orig/beispiel.config 2012-06-18 21:13:04.000000000 +0400
++++ configs/beispiel.config 2013-02-19 22:33:33.000000000 +0400
+@@ -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 configs.orig/exemple.config configs/exemple.config
+--- configs.orig/exemple.config 2012-06-18 21:13:04.000000000 +0400
++++ configs/exemple.config 2013-02-19 22:35:24.000000000 +0400
+@@ -15,18 +15,18 @@
+ ##############################################################################
+ ### - pid file - ###
+ ### Ecrit l'id du processus dans ce fichier au lancement ###
+-pidfile monbot.pid
++pidfile /var/run/iroffer-dinoex/iroffer-dinoex.pid
+
+ ##############################################################################
+ ### - log file - ###
+ ### Écrit les informations du bot dans ce fichier. ###
+-logfile monbot.log
++logfile /var/log/iroffer-dinoex/mybot.log
+
+ ##############################################################################
+ ### - log rotate - ###
+ ### Archivage du fichier de log jamais (none), 1-24 h 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 - ###
+@@ -70,7 +70,7 @@
+ ### 'xdcclistfile' et iroffer écrira la liste xdcc dès que nécessaire. ###
+ ### Si xdcclistfileraw est définit, 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 configs.orig/sample.config configs/sample.config
+--- configs.orig/sample.config 2012-06-18 21:13:04.000000000 +0400
++++ configs/sample.config 2013-02-19 22:31:53.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..bf7fcf9dafbb
--- /dev/null
+++ b/net-irc/iroffer-dinoex/files/iroffer-dinoex.init
@@ -0,0 +1,48 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..76f3e5b966d7
--- /dev/null
+++ b/net-irc/iroffer-dinoex/files/iroffer-dinoex.logrotate
@@ -0,0 +1,8 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+/var/log/iroffer-dinoex/*.log {
+ missingok
+ su iroffer iroffer
+}