summaryrefslogtreecommitdiff
path: root/app-admin/gentoo-rsync-mirror/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
commitd87262dd706fec50cd150aab3e93883b6337466d (patch)
tree246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-admin/gentoo-rsync-mirror/files
parent71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-admin/gentoo-rsync-mirror/files')
-rw-r--r--app-admin/gentoo-rsync-mirror/files/gentoo-mirror.conf9
-rw-r--r--app-admin/gentoo-rsync-mirror/files/rsync-gentoo-portage.sh11
-rw-r--r--app-admin/gentoo-rsync-mirror/files/rsyncd.conf25
-rw-r--r--app-admin/gentoo-rsync-mirror/files/rsyncd.motd1
-rw-r--r--app-admin/gentoo-rsync-mirror/files/rsynclogparse-extended.pl128
5 files changed, 0 insertions, 174 deletions
diff --git a/app-admin/gentoo-rsync-mirror/files/gentoo-mirror.conf b/app-admin/gentoo-rsync-mirror/files/gentoo-mirror.conf
deleted file mode 100644
index d1af6ca014b7..000000000000
--- a/app-admin/gentoo-rsync-mirror/files/gentoo-mirror.conf
+++ /dev/null
@@ -1,9 +0,0 @@
-# Gentoo rsync mirror config
-
-RSYNC="/usr/bin/rsync"
-OPTS="--quiet --recursive --links --perms --times --devices --specials --delete --timeout=300"
-#Uncomment the following line only if you have been granted access to rsync1.us.gentoo.org
-#SRC="rsync://rsync1.us.gentoo.org/gentoo-portage"
-#If you are waiting for access to our master mirror, select one of our mirrors to mirror from:
-SRC="rsync://rsync.de.gentoo.org/gentoo-portage"
-DST="/opt/gentoo-rsync/portage/"
diff --git a/app-admin/gentoo-rsync-mirror/files/rsync-gentoo-portage.sh b/app-admin/gentoo-rsync-mirror/files/rsync-gentoo-portage.sh
deleted file mode 100644
index e053fadab1ed..000000000000
--- a/app-admin/gentoo-rsync-mirror/files/rsync-gentoo-portage.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-
-source /etc/rsync/gentoo-mirror.conf
-
-echo "Started update at" `date` >> $0.log 2>&1
-logger -t rsync "re-rsyncing the gentoo-portage tree"
-${RSYNC} ${OPTS} ${SRC} ${DST} >> $0.log 2>&1
-logger -t rsync "deleting spurious Changelog files"
-find ${DST} -iname ".ChangeLog*" | xargs rm -rf
-
-echo "End: "`date` >> $0.log 2>&1 \ No newline at end of file
diff --git a/app-admin/gentoo-rsync-mirror/files/rsyncd.conf b/app-admin/gentoo-rsync-mirror/files/rsyncd.conf
deleted file mode 100644
index 54cace847488..000000000000
--- a/app-admin/gentoo-rsync-mirror/files/rsyncd.conf
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-uid = nobody
-gid = nobody
-use chroot = yes
-max connections = 20
-pid file = /var/run/rsyncd.pid
-motd file = /etc/rsync/rsyncd.motd
-transfer logging = no
-log format = %t %a %m %f %b
-syslog facility = local3
-timeout = 300
-
-[gentoo-x86-portage]
-#this entry is for compatibility
-path = /opt/gentoo-rsync/portage
-comment = Gentoo Linux Portage tree
-
-[gentoo-portage]
-#modern versions of portage use this entry
-path = /opt/gentoo-rsync/portage
-comment = Gentoo Linux Portage tree mirror
-exclude = distfiles
-
diff --git a/app-admin/gentoo-rsync-mirror/files/rsyncd.motd b/app-admin/gentoo-rsync-mirror/files/rsyncd.motd
deleted file mode 100644
index 35950dd898dd..000000000000
--- a/app-admin/gentoo-rsync-mirror/files/rsyncd.motd
+++ /dev/null
@@ -1 +0,0 @@
-This is rsync[number].[country].gentoo.org.
diff --git a/app-admin/gentoo-rsync-mirror/files/rsynclogparse-extended.pl b/app-admin/gentoo-rsync-mirror/files/rsynclogparse-extended.pl
deleted file mode 100644
index b0befc31c7ab..000000000000
--- a/app-admin/gentoo-rsync-mirror/files/rsynclogparse-extended.pl
+++ /dev/null
@@ -1,128 +0,0 @@
-#!/usr/bin/env perl
-
-#
-# rsynclogparse-extended.pl, version 1.0
-# Script for producing daily or hourly stats from an rsync.log, in
-# plain text or XML output formats
-#
-# (C) Tim Haynes <gentoo@stirfried.vegetable.org.uk>, February 2003
-# Redistributable under the terms of the BSD licence
-# <http://www.opensource.org/licenses/bsd-license.php>
-#
-
-$|=1;
-
-#Determine whether we have a commandline option or not
-$arg="";
-$arg=shift
- if $ARGV[0]=~/^-/;
-
-#Hash of variables to be output and descriptions
-%outputVars=(
- "mirrorid" => "which mirror name this box is",
- "contact" => "email address to contact the server administrator",
- "read" => "total bytes read",
- "wrote" => "total bytes served",
- "total" => "total bytes both directions",
- "count" => "number of connections",
- "meanxfer" => "mean transfer size",
- "biggestXfer" => "biggest individual transfer",
- "speedupavg" => "mean speedup-a-like ratio for all conns",
- "avgbandwidth" => "mean bandwith reequirement over 1d",
- "interval" => "most recent n-seconds' worth of data",
- "maxconns" => "number of times max-conns reached",
- "percmaxconns" => "percentage of connections rejected",
- "configmaxconns" => "max concurrent connections configured",
- "timestamp" => "Current time these stats were generated"
- );
-
-#Initialise all the above to 0
-map { $$_ =0 ; } keys %outputVars;
-
-#Set fields for this specific server
-$mirrorid="rsync1.uk.gentoo.org";
-$contact="gentoo\@stirfried.vegetable.org.uk";
-$configmaxconns=5;
-
-$timestamp=time();
-
-#Determine if we're doing a daily or hourly thing
-$interval=3600;
-$interval=2600*24
- if $arg=~/d/;
-
-($sec,$min,$hour,$mday,$mon,$year,$wday,$yday) = gmtime(time);
-$now=dateToTstamp(sprintf("%04d/%02d/%02d %02d:%02d:%02d",
- $year+1900, $mon+1, $mday, $hour, $min, $sec));
-
-
-#Read in all remaining files on commandline and stdin
-while (<>) {
- chomp;
-
- if (m#^((\d+)/(\d+)/(\d+) (\d+):(\d+):(\d+))#) {
- $tstamp=dateToTstamp($1);
- }
-
- next # skip too-old log entries
- if $tstamp < ($now-$interval);
-
- $maxconns++
- if /max connections .\d+. reached/oi;
-
- /wrote (\d+) bytes.*read (\d+) bytes.*size (\d+)/oi
- or next;
-
- $wrote+=$1; #running total of outgoing
- $read+=$2; #running total of incoming
- $volumesize=$3; #total size of the volume, serversize
- $localtotal=$1 + $2;
- $speedupsum+=$volumesize/$localtotal; #running total of "speedup" ratios
- $count++;
- $biggestXfer=($localtotal>$biggestXfer)?$localtotal:$biggestXfer;
-}
-
-#Compute a few things
-$total=$read+$wrote;
-$speedupavg=$speedupsum/$count; #average speedup ratio
-$meanxfer=$total/$count; #mean-size xfer per connection
-$avgbandwidth=$total/$interval; #mean bandwith consumed over this interval
-$percmaxconns=100*$maxconns/($count+$maxconns);
-
-#Choice of output format
-$arg =~/xml/ ? &outputXML : &outputText;
-
-1;
-
-################
-
-sub outputText {
- foreach $i ( keys %outputVars ) {
- printf("%-20s: $$i\n", $i);
- }
-}
-
-
-sub outputXML {
- print "<xml>\n <rsyncstats>\n";
- foreach $i ( keys %outputVars ) {
- if ($arg=~/v/o) {
- print " <$i desc=\"$outputVars{$i}\">$$i</$i>\n";
- } else {
- print " <$i>$$i</$i>\n";
- }
- }
- print " </rsyncstats>\n</xml>\n";
-}
-
-
-sub dateToTstamp {
- my $str=shift;
-
- $str =~ m#^(\d+)/(\d+)/(\d+) (\d+):(\d+):(\d+)#;
-
- $tstamp=$6 + 60*$5 + 3600*$4 + 3600*24*$3 +
- 3600*24*31*$2 + 3600*24*365*($1-1975);
-
- return $tstamp;
-}