summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2007-12-30 11:45:39 +0000
committerAlin Năstac <mrness@gentoo.org>2007-12-30 11:45:39 +0000
commit0d2123c78a09d7e9822313a874dc630e6ceef9ae (patch)
tree0224a924464f5e84224c92aff861fd638eeffc2f /net-proxy/http-replicator
parentRemove old version. Version bump. (diff)
downloadgentoo-2-0d2123c78a09d7e9822313a874dc630e6ceef9ae.tar.gz
gentoo-2-0d2123c78a09d7e9822313a874dc630e6ceef9ae.tar.bz2
gentoo-2-0d2123c78a09d7e9822313a874dc630e6ceef9ae.zip
Remove obsolete revision.
(Portage version: 2.1.3.19)
Diffstat (limited to 'net-proxy/http-replicator')
-rw-r--r--net-proxy/http-replicator/ChangeLog6
-rw-r--r--net-proxy/http-replicator/files/digest-http-replicator-3.03
-rwxr-xr-xnet-proxy/http-replicator/files/http-replicator-3.0-repcacheman-0.33250
-rw-r--r--net-proxy/http-replicator/http-replicator-3.0.ebuild61
4 files changed, 5 insertions, 315 deletions
diff --git a/net-proxy/http-replicator/ChangeLog b/net-proxy/http-replicator/ChangeLog
index 0237c922c5a1..b539245b2141 100644
--- a/net-proxy/http-replicator/ChangeLog
+++ b/net-proxy/http-replicator/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-proxy/http-replicator
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/http-replicator/ChangeLog,v 1.20 2007/12/05 16:57:00 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/http-replicator/ChangeLog,v 1.21 2007/12/30 11:45:38 mrness Exp $
+
+ 30 Dec 2007; Alin Năstac <mrness@gentoo.org>
+ -files/http-replicator-3.0-repcacheman-0.33, -http-replicator-3.0.ebuild:
+ Remove obsolete revision.
05 Dec 2007; Raúl Porcel <armin76@gentoo.org>
http-replicator-3.0-r1.ebuild:
diff --git a/net-proxy/http-replicator/files/digest-http-replicator-3.0 b/net-proxy/http-replicator/files/digest-http-replicator-3.0
deleted file mode 100644
index 46d6443e3432..000000000000
--- a/net-proxy/http-replicator/files/digest-http-replicator-3.0
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 7d8d69175a5dc3d470273b1e508a27f3 http-replicator_3.0.tar.gz 19481
-RMD160 cb26c8e55df3dfbbf20bb08f62f3d0ac89191e68 http-replicator_3.0.tar.gz 19481
-SHA256 a7499b980531636d349ce2cace14692fed2e747d23ad0c48cbc68b84369e2d98 http-replicator_3.0.tar.gz 19481
diff --git a/net-proxy/http-replicator/files/http-replicator-3.0-repcacheman-0.33 b/net-proxy/http-replicator/files/http-replicator-3.0-repcacheman-0.33
deleted file mode 100755
index 52423bf5eccf..000000000000
--- a/net-proxy/http-replicator/files/http-replicator-3.0-repcacheman-0.33
+++ /dev/null
@@ -1,250 +0,0 @@
-#! /usr/bin/python
-#
-# repcacheman ver 0.33
-#
-# Cache Manager for Http-Replicator
-# deletes duplicate files in PORTDIR.
-# imports authenticated (md5 + listed in portage)
-# files from PORTDIR to replicator's cache directory.
-#
-# MD5, and database routines ripped from Portage
-# All else, Copyright(C)2004 Tom Poplawski (poplawtm@earthlink.net)
-# Distributed under the terms of the GNU General Public License v2
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-
-import os,string,pwd,sys,optparse
-
-if os.getuid():
- print"Must be root"
- sys.exit(1)
-
-# sys.path = ["/usr/lib/portage/pym"]+sys.path
-
-
-# Perform the Checksum on a file
-def perform_checksum(filename):
- import md5
- myfilename=filename
- f = open(myfilename, 'rb')
- blocksize=327680
- data = f.read(blocksize)
- sum = md5.new()
- while data:
- sum.update(data)
- data = f.read(blocksize)
- f.close()
-
- return (sum.hexdigest())
-
-
-# Import http-replicator settings
-
-parser = optparse.OptionParser()
-parser.add_option('-d', '--dir', type='string', default="/var/cache/http-replicator", help='http-replicators cache DIR')
-parser.add_option('-u','--user', type='string', default="portage", help='http-replicator USER')
-options, args = parser.parse_args() # parse command line
-DIR=options.dir
-USER=options.user
-
-user=USER
-if user:
- try:
- uid=pwd.getpwnam(user)[2]
- gid=pwd.getpwnam(user)[3]
- except:
- print "User \'" + user + "\' Doesn't exist on system - edit config or add user to system."
- sys.exit(1)
-
-
-else:
- print "Error\n\tunable to get USER from /etc/http-replicator.conf"
- sys.exit(1)
-
-# DIR is replicator's cache directory
-dir=DIR+"/"
-
-if os.path.isdir(dir) :
- newdir=0
-else :
- print"\n\nBegin Http-Replicator Setup...."
- try:
- os.makedirs(dir)
- print "\tcreated " + dir
- newdir=1
- except:
- print "\tcreate " + dir + " failed"
- print '\terror:', sys.exc_info()[1]
- sys.exit(1)
- try:
- os.chown(dir,uid,gid)
- print "\tchanged owner of " + dir + " to " + user
- except:
- print "\tchange owner " + dir + " to " + user + " failed:"
- print '\terror:', sys.exc_info()[1]
-
-print "\n\nReplicator's cache directory: " + dir
-
-# Portage settings
-import portage
-distdir=portage.settings["DISTDIR"]+"/"
-if distdir:
- print "Portage's DISTDIR: " + distdir
-else:
- print"Unable to get Portage's DISTDIR"
- sys.exit(1)
-
-print "\nComparing directories...."
-
-# Create filecmp object with
-import filecmp
-dc=filecmp.dircmp (distdir,dir,['cvs-src','.locks'])
-print "Done!"
-
-#def __getattr__(self,common):
-#print dc.left_only
-
-dupes=dc.common
-
-deleted=0
-if dupes:
- print "\nDeleting duplicate file(s) in " + distdir
-
- for s in dupes:
- print s
- try:
- os.remove(distdir + s )
- deleted +=1
- except:
- print "\tdelete " + distdir + s + " failed:"
- print '\terror:', sys.exc_info()[1]
-
- print "Done!"
-
-newfiles=dc.left_only
-if newfiles:
- print "\nNew files in DISTDIR:"
- for s in newfiles:
- print s
- print"\nChecking authenticity and integrity of new files..."
- print "Searching for ebuilds..."
-
- md5_list = {}
-
- # get all ebuilds?
- ebuildlist = []
- for mycp in portage.db["/"]["porttree"].dbapi.cp_all():
- ebuildlist += portage.db["/"]["porttree"].dbapi.cp_list(mycp)
- ebuildlist.sort()
-
- print "Done!"
- print "\nFound " + str(len(ebuildlist)) + " ebuilds."
-
-# mycpv =app-admin/ulogd-0.89
-# pv = ulogd-0.89
-
- print "\nExtracting the checksums...."
- for mycpv in ebuildlist:
- pv = string.split(mycpv, "/")[-1]
-
-
- # lookup each ebuild digest and md5sums
- digestpath = portage.db["/"]["porttree"].dbapi.findname(mycpv)
- digestpath = os.path.dirname(digestpath)+"/files/digest-"+pv
- md5sums = portage.digestParseFile(digestpath)
-
- if md5sums == None:
- portage.writemsg("Missing digest: %s\n" % mycpv)
- md5sums = {}
-
- for x in md5sums.keys():
- if x[0] == '/':
- del md5sums[x]
-
-
- for k, v in md5sums.iteritems():
- md5_list[k]= v
-
-
-
- del ebuildlist
- print "Done!\n\nVerifying checksum's...."
-
- added=0
- rejected=0
- suspect=0
- missing=0
-
- for file in newfiles:
-
- if not md5_list.has_key (file):
- print "\nWARNING " + file + " is not in portage!!!\n"
- suspect +=1
- continue
- myfile=distdir + file
- if os.path.isdir(myfile):
- print "\nskipping directory:",myfile
- continue
- mymd5=perform_checksum(myfile)
-
- print myfile
-# print "md5 is " + mymd5
-
- t= md5_list[file]
- if t["MD5"]:
- if t["MD5"] == mymd5:
- print "MD5 OK"
- try:
- os.rename(distdir+file,dir+file)
- added += 1
- except:
- try:
- import shutil
- shutil.copyfile(distdir+file,dir+file)
- added += 1
- os.remove(distdir+file)
- except:
- print "\tmove/copy " + file + " failed:"
- print '\terror:', sys.exc_info()[1]
- continue
- try:
- os.chown(dir+file,uid,gid)
- except:
- print "\tchown " + file + " failed:"
- print '\terror:', sys.exc_info()[1]
- else:
- print "CORRUPT or INCOMPLETE "
- rejected +=1
- else:
- missing +=1
- print "\nEbuild missing digest for " +file
-
-
-print "\nSUMMARY:\nFound " + str(len(dupes)) + " duplicate file(s)."
-print "\tDeleted " + str(deleted) + " dupe(s)."
-if newfiles:
- print "Found " + str(len(newfiles)) + " new file(s)."
- print "\tAdded " + str(added) + " of those file(s) to the cache."
- print "\tRejected " + str(rejected) + " corrupt or incomplete file(s)."
- if missing:
- print "\tCan't check " +str(missing) + " file(s) because of missing digest."
- if suspect:
- print "\t" + str(suspect) + " Unknown file(s) that are not listed in portage\
-\n\tYou may want to delete them yourself...."
-if newdir:
- print"\n\nexecute:\n/etc/init.d/http-replicator start"
- print"to run http-replicator.\n\nexecute:\nrc-update add http-replicator default"
- print"to make http-replicator start at boot"
- print"\n\nexecute:\n/usr/bin/repcacheman\nafter emerge's on the server to delete"
- print"dup files and add new files to the cache"
-print "\n\nDone!\n\n"
-
diff --git a/net-proxy/http-replicator/http-replicator-3.0.ebuild b/net-proxy/http-replicator/http-replicator-3.0.ebuild
deleted file mode 100644
index 15cc2b95b71b..000000000000
--- a/net-proxy/http-replicator/http-replicator-3.0.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/http-replicator/http-replicator-3.0.ebuild,v 1.17 2007/07/10 18:25:50 griffon26 Exp $
-
-inherit eutils
-
-DESCRIPTION="Proxy cache for Gentoo packages"
-HOMEPAGE="http://gertjan.freezope.org/replicator/"
-SRC_URI="http://gertjan.freezope.org/replicator/${PN}_${PV}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 ~hppa ppc ~sparc x86"
-IUSE=""
-
-DEPEND=">=dev-lang/python-2.3"
-
-src_compile() {
- epatch "${FILESDIR}/http-replicator-3.0-sighup.patch"
- einfo "No compilation necessary"
-}
-
-src_install(){
- # Daemon and repcacheman into /usr/bin
- exeinto /usr/bin
- doexe http-replicator
- newexe "${FILESDIR}/http-replicator-3.0-callrepcacheman-0.1" repcacheman
- if has_version '>=sys-apps/portage-2.0.51'; then
- newexe "${FILESDIR}/http-replicator-3.0-repcacheman-0.33" repcacheman.py
- else
- newexe "${FILESDIR}/http-replicator-3.0-repcacheman-0.21" repcacheman.py
- fi
-
- # init.d scripts
- newinitd "${FILESDIR}/http-replicator-3.0.init" http-replicator
- newconfd "${FILESDIR}/http-replicator-3.0.conf" http-replicator
-
- # Docs
- dodoc README debian/changelog
-
- # Man Page - Not Gentooified yet
- doman http-replicator.1
-
- insinto /etc/logrotate.d
- newins debian/logrotate http-replicator
-}
-
-pkg_postinst() {
- einfo
- einfo "Before starting http-replicator, please follow the next few steps:"
- einfo "- modify /etc/conf.d/http-replicator if required"
- einfo "- run /usr/bin/repcacheman to set up the cache"
- einfo "- add http_proxy=\"http://serveraddress:8080\" to make.conf on"
- einfo " the server as well as on the client machines"
- einfo "- make sure GENTOO_MIRRORS in /etc/make.conf starts with several"
- einfo " good http mirrors"
- einfo
- einfo "For more information please refer to the following forum thread:"
- einfo " http://forums.gentoo.org/viewtopic-t-173226.html"
- einfo
-}