--- owncloud-8.0.16.orig/debian/owncloud-config-apache.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-config-apache.lintian-overrides
@@ -0,0 +1,4 @@
+owncloud-config-apache: dir-or-file-in-var-www
+# Usually, this is because debhelper (dh_installdeb, compat level 3 or higher)
+# will add any files in your package located in /etc automatically 
+owncloud-config-apache: duplicate-conffile
--- owncloud-8.0.16.orig/debian/changelog
+++ owncloud-8.0.16/debian/changelog
@@ -0,0 +1,593 @@
+owncloud (8.0.16-70.1) stable; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Tue, 08 Nov 2016 14:13:06 +0000
+
+owncloud (8.0.16-1) stable; urgency=low
+
+  * Update to version 8.0.16
+
+ -- Cristian Rodríguez <crrodriguez@opensuse.org>  Tue, 08 Nov 2016 11:05:30 -0300
+
+owncloud (8.0.16~rc2-1) stable; urgency=low
+
+  * Update to version 8.0.16~rc2
+
+ -- Cristian Rodríguez <crrodriguez@opensuse.org>  Mon, 07 Nov 2016 14:27:06 -0300
+
+owncloud (8.0.16~rc1-1) stable; urgency=low
+
+  * Update to version 8.0.16~rc1
+
+ -- Cristian Rodríguez <crrodriguez@opensuse.org>  Fri, 21 Oct 2016 00:51:43 +0000
+
+owncloud (8.0.15-1) stable; urgency=low
+
+  * Update to version 8.0.15
+
+ -- Juergen Weigert <jnweiger@gmail.com>  Mon, 19 Sep 2016 19:47:05 +0200
+
+owncloud (8.0.15-1) stable; urgency=low
+
+  * Update to version 8.0.15
+
+ -- Cristian Rodríguez <crrodriguez@opensuse.org>  Mon, 19 Sep 2016 13:35:40 -0300
+
+owncloud (8.0.15~rc1-1) stable; urgency=low
+
+  * Update to version 8.0.15~rc1
+
+ -- Cristian Rodríguez <crrodriguez@opensuse.org>  Wed, 31 Aug 2016 01:31:44 -0300
+
+owncloud (8.1.10~rc1-1) stable; urgency=low
+
+  * Update to version 8.1.10~rc1
+
+ -- Cristian Rodríguez <crrodriguez@opensuse.org>  Mon, 22 Aug 2016 19:42:54 -0300
+
+owncloud (8.0.15~rc1-1) stable; urgency=low
+
+  * Update to version 8.0.15~rc1
+
+ -- Cristian Rodríguez <crrodriguez@opensuse.org>  Mon, 22 Aug 2016 19:37:22 -0300
+
+owncloud (8.0.14-1) stable; urgency=low
+
+  * Update to version 8.0.14
+
+ -- Juergen Weigert <jnweiger@gmail.com>  Tue, 19 Jul 2016 15:29:23 +0200
+
+owncloud (8.0.14~rc2-1) stable; urgency=low
+
+  * Update to version 8.0.14~rc2
+
+ -- Juergen Weigert <jnweiger@gmail.com>  Fri, 15 Jul 2016 17:58:26 +0200
+
+owncloud (8.0.14~rc1-2) stable; urgency=low
+
+  * added files_antivir
+
+ -- Jürgen Weigert <jw@owncloud.com>  Tue, 05 Jul 2016 18:24:02 +0200
+
+owncloud (8.0.14~rc1-1) stable; urgency=low
+
+  * Update to version 8.0.14~rc1
+
+ -- Juergen Weigert <jnweiger@gmail.com>  Tue, 05 Jul 2016 17:52:02 +0200
+
+owncloud (8.0.13-1) stable; urgency=low
+
+  * Update to version 8.0.13
+  * updated files_videoviewer
+
+ -- Juergen Weigert <jnweiger@gmail.com>  Fri, 13 May 2016 01:57:55 +0200
+
+owncloud (8.0.13~rc1-1) stable; urgency=low
+
+  * Update to version 8.0.13~rc1
+
+ -- Juergen Weigert <jnweiger@gmail.com>  Tue, 10 May 2016 12:11:46 +0200
+
+owncloud (8.0.12-1) stable; urgency=low
+
+  * Update to version 8.0.12
+
+ -- Juergen Weigert <jnweiger@gmail.com>  Tue, 03 May 2016 16:41:30 +0200
+
+owncloud (8.0.12~rc2-1) stable; urgency=low
+
+  * Update to version 8.0.12~rc2
+
+ -- Jürgen Weigert <jw@owncloud.com>  Mon, 02 May 2016 16:30:04 +0200
+
+owncloud (8.0.12~rc1-1) stable; urgency=low
+
+  * Update to version 8.0.12~rc1
+
+ -- Jürgen Weigert <jw@owncloud.com>  Wed, 27 Apr 2016 12:31:42 +0200
+
+owncloud (8.0.11-1) stable; urgency=low
+
+  * Update to version 8.0.11
+
+ -- Jürgen Weigert <jw@owncloud.com>  Tue, 08 Mar 2016 16:26:04 +0100
+
+owncloud (8.0.11~RC2-1) stable; urgency=low
+
+  * Update to version 8.0.11~RC2
+
+ -- Jürgen Weigert <jw@owncloud.com>  Sat, 05 Mar 2016 04:28:36 +0100
+
+owncloud (8.0.11~RC1-2) stable; urgency=low
+
+ * owncloud(8.0.11-0) stable; urgency=low
+ * Prevent 0 byte downloads when storage returns false - #19081
+ * Keep scroll position in user's page when sorting - #21634
+ * Always use an LDAP URL when connecting to LDAP - #21634
+ * Shares moving back to default "landing" dir - #12385
+ * PHPMailer address validation fix - 3rdparty/#253
+ * Keep files and folders of sharepoint in sync on iOS - enterprise/#1096
+ * isReadable new implementation - windows_network_drive/#302
+
+ -- Jürgen Weigert <jw@owncloud.com>  Fri, 04 Mar 2016 19:05:03 +0100
+
+owncloud (8.0.11~RC1-1) stable; urgency=low
+
+  * Update to version 8.0.11~RC1
+
+ -- Juergen Weigert <jw@owncloud.com>  Wed, 02 Mar 2016 12:01:46 +0100
+
+owncloud (8.0.10-1) stable; urgency=low
+
+  * Update to version 8.0.10
+
+ -- ownCloud Builder <jenkins@owncloud.com>  Mon, 21 Dec 2015 15:11:17 +0000
+
+owncloud (8.0.10~RC1-1) stable; urgency=low
+
+  * Update to version 8.0.10~RC1
+
+ -- ownCloud Builder <jenkins@owncloud.com>  Wed, 16 Dec 2015 14:34:02 +0000
+
+owncloud (8.0.9-1) stable; urgency=low
+
+  * Update to version 8.0.9
+
+ -- Juergen Weigert <jw@owncloud.com>  Fri, 30 Oct 2015 21:25:56 +0100
+
+owncloud (8.0.9~RC2-1) stable; urgency=low
+
+  * Update to version 8.0.9~RC2
+
+ -- Juergen Weigert <jw@owncloud.com>  Wed, 28 Oct 2015 17:48:06 +0100
+
+owncloud (8.0.9~RC1-2) stable; urgency=low
+
+  * leaving server in maintenance mode after upgrade, 
+    according to https://github.com/owncloud/core/pull/19661
+
+ -- Juergen Weigert <jw@owncloud.com>  Wed, 28 Oct 2015 16:57:05 +0100
+
+owncloud (8.0.9~RC1-1) stable; urgency=low
+
+  * Update to version 8.0.9~RC1
+
+ -- Juergen Weigert <jw@owncloud.com>  Thu, 22 Oct 2015 04:07:19 +0200
+
+owncloud (8.0.8-1) stable; urgency=low
+
+  * Update to version 8.0.8
+
+ -- Juergen Weigert <jw@owncloud.com>  Fri, 11 Sep 2015 11:44:42 +0200
+
+owncloud (8.0.7-1) stable; urgency=low
+
+  * Update to version 8.0.7
+
+ -- Juergen Weigert <jw@owncloud.com>  Wed, 02 Sep 2015 12:36:32 +0200
+
+owncloud (8.0.7~RC1-1) stable; urgency=low
+
+  * Update to version 8.0.7~RC1
+
+ -- Juergen Weigert <jw@owncloud.com>  Thu, 27 Aug 2015 13:39:38 +0200
+
+owncloud (8.0.6-3) stable; urgency=low
+
+  * Possible fix for https://github.com/owncloud/core/issues/18222
+
+ -- Juergen Weigert <jw@owncloud.com>  Tue, 25 Aug 2015 18:20:42 +0200
+
+owncloud (8.0.6-2) stable; urgency=low
+
+  * Make occ executable. https://github.com/owncloud/core/issues/18508
+  * Using DEBTRANSFORM-RELEASE to automate incrementing build release number.
+  * Removed traces of FHS=1
+  * backported *.spec from 8.1.1
+  * added dozens of lintian-overrides to allow files in apache root.
+  * Fix owncloud-server: php-script-but-no-phpX-cli-dep var/www/owncloud/occ
+
+ -- Juergen Weigert <jw@owncloud.com>  Tue, 25 Aug 2015 14:37:30 +0200
+
+owncloud (8.0.6-1) stable; urgency=low
+
+  * Update to version 8.0.6
+
+ -- Juergen Weigert <jw@owncloud.com>  Sat, 08 Aug 2015 14:32:44 +0200
+
+owncloud (8.0.6~RC1-2) stable; urgency=low
+
+  * Convince debian lintian to allow files in /var/www. That is where we live.
+
+ -- Jürgen Weigert <testy@linux-w510-jw.own.cloud>  Wed, 05 Aug 2015 19:30:26 +0200
+
+owncloud (8.0.6~RC1-1) stable; urgency=low
+
+  * Update to version 8.0.6~RC1
+
+ -- Juergen Weigert <jw@owncloud.com>  Mon, 03 Aug 2015 17:58:08 +0200
+
+owncloud (8.0.6~beta1-1) stable; urgency=low
+
+  * Update to version 8.0.6~beta1
+
+ -- Juergen Weigert <jw@owncloud.com>  Fri, 24 Jul 2015 16:42:30 +0200
+
+owncloud (8.0.5-2) stable; urgency=low
+
+  * fixed https://github.com/owncloud/core/issues/16189
+    removing owncloud.conf correctly
+
+ -- Jürgen Weigert <testy@linux-w510-jw.own.cloud>  Wed, 15 Jul 2015 19:51:57 +0200
+
+owncloud (8.0.5-1) stable; urgency=low
+
+  * Update to version 8.0.5
+
+ -- Juergen Weigert <jnweiger@gmail.com>  Fri, 03 Jul 2015 17:52:36 +0200
+
+owncloud (8.0.5~RC1-1) stable; urgency=low
+
+  * Update to version 8.0.5~RC1
+
+ -- Juergen Weigert <jw@owncloud.com>  Wed, 01 Jul 2015 02:09:25 +0200
+
+owncloud (8.0.5~Beta-1) stable; urgency=low
+
+  * Update 8.0.5~Beta
+
+ -- Jürgen Weigert <jw@owncloud.com>  Wed, 24 Jun 2015 11:52:26 +0200
+
+owncloud (8.0.4-1) stable; urgency=low
+
+  * fixed https://github.com/owncloud/core/issues/16949
+    Update issue with .htaccess conflict
+
+ -- Jürgen Weigert <jw@owncloud.com>  Tue, 16 Jun 2015 22:47:29 +0200
+
+owncloud (8.0.4-0) stable; urgency=low
+
+  * Version 8.0.4
+    1. Style and some images are lost in Internet Explorer 8#15413
+    2. Error templates URL #16617
+    3. User of remaining capacity limit at the time of the 0 byte, not be able to delete the files on the shared folder. #16187
+    4. Error logs from the files_external app (dropbox) even though the mount can be accessed normally #16679
+    5. [stable8] fix theme in IE8 and IE9 #16416
+    6. Menu 'New' keeps dropped down after changing of screen #16394
+    7. Overwrite readonly shared file over Webdav gives 500 instead of 403 #15026
+    8. occ option to update all third party apps without disable#16221
+    9. Do not automatically add "update" permission to shared mounts
+    10. large files upload correctly, but download truncated to 2GB #11270
+    11. Remove test file #173
+    12. File marked as shared but remote user cancelled the share #15589
+    13. use `dbtableprefix` for temp table and index names#14660
+    14. Enforce expiration date not working correctly if password is enforced #15611
+    15. Cannot overwrite file through s2s with versions enabled#16334
+    16. External Storage App: SMB CIFS / Using OC Login#15014
+    17. don't update identical values #15974
+    18. Deleted Folders on Client not showing in Trash #15009
+    19. external storage: WebDAV method works but ownCloud not #15262
+    20. Throw exception in initMountPoints if user manager returned null #13862
+    21. curl_setopt() expects parameter 2 to be long #16179
+    22. Owncloud shared link not working #16109
+    23. Sharing API malfunctions with maintenance mode #15436
+    24. [Sharing Link] Error code: 400 when select the Password protect and write the password #3204
+    25. PHP Problem: always_populate_raw_post_data #16614
+    26. OCP\AppFramework\Controller::buildResponse() indicates wrong return type #16011
+    27. require_once(): Failed opening required '/appinfo/remote.php #15299
+    28. Activity [downloaded] seems to be triggered more than once #14270
+    29. Handle HTTP connection errors in files_external as StorageNotAvailable #15524
+    30. propfind on webdav root results in a http 500 internal error when fc share is unavailable #15430
+    31. Filtering for mimetypes in filepicker dialog does not work#15526
+    32. Missing $_GET[mimetypes] Parameter in apps/files/ajax/list.php #11563
+    33. File in trash still appears as shared for recipient #15139
+    34. [provisioning_api] POSTing a request to make a user a subadmin of the same group fails #13709
+    35. Renaming back to the previous name a shared folder make the folder disapear #15340
+    36. [s2s] Files lose permissions when scanner retriggered through publicwebdav.php #15600
+    37. [nginx] Extending X-Accel-Redirect support #14125
+    38. Can't access re-shared folder on another owncloud server#15758
+
+ -- Klaas Freitag <freitag@owncloud.com>  Thu, 04 Jun 2015 12:05:27 +0200
+
+owncloud (8.0.4~RC2-1) stable; urgency=low
+
+  * Version 8.0.4~RC2
+    New isv:ownCloud:community:8.0:testing to keep isv:ownCloud:community:8.0 clean
+    And we also need versioned testing projects to not conflict with 8.1 testing.
+
+ -- Jürgen Weigert <jw@owncloud.com>  Tue, 02 Jun 2015 12:05:27 +0200
+
+owncloud (8.0.3-2) stable; urgency=low
+
+  * Fix core#16007
+    moving .htaccess from owncloud-config-apache to owncloud-server
+
+ -- Jürgen Weigert <jw@owncloud.com>  Wed, 06 May 2015 16:15:13 +0200
+
+owncloud (8.0.3-1) stable; urgency=low
+
+  * Release  "8.0.3"
+    April 6. 2015
+
+  - Fix several Constrain Violation Exceptions
+  - Fix misleading Maintenance mode message
+  - Timezone fixes for countries with 0.5 and 0.75 offsets
+  - Fix usage of default share folder location
+  - Improved MSSQL compatibility
+  - Reenable trashbin after failed rename
+  - Fix disabling of APCu
+  - Do not show update notification on mobile
+  - Fix "Only variables should be passed by reference" error log spam
+  - Add timeout to curl
+  - Makes repair errors and warnings visible for the user when upgrading on the command line or in the web UI
+  - Cron shall not operate in case we are in maintenance mode
+  - Disable the cache updater when doing the encryption migration
+  - Fix "Error while updating app" error
+  - Internal Server Error after attempting to do "occ files:scan" 
+
+ -- Jürgen Weigert <jw@owncloud.com>  Fri, 01 May 2015 07:26:53 +0200
+
+owncloud (8.0.3~RC4-1) stable; urgency=low
+
+  * update to 8.0.1~RC3
+
+ -- Jürgen Weigert <jw@owncloud.com>  Fri, 24 Apr 2015 01:21:10 +0200
+
+owncloud (8.0.3~RC3-2) stable; urgency=low
+
+  * update to 8.0.3~RC3
+
+ -- Jürgen Weigert <jw@owncloud.com>  Sun, 19 Apr 2015 16:51:23 +0200
+
+owncloud (8.0.3~RC2-1) stable; urgency=low
+
+  * update to 8.0.3~RC2
+
+ -- Jürgen Weigert <jw@owncloud.com>  Thu, 16 Apr 2015 17:34:27 +0200
+
+owncloud (8.0.3~RC1-3) stable; urgency=low
+
+  * main .htaccess moved into owncloud-server, RPM already has it there.
+    Prevent regression of https://github.com/owncloud/core/issues/15421
+  * Suggest at least apcu version 4.0.6
+    https://github.com/owncloud/core/issues/14175#issuecomment-89613256
+
+ -- Jürgen Weigert <jw@owncloud.com>  Tue, 07 Apr 2015 14:45:56 +0200
+
+owncloud (8.0.3~RC1-2) stable; urgency=low
+
+  * Made versioned dependencies for DEB as strict as for RPM.
+
+ -- Jürgen Weigert <jw@owncloud.com>  Mon, 30 Mar 2015 22:48:57 +0200
+
+owncloud (8.0.3~RC1-1) stable; urgency=low
+
+  * Release  "8.0.3" April 6. 2015
+
+  - Fix several Constrain Violation Exceptions
+  - Fix misleading Maintenance mode message
+  - Timezone fixes for countries with .05 and 0.75 offsets
+  - Fix usage of default share folder location
+  - Improved MSSQL compatibility
+  - Reenable trashbin after failed rename
+  - Fix disabling of APCu
+  - Do not show update notification on mobile
+  - Fix "Only variables should be passed by reference" error log spam
+  - Add timeout to curl
+  - Makes repair errors and warnings visible for the user when
+  - Upgrading on the command line or in the web UI
+  - Cron shall not operate in case we are in maintenance mode
+  - Disable the cache updater when doing the encryption migration
+  - Fix "Error while updating app" error
+  - Internal Server Error after attempting to do "occ files:scan" 
+
+ -- Jürgen Weigert <jw@owncloud.com>  Sat, 28 Mar 2015 03:49:47 +0100
+
+owncloud (8.0.2-7) stable; urgency=low
+
+  * fixed https://github.com/owncloud/core/issues/14610
+    preinst handling of dangling symlinks improved.
+
+ -- Jürgen Weigert <jw@owncloud.com>  Wed, 25 Mar 2015 21:42:02 +0100
+
+owncloud (8.0.2-6) stable; urgency=low
+
+  * added postrm to fix https://github.com/owncloud/core/issues/15038
+    remove dangling symlink.
+
+ -- Jürgen Weigert <jw@owncloud.com>  Tue, 24 Mar 2015 21:34:22 +0100
+
+owncloud (8.0.2-5) stable; urgency=low
+
+  * main .htaccess no longer in debian.*apache*.conffiles 
+    Fixes https://github.com/owncloud/core/issues/15039
+
+ -- Jürgen Weigert <jw@owncloud.com>  Tue, 24 Mar 2015 20:41:36 +0100
+
+owncloud (8.0.2-4) stable; urgency=low
+
+  * do not do Depends: owncloud-app-updater
+
+ -- Jürgen Weigert <jw@owncloud.com>  Tue, 17 Mar 2015 18:54:47 +0100
+
+owncloud (8.0.2-3) stable; urgency=low
+
+  * added debian.compat level 7, to silence warnings.
+  * fixed trailing whitespace in *.conffiles.
+
+ -- Jürgen Weigert <jw@owncloud.com>  Tue, 17 Mar 2015 00:57:39 +0100
+
+owncloud (8.0.2-2) stable; urgency=low
+
+  * fixed https://github.com/owncloud/core/issues/14855
+
+ -- Jürgen Weigert <jw@owncloud.com>  Fri, 13 Mar 2015 12:26:01 +0100
+
+owncloud (8.0.2-1) stable; urgency=low
+
+  * updated to 8.0.2
+    debian.owncloud-config-apache.conffiles added.
+
+ -- Jürgen Weigert <jw@owncloud.com>  Mon, 09 Mar 2015 19:37:46 +0100
+
+owncloud (8.0.1~RC201503052140-1) stable; urgency=low
+
+  * update to 8.0.1 Mar 5, 21:40h
+
+ -- Jürgen Weigert <jw@owncloud.com>  Fri, 06 Mar 2015 20:26:14 +0100
+
+owncloud (8.0.1-2) stable; urgency=low
+
+  * updated to 8.0.1 Mar 4, 22:35h
+
+ -- Jürgen Weigert <jw@owncloud.com>  Thu, 05 Mar 2015 12:25:45 +0100
+
+owncloud (8.0.1-1) stable; urgency=low
+
+  * updated to 8.0.1
+
+ -- Jürgen Weigert <jw@owncloud.com>  Wed, 04 Mar 2015 20:48:31 +0100
+
+owncloud (8.0.0-9) stable; urgency=low
+
+  * added Suggests for php5-ldap to ldap app
+
+ -- Jürgen Weigert <jw@owncloud.com>  Tue, 03 Mar 2015 12:44:53 +0100
+
+owncloud (8.0.0-8) stable; urgency=low
+
+  * Added chown of apps folder to all sub-packages, to be indedpenant of installation order.
+  * Added explicit Provides: owncloud to help owncloud-enterprise find the server.
+
+ -- Jürgen Weigert <jw@owncloud.com>  Mon, 02 Mar 2015 17:36:34 +0100
+
+owncloud (8.0.0-7) stable; urgency=low
+
+  * Factored out dependencies of owncloud into owncloud-server* to make
+    owncloud-server-scl-php54 usable on CentOS-6
+  * No code changes.
+
+ -- Jürgen Weigert <jw@owncloud.com>  Mon, 23 Feb 2015 20:40:47 +0100
+
+owncloud (8.0.0-6) stable; urgency=low
+
+  * added _service file to assert increment of build release number.
+  * changed dependencies of owncloud-config-apache to make it build on ubuntu-14.04 again.
+
+ -- Jürgen Weigert <jw@owncloud.com>  Sun, 22 Feb 2015 22:05:07 +0100
+
+owncloud (8.0.0-5) stable; urgency=low
+
+  * ignore errors in debian.owncloud-config-apache.preinst when not updating
+
+ -- Jürgen Weigert <jw@owncloud.com>  Mon, 09 Feb 2015 23:53:04 +0100
+
+owncloud (8.0.0-4) stable; urgency=low
+
+  * debian.owncloud-config-apache.preinst added
+    possible fix for https://github.com/owncloud/core/issues/13992
+
+ -- Jürgen Weigert <jw@owncloud.com>  Mon, 09 Feb 2015 22:02:33 +0100
+
+owncloud (8.0.0-3) stable; urgency=low
+
+  * Architecture: any is actually amd64+i686, switching to 
+    Architecture: all
+
+ -- Jürgen Weigert <jw@owncloud.com>  Mon, 09 Feb 2015 20:04:58 +0100
+
+owncloud (8.0.0-2) stable; urgency=low
+
+  * subpackage owncloud-app-files was missing for debian/ubuntu
+    fixed https://github.com/owncloud/core/issues/13991
+
+ -- Jürgen Weigert <juewei@linux-z0ae.fritz.box>  Mon, 09 Feb 2015 17:35:36 +0100
+
+owncloud (8.0.0-1) stable; urgency=low
+
+  * update to 8.0.0 final.
+    https://github.com/owncloud/core/wiki/ownCloud-8.0-Features
+
+ -- Jürgen Weigert <juewei@linux-z0ae.fritz.box>  Sat, 07 Feb 2015 15:52:47 +0100
+
+owncloud (8.0.0~RC2-2) stable; urgency=low
+
+  * most parts of debian.control had no effect. Reason stil unclear.
+    moving owncloud.conf before dh_install should fix 
+    https://github.com/owncloud/core/issues/13914
+
+ -- Jürgen Weigert <jw@owncloud.com>  Fri, 06 Feb 2015 21:23:44 +0100
+
+owncloud (8.0.0~RC2-1) stable; urgency=low
+
+  * update to RC2
+    https://github.com/owncloud/core/wiki/ownCloud-8.0-Features
+
+ -- Jürgen Weigert <jw@owncloud.com>  Thu, 05 Feb 2015 16:08:05 +0100
+
+owncloud (8.0.0~RC1-5) stable; urgency=low
+
+  * With ownCloud 8.0 we use PHP 5.4 language features that 5.3 does not support
+  * Depends: php5 (>= 5.4.0)
+
+ -- Jürgen Weigert <jw@owncloud.com>  Thu, 05 Feb 2015 13:06:02 +0100
+
+owncloud (8.0.0~RC1-4) stable; urgency=low
+
+  * fixed https://github.com/owncloud/core/issues/13902
+    .htacces in the right place.
+
+ -- Jürgen Weigert <jw@owncloud.com>  Thu, 05 Feb 2015 10:26:16 +0100
+
+owncloud (8.0.0~RC1-3) stable; urgency=low
+
+  * pull owncloud-3rdparty
+
+ -- Jürgen Weigert <jw@owncloud.com>  Wed, 04 Feb 2015 17:56:46 +0100
+
+owncloud (8.0.0~RC1-2) stable; urgency=low
+
+  * try fix https://github.com/owncloud/core/issues/13835
+    Replaces: + Breaks:
+
+ -- Jürgen Weigert <jw@owncloud.com>  Tue, 03 Feb 2015 15:19:00 +0100
+
+owncloud (8.0.0~RC1-1) stable; urgency=low
+
+  * update to RC1
+    https://github.com/owncloud/core/wiki/ownCloud-8-Features
+
+ -- Jürgen Weigert <jw@owncloud.com>  Mon, 02 Feb 2015 11:59:21 +0100
+
+owncloud (8.0.0~beta2-2) stable; urgency=low
+
+  * reverted the FHS compliance. See the experimental owncloud-fhs* packages for this.
+
+ -- Jürgen Weigert <jw@owncloud.com>  Wed, 28 Jan 2015 14:54:13 +0100
+
+owncloud (8.0.0~alpha2) stable; urgency=low
+
+  * Initial release. 
+
+ -- Jürgen Weigert <jw@owncloud.com>  Thu, 15 Jan 2015 23:12:07 +0100
--- owncloud-8.0.16.orig/debian/owncloud-app-gallery.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-gallery.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-gallery: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/source.lintian-overrides
+++ owncloud-8.0.16/debian/source.lintian-overrides
@@ -0,0 +1,5 @@
+# needed for Debian 8.0 to finsh a build in obs.
+# FIXME: all that should be warnings in obs, as they are in s2 and local builds.
+owncloud source: source-is-missing
+owncloud source: license-problem-json-evil
+owncloud source: version-substvar-for-external-package
--- owncloud-8.0.16.orig/debian/owncloud-app-files-trashbin.install
+++ owncloud-8.0.16/debian/owncloud-app-files-trashbin.install
@@ -0,0 +1,1 @@
+apps/files_trashbin/* /var/www/owncloud/apps/files_trashbin/
--- owncloud-8.0.16.orig/debian/owncloud-app-files-encryption.install
+++ owncloud-8.0.16/debian/owncloud-app-files-encryption.install
@@ -0,0 +1,1 @@
+apps/files_encryption/* /var/www/owncloud/apps/files_encryption/
--- owncloud-8.0.16.orig/debian/owncloud-app-files-antivirus.install
+++ owncloud-8.0.16/debian/owncloud-app-files-antivirus.install
@@ -0,0 +1,1 @@
+apps/files_antivirus/* /var/www/owncloud/apps/files_antivirus/
--- owncloud-8.0.16.orig/debian/owncloud-app-external.install
+++ owncloud-8.0.16/debian/owncloud-app-external.install
@@ -0,0 +1,1 @@
+apps/external/* /var/www/owncloud/apps/external/
--- owncloud-8.0.16.orig/debian/owncloud-app-files-trashbin.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-files-trashbin.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-files-trashbin: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-app-files-sharing.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-files-sharing.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-files-sharing: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-app-user-webdavauth.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-user-webdavauth.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-user-webdavauth: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-app-files.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-files.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-files: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-app-firstrunwizard.install
+++ owncloud-8.0.16/debian/owncloud-app-firstrunwizard.install
@@ -0,0 +1,1 @@
+apps/firstrunwizard/* /var/www/owncloud/apps/firstrunwizard/
--- owncloud-8.0.16.orig/debian/owncloud-app-files-external.install
+++ owncloud-8.0.16/debian/owncloud-app-files-external.install
@@ -0,0 +1,1 @@
+apps/files_external/* /var/www/owncloud/apps/files_external/
--- owncloud-8.0.16.orig/debian/owncloud-app-files-sharing.install
+++ owncloud-8.0.16/debian/owncloud-app-files-sharing.install
@@ -0,0 +1,1 @@
+apps/files_sharing/* /var/www/owncloud/apps/files_sharing/
--- owncloud-8.0.16.orig/debian/owncloud-server.preinst
+++ owncloud-8.0.16/debian/owncloud-server.preinst
@@ -0,0 +1,46 @@
+#!/bin/sh -e
+# preinst script for owncloud-config-apache
+# https://github.com/owncloud/core/issues/12125
+
+
+## CAUTION: keep in sync with debian.rules
+export SPEC_owncloud=owncloud
+export SPEC_apache_serverroot=/var/www
+export SPEC_apache_confdir=/etc/apache2/conf.d
+export SPEC_apache_confdir_a=/etc/apache2/conf-available
+
+export SPEC_oc_apache_web_dir=$SPEC_apache_serverroot/$SPEC_owncloud
+
+export SPEC_oc_user=www-data
+export SPEC_oc_group=www-data
+export SPEC_oc_dir=$SPEC_oc_apache_web_dir
+export SPEC_oc_doc_dir=/usr/share/doc/$SPEC_owncloud
+export SPEC_oc_config_dir=$SPEC_oc_apache_web_dir/config
+export SPEC_oc_data_dir=$SPEC_oc_apache_web_dir/data
+export SPEC_oc_data_pdir=$SPEC_oc_apache_web_dir
+
+set -e
+
+#DEBHELPER#
+
+case "$1" in
+    install|upgrade)
+	# Update the database on upgrade
+	# Don’t let it fail, since it exits with 3 if no upgrade is necessary
+	if [ -e $SPEC_oc_config_dir/config.php ] ; then
+		echo "owncloud-server: occ maintenance:mode --on"
+                su $SPEC_oc_user -s /bin/sh -c "php $SPEC_oc_dir/occ maintenance:mode --on" || true
+	fi
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+exit 0
+
--- owncloud-8.0.16.orig/debian/owncloud-app-files-locking.install
+++ owncloud-8.0.16/debian/owncloud-app-files-locking.install
@@ -0,0 +1,1 @@
+apps/files_locking/* /var/www/owncloud/apps/files_locking/
--- owncloud-8.0.16.orig/debian/owncloud-app-external.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-external.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-external: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/compat
+++ owncloud-8.0.16/debian/compat
@@ -0,0 +1,1 @@
+7
--- owncloud-8.0.16.orig/debian/owncloud-server.postinst
+++ owncloud-8.0.16/debian/owncloud-server.postinst
@@ -0,0 +1,51 @@
+#!/bin/sh -e
+# postinst script for owncloud-server
+
+# FROM http://anonscm.debian.org/cgit/pkg-owncloud/owncloud.git/plain/debian/postinst
+# https://github.com/owncloud/core/issues/12037
+# https://github.com/owncloud/core/issues/12125
+
+## CAUTION: keep in sync with debian.rules
+export SPEC_owncloud=owncloud
+export SPEC_apache_serverroot=/var/www
+export SPEC_apache_confdir=/etc/apache2/conf.d
+export SPEC_apache_confdir_a=/etc/apache2/conf-available
+
+export SPEC_oc_apache_web_dir=$SPEC_apache_serverroot/$SPEC_owncloud
+
+export SPEC_oc_user=www-data
+export SPEC_oc_group=www-data
+export SPEC_oc_dir=$SPEC_oc_apache_web_dir
+export SPEC_oc_doc_dir=/usr/share/doc/$SPEC_owncloud
+export SPEC_oc_config_dir=$SPEC_oc_apache_web_dir/config
+export SPEC_oc_data_dir=$SPEC_oc_apache_web_dir/data
+export SPEC_oc_data_pdir=$SPEC_oc_apache_web_dir
+
+set -e
+
+#DEBHELPER#
+
+case "$1" in
+    configure)
+	# Update the database on upgrade
+	# Don’t let it fail, since it exits with 3 if no upgrade is necessary
+	if [ -e $SPEC_oc_config_dir/config.php ] ; then
+            # https://github.com/owncloud/core/pull/19661
+            echo  "Leaving server in maintenance mode. Please run occ upgrade manually."
+            echo  ""
+            echo  "See https://doc.owncloud.org/server/8.0/admin_manual/maintenance/upgrade.html"
+            echo  ""
+	fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+exit 0
+
--- owncloud-8.0.16.orig/debian/control
+++ owncloud-8.0.16/debian/control
@@ -0,0 +1,254 @@
+Source: owncloud
+Section: devel
+Priority: optional
+Maintainer: Jürgen Weigert <jw@owncloud.com>
+Build-Depends: debhelper (>= 4), apache2
+Standards-Version: 3.9.3
+
+Package: owncloud
+Architecture: all
+Depends: ${misc:Depends}, owncloud-server (= ${binary:Version}), owncloud-config-apache (= ${binary:Version})
+Recommends: mysql-server, curl, exim4 | mail-transport-agent
+Suggests: clamav | clamav-daemon, smbclient, libreoffice-writer
+Conflicts: owncloud-fhs
+Provides: owncloud
+Description: ownCloud Server - Private file sync and share server
+ ownCloud Server provides you a private file sync and share
+ cloud. Host this server to easily sync business or private documents
+ across all your devices, and share those documents with other users of
+ your ownCloud server on their devices.
+ .
+ ownCloud - Your Cloud, Your Data, Your Way!  www.owncloud.org
+
+Package: owncloud-server
+Architecture: all
+Depends: ${misc:Depends}, php5 (>= 5.4.0), php5-mysqlnd | php5-mysql, php5-sqlite, php5-pgsql, 
+	php5-common, php5-gd, php-xml-parser, php5-intl, php5-mcrypt, php5-curl, php5-json, php5-cli,
+	owncloud-3rdparty              (= ${binary:Version}),
+	owncloud-app-activity          (= ${binary:Version}),
+	owncloud-app-files             (= ${binary:Version}),
+	owncloud-app-files-encryption  (= ${binary:Version}),
+	owncloud-app-files-pdfviewer   (= ${binary:Version}),
+	owncloud-app-files-trashbin    (= ${binary:Version}),
+	owncloud-app-files-external    (= ${binary:Version}),
+	owncloud-app-files-sharing     (= ${binary:Version}),
+	owncloud-app-files-versions    (= ${binary:Version}),
+	owncloud-app-files-locking     (= ${binary:Version}),
+	owncloud-app-files-texteditor  (= ${binary:Version}),
+	owncloud-app-provisioning-api  (= ${binary:Version}),
+	owncloud-app-firstrunwizard    (= ${binary:Version}),
+	owncloud-app-templateeditor    (= ${binary:Version}),
+	owncloud-app-user-ldap         (= ${binary:Version}),
+	owncloud-app-external          (= ${binary:Version}),
+	owncloud-app-files-videoviewer (= ${binary:Version}),
+	owncloud-app-files-antivirus   (= ${binary:Version}),
+	owncloud-app-gallery           (= ${binary:Version}),
+	owncloud-app-user-webdavauth   (= ${binary:Version}),
+	owncloud-app-user-external     (= ${binary:Version})
+## Do not do Depends: owncloud-app-updater
+# moving .htaccess from owncloud-config-apache (8.0.2) to owncloud-server (8.0.3)
+Replaces: owncloud (<< 7.9.9), 
+	owncloud-config-apache (<< 8.0.3)
+Breaks: owncloud (<< 7.9.9), 
+	owncloud-config-apache (<< 8.0.3)
+# Caution: Provides: cannot satisfy versioned Depends, according to https://www.debian.org/doc/debian-policy/ch-relationships.html
+Provides: owncloud-server-core
+# Don't recommend php5-apcu for Ubuntu-14.04 https://github.com/owncloud/core/issues/14188
+# Don't use apcu before 4.0.6 https://github.com/owncloud/core/issues/14175
+Suggests: php5-apcu (>= 4.0.6) | php-apc
+Description: The owncloud-server package
+ .
+
+Package: owncloud-config-apache
+Architecture: all
+# Depends: owncloud-server-core fails with debian6 and ubuntu14.04
+Depends: owncloud-server (= ${binary:Version}), apache2 | httpd
+# According to https://www.debian.org/doc/debian-policy/ch-relationships.html saying
+# Replaces here, should allow us to overwrite a file. It does not work for owncloud.conf
+# which is inherited by owncloud 8.x from owncloud 7.x without apparent reason.
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud configuration for the apache web server
+ .
+
+Package: owncloud-3rdparty
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-3rdparty
+ .
+
+Package: owncloud-app-activity
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-activity
+ .
+
+Package: owncloud-app-files-encryption
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+### Builtin:
+# Suggests: php-openssl
+Description: The ownCloud app owncloud-app-files-encryption
+ .
+
+Package: owncloud-app-files-pdfviewer
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-files-pdfviewer
+ .
+
+Package: owncloud-app-files-trashbin
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-files-trashbin
+ .
+
+Package: owncloud-app-firstrunwizard
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-firstrunwizard
+ .
+
+Package: owncloud-app-templateeditor
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-templateeditor
+ .
+
+Package: owncloud-app-user-ldap
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Suggests: php5-ldap
+Description: The ownCloud app owncloud-app-user-ldap
+ .
+
+Package: owncloud-app-external
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-external
+ .
+
+Package: owncloud-app-files-external
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-files-external
+ .
+
+Package: owncloud-app-files-sharing
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-files-sharing
+ .
+
+Package: owncloud-app-files-versions
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Suggests: php5-imagick
+Description: The ownCloud app owncloud-app-files-versions
+ .
+
+Package: owncloud-app-gallery
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-gallery
+ .
+
+Package: owncloud-app-updater
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-updater
+ .
+
+Package: owncloud-app-user-webdavauth
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-user-webdavauth
+ .
+
+Package: owncloud-app-files-locking
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-files-locking
+ .
+
+Package: owncloud-app-files-texteditor
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-files-texteditor
+ .
+
+Package: owncloud-app-files-videoviewer
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Suggests: libav-tools|ffmpeg
+Description: The ownCloud app owncloud-app-files-videoviewer
+ .
+
+Package: owncloud-app-files
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-files
+ .
+
+Package: owncloud-app-provisioning-api
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-provisioning-api
+ .
+
+Package: owncloud-app-user-external
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-user-external
+ .
+
+Package: owncloud-app-files-antivirus
+Architecture: all
+Depends: owncloud-server (= ${binary:Version})
+Replaces: owncloud (<< 7.9.9),
+	owncloud-enterprise-app-files-antivirus (<< ${binary:Version}~)
+Breaks: owncloud (<< 7.9.9)
+Description: The ownCloud app owncloud-app-files-antivirus
+ .
--- owncloud-8.0.16.orig/debian/owncloud-config-apache.conffiles
+++ owncloud-8.0.16/debian/owncloud-config-apache.conffiles
@@ -0,0 +1,1 @@
+/etc/apache2/conf-available/owncloud.conf
--- owncloud-8.0.16.orig/debian/owncloud-app-files-videoviewer.install
+++ owncloud-8.0.16/debian/owncloud-app-files-videoviewer.install
@@ -0,0 +1,1 @@
+apps/files_videoviewer/* /var/www/owncloud/apps/files_videoviewer/
--- owncloud-8.0.16.orig/debian/rules
+++ owncloud-8.0.16/debian/rules
@@ -0,0 +1,83 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# (C) 2015 jw@owncloud.com
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+export DROOT=$(CURDIR)/debian/owncloud
+export SRCDIR=/usr/src/packages/SOURCES
+
+export SPEC_owncloud=owncloud
+
+export SPEC_apache_serverroot=/var/www
+export SPEC_apache_confdir=/etc/apache2/conf.d
+export SPEC_apache_confdir_a=/etc/apache2/conf-available
+export SPEC_apache_user=www-data
+export SPEC_apache_group=www-data
+
+## only for backwards compatibility with our 7.0 package layout.
+export SPEC_oc_apache_web_dir=$(SPEC_apache_serverroot)/$(SPEC_owncloud)
+#
+
+# CAUTION: keep in sync with owncloud.spec
+export SPEC_oc_dir=$(SPEC_oc_apache_web_dir)
+export SPEC_oc_doc_dir=/usr/share/doc/$(SPEC_owncloud)
+export SPEC_oc_config_dir=$(SPEC_oc_apache_web_dir)/config
+export SPEC_oc_data_dir=$(SPEC_oc_apache_web_dir)/data
+export SPEC_oc_data_pdir=$(SPEC_oc_apache_web_dir)
+
+SHELL=/bin/bash
+
+%:	
+	dh $@
+
+override_dh_install:
+	sed < $(SRCDIR)/apache_secure_data -e"s|@@OC_DIR@@|$(SPEC_oc_dir)|g" > owncloud.conf
+	mkdir nginx
+	sed < $(SRCDIR)/nginx_owncloud.conf -e"s|@@OC_DIR@@|$(SPEC_oc_dir)|g" > nginx/owncloud.conf
+
+	cp $(SRCDIR)/README $(SRCDIR)/README.packaging .
+
+	ls -la $(DROOT)-config-apache/$(SPEC_apache_confdir) || true
+	ls -la $(DROOT)-config-apache/$(SPEC_apache_confdir_a) || true
+
+	dh_install -Xdebian
+
+	ls -la $(DROOT)-config-apache/$(SPEC_apache_confdir) || true
+	ls -la $(DROOT)-config-apache/$(SPEC_apache_confdir_a) || true
+
+	mkdir -p  $(DROOT)-server/$(SPEC_oc_data_dir)
+	chmod 770 $(DROOT)-server/$(SPEC_oc_data_dir)
+	# mkdir -p  $(DROOT)-config-apache/$(SPEC_apache_confdir)
+	# mkdir -p  $(DROOT)-config-apache/$(SPEC_apache_confdir_a)
+
+	## FIXME: all these files end up nowhere.
+	## whatever we can move up before dh_install will be picked up by the *.install files.
+	mkdir -p 				  $(DROOT)-server/$(SPEC_oc_dir)/apps
+	# https://github.com/owncloud/enterprise/issues/570
+	mkdir -p 				  $(DROOT)-server/$(SPEC_oc_dir)/assets
+	chmod 770 				  $(DROOT)-server/$(SPEC_oc_dir)/assets		# ineffective, unless dh_fixperms has -X for us.
+	mkdir -p 				  $(DROOT)/$(SPEC_oc_doc_dir)
+	install -m 644 $(CURDIR)/AUTHORS      	  $(DROOT)/$(SPEC_oc_doc_dir)/AUTHORS
+	install -m 644 $(CURDIR)/COPYING-AGPL 	  $(DROOT)/$(SPEC_oc_doc_dir)/COPYING-AGPL
+	# install -m 644 $(SRCDIR)/robots.txt   	  $(DROOT)-server/$(SPEC_oc_dir)/.htaccess
+	# install -m 644 $(SRCDIR)/robots.txt   	  $(DROOT)-server/$(SPEC_oc_dir)/robots.txt
+
+	## only for backwards compatibility with our 7.0 package layout.
+	mkdir -p             $(DROOT)-config-apache/$(SPEC_apache_serverroot)
+
+override_dh_fixperms:
+	dh_fixperms -X var/www/owncloud/data -X var/www/owncloud/config -X var/www/owncloud/assets
+	chmod a+x $(DROOT)-server/$(SPEC_oc_dir)/occ	# https://github.com/owncloud/core/issues/18508
+	# chown at the end to ensure everything is chown'ed
+	# We must chown all apps folders, in each app, to be independant of installation order.
+	chown www-data:www-data    $(DROOT)*/$(SPEC_oc_dir)/apps
+	chown www-data:www-data    $(DROOT)-server/$(SPEC_oc_dir)/assets
+	chown www-data:www-data    $(DROOT)-server/$(SPEC_oc_dir)/apps
+	chown -R www-data:www-data $(DROOT)-server/$(SPEC_oc_dir)/themes
+	chown -R www-data:www-data $(DROOT)-server/$(SPEC_oc_config_dir)
+	# https://github.com/owncloud/core/issues/18222
+	chmod -R ug+rwx            $(DROOT)-server/$(SPEC_oc_config_dir)
+	chown -R www-data:www-data $(DROOT)-server/$(SPEC_oc_data_dir)
+
--- owncloud-8.0.16.orig/debian/owncloud.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud.lintian-overrides
@@ -0,0 +1,7 @@
+# needed for Debian 8.0 to finsh a build in obs.
+# FIXME: all that should be warnings in obs, as they are in s2 and local builds.
+
+# https://lintian.debian.org/tags/dir-or-file-in-var-www.html
+# Debian packages should not install files under /var/www. We have to.
+# do we really need to enumerate all here?
+owncloud: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-app-user-external.install
+++ owncloud-8.0.16/debian/owncloud-app-user-external.install
@@ -0,0 +1,1 @@
+apps/user_external/* /var/www/owncloud/apps/user_external/
--- owncloud-8.0.16.orig/debian/owncloud-app-files-versions.install
+++ owncloud-8.0.16/debian/owncloud-app-files-versions.install
@@ -0,0 +1,1 @@
+apps/files_versions/* /var/www/owncloud/apps/files_versions/
--- owncloud-8.0.16.orig/debian/owncloud-app-updater.install
+++ owncloud-8.0.16/debian/owncloud-app-updater.install
@@ -0,0 +1,1 @@
+apps/updater/* /var/www/owncloud/apps/updater/
--- owncloud-8.0.16.orig/debian/owncloud-app-files-antivirus.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-files-antivirus.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-files-antivirus: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-app-files.install
+++ owncloud-8.0.16/debian/owncloud-app-files.install
@@ -0,0 +1,1 @@
+apps/files/* /var/www/owncloud/apps/files/
--- owncloud-8.0.16.orig/debian/owncloud-app-provisioning-api.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-provisioning-api.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-provisioning-api: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-server.install
+++ owncloud-8.0.16/debian/owncloud-server.install
@@ -0,0 +1,23 @@
+AUTHORS		/var/www/owncloud/
+config		/var/www/owncloud/
+console.php	/var/www/owncloud/
+COPYING-AGPL	/var/www/owncloud/
+core		/var/www/owncloud/
+cron.php	/var/www/owncloud/
+db_structure.xml /var/www/owncloud/
+index.html	/var/www/owncloud/
+index.php	/var/www/owncloud/
+indie.json	/var/www/owncloud/
+l10n		/var/www/owncloud/
+lib		/var/www/owncloud/
+occ		/var/www/owncloud/
+ocs		/var/www/owncloud/
+public.php	/var/www/owncloud/
+remote.php	/var/www/owncloud/
+robots.txt	/var/www/owncloud/
+settings	/var/www/owncloud/
+status.php	/var/www/owncloud/
+themes		/var/www/owncloud/
+version.php	/var/www/owncloud/
+.htaccess 	/var/www/owncloud/
+
--- owncloud-8.0.16.orig/debian/owncloud-app-user-ldap.install
+++ owncloud-8.0.16/debian/owncloud-app-user-ldap.install
@@ -0,0 +1,1 @@
+apps/user_ldap/* /var/www/owncloud/apps/user_ldap/
--- owncloud-8.0.16.orig/debian/owncloud-app-templateeditor.install
+++ owncloud-8.0.16/debian/owncloud-app-templateeditor.install
@@ -0,0 +1,1 @@
+apps/templateeditor/* /var/www/owncloud/apps/templateeditor/
--- owncloud-8.0.16.orig/debian/owncloud-3rdparty.install
+++ owncloud-8.0.16/debian/owncloud-3rdparty.install
@@ -0,0 +1,1 @@
+3rdparty/* /var/www/owncloud/3rdparty/
--- owncloud-8.0.16.orig/debian/owncloud-app-files-videoviewer.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-files-videoviewer.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-files-videoviewer: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-app-files-versions.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-files-versions.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-files-versions: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-app-files-external.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-files-external.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-files-external: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-app-provisioning-api.install
+++ owncloud-8.0.16/debian/owncloud-app-provisioning-api.install
@@ -0,0 +1,1 @@
+apps/provisioning_api/* /var/www/owncloud/apps/provisioning_api/
--- owncloud-8.0.16.orig/debian/owncloud-app-templateeditor.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-templateeditor.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-templateeditor: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-app-user-external.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-user-external.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-user-external: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-app-firstrunwizard.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-firstrunwizard.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-firstrunwizard: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-config-apache.install
+++ owncloud-8.0.16/debian/owncloud-config-apache.install
@@ -0,0 +1,2 @@
+owncloud.conf /etc/apache2/conf-available/
+
--- owncloud-8.0.16.orig/debian/owncloud-app-user-ldap.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-user-ldap.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-user-ldap: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-app-activity.install
+++ owncloud-8.0.16/debian/owncloud-app-activity.install
@@ -0,0 +1,1 @@
+apps/activity/* /var/www/owncloud/apps/activity/
--- owncloud-8.0.16.orig/debian/owncloud-app-files-pdfviewer.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-files-pdfviewer.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-files-pdfviewer: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-app-files-texteditor.install
+++ owncloud-8.0.16/debian/owncloud-app-files-texteditor.install
@@ -0,0 +1,1 @@
+apps/files_texteditor/* /var/www/owncloud/apps/files_texteditor/
--- owncloud-8.0.16.orig/debian/owncloud-app-user-webdavauth.install
+++ owncloud-8.0.16/debian/owncloud-app-user-webdavauth.install
@@ -0,0 +1,1 @@
+apps/user_webdavauth/* /var/www/owncloud/apps/user_webdavauth/
--- owncloud-8.0.16.orig/debian/owncloud-app-activity.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-activity.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-activity: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-3rdparty.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-3rdparty.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-3rdparty: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-app-files-locking.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-files-locking.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-files-locking: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-config-apache.postrm
+++ owncloud-8.0.16/debian/owncloud-config-apache.postrm
@@ -0,0 +1,38 @@
+#!/bin/sh -e
+# postrm script for owncloud-config-apache
+
+# FROM http://anonscm.debian.org/cgit/pkg-owncloud/owncloud.git/plain/debian/postinst
+# https://github.com/owncloud/core/issues/15038
+# https://github.com/owncloud/core/issues/16949
+
+## CAUTION: keep in sync with debian.rules
+export SPEC_owncloud=owncloud
+export SPEC_apache_serverroot=/var/www
+export SPEC_apache_confdir=/etc/apache2/conf.d
+export SPEC_apache_confdir_a=/etc/apache2/conf-available
+
+export SPEC_oc_apache_web_dir=$SPEC_apache_serverroot/$SPEC_owncloud
+
+export SPEC_oc_user=www-data
+export SPEC_oc_group=www-data
+export SPEC_oc_dir=$SPEC_oc_apache_web_dir
+export SPEC_oc_doc_dir=/usr/share/doc/$SPEC_owncloud
+export SPEC_oc_config_dir=$SPEC_oc_apache_web_dir/config
+export SPEC_oc_data_dir=$SPEC_oc_apache_web_dir/data
+export SPEC_oc_data_pdir=$SPEC_oc_apache_web_dir
+
+set -e
+
+#DEBHELPER#
+
+if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
+    dpkg-maintscript-helper rm_conffile $SPEC_oc_dir/.htaccess 8.0.3-0 -- "$@"
+fi
+
+if type a2disconf >/dev/null 2>/dev/null; then
+  # FIXME: configure case below pulls symlinks from conf-available manually.
+  a2disconf owncloud || true
+  service apache2 reload || true
+fi
+
+exit 0
--- owncloud-8.0.16.orig/debian/owncloud-config-apache.postinst
+++ owncloud-8.0.16/debian/owncloud-config-apache.postinst
@@ -0,0 +1,93 @@
+#!/bin/sh -e
+# postinst script for owncloud-config-apache
+
+# FROM http://anonscm.debian.org/cgit/pkg-owncloud/owncloud.git/plain/debian/postinst
+# https://github.com/owncloud/core/issues/12037
+# https://github.com/owncloud/core/issues/12125
+# https://github.com/owncloud/core/issues/16949
+
+## CAUTION: keep in sync with debian.rules
+export SPEC_owncloud=owncloud
+export SPEC_apache_serverroot=/var/www
+export SPEC_apache_confdir=/etc/apache2/conf.d
+export SPEC_apache_confdir_a=/etc/apache2/conf-available
+
+export SPEC_oc_apache_web_dir=$SPEC_apache_serverroot/$SPEC_owncloud
+
+export SPEC_oc_user=www-data
+export SPEC_oc_group=www-data
+export SPEC_oc_dir=$SPEC_oc_apache_web_dir
+export SPEC_oc_doc_dir=/usr/share/doc/$SPEC_owncloud
+export SPEC_oc_config_dir=$SPEC_oc_apache_web_dir/config
+export SPEC_oc_data_dir=$SPEC_oc_apache_web_dir/data
+export SPEC_oc_data_pdir=$SPEC_oc_apache_web_dir
+
+set -e
+
+#DEBHELPER#
+
+if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
+    dpkg-maintscript-helper rm_conffile $SPEC_oc_dir/.htaccess 8.0.3-0 -- "$@"
+fi
+
+if type a2enconf >/dev/null 2>/dev/null; then
+  # FIXME: configure case below pulls symlinks from conf-available manually.
+  a2enconf owncloud || true
+  service apache2 reload || true
+fi
+
+reload_apache()
+{
+    if apache2ctl configtest 2>/dev/null; then
+	if [ -x /usr/sbin/invoke-rc.d ]; then
+            invoke-rc.d apache2 $1 3>/dev/null || true
+	else
+            /etc/init.d/apache2 $1 3>/dev/null || true
+	fi
+    else
+        echo "Your Apache 2 configuration is broken, so we're not restarting it for you."
+    fi
+}
+
+case "$1" in
+    configure)
+	CONF="owncloud"
+	COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
+	if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
+		. /usr/share/apache2/apache2-maintscript-helper
+		apache2_invoke enmod rewrite
+		if [ -e /etc/apache2/conf-available/$CONF.conf ] ; then
+			apache2_invoke enconf $CONF || exit $?
+		fi
+	elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
+		if [ -d /etc/apache2/conf.d/ ] && [ ! -L /etc/apache2/conf.d/$CONF.conf ] ; then
+			ln -s ../conf-available/$CONF.conf /etc/apache2/conf.d/$CONF.conf
+		fi
+		# Test whether a2enmod is available (and thus also apache2ctl).
+		if [ -x /usr/sbin/a2enmod ]; then
+			# Enable the Apache2 rewrite module if not already enabled
+			a2enmod rewrite > /dev/null || true
+			# Restart Apache to really enable the module and load
+			# /etc/apache2/conf.d/owncloud.conf.
+			reload_apache restart
+		fi
+	fi
+	# Create empty logfile if needed
+	file=/var/log/owncloud.log
+	if [ ! -f $file ]; then
+		touch $file
+		chown www-data:adm $file
+		chmod 0640 $file
+	fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+exit 0
--- owncloud-8.0.16.orig/debian/owncloud-app-files-pdfviewer.install
+++ owncloud-8.0.16/debian/owncloud-app-files-pdfviewer.install
@@ -0,0 +1,1 @@
+apps/files_pdfviewer/* /var/www/owncloud/apps/files_pdfviewer/
--- owncloud-8.0.16.orig/debian/owncloud-app-encryption.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-encryption.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-encryption: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-server.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-server.lintian-overrides
@@ -0,0 +1,7 @@
+# needed for Debian 8.0 to finsh a build in obs.
+# FIXME: all that should be warnings in obs, as they are in s2 and local builds.
+#
+# https://lintian.debian.org/tags/dir-or-file-in-var-www.html
+# Debian packages should not install files under /var/www. We have to.
+# do we really need to enumerate all here?
+owncloud-server: dir-or-file-in-var-www
--- owncloud-8.0.16.orig/debian/owncloud-app-gallery.install
+++ owncloud-8.0.16/debian/owncloud-app-gallery.install
@@ -0,0 +1,1 @@
+apps/gallery/* /var/www/owncloud/apps/gallery/
--- owncloud-8.0.16.orig/debian/owncloud.install
+++ owncloud-8.0.16/debian/owncloud.install
@@ -0,0 +1,2 @@
+README* /usr/share/doc/owncloud/
+
--- owncloud-8.0.16.orig/debian/owncloud-config-apache.preinst
+++ owncloud-8.0.16/debian/owncloud-config-apache.preinst
@@ -0,0 +1,34 @@
+#!/bin/sh -e
+# preinst script for owncloud-config-apache
+# https://github.com/owncloud/core/issues/13392
+# https://github.com/owncloud/core/issues/14610
+# https://github.com/owncloud/core/issues/16189
+# https://github.com/owncloud/core/issues/16949
+
+## CAUTION: keep in sync with debian.rules
+export SPEC_owncloud=owncloud
+export SPEC_apache_serverroot=/var/www
+export SPEC_apache_confdir=/etc/apache2/conf.d
+export SPEC_apache_confdir_a=/etc/apache2/conf-available
+
+export SPEC_oc_apache_web_dir=$SPEC_apache_serverroot/$SPEC_owncloud
+
+export SPEC_oc_user=www-data
+export SPEC_oc_group=www-data
+export SPEC_oc_dir=$SPEC_oc_apache_web_dir
+export SPEC_oc_doc_dir=/usr/share/doc/$SPEC_owncloud
+export SPEC_oc_config_dir=$SPEC_oc_apache_web_dir/config
+export SPEC_oc_data_dir=$SPEC_oc_apache_web_dir/data
+export SPEC_oc_data_pdir=$SPEC_oc_apache_web_dir
+
+set -e
+
+#DEBHELPER#
+
+if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
+    dpkg-maintscript-helper rm_conffile $SPEC_oc_dir/.htaccess 8.0.3-0 -- "$@"
+fi
+
+f=/etc/apache2/conf-available/owncloud.conf; test -f $f && cp $f $f.old   || true
+
+exit 0
--- owncloud-8.0.16.orig/debian/owncloud-app-files-texteditor.lintian-overrides
+++ owncloud-8.0.16/debian/owncloud-app-files-texteditor.lintian-overrides
@@ -0,0 +1,1 @@
+owncloud-app-files-texteditor: dir-or-file-in-var-www
