Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=interim.git;a=commitdiff;h=d6ea45b16bde38f7920a23b6bac9eb7b6200174b
commit d6ea45b16bde38f7920a23b6bac9eb7b6200174b
Author: bouleetbil <[EMAIL PROTECTED]>
Date: Thu Jun 26 21:26:46 2008 +0200
gnomeartng-0.5.1-1-i686
*new package
diff --git a/source/gnome-extra/gnomeartng/FrugalBuild
b/source/gnome-extra/gnomeartng/FrugalBuild
new file mode 100644
index 0000000..a68663a
--- /dev/null
+++ b/source/gnome-extra/gnomeartng/FrugalBuild
@@ -0,0 +1,32 @@
+# Compiling Time: 0.01 SBU
+# Maintainer: bouleetbil <[EMAIL PROTECTED]>
+
+pkgname=gnomeartng
+pkgver=0.5.1
+pkgrel=1
+pkgdesc="Manage your Gnome Desktop from arts.gnome.org"
+depends=('gnome-sharp')
+options=('scriptlet')
+Finclude berlios mono
+source=($source fixe_UserAgent.diff)
+groups=('gnome-extra')
+archs=('i686')
+sha1sums=('704fd022b4ddebdd321b3ff9308a0bc2ceb88469' \
+ 'de4a91413da77e8968556fa89631bb6ff1d91008')
+_F_desktop_categories="Utility;"
+_F_desktop_icon="$pkgname"
+
+build() {
+ Fcd
+ Fpatchall
+ Fmonoexport
+ gmcs `pkg-config --libs gtk-sharp-2.0 glade-sharp-2.0 gnome-sharp-2.0
gconf-sharp-2.0` \
+ -resource:gui.glade -r:/usr/lib/mono/2.0/Mono.Posix.dll
-recurse:*.cs -out:GnomeArtNg.exe || Fdie
+ Fmonocleanup
+ Fmkdir /usr/lib/$pkgname/
+ Fcp "$pkgname-$pkgver/GnomeArtNg.exe" "usr/lib/$pkgname/GnomeArtNg.exe"
+ Fwrapper "mono /usr/lib/$pkgname/GnomeArtNg.exe" $pkgname
+ mv gnome.png $pkgname.png || Fdie
+ Ficonrel $pkgname.png
+ Fdesktop2
+}
diff --git a/source/gnome-extra/gnomeartng/fixe_UserAgent.diff
b/source/gnome-extra/gnomeartng/fixe_UserAgent.diff
new file mode 100644
index 0000000..4c57ada
--- /dev/null
+++ b/source/gnome-extra/gnomeartng/fixe_UserAgent.diff
@@ -0,0 +1,23 @@
+--- gnomeartng-0.5.1/CFileDownloader.cs.old 2008-05-23 19:10:57.000000000
+0200
++++ gnomeartng-0.5.1/CFileDownloader.cs 2008-06-25 15:48:47.000000000
+0200
+@@ -62,7 +62,9 @@
+ try {
+ // Create a request to the file we are
downloading
+ webRequest =
(HttpWebRequest)WebRequest.Create(From);
+- webRequest.UserAgent="Gnome-Art NexGen";
++ //webRequest.UserAgent="Gnome-Art NexGen";
++ //Spoof the user-agent
++ webRequest.UserAgent="Mozilla/5.0 (X11; U;
Linux i686; fr; rv:1.9b5) Gecko/2008041514 Firefox/3.0b5";
+ webRequest.Timeout = 4000;
+ webRequest.KeepAlive=holdConnection;
+ // Set default authentication for retrieving
the file
+@@ -81,7 +83,8 @@
+
+ // Open the URL for download
+ WebClient client = new WebClient ();
+- client.Headers.Add ("user-agent", "Gnome-Art
NexGen");
++ //client.Headers.Add ("user-agent", "Gnome-Art
NexGen");
++ client.Headers.Add ("user-agent", "Mozilla/5.0
(X11; U; Linux i686; fr; rv:1.9b5) Gecko/2008041514 Firefox/3.0b5");
+ strResponse = client.OpenRead (From);
+
+ // Create a new file stream where we will be
saving the data (local drive)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git