diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-11-24 14:52:34 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-11-25 09:58:48 +0000 |
commit | cca657c8f2031ec88366c52f5e8e10c2e04129f9 (patch) | |
tree | a2273ed56080856d8494ba759b8ed0e435ebba99 /debian | |
parent | 4432aba25b6ee68356e0ddfc724afb8373651945 (diff) |
Apply the pre-branch rename script to re-organize the source.
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 25 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 14 | ||||
-rw-r--r-- | debian/copyright | 31 | ||||
-rw-r--r-- | debian/loolwsd.cron.d | 1 | ||||
-rwxr-xr-x | debian/loolwsd.postinst | 28 | ||||
-rwxr-xr-x | debian/loolwsd.preinst | 10 | ||||
-rwxr-xr-x | debian/rules | 29 | ||||
-rw-r--r-- | debian/source/format | 1 |
9 files changed, 140 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..56cbc5563 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,25 @@ +loolwsd (1.8.2-1) unstable; urgency=medium + + * Fix crash in Impress. + + -- Jan Holesovsky <kendy@collabora.com> Thu, 11 Aug 2016 16:46:00 +0100 + +loolwsd (1.8.0-1) unstable; urgency=medium + + [ Tor Lillqvist ] + * Back to packaging this for Debian. + + [ Jan Holesovsky ] + * Update to match Collabora Office 5.1 + + -- Jan Holesovsky <kendy@collabora.com> Fri, 05 Aug 2016 16:51:54 +0100 + +loolwsd (1.0.0-1) unstable; urgency=low + + * Initial release + + * Local Variables: + * Mode: fundamental + * End: + + -- Tor Lillqvist <tml@collabora.com> Fri, 15 May 2015 11:10:20 +0300 diff --git a/debian/compat b/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..80af0eba5 --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: loolwsd +Section: web +Priority: optional +Maintainer: Tor Lillqvist <tml@collabora.com> +Build-Depends: debhelper (>= 9), dh-systemd (>= 1.3), libcap-dev, libcap2-bin, libpcre3-dev, libpng-dev, libpoco-dev (>= 1.7.5) +Standards-Version: 3.9.7 + +Package: loolwsd +Section: web +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, libsm6, libssl1.0.0, libodbc1, libxinerama1, libcairo2, libgl1-mesa-glx, libcups2, libdbus-glib-1-2, cpio, collaboraofficebasis5.1-base, collaboraofficebasis5.1-calc, collaboraofficebasis5.1-core, collaboraofficebasis5.1-draw, collaboraofficebasis5.1-extension-beanshell-script-provider, collaboraofficebasis5.1-extension-ct2n, collaboraofficebasis5.1-extension-javascript-script-provider, collaboraofficebasis5.1-extension-mediawiki-publisher, collaboraofficebasis5.1-extension-nlpsolver, collaboraofficebasis5.1-extension-numbertext, collaboraofficebasis5.1-extension-pdf-import, collaboraofficebasis5.1-extension-report-builder, collaboraofficebasis5.1-gnome-integration, collaboraofficebasis5.1-graphicfilter, collaboraofficebasis5.1-images, collaboraofficebasis5.1-impress, collaboraofficebasis5.1-librelogo, collaboraofficebasis5.1-math, collaboraofficebasis5.1-ogltrans, collaboraofficebasis5.1-ooofonts, collaboraofficebasis5.1-ooolinguistic, collaboraofficebasis5.1-postgresql-sdbc, collaboraofficebasis5.1-python-script-provider, collaboraofficebasis5.1-pyuno, collaboraofficebasis5.1-writer, collaboraofficebasis5.1-xsltfilter, collaboraoffice5.1, collaboraoffice5.1-base, collaboraoffice5.1-calc, collaboraoffice5.1-dict-en, collaboraoffice5.1-draw, collaboraoffice5.1-debian-menus, collaboraoffice5.1-impress, collaboraoffice5.1-math, collaboraoffice5.1-ure, collaboraoffice5.1-writer, collaboraofficebasis5.1-en-us, collaboraofficebasis5.1-en-us-base, collaboraofficebasis5.1-en-us-calc, collaboraofficebasis5.1-en-us-math, collaboraofficebasis5.1-en-us-res, collaboraofficebasis5.1-en-us-writer, collaboraoffice5.1-en-us +Description: LibreOffice On-Line WebSocket Daemon + LOOLWSD is a daemon that talks to web browser clients and provides LibreOffice + services. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..a75b30292 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,31 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 +Name: loolwsd +Maintainer: Tor Lillqvist <tml@collabora.com> +Source: git://gerrit.libreoffice.org/online + +Copyright: 2015 Collabora Productivity <libreoffice@collabora.com> +License: MPL-2 + +Copyright: Copyright (c) 2010-2015, Vladimir Agafonkin, Copyright (c) 2010-2011, CloudMade +License: +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are +permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this list of + conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, this list + of conditions and the following disclaimer in the documentation and/or other materials + provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR +TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/loolwsd.cron.d b/debian/loolwsd.cron.d new file mode 100644 index 000000000..85a3afcae --- /dev/null +++ b/debian/loolwsd.cron.d @@ -0,0 +1 @@ +0 0 */1 * * root find /var/cache/loolwsd -name "*.png" -a -atime +10 -exec rm {} \; diff --git a/debian/loolwsd.postinst b/debian/loolwsd.postinst new file mode 100755 index 000000000..ad4f7ec85 --- /dev/null +++ b/debian/loolwsd.postinst @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +case "$1" in + configure) + setcap cap_fowner,cap_mknod,cap_sys_chroot=ep /usr/bin/loolforkit || true + setcap cap_sys_admin=ep /usr/bin/loolmount || true + + adduser --quiet --system --group --home /opt/lool lool + mkdir -p /var/cache/loolwsd && chown lool: /var/cache/loolwsd + rm -rf /var/cache/loolwsd/* + + # We assume that the LibreOffice to be used is built TDF-style + # and installs in /opt/collaboraoffice5.1, and that /opt/lool is + # on the same file system + + rm -rf /opt/lool + mkdir -p /opt/lool/child-roots + chown lool: /opt/lool + chown lool: /opt/lool/child-roots + + su lool --shell=/bin/sh -c "loolwsd-systemplate-setup /opt/lool/systemplate /opt/collaboraoffice5.1 >/dev/null 2>&1" + ;; + +esac + +#DEBHELPER# diff --git a/debian/loolwsd.preinst b/debian/loolwsd.preinst new file mode 100755 index 000000000..2778ec73b --- /dev/null +++ b/debian/loolwsd.preinst @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +# Stop any running loolwsd process +if [ -d /run/systemd/system ]; then + deb-systemd-invoke stop loolwsd.service >/dev/null || true +fi + +#DEBHELPER# diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..8a7224d50 --- /dev/null +++ b/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* +DPKG_EXPORT_BUILDFLAGS = 1 + +include /usr/share/dpkg/default.mk + +CONFFLAGS = --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-lokit-path=`pwd`/bundled/include $(CONFIG_OPTIONS) + +# Avoid setcap when doing "make", when building for packaging +# the setcap is done at installation time +export BUILDING_FROM_RPMBUILD=yes + +# main packaging script based on dh7 syntax +%: + dh $@ --with=systemd + +override_dh_auto_configure: + ./configure $(CONFFLAGS) + +override_dh_auto_test: + # do not test + +override_dh_auto_install: + make install DESTDIR=`pwd`/debian/loolwsd/ + cp -ar `pwd`/loleaflet `pwd`/debian/loolwsd/usr/share/loolwsd + +override_dh_installinit: + # no init.d scripts here, assume systemd diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) |