blob: 6547f63e356b53a44d203f54fdec8933beb7e3c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gvfs
pkgver=1.42.2
pkgrel=2
pkgdesc="Backends for the gio framework in GLib"
url="https://wiki.gnome.org/Projects/gvfs"
arch="all"
license="LGPL-2.0-or-later"
depends="gsettings-desktop-schemas"
makedepends="fuse3-dev libgudev-dev expat-dev samba-dev libxml2-dev
libsoup-dev avahi-dev libarchive-dev udisks2-dev libgphoto2-dev
libcdio-paranoia-dev libgcrypt-dev libxslt-dev docbook-xsl
libmtp-dev gcr-dev libcap-dev libsecret-dev libnfs-dev meson
openssh-client libusb-dev gnome-online-accounts-dev libimobiledevice-dev
libbluray-dev libgdata-dev gsettings-desktop-schemas-dev"
triggers="$pkgname.trigger=/usr/libexec/gvfs"
subpackages="$pkgname-dev $pkgname-lang
$pkgname-afc
$pkgname-afp
$pkgname-archive
$pkgname-avahi
$pkgname-cdda
$pkgname-dav
$pkgname-fuse
$pkgname-gphoto2
$pkgname-goa
$pkgname-mtp
$pkgname-nfs
$pkgname-smb
"
source="https://download.gnome.org/sources/gvfs/${pkgver%.*}/gvfs-$pkgver.tar.xz"
# secfixes:
# 1.40.2-r0:
# - CVE-2019-12795
# - CVE-2019-12449
# - CVE-2019-12447
# - CVE-2019-12448
build() {
meson \
--buildtype=plain \
--prefix=/usr \
--libexecdir=/usr/libexec/gvfs \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
-Dsystemduserunitdir=no \
-Dtmpfilesdir=no \
-Dlogind=false \
. output
ninja -C output
}
check() {
ninja -C output test
}
package() {
DESTDIR="$pkgdir" ninja -C output install
}
_mv_files() {
local i
for i in "$@"; do
mkdir -p "$subpkgdir"/${i%/*}
mv "$pkgdir"/$i "$subpkgdir"/$i
done
}
fuse() {
pkgdesc="FUSE support for gvfs"
cd "$pkgdir"
_mv_files usr/libexec/gvfs/gvfsd-fuse
}
smb() {
pkgdesc="Windows fileshare support for gvfs"
cd "$pkgdir"
_mv_files \
usr/libexec/gvfs/gvfsd-smb* \
usr/share/gvfs/mounts/smb* \
usr/share/glib-*/schemas/org.gnome.system.smb.gschema.xml \
usr/share/GConf/gsettings/gvfs-smb.convert
}
mtp() {
pkgdesc="MTP support for gvfs"
cd "$pkgdir"
_mv_files usr/libexec/gvfs/gvfsd-mtp
}
archive() {
pkgdesc="Archiving support for gvfs"
cd "$pkgdir"
_mv_files \
usr/libexec/gvfs/gvfsd-archive* \
usr/share/gvfs/mounts/archive*
}
obexftp() {
pkgdesc="ObexFTP support for gvfs"
cd "$pkgdir"
_mv_files \
usr/libexec/gvfs/gvfsd-obex* \
usr/share/gvfs/mounts/obex*
}
gphoto2() {
pkgdesc="gphoto2 support for gvfs"
cd "$pkgdir"
_mv_files \
usr/libexec/gvfs/gvfs*gphoto* \
usr/share/gvfs/*/gphoto* \
usr/share/dbus*/services/*GPhoto*
}
afp() {
pkgdesc="AFP support for gvfs"
cd "$pkgdir"
_mv_files \
usr/libexec/gvfs/gvfs*afp* \
usr/share/gvfs/*/afp*
}
avahi() {
pkgdesc="DNS-SD support for gvfs"
cd "$pkgdir"
_mv_files \
usr/libexec/gvfs/gvfs*dns* \
usr/share/gvfs/mounts/dns-sd.mount \
usr/share/glib-*/schemas/org.gnome.system.dns_sd.gschema.xml \
usr/share/GConf/gsettings/gvfs-dns-sd.convert
}
cdda() {
pkgdesc="CDDA support for gvfs"
cd "$pkgdir"
_mv_files \
usr/share/gvfs/mounts/cdda.mount \
usr/libexec/gvfs/gvfsd-cdda
}
dav() {
pkgdesc="WebDAV support for gvfs"
cd "$pkgdir"
_mv_files \
usr/share/gvfs/mounts/dav.mount \
usr/share/gvfs/mounts/dav+sd.mount \
usr/libexec/gvfs/gvfsd-dav
}
nfs() {
pkgdesc="NFS support for gvfs"
cd "$pkgdir"
_mv_files \
usr/share/gvfs/mounts/nfs.mount \
usr/libexec/gvfs/gvfsd-nfs
}
goa() {
pkgdesc="GNOME Online Accounts support for gvfs"
cd "$pkgdir"
_mv_files \
usr/libexec/gvfs/gvfs-goa-volume-monitor \
usr/libexec/gvfs/gvfsd-google \
usr/share/gvfs/mounts/google.mount \
usr/share/dbus-1/services/org.gtk.vfs.GoaVolumeMonitor.service \
usr/share/gvfs/remote-volume-monitors/goa.monitor
}
afc() {
pkgdesc="Apple mobile devices support for gvfs"
cd "$pkgdir"
_mv_files \
usr/libexec/gvfs/gvfsd-afc \
usr/libexec/gvfs/gvfs-afc-volume-monitor \
usr/share/dbus-1/services/org.gtk.vfs.AfcVolumeMonitor.service \
usr/share/gvfs/remote-volume-monitors/afc.monitor
}
sha512sums="b786ae2e493099a0a1ab2756efba3690f0e241a53995013e2632b2d7e01628d52d72b47298c7a2b913c8d50f135c191b2963a7ffc0e768fc5c96a89f93401e3c gvfs-1.42.2.tar.xz"
|