[Pkg-xfce-commits] r75 - / scripts

Emanuele Rocca ema@costa.debian.org
Fri, 29 Apr 2005 19:14:41 +0000


Author: ema
Date: 2005-04-29 19:14:38 +0000 (Fri, 29 Apr 2005)
New Revision: 75

Added:
   scripts/
   scripts/get-goodies.pl
   scripts/goodies-sources.txt
Log:
Initial delivery.

The get-goodies.pl script fetches the upstream tarballs and performs
some duty on them, to reflect the usual Debian naming convention.


Added: scripts/get-goodies.pl
===================================================================
--- scripts/get-goodies.pl	2005-04-29 18:14:13 UTC (rev 74)
+++ scripts/get-goodies.pl	2005-04-29 19:14:38 UTC (rev 75)
@@ -0,0 +1,51 @@
+#!/usr/bin/perl
+# Copyright (C) 2005 Emanuele Rocca <ema@debian.org>
+# This code is released under the terms of the GNU GPL
+#
+# vim:textwidth=0 background=light
+
+use strict;
+use File::Basename;
+
+my $debian_dirs = "../goodies";
+my $tarballs_dir = "$debian_dirs/tarballs";
+my $sources_file = "goodies-sources.txt";
+
+! -d $tarballs_dir and print STDERR "No tarballs dir found. Exiting.\n" and exit 1;
+
+if (! -f $sources_file or ! open SOURCES, "< $sources_file") {
+	print STDERR "No sources file found. Exiting.\n";
+	exit 1;
+}
+
+while(<SOURCES>) {
+	chop;
+	my ($pkg, $tarball) = split;
+	! -d "$debian_dirs/$pkg" and next;
+	my $wget_command = "";
+	my $filename = basename($tarball);
+	my $debian_filename = $filename;
+	$debian_filename =~ s/-(\d)/_$1/;
+
+	if($filename !~ /tar\.gz/) {
+		# assuming bzip2
+		my $decompressed_filename = $filename;
+		
+		$debian_filename =~ s/.tar.bz2/.orig.tar.gz/;
+
+		$decompressed_filename =~ s/tar.bz2/tar/;
+		
+		$wget_command = "wget $tarball && bunzip2 $filename && gzip -9 $decompressed_filename && mv $decompressed_filename.gz $debian_filename";
+	}
+	else {
+		# tar.gz
+		$debian_filename =~ s/.tar.gz/.orig.tar.gz/;
+		$wget_command = "cd $tarballs_dir && wget $tarball && mv $filename $debian_filename";
+	}
+
+	# wget & stuff
+	if ( ! -f "$tarballs_dir/$debian_filename" ) { 
+			print "Trying the following command:\n$wget_command\n";
+			system($wget_command);
+	}
+}


Property changes on: scripts/get-goodies.pl
___________________________________________________________________
Name: svn:executable
   + *

Added: scripts/goodies-sources.txt
===================================================================
--- scripts/goodies-sources.txt	2005-04-29 18:14:13 UTC (rev 74)
+++ scripts/goodies-sources.txt	2005-04-29 19:14:38 UTC (rev 75)
@@ -0,0 +1,24 @@
+xfce4-artwork http://download.berlios.de/xfce-goodies/xfce4-artwork-0.0.4.tar.gz
+xfce4-battery-plugin http://download.berlios.de/xfce-goodies/xfce4-battery-plugin-0.2.0.tar.gz
+xfce4-clipman-plugin http://download.berlios.de/xfce-goodies/xfce4-clipman-plugin-0.4.1.tar.gz
+xfce4-cpugraph-plugin http://download.berlios.de/xfce-goodies/xfce4-cpugraph-plugin-0.2.2.tar.gz
+xfce4-datetime-plugin http://download.berlios.de/xfce-goodies/xfce4-datetime-plugin-0.3.1.tar.gz
+xfce4-diskperf-plugin http://download.berlios.de/xfce-goodies/xfce4-diskperf-plugin-1.5.tar.gz
+xfce4-fsguard-plugin http://download.berlios.de/xfce-goodies/xfce4-fsguard-plugin-0.2.0.tar.gz
+xfce4-genmon-plugin http://download.berlios.de/xfce-goodies/xfce4-genmon-plugin-1.1.tar.gz
+xfce4-i8k-plugin http://download.berlios.de/xfce-goodies/xfce4-i8k-plugin-0.0.1.tar.bz2
+xfce4-minicmd-plugin http://download.berlios.de/xfce-goodies/xfce4-minicmd-plugin-0.3.0.tar.gz
+xfce4-netload-plugin http://download.berlios.de/xfce-goodies/xfce4-netload-plugin-0.3.1.tar.bz2
+xfce4-notes-plugin http://download.berlios.de/xfce-goodies/xfce4-notes-plugin-0.10.0.tar.gz
+xfce4-sensors-plugin http://download.berlios.de/xfce-goodies/xfce4-sensors-plugin-0.3.0.tar.gz
+xfce4-showdesktop-plugin http://download.berlios.de/xfce-goodies/xfce4-showdesktop-plugin-0.4.0.tar.gz
+xfce4-systemload-plugin http://download.berlios.de/xfce-goodies/xfce4-systemload-plugin-0.3.6.tar.gz
+xfce4-taskbar-plugin http://download.berlios.de/xfce-goodies/xfce4-taskbar-plugin-0.2.2.tar.gz
+xfce4-wavelan-plugin http://download.berlios.de/xfce-goodies/xfce4-wavelan-plugin-0.4.1.tar.gz
+xfce4-weather-plugin http://download.berlios.de/xfce-goodies/xfce4-weather-plugin-0.4.9.tar.gz
+xfce4-windowlist-plugin http://download.berlios.de/xfce-goodies/xfce4-windowlist-plugin-0.1.0.tar.gz
+xfce4-xkb-plugin http://download.berlios.de/xfce-goodies/xfce4-xkb-plugin-0.3.2.tar.gz
+xfce4-xmms-plugin http://download.berlios.de/xfce-goodies/xfce4-xmms-plugin-0.1.1.tar.bz
+exo http://download.berlios.de/xfce-goodies/exo-0.3.0.tar.gz
+xterminal http://download.berlios.de/xfce-goodies/Terminal-0.2.4.tar.gz
+xfmedia http://spuriousinterrupt.org/projects/xfmedia/files/xfmedia-0.7.1.tar.bz2