Merge lp:~noskcaj/gnome-user-share/3.8 into lp:~ubuntu-desktop/gnome-user-share/ubuntu
- 3.8
- Merge into ubuntu
Status: | Needs review |
---|---|
Proposed branch: | lp:~noskcaj/gnome-user-share/3.8 |
Merge into: | lp:~ubuntu-desktop/gnome-user-share/ubuntu |
Diff against target: |
944 lines (+562/-193) 14 files modified
debian/changelog (+90/-0) debian/control (+9/-8) debian/control.in (+8/-7) debian/copyright (+0/-11) debian/patches/01_notification.patch (+3/-1) debian/patches/02_bluetooth_optional.patch (+318/-0) debian/patches/04_webdav_optional.patch (+1/-137) debian/patches/05_autostart_delay.patch (+22/-4) debian/patches/06_nodisplay_autostart.patch (+23/-5) debian/patches/07_onlyshowin_unity.patch (+29/-18) debian/patches/10_apache_2.4.patch (+14/-0) debian/patches/11_apache_noauth.patch (+41/-0) debian/patches/series (+2/-0) debian/rules (+2/-2) |
To merge this branch: | bzr merge lp:~noskcaj/gnome-user-share/3.8 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Holbach (community) | Needs Information | ||
Review via email: mp+266657@code.launchpad.net |
Commit message
Description of the change
Merge 3.8.0-2 from debian, newer versions require bluez5, but this fixes some bugs and gives apache2.4 support
- 18. By Jackson Doak
-
* New upstream release.
* Refresh 02_bluetooth_optional. patch.
* Bump Standards-Version to 3.9.4. No further changes.
Jackson Doak (noskcaj) wrote : | # |
the link to the 3.8.3 source is https:/
Unmerged revisions
- 18. By Jackson Doak
-
* New upstream release.
* Refresh 02_bluetooth_optional. patch.
* Bump Standards-Version to 3.9.4. No further changes. - 17. By Jackson Doak
-
* Merge with old debian release. Remaining changes:
* debian/control:
- Suggests the apache2-bin and libapache2-mod-dnssd binaries rather than
depends on those, we want obex push to work out of the box but we don't
really need webdav and the apache binaries on the default installation.
* debian/dirs: Dropped, we don't need to create /usr/share/gnome.
* debian/gconf-defaults: Enable notifications on receipt of files by default
* debian/patches/ 01_notification .patch: Display an alert box instead
of a notification for files received.
* debian/patches/ 02_bluetooth_ optional. patch: Dropped, it's enables
Bluetooth support to be configurable at build-time. We don't
actually use it, it adds a lot of #ifdef's to the code, and requires
some effort to port it to the new version.
* debian/patches/ 04_webdav_ optional. patch:
- De-senstize the WebDAV UI components if the suggested packages are
not available for WebDAV sharing. Display a notice explaining why sharing
cannot be enabled.
* debian/patches/ 05_autostart_ delay.patch:
- set X-GNOME-Autostart- Delay key to delay starting by 15 seconds.
* debian/patches/ 06_nodisplay_ autostart. patch:
- Don't show in "Startup Applications"
* debian/patches/ 07_onlyshowin_ unity.patch:
- Add Unity to OnlyShowIn
* debian/rules:
- don't move autostart file from etc to usr
- don't install the Nautilus bar. It's not that useful to people who don't
have bluetooth hardware and is not easily disabled.
* debian/control.in:
+ Remove obsolete build dependency on scrollkeeper.
+ Switch apache2.2-bin dependency to apache2-bin for the Apache 2.4
transition. Closes: #669729.
+ Bump minimum dependency on libapache2-mod-dnssd to 0.6-3.1~
to get Apache 2.4 support.
* debian/patches/ 10_apache_ 2.4.patch:
+ Don't load mod_unixd.so as it is statically linked.
Thanks Arno Töll for the insights.
* 11_apache_noauth. patch: fix the configuration with
require_password= never. Thanks Arno Töll.
* New upstream release.
+ debian/control.in:
- Update build dependencies.
+ debian/patches/ 02_bluetooth_ optional. patch:
- Updated.
+ debian/rules:
- Pass --disable-bluetooth to configure on !linux.
* debian/rules: disable scrollkeeper
* New upstream release
* debian/patches/ 02_bluetooth_ optional. patch
+ Updated
* Drop Build-Depends on libunique-3.0-dev.
* Bump Build-Depends on libglib2.0-dev to (>= 2.28.0).
* Update debian/copyright, drop outdated section about md5.[ch].
* Update Vcs-* URLs.
* Bump Standards-Version to 3.9.3.
Preview Diff
1 | === modified file 'debian/changelog' | |||
2 | --- debian/changelog 2013-03-03 13:51:13 +0000 | |||
3 | +++ debian/changelog 2015-08-02 08:27:18 +0000 | |||
4 | @@ -1,3 +1,74 @@ | |||
5 | 1 | gnome-user-share (3.8.3-1ubuntu1) wily; urgency=medium | ||
6 | 2 | |||
7 | 3 | * Merge with old debian release. Remaining changes: | ||
8 | 4 | * debian/control: | ||
9 | 5 | - Suggests the apache2-bin and libapache2-mod-dnssd binaries rather than | ||
10 | 6 | depends on those, we want obex push to work out of the box but we don't | ||
11 | 7 | really need webdav and the apache binaries on the default installation. | ||
12 | 8 | * debian/dirs: Dropped, we don't need to create /usr/share/gnome. | ||
13 | 9 | * debian/gconf-defaults: Enable notifications on receipt of files by default | ||
14 | 10 | * debian/patches/01_notification.patch: Display an alert box instead | ||
15 | 11 | of a notification for files received. | ||
16 | 12 | * debian/patches/02_bluetooth_optional.patch: Dropped, it's enables | ||
17 | 13 | Bluetooth support to be configurable at build-time. We don't | ||
18 | 14 | actually use it, it adds a lot of #ifdef's to the code, and requires | ||
19 | 15 | some effort to port it to the new version. | ||
20 | 16 | * debian/patches/04_webdav_optional.patch: | ||
21 | 17 | - De-senstize the WebDAV UI components if the suggested packages are | ||
22 | 18 | not available for WebDAV sharing. Display a notice explaining why sharing | ||
23 | 19 | cannot be enabled. | ||
24 | 20 | * debian/patches/05_autostart_delay.patch: | ||
25 | 21 | - set X-GNOME-Autostart-Delay key to delay starting by 15 seconds. | ||
26 | 22 | * debian/patches/06_nodisplay_autostart.patch: | ||
27 | 23 | - Don't show in "Startup Applications" | ||
28 | 24 | * debian/patches/07_onlyshowin_unity.patch: | ||
29 | 25 | - Add Unity to OnlyShowIn | ||
30 | 26 | * debian/rules: | ||
31 | 27 | - don't move autostart file from etc to usr | ||
32 | 28 | - don't install the Nautilus bar. It's not that useful to people who don't | ||
33 | 29 | have bluetooth hardware and is not easily disabled. | ||
34 | 30 | |||
35 | 31 | -- Jackson Doak <noskcaj@ubuntu.com> Sun, 02 Aug 2015 16:45:58 +1000 | ||
36 | 32 | |||
37 | 33 | gnome-user-share (3.8.3-1) unstable; urgency=low | ||
38 | 34 | |||
39 | 35 | * New upstream release. | ||
40 | 36 | * Refresh 02_bluetooth_optional.patch. | ||
41 | 37 | * Bump Standards-Version to 3.9.4. No further changes. | ||
42 | 38 | |||
43 | 39 | -- Michael Biebl <biebl@debian.org> Fri, 23 Aug 2013 23:35:21 +0200 | ||
44 | 40 | |||
45 | 41 | gnome-user-share (3.8.0-2) unstable; urgency=low | ||
46 | 42 | |||
47 | 43 | [ Emilio Pozuelo Monfort ] | ||
48 | 44 | * debian/control.in: | ||
49 | 45 | + Remove obsolete build dependency on scrollkeeper. | ||
50 | 46 | + Switch apache2.2-bin dependency to apache2-bin for the Apache 2.4 | ||
51 | 47 | transition. Closes: #669729. | ||
52 | 48 | + Bump minimum dependency on libapache2-mod-dnssd to 0.6-3.1~ | ||
53 | 49 | to get Apache 2.4 support. | ||
54 | 50 | * debian/patches/10_apache_2.4.patch: | ||
55 | 51 | + Don't load mod_unixd.so as it is statically linked. | ||
56 | 52 | Thanks Arno Töll for the insights. | ||
57 | 53 | |||
58 | 54 | [ Josselin Mouette ] | ||
59 | 55 | * 11_apache_noauth.patch: fix the configuration with | ||
60 | 56 | require_password=never. Thanks Arno Töll. | ||
61 | 57 | |||
62 | 58 | -- Emilio Pozuelo Monfort <pochu@debian.org> Fri, 07 Jun 2013 01:16:38 +0200 | ||
63 | 59 | |||
64 | 60 | gnome-user-share (3.8.0-1) experimental; urgency=low | ||
65 | 61 | |||
66 | 62 | * New upstream release. | ||
67 | 63 | + debian/control.in: | ||
68 | 64 | - Update build dependencies. | ||
69 | 65 | + debian/patches/02_bluetooth_optional.patch: | ||
70 | 66 | - Updated. | ||
71 | 67 | + debian/rules: | ||
72 | 68 | - Pass --disable-bluetooth to configure on !linux. | ||
73 | 69 | |||
74 | 70 | -- Emilio Pozuelo Monfort <pochu@debian.org> Sun, 31 Mar 2013 18:29:51 +0200 | ||
75 | 71 | |||
76 | 1 | gnome-user-share (3.0.4-0ubuntu1) quantal; urgency=low | 72 | gnome-user-share (3.0.4-0ubuntu1) quantal; urgency=low |
77 | 2 | 73 | ||
78 | 3 | * New upstream bugfix release | 74 | * New upstream bugfix release |
79 | @@ -15,6 +86,25 @@ | |||
80 | 15 | 86 | ||
81 | 16 | -- Robert Ancell <robert.ancell@canonical.com> Sat, 25 Aug 2012 16:59:00 +1200 | 87 | -- Robert Ancell <robert.ancell@canonical.com> Sat, 25 Aug 2012 16:59:00 +1200 |
82 | 17 | 88 | ||
83 | 89 | gnome-user-share (3.0.2-1) unstable; urgency=low | ||
84 | 90 | |||
85 | 91 | [ Sebastien Bacher ] | ||
86 | 92 | * debian/rules: disable scrollkeeper | ||
87 | 93 | |||
88 | 94 | [ Sjoerd Simons ] | ||
89 | 95 | * New upstream release | ||
90 | 96 | * debian/patches/02_bluetooth_optional.patch | ||
91 | 97 | + Updated | ||
92 | 98 | |||
93 | 99 | [ Michael Biebl ] | ||
94 | 100 | * Drop Build-Depends on libunique-3.0-dev. | ||
95 | 101 | * Bump Build-Depends on libglib2.0-dev to (>= 2.28.0). | ||
96 | 102 | * Update debian/copyright, drop outdated section about md5.[ch]. | ||
97 | 103 | * Update Vcs-* URLs. | ||
98 | 104 | * Bump Standards-Version to 3.9.3. | ||
99 | 105 | |||
100 | 106 | -- Michael Biebl <biebl@debian.org> Tue, 29 May 2012 19:09:09 +0200 | ||
101 | 107 | |||
102 | 18 | gnome-user-share (3.0.2-0ubuntu3) quantal; urgency=low | 108 | gnome-user-share (3.0.2-0ubuntu3) quantal; urgency=low |
103 | 19 | 109 | ||
104 | 20 | * Rebuild with the new libgnome-bluetooth | 110 | * Rebuild with the new libgnome-bluetooth |
105 | 21 | 111 | ||
106 | === modified file 'debian/control' | |||
107 | --- debian/control 2013-03-03 13:51:13 +0000 | |||
108 | +++ debian/control 2015-08-02 08:27:18 +0000 | |||
109 | @@ -5,9 +5,9 @@ | |||
110 | 5 | Source: gnome-user-share | 5 | Source: gnome-user-share |
111 | 6 | Section: gnome | 6 | Section: gnome |
112 | 7 | Priority: optional | 7 | Priority: optional |
114 | 8 | Maintainer: Ubuntu Desktop Team <ubuntu-desktop@lists.ubuntu.com> | 8 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
115 | 9 | XSBC-Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org> | 9 | XSBC-Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org> |
117 | 10 | Uploaders: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>, Jeremy Bicha <jbicha@ubuntu.com>, Josselin Mouette <joss@debian.org>, Michael Biebl <biebl@debian.org> | 10 | Uploaders: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>, Emilio Pozuelo Monfort <pochu@debian.org>, Jeremy Bicha <jbicha@ubuntu.com>, Michael Biebl <biebl@debian.org> |
118 | 11 | Build-Depends: cdbs, | 11 | Build-Depends: cdbs, |
119 | 12 | debhelper (>= 8), | 12 | debhelper (>= 8), |
120 | 13 | dh-autoreconf, | 13 | dh-autoreconf, |
121 | @@ -17,16 +17,17 @@ | |||
122 | 17 | libxt-dev, | 17 | libxt-dev, |
123 | 18 | pkg-config, | 18 | pkg-config, |
124 | 19 | libdbus-1-dev (>= 1.1.1), | 19 | libdbus-1-dev (>= 1.1.1), |
126 | 20 | libglib2.0-dev (>= 2.15.2), | 20 | libdbus-glib-1-dev, |
127 | 21 | libglib2.0-dev (>= 2.28.0), | ||
128 | 21 | libgtk-3-dev, | 22 | libgtk-3-dev, |
129 | 22 | libdbus-glib-1-dev, | ||
130 | 23 | libnotify-dev (>= 0.7), | 23 | libnotify-dev (>= 0.7), |
131 | 24 | libcanberra-gtk3-dev, | 24 | libcanberra-gtk3-dev, |
132 | 25 | libselinux1-dev [linux-any], | 25 | libselinux1-dev [linux-any], |
133 | 26 | libgnome-bluetooth-dev (>= 2.91.5) [linux-any], | 26 | libgnome-bluetooth-dev (>= 2.91.5) [linux-any], |
134 | 27 | libnautilus-extension-dev (>= 2.91.7) | 27 | libnautilus-extension-dev (>= 2.91.7) |
137 | 28 | Standards-Version: 3.9.3 | 28 | Standards-Version: 3.9.4 |
138 | 29 | Vcs-Bzr: http://code.launchpad.net/~ubuntu-desktop/gnome-user-share/ubuntu | 29 | Vcs-Svn: svn://anonscm.debian.org/pkg-gnome/desktop/unstable/gnome-user-share |
139 | 30 | Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-gnome/desktop/unstable/gnome-user-share | ||
140 | 30 | 31 | ||
141 | 31 | Package: gnome-user-share | 32 | Package: gnome-user-share |
142 | 32 | Architecture: any | 33 | Architecture: any |
143 | @@ -34,8 +35,8 @@ | |||
144 | 34 | ${misc:Depends}, | 35 | ${misc:Depends}, |
145 | 35 | obex-data-server [linux-any], | 36 | obex-data-server [linux-any], |
146 | 36 | gnome-bluetooth [linux-any] | 37 | gnome-bluetooth [linux-any] |
149 | 37 | Suggests: apache2.2-bin, | 38 | Suggests: apache2-bin (>= 2.4), |
150 | 38 | libapache2-mod-dnssd (>= 0.6) | 39 | libapache2-mod-dnssd (>= 0.6-3.1~), |
151 | 39 | Description: User level public file sharing via WebDAV or ObexFTP | 40 | Description: User level public file sharing via WebDAV or ObexFTP |
152 | 40 | gnome-user-share is a small package that allows easy user-level file sharing | 41 | gnome-user-share is a small package that allows easy user-level file sharing |
153 | 41 | via WebDAV or ObexFTP. The shared files are announced on the network | 42 | via WebDAV or ObexFTP. The shared files are announced on the network |
154 | 42 | 43 | ||
155 | === modified file 'debian/control.in' | |||
156 | --- debian/control.in 2013-03-03 13:51:13 +0000 | |||
157 | +++ debian/control.in 2015-08-02 08:27:18 +0000 | |||
158 | @@ -1,7 +1,7 @@ | |||
159 | 1 | Source: gnome-user-share | 1 | Source: gnome-user-share |
160 | 2 | Section: gnome | 2 | Section: gnome |
161 | 3 | Priority: optional | 3 | Priority: optional |
163 | 4 | Maintainer: Ubuntu Desktop Team <ubuntu-desktop@lists.ubuntu.com> | 4 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
164 | 5 | XSBC-Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org> | 5 | XSBC-Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org> |
165 | 6 | Uploaders: @GNOME_TEAM@ | 6 | Uploaders: @GNOME_TEAM@ |
166 | 7 | Build-Depends: cdbs, | 7 | Build-Depends: cdbs, |
167 | @@ -13,16 +13,17 @@ | |||
168 | 13 | libxt-dev, | 13 | libxt-dev, |
169 | 14 | pkg-config, | 14 | pkg-config, |
170 | 15 | libdbus-1-dev (>= 1.1.1), | 15 | libdbus-1-dev (>= 1.1.1), |
172 | 16 | libglib2.0-dev (>= 2.15.2), | 16 | libdbus-glib-1-dev, |
173 | 17 | libglib2.0-dev (>= 2.28.0), | ||
174 | 17 | libgtk-3-dev, | 18 | libgtk-3-dev, |
175 | 18 | libdbus-glib-1-dev, | ||
176 | 19 | libnotify-dev (>= 0.7), | 19 | libnotify-dev (>= 0.7), |
177 | 20 | libcanberra-gtk3-dev, | 20 | libcanberra-gtk3-dev, |
178 | 21 | libselinux1-dev [linux-any], | 21 | libselinux1-dev [linux-any], |
179 | 22 | libgnome-bluetooth-dev (>= 2.91.5) [linux-any], | 22 | libgnome-bluetooth-dev (>= 2.91.5) [linux-any], |
180 | 23 | libnautilus-extension-dev (>= 2.91.7) | 23 | libnautilus-extension-dev (>= 2.91.7) |
183 | 24 | Standards-Version: 3.9.3 | 24 | Standards-Version: 3.9.4 |
184 | 25 | Vcs-Bzr: http://code.launchpad.net/~ubuntu-desktop/gnome-user-share/ubuntu | 25 | Vcs-Svn: svn://anonscm.debian.org/pkg-gnome/desktop/unstable/gnome-user-share |
185 | 26 | Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-gnome/desktop/unstable/gnome-user-share | ||
186 | 26 | 27 | ||
187 | 27 | Package: gnome-user-share | 28 | Package: gnome-user-share |
188 | 28 | Architecture: any | 29 | Architecture: any |
189 | @@ -30,8 +31,8 @@ | |||
190 | 30 | ${misc:Depends}, | 31 | ${misc:Depends}, |
191 | 31 | obex-data-server [linux-any], | 32 | obex-data-server [linux-any], |
192 | 32 | gnome-bluetooth [linux-any] | 33 | gnome-bluetooth [linux-any] |
195 | 33 | Suggests: apache2.2-bin, | 34 | Suggests: apache2-bin (>= 2.4), |
196 | 34 | libapache2-mod-dnssd (>= 0.6) | 35 | libapache2-mod-dnssd (>= 0.6-3.1~), |
197 | 35 | Description: User level public file sharing via WebDAV or ObexFTP | 36 | Description: User level public file sharing via WebDAV or ObexFTP |
198 | 36 | gnome-user-share is a small package that allows easy user-level file sharing | 37 | gnome-user-share is a small package that allows easy user-level file sharing |
199 | 37 | via WebDAV or ObexFTP. The shared files are announced on the network | 38 | via WebDAV or ObexFTP. The shared files are announced on the network |
200 | 38 | 39 | ||
201 | === modified file 'debian/copyright' | |||
202 | --- debian/copyright 2011-03-11 04:39:02 +0000 | |||
203 | +++ debian/copyright 2015-08-02 08:27:18 +0000 | |||
204 | @@ -30,14 +30,3 @@ | |||
205 | 30 | On Debian systems, the complete text of the GNU General | 30 | On Debian systems, the complete text of the GNU General |
206 | 31 | Public License can be found in `/usr/share/common-licenses/GPL-2'. | 31 | Public License can be found in `/usr/share/common-licenses/GPL-2'. |
207 | 32 | 32 | ||
208 | 33 | For md5.[ch]: | ||
209 | 34 | This code implements the MD5 message-digest algorithm. | ||
210 | 35 | The algorithm is due to Ron Rivest. This code was | ||
211 | 36 | written by Colin Plumb in 1993, no copyright is claimed. | ||
212 | 37 | This code is in the public domain; do with it what you wish. | ||
213 | 38 | |||
214 | 39 | Equivalent code is available from RSA Data Security, Inc. | ||
215 | 40 | This code has been tested against that, and is equivalent, | ||
216 | 41 | except that you don't need to include two pages of legalese | ||
217 | 42 | with every copy. | ||
218 | 43 | |||
219 | 44 | 33 | ||
220 | === modified file 'debian/patches/01_notification.patch' | |||
221 | --- debian/patches/01_notification.patch 2012-08-25 04:58:51 +0000 | |||
222 | +++ debian/patches/01_notification.patch 2015-08-02 08:27:18 +0000 | |||
223 | @@ -184,7 +184,7 @@ | |||
224 | 184 | 184 | ||
225 | 185 | file_uri = g_filename_to_uri (filename, NULL, NULL); | 185 | file_uri = g_filename_to_uri (filename, NULL, NULL); |
226 | 186 | if (file_uri == NULL) { | 186 | if (file_uri == NULL) { |
228 | 187 | @@ -128,36 +219,65 @@ | 187 | @@ -128,37 +219,66 @@ |
229 | 188 | return; | 188 | return; |
230 | 189 | } | 189 | } |
231 | 190 | 190 | ||
232 | @@ -197,6 +197,7 @@ | |||
233 | 197 | - "dialog-information"); | 197 | - "dialog-information"); |
234 | 198 | - | 198 | - |
235 | 199 | - notify_notification_set_timeout (notification, NOTIFY_EXPIRES_DEFAULT); | 199 | - notify_notification_set_timeout (notification, NOTIFY_EXPIRES_DEFAULT); |
236 | 200 | - notify_notification_set_hint_string (notification, "desktop-entry", "gnome-user-share-properties"); | ||
237 | 200 | - | 201 | - |
238 | 201 | mime_type = g_content_type_guess (filename, NULL, 0, NULL); | 202 | mime_type = g_content_type_guess (filename, NULL, 0, NULL); |
239 | 202 | app = g_app_info_get_default_for_type (mime_type, FALSE); | 203 | app = g_app_info_get_default_for_type (mime_type, FALSE); |
240 | @@ -215,6 +216,7 @@ | |||
241 | 215 | + "dialog-information"); | 216 | + "dialog-information"); |
242 | 216 | + | 217 | + |
243 | 217 | + notify_notification_set_timeout (notification, NOTIFY_EXPIRES_DEFAULT); | 218 | + notify_notification_set_timeout (notification, NOTIFY_EXPIRES_DEFAULT); |
244 | 219 | + notify_notification_set_hint_string (notification, "desktop-entry", "gnome-user-share-properties"); | ||
245 | 218 | + | 220 | + |
246 | 219 | + if (app != NULL) { | 221 | + if (app != NULL) { |
247 | 220 | + notify_notification_add_action (notification, "display", _("Open File"), | 222 | + notify_notification_add_action (notification, "display", _("Open File"), |
248 | 221 | 223 | ||
249 | === added file 'debian/patches/02_bluetooth_optional.patch' | |||
250 | --- debian/patches/02_bluetooth_optional.patch 1970-01-01 00:00:00 +0000 | |||
251 | +++ debian/patches/02_bluetooth_optional.patch 2015-08-02 08:27:18 +0000 | |||
252 | @@ -0,0 +1,318 @@ | |||
253 | 1 | From cc71d396069c036643eec8038377d233e2f8f303 Mon Sep 17 00:00:00 2001 | ||
254 | 2 | From: Emilio Pozuelo Monfort <pochu27@gmail.com> | ||
255 | 3 | Date: Sun, 31 Mar 2013 17:56:49 +0200 | ||
256 | 4 | Subject: [PATCH] Make bluetooth support optional | ||
257 | 5 | MIME-Version: 1.0 | ||
258 | 6 | Content-Type: text/plain; charset=UTF-8 | ||
259 | 7 | Content-Transfer-Encoding: 8bit | ||
260 | 8 | |||
261 | 9 | As gnome-bluetooth doesn’t build on non-Linux architectures, bluetooth | ||
262 | 10 | support in gnome-user-share needs to be optional to allow it to build on | ||
263 | 11 | non-linux. | ||
264 | 12 | |||
265 | 13 | Based on a patch by Josselin Mouette. | ||
266 | 14 | |||
267 | 15 | https://bugzilla.gnome.org/show_bug.cgi?id=601890 | ||
268 | 16 | --- | ||
269 | 17 | configure.ac | 13 +++++++++++-- | ||
270 | 18 | src/Makefile.am | 18 ++++++++++++++---- | ||
271 | 19 | src/share-extension.c | 15 ++++++++++++++- | ||
272 | 20 | src/user_share.c | 31 ++++++++++++++++++++++++++++++- | ||
273 | 21 | 4 files changed, 69 insertions(+), 8 deletions(-) | ||
274 | 22 | |||
275 | 23 | Index: gnome-user-share-3.8.3/configure.ac | ||
276 | 24 | =================================================================== | ||
277 | 25 | --- gnome-user-share-3.8.3.orig/configure.ac 2013-08-23 23:28:14.302349546 +0200 | ||
278 | 26 | +++ gnome-user-share-3.8.3/configure.ac 2013-08-23 23:28:14.290349391 +0200 | ||
279 | 27 | @@ -54,10 +54,19 @@ | ||
280 | 28 | |||
281 | 29 | AC_SUBST(HTTPD) | ||
282 | 30 | |||
283 | 31 | -PKG_CHECK_MODULES(USER_SHARE, glib-2.0 >= 2.28 gio-2.0 >= 2.26 gtk+-3.0 dbus-1 >= 1.1.1 dbus-glib-1 libnotify libcanberra-gtk3 gnome-bluetooth-1.0 >= 2.91.5) | ||
284 | 32 | +PKG_CHECK_MODULES(USER_SHARE, glib-2.0 >= 2.28 gio-2.0 >= 2.26 gtk+-3.0 dbus-1 >= 1.1.1 dbus-glib-1 libnotify libcanberra-gtk3) | ||
285 | 33 | AC_SUBST(USER_SHARE_CFLAGS) | ||
286 | 34 | AC_SUBST(USER_SHARE_LIBS) | ||
287 | 35 | |||
288 | 36 | +AC_ARG_ENABLE(bluetooth, AS_HELP_STRING([--disable-bluetooth],[compile without bluetooth support]),,enable_bluetooth=yes) | ||
289 | 37 | +if test "x$enable_bluetooth" = "xyes"; then | ||
290 | 38 | + PKG_CHECK_MODULES(BLUETOOTH, gnome-bluetooth-1.0 >= 2.91.5) | ||
291 | 39 | + AC_DEFINE(HAVE_BLUETOOTH, 1, [Set to true if gnome-bluetooth support is available]) | ||
292 | 40 | +else | ||
293 | 41 | + AC_MSG_WARN([Bluetooth support is disabled.]) | ||
294 | 42 | +fi | ||
295 | 43 | +AM_CONDITIONAL(USE_BLUETOOTH, [test "$enable_bluetooth" = "yes"]) | ||
296 | 44 | + | ||
297 | 45 | AC_CHECK_LIB(socket, socket) | ||
298 | 46 | |||
299 | 47 | have_socket=no | ||
300 | 48 | @@ -124,7 +133,7 @@ | ||
301 | 49 | [ac_with_nautilusdir=""]) | ||
302 | 50 | |||
303 | 51 | PKG_CHECK_MODULES(EXTENSION, | ||
304 | 52 | - libnautilus-extension >= 2.91.7 gnome-bluetooth-1.0) | ||
305 | 53 | + libnautilus-extension >= 2.91.7) | ||
306 | 54 | if test "${ac_with_nautilusdir}" = ""; then | ||
307 | 55 | ac_with_nautilusdir=`pkg-config --variable=extensiondir libnautilus-extension` | ||
308 | 56 | fi | ||
309 | 57 | Index: gnome-user-share-3.8.3/src/Makefile.am | ||
310 | 58 | =================================================================== | ||
311 | 59 | --- gnome-user-share-3.8.3.orig/src/Makefile.am 2013-08-23 23:28:14.302349546 +0200 | ||
312 | 60 | +++ gnome-user-share-3.8.3/src/Makefile.am 2013-08-23 23:28:14.294349441 +0200 | ||
313 | 61 | @@ -27,6 +27,7 @@ | ||
314 | 62 | -I$(top_builddir) \ | ||
315 | 63 | $(EXTENSION_CFLAGS) \ | ||
316 | 64 | $(USER_SHARE_CFLAGS) \ | ||
317 | 65 | + $(BLUETOOTH_CFLAGS) \ | ||
318 | 66 | $(X_CFLAGS) | ||
319 | 67 | |||
320 | 68 | gnome_user_share_SOURCES = \ | ||
321 | 69 | @@ -36,10 +37,6 @@ | ||
322 | 70 | user_share-private.c \ | ||
323 | 71 | http.c \ | ||
324 | 72 | http.h \ | ||
325 | 73 | - obexftp.c \ | ||
326 | 74 | - obexftp.h \ | ||
327 | 75 | - obexpush.c \ | ||
328 | 76 | - obexpush.h \ | ||
329 | 77 | $(MARSHALFILES) | ||
330 | 78 | |||
331 | 79 | gnome_user_share_LDADD = \ | ||
332 | 80 | @@ -48,6 +45,15 @@ | ||
333 | 81 | $(SELINUX_LIBS) \ | ||
334 | 82 | $(X_LIBS) $(X_PRE_LIBS) -lX11 $(X_EXTRA_LIBS) | ||
335 | 83 | |||
336 | 84 | +if USE_BLUETOOTH | ||
337 | 85 | +gnome_user_share_SOURCES += \ | ||
338 | 86 | + obexftp.c \ | ||
339 | 87 | + obexftp.h \ | ||
340 | 88 | + obexpush.c \ | ||
341 | 89 | + obexpush.h | ||
342 | 90 | +gnome_user_share_LDADD += $(BLUETOOTH_LIBS) | ||
343 | 91 | +endif | ||
344 | 92 | + | ||
345 | 93 | nautilus_extensiondir = $(NAUTILUSDIR) | ||
346 | 94 | nautilus_extension_LTLIBRARIES = libnautilus-share-extension.la | ||
347 | 95 | |||
348 | 96 | @@ -60,6 +66,10 @@ | ||
349 | 97 | libnautilus_share_extension_la_LIBADD = libuser-share-common.la $(EXTENSION_LIBS) | ||
350 | 98 | libnautilus_share_extension_la_LDFLAGS = -avoid-version -module -no-undefined | ||
351 | 99 | |||
352 | 100 | +if USE_BLUETOOTH | ||
353 | 101 | +libnautilus_share_extension_la_LIBADD += $(BLUETOOTH_LIBS) | ||
354 | 102 | +endif | ||
355 | 103 | + | ||
356 | 104 | EXTRA_DIST = marshal.list | ||
357 | 105 | |||
358 | 106 | CLEANFILES = $(BUILT_SOURCES) | ||
359 | 107 | Index: gnome-user-share-3.8.3/src/share-extension.c | ||
360 | 108 | =================================================================== | ||
361 | 109 | --- gnome-user-share-3.8.3.orig/src/share-extension.c 2013-08-23 23:28:14.302349546 +0200 | ||
362 | 110 | +++ gnome-user-share-3.8.3/src/share-extension.c 2013-08-23 23:28:14.294349441 +0200 | ||
363 | 111 | @@ -28,10 +28,13 @@ | ||
364 | 112 | #include <glib/gi18n-lib.h> | ||
365 | 113 | #include <gio/gdesktopappinfo.h> | ||
366 | 114 | #include <gtk/gtk.h> | ||
367 | 115 | -#include <bluetooth-client.h> | ||
368 | 116 | #include <libnautilus-extension/nautilus-menu-provider.h> | ||
369 | 117 | #include <libnautilus-extension/nautilus-location-widget-provider.h> | ||
370 | 118 | |||
371 | 119 | +#ifdef HAVE_BLUETOOTH | ||
372 | 120 | +#include <bluetooth-client.h> | ||
373 | 121 | +#endif /* HAVE_BLUETOOTH */ | ||
374 | 122 | + | ||
375 | 123 | #include "nautilus-share-bar.h" | ||
376 | 124 | #include "user_share-common.h" | ||
377 | 125 | |||
378 | 126 | @@ -89,6 +92,7 @@ | ||
379 | 127 | launch_prefs_on_window (); | ||
380 | 128 | } | ||
381 | 129 | |||
382 | 130 | +#ifdef HAVE_BLUETOOTH | ||
383 | 131 | static void | ||
384 | 132 | downloads_bar_set_from_bluetooth_status (GtkWidget *bar) | ||
385 | 133 | { | ||
386 | 134 | @@ -109,6 +113,7 @@ | ||
387 | 135 | { | ||
388 | 136 | downloads_bar_set_from_bluetooth_status (bar); | ||
389 | 137 | } | ||
390 | 138 | +#endif /* HAVE_BLUETOOTH */ | ||
391 | 139 | |||
392 | 140 | static GtkWidget * | ||
393 | 141 | nautilus_user_share_get_location_widget (NautilusLocationWidgetProvider *iface, | ||
394 | 142 | @@ -151,8 +156,13 @@ | ||
395 | 143 | if (is_dir[0] != FALSE && is_dir[1] != FALSE) { | ||
396 | 144 | bar = nautilus_share_bar_new (_("May be used to share or receive files")); | ||
397 | 145 | } else if (is_dir[0] != FALSE) { | ||
398 | 146 | +#ifdef HAVE_BLUETOOTH | ||
399 | 147 | bar = nautilus_share_bar_new (_("May be shared over the network or Bluetooth")); | ||
400 | 148 | +#else | ||
401 | 149 | + bar = nautilus_share_bar_new (_("May be shared over the network")); | ||
402 | 150 | +#endif /* HAVE_BLUETOOTH */ | ||
403 | 151 | } else { | ||
404 | 152 | +#ifdef HAVE_BLUETOOTH | ||
405 | 153 | BluetoothClient *client; | ||
406 | 154 | |||
407 | 155 | bar = nautilus_share_bar_new (_("May be used to receive files over Bluetooth")); | ||
408 | 156 | @@ -162,6 +172,9 @@ | ||
409 | 157 | g_signal_connect (G_OBJECT (client), "notify::default-adapter-powered", | ||
410 | 158 | G_CALLBACK (default_adapter_powered_cb), bar); | ||
411 | 159 | downloads_bar_set_from_bluetooth_status (bar); | ||
412 | 160 | +#else | ||
413 | 161 | + return NULL; | ||
414 | 162 | +#endif /* HAVE_BLUETOOTH */ | ||
415 | 163 | } | ||
416 | 164 | |||
417 | 165 | g_signal_connect (bar, "response", | ||
418 | 166 | Index: gnome-user-share-3.8.3/src/user_share.c | ||
419 | 167 | =================================================================== | ||
420 | 168 | --- gnome-user-share-3.8.3.orig/src/user_share.c 2013-08-23 23:28:14.302349546 +0200 | ||
421 | 169 | +++ gnome-user-share-3.8.3/src/user_share.c 2013-08-23 23:29:50.479583807 +0200 | ||
422 | 170 | @@ -27,7 +27,6 @@ | ||
423 | 171 | #include <gtk/gtk.h> | ||
424 | 172 | #include <glib/gi18n.h> | ||
425 | 173 | #include <glib/gstdio.h> | ||
426 | 174 | -#include <bluetooth-client.h> | ||
427 | 175 | #include <gio/gio.h> | ||
428 | 176 | #include <X11/Xlib.h> | ||
429 | 177 | |||
430 | 178 | @@ -35,8 +34,13 @@ | ||
431 | 179 | #include "user_share-private.h" | ||
432 | 180 | #include "user_share-common.h" | ||
433 | 181 | #include "http.h" | ||
434 | 182 | + | ||
435 | 183 | +#ifdef HAVE_BLUETOOTH | ||
436 | 184 | +#include <bluetooth-client.h> | ||
437 | 185 | + | ||
438 | 186 | #include "obexftp.h" | ||
439 | 187 | #include "obexpush.h" | ||
440 | 188 | +#endif /* HAVE_BLUETOOTH */ | ||
441 | 189 | |||
442 | 190 | #include <stdarg.h> | ||
443 | 191 | #include <string.h> | ||
444 | 192 | @@ -53,6 +57,8 @@ | ||
445 | 193 | static GSettings *settings = NULL; | ||
446 | 194 | |||
447 | 195 | static guint disabled_timeout_tag = 0; | ||
448 | 196 | + | ||
449 | 197 | +#ifdef HAVE_BLUETOOTH | ||
450 | 198 | static GDBusProxy *session_proxy = NULL; | ||
451 | 199 | static gboolean has_console = TRUE; | ||
452 | 200 | |||
453 | 201 | @@ -182,6 +188,7 @@ | ||
454 | 202 | g_signal_connect (G_OBJECT (client), "notify::default-adapter-powered", | ||
455 | 203 | G_CALLBACK (default_adapter_changed), NULL); | ||
456 | 204 | } | ||
457 | 205 | +#endif /* HAVE_BLUETOOTH */ | ||
458 | 206 | |||
459 | 207 | static void | ||
460 | 208 | migrate_old_configuration (void) | ||
461 | 209 | @@ -213,9 +220,13 @@ | ||
462 | 210 | { | ||
463 | 211 | http_down (); | ||
464 | 212 | |||
465 | 213 | +#ifdef HAVE_BLUETOOTH | ||
466 | 214 | if (g_settings_get_boolean (settings, FILE_SHARING_BLUETOOTH_ENABLED) == FALSE && | ||
467 | 215 | g_settings_get_boolean (settings, FILE_SHARING_BLUETOOTH_OBEXPUSH_ENABLED) == FALSE) | ||
468 | 216 | _exit (0); | ||
469 | 217 | +#else | ||
470 | 218 | + _exit (0); | ||
471 | 219 | +#endif /* HAVE_BLUETOOTH */ | ||
472 | 220 | return FALSE; | ||
473 | 221 | } | ||
474 | 222 | |||
475 | 223 | @@ -243,6 +254,7 @@ | ||
476 | 224 | } | ||
477 | 225 | } | ||
478 | 226 | |||
479 | 227 | +#ifdef HAVE_BLUETOOTH | ||
480 | 228 | static void | ||
481 | 229 | file_sharing_bluetooth_allow_write_changed (void) | ||
482 | 230 | { | ||
483 | 231 | @@ -309,6 +321,7 @@ | ||
484 | 232 | { | ||
485 | 233 | obexpush_set_notify (g_settings_get_boolean (settings, FILE_SHARING_BLUETOOTH_OBEXPUSH_NOTIFY)); | ||
486 | 234 | } | ||
487 | 235 | +#endif /* HAVE_BLUETOOTH */ | ||
488 | 236 | |||
489 | 237 | static void | ||
490 | 238 | setttings_changed (GSettings *settings, | ||
491 | 239 | @@ -321,6 +334,7 @@ | ||
492 | 240 | else if (g_strcmp0 (FILE_SHARING_REQUIRE_PASSWORD, path) == 0) | ||
493 | 241 | require_password_changed (); | ||
494 | 242 | |||
495 | 243 | +#ifdef HAVE_BLUETOOTH | ||
496 | 244 | else if (g_strcmp0 (FILE_SHARING_BLUETOOTH_ENABLED, path) == 0) | ||
497 | 245 | file_sharing_bluetooth_enabled_changed (); | ||
498 | 246 | |||
499 | 247 | @@ -338,14 +352,17 @@ | ||
500 | 248 | |||
501 | 249 | else if (g_strcmp0 (FILE_SHARING_BLUETOOTH_OBEXPUSH_NOTIFY, path) == 0) | ||
502 | 250 | file_sharing_bluetooth_obexpush_notify_changed (); | ||
503 | 251 | +#endif /* HAVE_BLUETOOTH */ | ||
504 | 252 | } | ||
505 | 253 | |||
506 | 254 | static void | ||
507 | 255 | cleanup_handler (int sig) | ||
508 | 256 | { | ||
509 | 257 | http_down (); | ||
510 | 258 | +#ifdef HAVE_BLUETOOTH | ||
511 | 259 | obexftp_down (); | ||
512 | 260 | obexpush_down (); | ||
513 | 261 | +#endif /* HAVE_BLUETOOTH */ | ||
514 | 262 | _exit (2); | ||
515 | 263 | } | ||
516 | 264 | |||
517 | 265 | @@ -353,7 +370,9 @@ | ||
518 | 266 | x_io_error_handler (Display *xdisplay) | ||
519 | 267 | { | ||
520 | 268 | http_down (); | ||
521 | 269 | +#ifdef HAVE_BLUETOOTH | ||
522 | 270 | obexftp_down (); | ||
523 | 271 | +#endif /* HAVE_BLUETOOTH */ | ||
524 | 272 | _exit (2); | ||
525 | 273 | } | ||
526 | 274 | |||
527 | 275 | @@ -408,10 +427,14 @@ | ||
528 | 276 | |||
529 | 277 | migrate_old_configuration (); | ||
530 | 278 | |||
531 | 279 | +#ifdef HAVE_BLUETOOTH | ||
532 | 280 | settings = g_settings_new (GNOME_USER_SHARE_SCHEMAS); | ||
533 | 281 | if (g_settings_get_boolean (settings, FILE_SHARING_ENABLED) == FALSE && | ||
534 | 282 | g_settings_get_boolean (settings, FILE_SHARING_BLUETOOTH_ENABLED) == FALSE && | ||
535 | 283 | g_settings_get_boolean (settings, FILE_SHARING_BLUETOOTH_OBEXPUSH_ENABLED) == FALSE) | ||
536 | 284 | +#else | ||
537 | 285 | + if (g_settings_get_boolean (settings, FILE_SHARING_ENABLED) == FALSE) | ||
538 | 286 | +#endif /* HAVE_BLUETOOTH */ | ||
539 | 287 | return 1; | ||
540 | 288 | |||
541 | 289 | x_fd = ConnectionNumber (xdisplay); | ||
542 | 290 | @@ -419,22 +442,28 @@ | ||
543 | 291 | |||
544 | 292 | if (http_init () == FALSE) | ||
545 | 293 | return 1; | ||
546 | 294 | +#ifdef HAVE_BLUETOOTH | ||
547 | 295 | if (obexftp_init () == FALSE) | ||
548 | 296 | return 1; | ||
549 | 297 | if (obexpush_init () == FALSE) | ||
550 | 298 | return 1; | ||
551 | 299 | +#endif /* HAVE_BLUETOOTH */ | ||
552 | 300 | |||
553 | 301 | g_signal_connect (settings, "changed", G_CALLBACK(setttings_changed), NULL); | ||
554 | 302 | |||
555 | 303 | +#ifdef HAVE_BLUETOOTH | ||
556 | 304 | bluez_init (); | ||
557 | 305 | session_init (); | ||
558 | 306 | +#endif /* HAVE_BLUETOOTH */ | ||
559 | 307 | |||
560 | 308 | /* Initial setting */ | ||
561 | 309 | file_sharing_enabled_changed (); | ||
562 | 310 | +#ifdef HAVE_BLUETOOTH | ||
563 | 311 | file_sharing_bluetooth_enabled_changed (); | ||
564 | 312 | file_sharing_bluetooth_obexpush_accept_files_changed (); | ||
565 | 313 | file_sharing_bluetooth_obexpush_notify_changed (); | ||
566 | 314 | file_sharing_bluetooth_obexpush_enabled_changed (); | ||
567 | 315 | +#endif /* HAVE_BLUETOOTH */ | ||
568 | 316 | |||
569 | 317 | gtk_main (); | ||
570 | 318 | g_object_unref (settings); | ||
571 | 0 | 319 | ||
572 | === modified file 'debian/patches/04_webdav_optional.patch' | |||
573 | --- debian/patches/04_webdav_optional.patch 2012-08-25 04:58:51 +0000 | |||
574 | +++ debian/patches/04_webdav_optional.patch 2015-08-02 08:27:18 +0000 | |||
575 | @@ -94,140 +94,4 @@ | |||
576 | 94 | static const char *known_httpd_modules_locations [] = { | 94 | static const char *known_httpd_modules_locations [] = { |
577 | 95 | HTTPD_MODULES_PATH, | 95 | HTTPD_MODULES_PATH, |
578 | 96 | "/etc/httpd/modules", | 96 | "/etc/httpd/modules", |
716 | 97 | Index: gnome-user-share-3.0.3/data/file-share-properties.ui | 97 | |
580 | 98 | =================================================================== | ||
581 | 99 | --- gnome-user-share-3.0.3.orig/data/file-share-properties.ui 2012-08-24 23:25:14.000000000 +1200 | ||
582 | 100 | +++ gnome-user-share-3.0.3/data/file-share-properties.ui 2012-08-25 16:54:53.053074352 +1200 | ||
583 | 101 | @@ -43,7 +43,7 @@ | ||
584 | 102 | <child> | ||
585 | 103 | <object class="GtkTable" id="table2"> | ||
586 | 104 | <property name="visible">True</property> | ||
587 | 105 | - <property name="n_rows">3</property> | ||
588 | 106 | + <property name="n_rows">4</property> | ||
589 | 107 | <property name="n_columns">2</property> | ||
590 | 108 | <property name="column_spacing">12</property> | ||
591 | 109 | <property name="row_spacing">6</property> | ||
592 | 110 | @@ -54,8 +54,8 @@ | ||
593 | 111 | <packing> | ||
594 | 112 | <property name="left_attach">1</property> | ||
595 | 113 | <property name="right_attach">2</property> | ||
596 | 114 | - <property name="top_attach">1</property> | ||
597 | 115 | - <property name="bottom_attach">2</property> | ||
598 | 116 | + <property name="top_attach">2</property> | ||
599 | 117 | + <property name="bottom_attach">3</property> | ||
600 | 118 | <property name="y_options">GTK_FILL</property> | ||
601 | 119 | </packing> | ||
602 | 120 | </child> | ||
603 | 121 | @@ -68,8 +68,8 @@ | ||
604 | 122 | <packing> | ||
605 | 123 | <property name="left_attach">1</property> | ||
606 | 124 | <property name="right_attach">2</property> | ||
607 | 125 | - <property name="top_attach">2</property> | ||
608 | 126 | - <property name="bottom_attach">3</property> | ||
609 | 127 | + <property name="top_attach">3</property> | ||
610 | 128 | + <property name="bottom_attach">4</property> | ||
611 | 129 | <property name="y_options"></property> | ||
612 | 130 | </packing> | ||
613 | 131 | </child> | ||
614 | 132 | @@ -83,6 +83,8 @@ | ||
615 | 133 | <property name="draw_indicator">True</property> | ||
616 | 134 | </object> | ||
617 | 135 | <packing> | ||
618 | 136 | + <property name="top_attach">1</property> | ||
619 | 137 | + <property name="bottom_attach">2</property> | ||
620 | 138 | <property name="right_attach">2</property> | ||
621 | 139 | <property name="x_options">GTK_FILL</property> | ||
622 | 140 | <property name="y_options"></property> | ||
623 | 141 | @@ -97,8 +99,8 @@ | ||
624 | 142 | <property name="mnemonic_widget">password_entry</property> | ||
625 | 143 | </object> | ||
626 | 144 | <packing> | ||
627 | 145 | - <property name="top_attach">2</property> | ||
628 | 146 | - <property name="bottom_attach">3</property> | ||
629 | 147 | + <property name="top_attach">3</property> | ||
630 | 148 | + <property name="bottom_attach">4</property> | ||
631 | 149 | <property name="x_options">GTK_SHRINK | GTK_FILL</property> | ||
632 | 150 | <property name="y_options"></property> | ||
633 | 151 | </packing> | ||
634 | 152 | @@ -111,8 +113,19 @@ | ||
635 | 153 | <property name="mnemonic_widget">password_combo</property> | ||
636 | 154 | </object> | ||
637 | 155 | <packing> | ||
638 | 156 | - <property name="top_attach">1</property> | ||
639 | 157 | - <property name="bottom_attach">2</property> | ||
640 | 158 | + <property name="top_attach">2</property> | ||
641 | 159 | + <property name="bottom_attach">3</property> | ||
642 | 160 | + <property name="x_options">GTK_SHRINK | GTK_FILL</property> | ||
643 | 161 | + <property name="y_options"></property> | ||
644 | 162 | + </packing> | ||
645 | 163 | + </child> | ||
646 | 164 | + <child> | ||
647 | 165 | + <object class="GtkLabel" id="webdav_info"> | ||
648 | 166 | + <property name="visible">False</property> | ||
649 | 167 | + <property name="wrap">True</property> | ||
650 | 168 | + </object> | ||
651 | 169 | + <packing> | ||
652 | 170 | + <property name="right_attach">2</property> | ||
653 | 171 | <property name="x_options">GTK_SHRINK | GTK_FILL</property> | ||
654 | 172 | <property name="y_options"></property> | ||
655 | 173 | </packing> | ||
656 | 174 | Index: gnome-user-share-3.0.3/src/file-share-properties.c | ||
657 | 175 | =================================================================== | ||
658 | 176 | --- gnome-user-share-3.0.3.orig/src/file-share-properties.c 2012-08-25 03:25:59.000000000 +1200 | ||
659 | 177 | +++ gnome-user-share-3.0.3/src/file-share-properties.c 2012-08-25 16:54:53.053074352 +1200 | ||
660 | 178 | @@ -85,12 +85,16 @@ | ||
661 | 179 | { | ||
662 | 180 | gboolean enabled, bluetooth_enabled, bluetooth_write_enabled, require_pairing_enabled; | ||
663 | 181 | gboolean bluetooth_obexpush_enabled, bluetooth_obexpush_notify; | ||
664 | 182 | + gboolean have_share; | ||
665 | 183 | char *str; | ||
666 | 184 | PasswordSetting password_setting; | ||
667 | 185 | AcceptSetting accept_setting; | ||
668 | 186 | GtkWidget *check; | ||
669 | 187 | GtkWidget *password_combo; | ||
670 | 188 | GtkWidget *password_entry; | ||
671 | 189 | + GtkWidget *password_combo_label; | ||
672 | 190 | + GtkWidget *password_entry_label; | ||
673 | 191 | + GtkWidget *webdav_info; | ||
674 | 192 | GtkWidget *bluetooth_check; | ||
675 | 193 | GtkWidget *allow_write_bluetooth_check; | ||
676 | 194 | GtkWidget *require_pairing_check; | ||
677 | 195 | @@ -119,9 +123,16 @@ | ||
678 | 196 | accept_setting = accept_setting_from_string (str); | ||
679 | 197 | g_free (str); | ||
680 | 198 | |||
681 | 199 | + str = get_httpd_program (); | ||
682 | 200 | + have_share = (str ? TRUE : FALSE); | ||
683 | 201 | + g_free (str); | ||
684 | 202 | + | ||
685 | 203 | check = GTK_WIDGET (gtk_builder_get_object (builder, "enable_check")); | ||
686 | 204 | password_combo = GTK_WIDGET (gtk_builder_get_object (builder, "password_combo")); | ||
687 | 205 | password_entry = GTK_WIDGET (gtk_builder_get_object (builder, "password_entry")); | ||
688 | 206 | + password_combo_label = GTK_WIDGET (gtk_builder_get_object (builder, "label5")); | ||
689 | 207 | + password_entry_label = GTK_WIDGET (gtk_builder_get_object (builder, "label4")); | ||
690 | 208 | + webdav_info = GTK_WIDGET (gtk_builder_get_object (builder, "webdav_info")); | ||
691 | 209 | bluetooth_check = GTK_WIDGET (gtk_builder_get_object (builder, "enable_bluetooth_check")); | ||
692 | 210 | allow_write_bluetooth_check = GTK_WIDGET (gtk_builder_get_object (builder, "allow_write_bluetooth_check")); | ||
693 | 211 | require_pairing_check = GTK_WIDGET (gtk_builder_get_object (builder, "require_pairing_check")); | ||
694 | 212 | @@ -131,8 +142,19 @@ | ||
695 | 213 | |||
696 | 214 | /* Network */ | ||
697 | 215 | gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), enabled); | ||
698 | 216 | - gtk_widget_set_sensitive (password_combo, enabled); | ||
699 | 217 | - gtk_widget_set_sensitive (password_entry, enabled && password_setting != PASSWORD_NEVER); | ||
700 | 218 | + gtk_widget_set_sensitive (check, have_share); | ||
701 | 219 | + gtk_widget_set_sensitive (password_combo_label, have_share); | ||
702 | 220 | + gtk_widget_set_sensitive (password_entry_label, have_share); | ||
703 | 221 | + if (have_share) { | ||
704 | 222 | + gtk_widget_hide (webdav_info); | ||
705 | 223 | + } else { | ||
706 | 224 | + str = g_strdup_printf ("<i>%s</i>", _("This feature cannot be enabled because the required packages are not installed on your system")); | ||
707 | 225 | + gtk_label_set_markup (GTK_LABEL (webdav_info), str); | ||
708 | 226 | + gtk_widget_show (webdav_info); | ||
709 | 227 | + g_free (str); | ||
710 | 228 | + } | ||
711 | 229 | + gtk_widget_set_sensitive (password_combo, enabled && have_share); | ||
712 | 230 | + gtk_widget_set_sensitive (password_entry, enabled && password_setting != PASSWORD_NEVER && have_share); | ||
713 | 231 | |||
714 | 232 | gtk_combo_box_set_active (GTK_COMBO_BOX (password_combo), | ||
715 | 233 | password_setting); | ||
717 | 234 | 98 | ||
718 | === modified file 'debian/patches/05_autostart_delay.patch' | |||
719 | --- debian/patches/05_autostart_delay.patch 2011-03-11 04:39:02 +0000 | |||
720 | +++ debian/patches/05_autostart_delay.patch 2015-08-02 08:27:18 +0000 | |||
721 | @@ -1,10 +1,28 @@ | |||
722 | 1 | From: Chris Coulson <chrisccoulson@ubuntu.com> | 1 | From: Chris Coulson <chrisccoulson@ubuntu.com> |
723 | 2 | Description: Add X-GNOME-Autostart-Delay key to autostart file to delay starting by 15 seconds. | 2 | Description: Add X-GNOME-Autostart-Delay key to autostart file to delay starting by 15 seconds. |
724 | 3 | 3 | ||
729 | 4 | Index: gnome-user-share-2.28.2/data/gnome-user-share.desktop.in.in | 4 | Index: gnome-user-share-2.28.2/data/gnome-user-share-obexftp.desktop.in.in |
730 | 5 | =================================================================== | 5 | =================================================================== |
731 | 6 | --- gnome-user-share-2.28.2.orig/data/gnome-user-share.desktop.in.in 2010-02-18 00:55:06.700536092 +0000 | 6 | --- gnome-user-share-2.28.2.orig/data/gnome-user-share-obexftp.desktop.in.in 2010-02-18 00:55:06.700536092 +0000 |
732 | 7 | +++ gnome-user-share-2.28.2/data/gnome-user-share.desktop.in.in 2010-02-18 00:55:53.930513505 +0000 | 7 | +++ gnome-user-share-2.28.2/data/gnome-user-share-obexftp.desktop.in.in 2010-02-18 00:55:53.930513505 +0000 |
733 | 8 | @@ -7,3 +7,4 @@ | ||
734 | 9 | Type=Application | ||
735 | 10 | Categories= | ||
736 | 11 | OnlyShowIn=GNOME; | ||
737 | 12 | +X-GNOME-Autostart-Delay=15 | ||
738 | 13 | Index: gnome-user-share-2.28.2/data/gnome-user-share-obexpush.desktop.in.in | ||
739 | 14 | =================================================================== | ||
740 | 15 | --- gnome-user-share-2.28.2.orig/data/gnome-user-share-obexpush.desktop.in.in 2010-02-18 00:55:06.700536092 +0000 | ||
741 | 16 | +++ gnome-user-share-2.28.2/data/gnome-user-share-obexpush.desktop.in.in 2010-02-18 00:55:53.930513505 +0000 | ||
742 | 17 | @@ -7,3 +7,4 @@ | ||
743 | 18 | Type=Application | ||
744 | 19 | Categories= | ||
745 | 20 | OnlyShowIn=GNOME; | ||
746 | 21 | +X-GNOME-Autostart-Delay=15 | ||
747 | 22 | Index: gnome-user-share-2.28.2/data/gnome-user-share-webdav.desktop.in.in | ||
748 | 23 | =================================================================== | ||
749 | 24 | --- gnome-user-share-2.28.2.orig/data/gnome-user-share-webdav.desktop.in.in 2010-02-18 00:55:06.700536092 +0000 | ||
750 | 25 | +++ gnome-user-share-2.28.2/data/gnome-user-share-webdav.desktop.in.in 2010-02-18 00:55:53.930513505 +0000 | ||
751 | 8 | @@ -7,3 +7,4 @@ | 26 | @@ -7,3 +7,4 @@ |
752 | 9 | Type=Application | 27 | Type=Application |
753 | 10 | Categories= | 28 | Categories= |
754 | 11 | 29 | ||
755 | === modified file 'debian/patches/06_nodisplay_autostart.patch' | |||
756 | --- debian/patches/06_nodisplay_autostart.patch 2011-07-01 11:37:27 +0000 | |||
757 | +++ debian/patches/06_nodisplay_autostart.patch 2015-08-02 08:27:18 +0000 | |||
758 | @@ -3,11 +3,29 @@ | |||
759 | 3 | Bug-Ubuntu: https://launchpad.net/bugs/803917 | 3 | Bug-Ubuntu: https://launchpad.net/bugs/803917 |
760 | 4 | Forwarded: not-needed | 4 | Forwarded: not-needed |
761 | 5 | 5 | ||
767 | 6 | Index: gnome-user-share-3.0.0/data/gnome-user-share.desktop.in.in | 6 | --- |
768 | 7 | =================================================================== | 7 | data/gnome-user-share-obexftp.desktop.in.in | 1 + |
769 | 8 | --- gnome-user-share-3.0.0.orig/data/gnome-user-share.desktop.in.in 2011-07-01 11:32:13.353773779 +0100 | 8 | data/gnome-user-share-obexpush.desktop.in.in | 1 + |
770 | 9 | +++ gnome-user-share-3.0.0/data/gnome-user-share.desktop.in.in 2011-07-01 11:32:35.057774009 +0100 | 9 | data/gnome-user-share-webdav.desktop.in.in | 1 + |
771 | 10 | @@ -8,3 +8,4 @@ | 10 | 3 files changed, 3 insertions(+) |
772 | 11 | |||
773 | 12 | --- a/data/gnome-user-share-obexftp.desktop.in.in | ||
774 | 13 | +++ b/data/gnome-user-share-obexftp.desktop.in.in | ||
775 | 14 | @@ -10,3 +10,4 @@ Type=Application | ||
776 | 15 | Categories= | ||
777 | 16 | OnlyShowIn=GNOME; | ||
778 | 17 | X-GNOME-Autostart-Delay=15 | ||
779 | 18 | +NoDisplay=true | ||
780 | 19 | --- a/data/gnome-user-share-obexpush.desktop.in.in | ||
781 | 20 | +++ b/data/gnome-user-share-obexpush.desktop.in.in | ||
782 | 21 | @@ -10,3 +10,4 @@ Type=Application | ||
783 | 22 | Categories= | ||
784 | 23 | OnlyShowIn=GNOME; | ||
785 | 24 | X-GNOME-Autostart-Delay=15 | ||
786 | 25 | +NoDisplay=true | ||
787 | 26 | --- a/data/gnome-user-share-webdav.desktop.in.in | ||
788 | 27 | +++ b/data/gnome-user-share-webdav.desktop.in.in | ||
789 | 28 | @@ -10,3 +10,4 @@ Type=Application | ||
790 | 11 | Categories= | 29 | Categories= |
791 | 12 | OnlyShowIn=GNOME; | 30 | OnlyShowIn=GNOME; |
792 | 13 | X-GNOME-Autostart-Delay=15 | 31 | X-GNOME-Autostart-Delay=15 |
793 | 14 | 32 | ||
794 | === modified file 'debian/patches/07_onlyshowin_unity.patch' | |||
795 | --- debian/patches/07_onlyshowin_unity.patch 2011-07-01 11:37:27 +0000 | |||
796 | +++ debian/patches/07_onlyshowin_unity.patch 2015-08-02 08:27:18 +0000 | |||
797 | @@ -3,24 +3,35 @@ | |||
798 | 3 | Bug-Ubuntu: https://launchpad.net/bugs/803519 | 3 | Bug-Ubuntu: https://launchpad.net/bugs/803519 |
799 | 4 | Bug: https://bugzilla.gnome.org/show_bug.cgi?id=653811 | 4 | Bug: https://bugzilla.gnome.org/show_bug.cgi?id=653811 |
800 | 5 | 5 | ||
819 | 6 | Index: gnome-user-share-3.0.0/data/gnome-user-share-properties.desktop.in | 6 | --- |
820 | 7 | =================================================================== | 7 | data/gnome-user-share-obexftp.desktop.in.in | 2 +- |
821 | 8 | --- gnome-user-share-3.0.0.orig/data/gnome-user-share-properties.desktop.in 2011-07-01 12:22:32.833805737 +0100 | 8 | data/gnome-user-share-obexpush.desktop.in.in | 2 +- |
822 | 9 | +++ gnome-user-share-3.0.0/data/gnome-user-share-properties.desktop.in 2011-07-01 12:22:42.525805840 +0100 | 9 | data/gnome-user-share-webdav.desktop.in.in | 2 +- |
823 | 10 | @@ -7,7 +7,7 @@ | 10 | 3 files changed, 3 insertions(+), 3 deletions(-) |
824 | 11 | Terminal=false | 11 | |
825 | 12 | Type=Application | 12 | --- a/data/gnome-user-share-obexftp.desktop.in.in |
826 | 13 | Categories=GNOME;Settings;X-GNOME-NetworkSettings; | 13 | +++ b/data/gnome-user-share-obexftp.desktop.in.in |
827 | 14 | -OnlyShowIn=GNOME; | 14 | @@ -8,6 +8,6 @@ Exec=@installdir@/gnome-user-share |
828 | 15 | +OnlyShowIn=GNOME;Unity; | 15 | Terminal=false |
829 | 16 | X-GNOME-Bugzilla-Bugzilla=GNOME | 16 | Type=Application |
830 | 17 | X-GNOME-Bugzilla-Product=gnome-user-share | 17 | Categories= |
831 | 18 | X-GNOME-Bugzilla-Component=general | 18 | -OnlyShowIn=GNOME; |
832 | 19 | Index: gnome-user-share-3.0.0/data/gnome-user-share.desktop.in.in | 19 | +OnlyShowIn=GNOME;Unity; |
833 | 20 | =================================================================== | 20 | X-GNOME-Autostart-Delay=15 |
834 | 21 | --- gnome-user-share-3.0.0.orig/data/gnome-user-share.desktop.in.in 2011-07-01 12:22:32.801805737 +0100 | 21 | NoDisplay=true |
835 | 22 | +++ gnome-user-share-3.0.0/data/gnome-user-share.desktop.in.in 2011-07-01 12:22:38.413805796 +0100 | 22 | --- a/data/gnome-user-share-obexpush.desktop.in.in |
836 | 23 | @@ -6,6 +6,6 @@ | 23 | +++ b/data/gnome-user-share-obexpush.desktop.in.in |
837 | 24 | @@ -8,6 +8,6 @@ Exec=@installdir@/gnome-user-share | ||
838 | 25 | Terminal=false | ||
839 | 26 | Type=Application | ||
840 | 27 | Categories= | ||
841 | 28 | -OnlyShowIn=GNOME; | ||
842 | 29 | +OnlyShowIn=GNOME;Unity; | ||
843 | 30 | X-GNOME-Autostart-Delay=15 | ||
844 | 31 | NoDisplay=true | ||
845 | 32 | --- a/data/gnome-user-share-webdav.desktop.in.in | ||
846 | 33 | +++ b/data/gnome-user-share-webdav.desktop.in.in | ||
847 | 34 | @@ -8,6 +8,6 @@ Exec=@installdir@/gnome-user-share | ||
848 | 24 | Terminal=false | 35 | Terminal=false |
849 | 25 | Type=Application | 36 | Type=Application |
850 | 26 | Categories= | 37 | Categories= |
851 | 27 | 38 | ||
852 | === added file 'debian/patches/10_apache_2.4.patch' | |||
853 | --- debian/patches/10_apache_2.4.patch 1970-01-01 00:00:00 +0000 | |||
854 | +++ debian/patches/10_apache_2.4.patch 2015-08-02 08:27:18 +0000 | |||
855 | @@ -0,0 +1,14 @@ | |||
856 | 1 | Author: Emilio Pozuelo Monfort <pochu@debian.org> | ||
857 | 2 | Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=669729 | ||
858 | 3 | |||
859 | 4 | --- a/data/dav_user_2.4.conf | ||
860 | 5 | +++ b/data/dav_user_2.4.conf | ||
861 | 6 | @@ -8,7 +8,7 @@ | ||
862 | 7 | |||
863 | 8 | LimitXMLRequestBody 100000 | ||
864 | 9 | |||
865 | 10 | -LoadModule unixd_module ${HTTP_MODULES_PATH}/mod_unixd.so | ||
866 | 11 | +#LoadModule unixd_module ${HTTP_MODULES_PATH}/mod_unixd.so | ||
867 | 12 | LoadModule mpm_prefork_module ${HTTP_MODULES_PATH}/mod_mpm_prefork.so | ||
868 | 13 | LoadModule dav_module ${HTTP_MODULES_PATH}/mod_dav.so | ||
869 | 14 | LoadModule dav_fs_module ${HTTP_MODULES_PATH}/mod_dav_fs.so | ||
870 | 0 | 15 | ||
871 | === added file 'debian/patches/11_apache_noauth.patch' | |||
872 | --- debian/patches/11_apache_noauth.patch 1970-01-01 00:00:00 +0000 | |||
873 | +++ debian/patches/11_apache_noauth.patch 2015-08-02 08:27:18 +0000 | |||
874 | @@ -0,0 +1,41 @@ | |||
875 | 1 | Index: gnome-user-share-3.8.0/data/dav_user_2.4.conf | ||
876 | 2 | =================================================================== | ||
877 | 3 | --- gnome-user-share-3.8.0.orig/data/dav_user_2.4.conf 2013-06-02 17:55:50.539019664 +0200 | ||
878 | 4 | +++ gnome-user-share-3.8.0/data/dav_user_2.4.conf 2013-06-02 17:59:00.863950116 +0200 | ||
879 | 5 | @@ -30,20 +30,28 @@ DNSSDAutoRegisterUserDir Off | ||
880 | 6 | <Location /> | ||
881 | 7 | DAV On | ||
882 | 8 | |||
883 | 9 | - AuthType Digest | ||
884 | 10 | - AuthName "${GUS_LOGIN_LABEL}" | ||
885 | 11 | - AuthDigestDomain / | ||
886 | 12 | - | ||
887 | 13 | - AuthDigestProvider file | ||
888 | 14 | - AuthUserFile ${XDG_CONFIG_HOME}/user-share/passwd | ||
889 | 15 | - AuthGroupFile /usr/share/gnome-user-share/dav_groupfile | ||
890 | 16 | - | ||
891 | 17 | <IfDefine RequirePasswordAlways> | ||
892 | 18 | + AuthType Digest | ||
893 | 19 | + AuthName "${GUS_LOGIN_LABEL}" | ||
894 | 20 | + AuthDigestDomain / | ||
895 | 21 | + | ||
896 | 22 | + AuthDigestProvider file | ||
897 | 23 | + AuthUserFile ${XDG_CONFIG_HOME}/user-share/passwd | ||
898 | 24 | + AuthGroupFile /usr/share/gnome-user-share/dav_groupfile | ||
899 | 25 | + | ||
900 | 26 | Require user guest | ||
901 | 27 | Require group guest | ||
902 | 28 | </IfDefine> | ||
903 | 29 | |||
904 | 30 | <IfDefine RequirePasswordOnWrite> | ||
905 | 31 | + AuthType Digest | ||
906 | 32 | + AuthName "${GUS_LOGIN_LABEL}" | ||
907 | 33 | + AuthDigestDomain / | ||
908 | 34 | + | ||
909 | 35 | + AuthDigestProvider file | ||
910 | 36 | + AuthUserFile ${XDG_CONFIG_HOME}/user-share/passwd | ||
911 | 37 | + AuthGroupFile /usr/share/gnome-user-share/dav_groupfile | ||
912 | 38 | + | ||
913 | 39 | <LimitExcept GET OPTIONS PROPFIND> | ||
914 | 40 | Require user guest | ||
915 | 41 | Require group guest | ||
916 | 0 | 42 | ||
917 | === modified file 'debian/patches/series' | |||
918 | --- debian/patches/series 2011-07-01 11:37:27 +0000 | |||
919 | +++ debian/patches/series 2015-08-02 08:27:18 +0000 | |||
920 | @@ -4,3 +4,5 @@ | |||
921 | 4 | 05_autostart_delay.patch | 4 | 05_autostart_delay.patch |
922 | 5 | 06_nodisplay_autostart.patch | 5 | 06_nodisplay_autostart.patch |
923 | 6 | 07_onlyshowin_unity.patch | 6 | 07_onlyshowin_unity.patch |
924 | 7 | 10_apache_2.4.patch | ||
925 | 8 | 11_apache_noauth.patch | ||
926 | 7 | 9 | ||
927 | === modified file 'debian/rules' | |||
928 | --- debian/rules 2011-06-07 10:38:56 +0000 | |||
929 | +++ debian/rules 2015-08-02 08:27:18 +0000 | |||
930 | @@ -8,12 +8,12 @@ | |||
931 | 8 | 8 | ||
932 | 9 | LDFLAGS+=-Wl,-z,defs -Wl,-O1 -Wl,--as-needed | 9 | LDFLAGS+=-Wl,-z,defs -Wl,-O1 -Wl,--as-needed |
933 | 10 | DEB_DH_MAKESHLIBS_ARGS += --exclude=libnautilus-share-extension.so | 10 | DEB_DH_MAKESHLIBS_ARGS += --exclude=libnautilus-share-extension.so |
935 | 11 | DEB_CONFIGURE_EXTRA_FLAGS += --disable-scrollkeeper \ | 11 | DEB_CONFIGURE_EXTRA_FLAGS += \ |
936 | 12 | --with-httpd=/usr/lib/apache2/mpm-worker/apache2 \ | 12 | --with-httpd=/usr/lib/apache2/mpm-worker/apache2 \ |
937 | 13 | --with-modules-path=/usr/lib/apache2/modules/ | 13 | --with-modules-path=/usr/lib/apache2/modules/ |
938 | 14 | 14 | ||
939 | 15 | install/gnome-user-share:: | 15 | install/gnome-user-share:: |
940 | 16 | rm -f debian/gnome-user-share/usr/share/gnome-user-share/dav_user_2.0.conf | 16 | rm -f debian/gnome-user-share/usr/share/gnome-user-share/dav_user_2.0.conf |
941 | 17 | rmdir -p --ignore-fail-on-non-empty debian/gnome-user-share/etc/xdg | ||
942 | 17 | find debian/gnome-user-share -name "*.la" -delete | 18 | find debian/gnome-user-share -name "*.la" -delete |
943 | 18 | rm -rf debian/gnome-user-share/usr/lib/nautilus | 19 | rm -rf debian/gnome-user-share/usr/lib/nautilus |
944 | 19 |
Debian seems to have 3.14.2-1 now. Do you have a link to the 3.8.0-2 source package? Do you know what the state is of having bluez5 in main?