aboutsummaryrefslogtreecommitdiffstats
path: root/main/gvfs
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-04-12 14:15:19 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-04-12 14:20:13 +0000
commitf3e5422471ad72d7d9c979a614acd60d71aa7c97 (patch)
tree35437cb65c1836a033913be9f2e299936b352dcc /main/gvfs
parent473789f01208bda1dc0e5eb9ad3d9d3d5f598b9c (diff)
downloadaports-f3e5422471ad72d7d9c979a614acd60d71aa7c97.tar.bz2
aports-f3e5422471ad72d7d9c979a614acd60d71aa7c97.tar.xz
main/gvfs: moved from testing
Diffstat (limited to 'main/gvfs')
-rw-r--r--main/gvfs/APKBUILD92
-rw-r--r--main/gvfs/gvfs.trigger6
2 files changed, 98 insertions, 0 deletions
diff --git a/main/gvfs/APKBUILD b/main/gvfs/APKBUILD
new file mode 100644
index 0000000000..ea5e22de26
--- /dev/null
+++ b/main/gvfs/APKBUILD
@@ -0,0 +1,92 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gvfs
+pkgver=1.7.2
+pkgrel=1
+pkgdesc="Backends for the gio framework in GLib"
+url="http://ftp.gnome.org/pub/gnome/sources/gvfs/${pkgver%.*}/"
+arch="all"
+license="GPL"
+depends=
+triggers="$pkgname.trigger:/usr/lib/gvfs"
+makedepends="dbus-glib-dev intltool fuse-dev udev-dev bluez-dev expat-dev
+ samba-dev libsoup-dev avahi-dev libarchive-dev gnome-disk-utility-dev"
+install=
+subpackages="$pkgname-dev $pkgname-fuse $pkgname-smb $pkgname-archive
+ $pkgname-obexftp"
+source="http://ftp.gnome.org/pub/gnome/sources/gvfs/${pkgver%.*}/gvfs-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/gvfs \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --enable-gdu \
+ --disable-gconf \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+_mv_files() {
+ local i
+ for i in "$@"; do
+ mkdir -p "$subpkgdir"/${i%/*}
+ mv "$pkgdir"/$i "$subpkgdir"/$i || return 1
+ done
+}
+
+fuse() {
+ pkgdesc="FUSE support for gvfs"
+ triggers=
+ cd "$pkgdir"
+ _mv_files usr/lib/gvfs/gvfs-fuse-daemon
+}
+
+smb() {
+ pkgdesc="Windows fileshare support for gvfs"
+ triggers=
+ cd "$pkgdir"
+ _mv_files \
+ usr/lib/gvfs/gvfsd-smb* \
+ usr/share/gvfs/mounts/smb*
+}
+
+archive() {
+ pkgdesc="Archiving support for gvfs"
+ triggers=
+ cd "$pkgdir"
+ _mv_files \
+ usr/lib/gvfs/gvfsd-archive* \
+ usr/share/gvfs/mounts/archive*
+}
+
+obexftp() {
+ pkgdesc="ObexFTP support for gvfs"
+ triggers=
+ cd "$pkgdir"
+ _mv_files \
+ usr/lib/gvfs/gvfsd-obex* \
+ usr/share/gvfs/mounts/obex*
+}
+
+#gphoto2() {
+# pkgdesc="gphoto2 support for gvfs"
+#}
+#
+#afc() {
+# pkgdesc="AFC support for gvfs"
+#}
+
+md5sums="d8a57290a5d090b07cd2f23914f20f4e gvfs-1.7.2.tar.bz2"
diff --git a/main/gvfs/gvfs.trigger b/main/gvfs/gvfs.trigger
new file mode 100644
index 0000000000..e1d7906823
--- /dev/null
+++ b/main/gvfs/gvfs.trigger
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Reload .mount files
+killall -USR1 gvfsd >&/dev/null
+exit 0
+