From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (unknown [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 05784138334 for ; Fri, 25 Jan 2019 08:58:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 899D4E0F5A; Fri, 25 Jan 2019 08:57:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 55113E0F5A for ; Fri, 25 Jan 2019 08:57:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DAA21335CFD for ; Fri, 25 Jan 2019 08:57:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 281914E3 for ; Fri, 25 Jan 2019 08:57:56 +0000 (UTC) From: "Mikle Kolyada" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mikle Kolyada" Message-ID: <1548406654.3b363abfd4b4423d73eddcfc2c95d77ee6ae8dd3.zlogene@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/iroffer-dinoex/, net-irc/iroffer-dinoex/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-irc/iroffer-dinoex/Manifest net-irc/iroffer-dinoex/files/iroffer-dinoex-3.31-config.patch net-irc/iroffer-dinoex/iroffer-dinoex-3.31.ebuild X-VCS-Directories: net-irc/iroffer-dinoex/files/ net-irc/iroffer-dinoex/ X-VCS-Committer: zlogene X-VCS-Committer-Name: Mikle Kolyada X-VCS-Revision: 3b363abfd4b4423d73eddcfc2c95d77ee6ae8dd3 X-VCS-Branch: master Date: Fri, 25 Jan 2019 08:57:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 084072eb-357a-42e3-8e2c-36e7b9f20832 X-Archives-Hash: dbd83e7ae072607ba775511babb6c888 commit: 3b363abfd4b4423d73eddcfc2c95d77ee6ae8dd3 Author: Mikle Kolyada gentoo org> AuthorDate: Fri Jan 25 08:57:34 2019 +0000 Commit: Mikle Kolyada gentoo org> CommitDate: Fri Jan 25 08:57:34 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b363abf net-irc/iroffer-dinoex: Version bump (v3.31) Signed-off-by: Mikle Kolyada gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 net-irc/iroffer-dinoex/Manifest | 1 + .../files/iroffer-dinoex-3.31-config.patch | 167 +++++++++++++++++++++ net-irc/iroffer-dinoex/iroffer-dinoex-3.31.ebuild | 121 +++++++++++++++ 3 files changed, 289 insertions(+) diff --git a/net-irc/iroffer-dinoex/Manifest b/net-irc/iroffer-dinoex/Manifest index 19717b991a6..7fb0e2de1c5 100644 --- a/net-irc/iroffer-dinoex/Manifest +++ b/net-irc/iroffer-dinoex/Manifest @@ -1,2 +1,3 @@ DIST iroffer-dinoex-3.29.tar.gz 537027 BLAKE2B f6dddd60b5e4e837cfb56c450ee32249607375a386f9215a9a4eb34e7696c066b6c817ae956c044bbc208f69a73967df5aee9835b2a94ca70a849045ff11f37d SHA512 bac4feaa0db11de3faed0beb7302cb090d3a6629a6c299bd1b4ee136bce7290f1a9fa998aab909f1fafe54f5577bed90f487d4b2592521a87d5d9ae7512eecb0 DIST iroffer-dinoex-3.30.tar.gz 541131 BLAKE2B ea61113dffcd14b162153aa03c55a203d8ccd99e8f81de53a9ab8543bd91e948509281f753a8f332445eec102b6bd2b51972ff8bedb8b574b55b9325f6969269 SHA512 e45dc3dd901cbb73a9d59cd5a672834c7b6527864eb3385121856af562680a0f91e8846e8690fc60a6349dc4c4fc1cf190d3ac01813c6c045ef18147d61b7d4d +DIST iroffer-dinoex-3.31.tar.gz 527712 BLAKE2B 8e57058af9aad9537d29a15140ab59c921d2549eb9e7a2ce9145fc1c27a4307bea882927012b04fc9f0737a8853d927c79cc0f3156dfa311072c59589fe0221f SHA512 677aa03a33b99d8062db077bba47fb18b2e9279243691981bbd09cb2859fcb4792e1383225b9698edb23370ce0f60667a09480644d31171e9a8234d80052dd80 diff --git a/net-irc/iroffer-dinoex/files/iroffer-dinoex-3.31-config.patch b/net-irc/iroffer-dinoex/files/iroffer-dinoex-3.31-config.patch new file mode 100644 index 00000000000..d2000ddfdce --- /dev/null +++ b/net-irc/iroffer-dinoex/files/iroffer-dinoex-3.31-config.patch @@ -0,0 +1,167 @@ +From 789499722508f641c7a1b6ce8857832fd9ae2c08 Mon Sep 17 00:00:00 2001 +From: Mikle Kolyada +Date: Fri, 25 Jan 2019 11:47:45 +0300 +Subject: [PATCH] fix config files paths + +--- + beispiel.config | 12 ++++++------ + exemple.config | 12 ++++++------ + sample.config | 12 ++++++------ + 3 files changed, 18 insertions(+), 18 deletions(-) + +diff --git a/beispiel.config b/beispiel.config +index 90f76e8..a7f4d06 100644 +--- a/beispiel.config ++++ b/beispiel.config +@@ -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 - ### +@@ -41,14 +41,14 @@ logrotate weekly + ### Ist logstats aktiviert so schreit der Bot statistische Informationen ### + ### in die Logdatei und meldet diese auch an einen eventuell aktiven ### + ### DCC-Chat. Mögliche Werte yes (ja) und no (nein). ### +-logstats yes ++logstats no + + ############################################################################## + ### - state file - ### + ### 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 @@ statefile mybot.state + ### 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 --git a/exemple.config b/exemple.config +index 566ffe3..8c4130e 100644 +--- a/exemple.config ++++ b/exemple.config +@@ -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 - ### +@@ -39,12 +39,12 @@ logrotate weekly + ### - log stats - ### + ### Écrit les statistiques du robot. Elles peuvent être envoyées ### + ### par DCC CHAT s'il est actif. ### +-logstats yes ++logstats no + + ############################################################################## + ### - 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 @@ statefile monbot.state + ### « 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 --git a/sample.config b/sample.config +index 5870e37..82fea84 100644 +--- a/sample.config ++++ b/sample.config +@@ -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 - ### +@@ -39,12 +39,12 @@ logrotate weekly + ### - log stats - ### + ### Setting logstats will log statistical information and this will also ### + ### send this stats to a dcc chat if one is active. ### +-logstats yes ++logstats no + + ############################################################################## + ### - 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 @@ statefile mybot.state + ### 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 + + ############################################################################## +-- +2.19.2 + diff --git a/net-irc/iroffer-dinoex/iroffer-dinoex-3.31.ebuild b/net-irc/iroffer-dinoex/iroffer-dinoex-3.31.ebuild new file mode 100644 index 00000000000..b26d946201e --- /dev/null +++ b/net-irc/iroffer-dinoex/iroffer-dinoex-3.31.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PLOCALES="de en fr it" +PLOCALE_BACKUP="en" + +inherit 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:0= ) )" + +DEPEND="${RDEPEND}" + +pkg_setup() { + enewgroup iroffer + enewuser iroffer -1 -1 -1 iroffer +} + +src_prepare() { + eapply "${FILESDIR}/${P}-config.patch" + eapply "${FILESDIR}/${PN}-Werror.patch" + + eapply_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 && dodoc 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 +}