summaryrefslogtreecommitdiff
path: root/community/gshare
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/gshare
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/gshare')
-rw-r--r--community/gshare/PKGBUILD36
-rw-r--r--community/gshare/gshare.install40
-rw-r--r--community/gshare/monofix.patch87
3 files changed, 163 insertions, 0 deletions
diff --git a/community/gshare/PKGBUILD b/community/gshare/PKGBUILD
new file mode 100644
index 000000000..bd17b933c
--- /dev/null
+++ b/community/gshare/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 18374 2010-06-03 15:40:23Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: William Rea <sillywilly@gmail.com>
+
+pkgname=gshare
+pkgver=0.94
+pkgrel=4
+pkgdesc="Easy file sharing for Gnome"
+arch=('i686' 'x86_64')
+url="https://launchpad.net/gshare-project"
+license=('GPL')
+depends=('gtk-sharp-2' 'avahi' 'gnome-sharp')
+install=$pkgname.install
+options=('!makeflags')
+source=(http://ftp.de.debian.org/debian/pool/main/g/gshare/gshare_$pkgver.orig.tar.gz
+ http://ftp.de.debian.org/debian/pool/main/g/gshare/gshare_$pkgver-10.diff.gz)
+md5sums=('bfb05ba7502218e9d9cacc7916098a03'
+ '3dd6000e9afc0db819a6ec69047b440d')
+
+build() {
+ export MONO_SHARED_DIR=$srcdir/.wabi
+ mkdir -p $MONO_SHARED_DIR
+
+ cd $srcdir/gshare-$pkgver
+ patch -p1 <$srcdir/gshare_$pkgver-10.diff
+ ls -1 debian/patches/*.patch | while read A; do patch -p1 <$A; done
+ ./configure --prefix=/usr --sysconfdir=/usr/share --with-dbus-service-dir=/usr/share/dbus-1/services --disable-schemas-install
+ sed -i 's/-scrollkeeper-update/#-scrollkeeper-update/' help/C/Makefile
+ make || return 1
+ make DESTDIR=$pkgdir install || return 1
+
+ mv $pkgdir/usr/share/gshare/gshared.desktop $pkgdir/usr/share/applications/
+ rm -r $pkgdir/usr/share/gshare
+
+ rm -r $MONO_SHARED_DIR
+}
diff --git a/community/gshare/gshare.install b/community/gshare/gshare.install
new file mode 100644
index 000000000..f1eac39c1
--- /dev/null
+++ b/community/gshare/gshare.install
@@ -0,0 +1,40 @@
+pkgname=gshare
+
+post_install() {
+ export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
+ usr/bin/gconftool-2 --makefile-install-rule usr/share/gconf/schemas/${pkgname}.schemas >/dev/null
+ scrollkeeper-update -q -p var/lib/scrollkeeper
+ update-desktop-database -q
+
+cat << EOF
+>>> To start the ftp server have gshared start up with your session by
+>>> going to: Desktop -> Preferences -> Sessions
+EOF
+}
+
+pre_upgrade() {
+ pre_remove $1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ if [ -f usr/share/gconf/schemas/${pkgname}.schemas ]; then
+ schemas=(usr/share/gconf/schemas/${pkgname}.schemas)
+ elif [ -f opt/gnome/share/gconf/schemas/${pkgname}.schemas ]; then
+ schemas=(opt/gnome/share/gconf/schemas/${pkgname}.schemas)
+ else
+ schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
+ fi
+ export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
+
+ usr/bin/gconftool-2 --makefile-uninstall-rule ${schemas[@]} >/dev/null
+}
+
+post_remove() {
+ scrollkeeper-update -q -p var/lib/scrollkeeper
+ update-desktop-database -q
+}
+
diff --git a/community/gshare/monofix.patch b/community/gshare/monofix.patch
new file mode 100644
index 000000000..0888c3c3e
--- /dev/null
+++ b/community/gshare/monofix.patch
@@ -0,0 +1,87 @@
+diff -rN -u old-gshare/src/gshared/daemon.cs new-gshare/src/gshared/daemon.cs
+--- old-gshare/src/gshared/daemon.cs 2006-09-16 20:31:47.881173352 +0100
++++ new-gshare/src/gshared/daemon.cs 2006-09-16 20:31:47.959161496 +0100
+@@ -308,11 +308,11 @@
+ if (reason == FTPServerShutdownReason.Error)
+ {
+ Log.ErrorMessage("Shutting down FTP server because of an error");
+- Utility.InvokeLater(delegate
++ Utility.InvokeLater((GShare.Utility.BackgroundTask)(delegate
+ {
+ Utility.ShowGenericFatalErrorDialog();
+ Shutdown();
+- });
++ }));
+ }
+ }
+
+@@ -367,24 +367,24 @@
+ {
+ case ClientState.Collision:
+ /*TODO figure out what to do*/
+- Utility.InvokeLater(delegate
++ Utility.InvokeLater((GShare.Utility.BackgroundTask)(delegate
+ {
+ StopDaemon();
+- });
++ }));
+ break;
+ case ClientState.Failure:
+ Log.ErrorMessage("Zeroconf client failed to register");
+- Utility.InvokeLater(delegate
++ Utility.InvokeLater((GShare.Utility.BackgroundTask)(delegate
+ {
+ Utility.ShowCannotPublishServiceDialog();
+ Shutdown();
+- });
++ }));
+ break;
+ case ClientState.Running:
+- Utility.InvokeLater(delegate
++ Utility.InvokeLater((GShare.Utility.BackgroundTask)(delegate
+ {
+ PublishFTPServer();
+- });
++ }));
+ break;
+ }
+
+@@ -410,19 +410,19 @@
+ iAvahiServiceName = EntryGroup.GetAlternativeServiceName(iAvahiServiceName);
+ }
+
+- Utility.InvokeLater(delegate
++ Utility.InvokeLater((GShare.Utility.BackgroundTask)(delegate
+ {
+ StartZeroConf(iFtpServer.ServerPort);
+- });
++ }));
+
+ break;
+ case EntryGroupState.Failure:
+ Log.ErrorMessage("Failed to publish FTP service on zeroconf network");
+- Utility.InvokeLater(delegate
++ Utility.InvokeLater((GShare.Utility.BackgroundTask)(delegate
+ {
+ Utility.ShowCannotPublishServiceDialog();
+ Shutdown();
+- });
++ }));
+ break;
+
+ case EntryGroupState.Established:
+@@ -460,11 +460,11 @@
+ ex.Message,
+ ex.StackTrace);
+
+- Utility.InvokeLater(delegate
++ Utility.InvokeLater((GShare.Utility.BackgroundTask)(delegate
+ {
+ Utility.ShowCannotPublishServiceDialog();
+ Shutdown();
+- });
++ }));
+
+ }
+
+