-all:
+VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
+
+all: build
+
+build:
+ rm -f auf-reflets-tse.oxt
+ cd openoffice ; zip -9rpD ../auf-reflets-tse.oxt .
install:
install -m 0755 auf-reflets-tse $(DESTDIR)/usr/bin/
install -m 0644 auf-reflets-tse.desktop $(DESTDIR)/usr/share/applications/
install -m 0644 auf-reflets-tse.png auf-reflets-tse.xpm $(DESTDIR)/usr/share/pixmaps/
+ install -m 0755 auf-reflets-config-openoffice $(DESTDIR)/usr/bin/
+ install -m 0644 auf-reflets-tse.oxt $(DESTDIR)/usr/lib/openoffice/share/extension/install/
clean:
- rm -f debuild-stamp
+ rm -f auf-reflets-tse.oxt
test:
debuild -I.git -I*.ex -b -us -uc -tc
- dpkg -i ../auf-poste-client-reflets_*.deb
+ sudo dpkg -i ../auf-poste-client-reflets_$(VERSION)_all.deb
-debuild: debuild-stamp
-debuild-stamp:
+release:
debuild -I.git -I*.ex
- touch debuild-stamp
-
-release: debuild
debrelease --dput auf-ubuntu
--- /dev/null
+#! /bin/sh
+# Script auf-reflets-config-openoffice de configuration de OpenOffice
+# Copyright © 2008 Agence universitaire de la Francophonie
+# Autheur : Progfou <jean-christophe.andre@auf.org>
+# Date de création : octobre 2008
+
+EXTENSION="auf-reflets-tse.oxt"
+
+OOODIR="/usr/lib/openoffice"
+UNOPKG="$OOODIR/program/unopkg"
+EXTDIR="$OOODIR/share/extension/install"
+
+"$UNOPKG" add "$EXTDIR/$EXTENSION" \
+ "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
+
+"$UNOPKG" remove "$EXTENSION" \
+ "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
+
+"$UNOPKG" list > /dev/null 2>&1
+
+exit 0
usr/bin
usr/share/applications
usr/share/pixmaps
+usr/lib/openoffice/share/extension/install
+auf-poste-client-reflets (1.4) hardy; urgency=low
+
+ * Début de support Coda dans OpenOffice.
+
+ -- Jean Christophe André <progfou@andrele.org> Wed, 15 Oct 2008 03:15:16 +0700
+
auf-poste-client-reflets (1.3.3) hardy; urgency=low
* Création d'un paquet transitionnel pour migration automatique.
Section: x11
Priority: optional
Maintainer: Progfou <jean-christophe.andre@auf.org>
-Build-Depends: debhelper (>= 5)
+Build-Depends: debhelper (>= 5), zip
Standards-Version: 3.7.2
Package: auf-poste-client-reflets
Architecture: all
-Depends: rdesktop
-Recommends: cups-pdf
-Suggests: zenity
+Depends: rdesktop, openoffice.org-common
+Recommends: zenity, cups-pdf, openoffice.org-calc
Provides: auf-reflets-tse
Replaces: auf-reflets-tse (<< 1.3)
Conflicts: auf-reflets-tse (<< 1.3)
-Description: configuration d'une connexion TSE au projet Reflets
+Description: configuration d'un environnement conforme au projet Reflets
Ce paquet fournit une application "auf-reflets-tse" qui lance une
- connexion TSE pour utiliser CODA (reflets-tse.auf).
+ connexion TSE pour utiliser CODA (reflets-tse.auf), ainsi qu'une extension
+ facilitant les opérations de copier/coller depuis CODA vers OpenOffice.
Package: auf-reflets-tse
Architecture: all
--- /dev/null
+#!/bin/sh
+
+exit 0
+
+set -e
+
+add_extension() {
+ echo -n "Adding extension $1..."
+ INSTDIR=`mktemp -d`
+ /usr/lib/openoffice/program/unopkg add --shared $1 \
+ "-env:UserInstallation=file:///$INSTDIR" \
+ '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \
+ "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
+ if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi
+ echo " done."
+}
+
+if [ "$1" = "configure" -o "$1" = "upgrade" ]; then
+ add_extension /usr/lib/openoffice/share/extension/install/auf-reflets-tse.oxt
+fi
+
+exit 0
--- /dev/null
+#!/bin/sh
+
+exit 0
+
+set -e
+
+flush_unopkg_cache() {
+ /usr/lib/openoffice/program/unopkg list --shared > /dev/null 2>&1
+}
+
+remove_extension() {
+ if /usr/lib/openoffice/program/unopkg list --shared $1 >/dev/null; then
+ echo -n "Removing extension $1..."
+ INSTDIR=`mktemp -d`
+ /usr/lib/openoffice/program/unopkg remove --shared $1 \
+ "-env:UserInstallation=file://$INSTDIR" \
+ '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \
+ "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
+ if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi
+ echo " done."
+ flush_unopkg_cache
+ fi
+}
+
+if [ "$1" = "upgrade" ]; then
+ # this is a legacy package, so we need to find it first...
+ id=`/usr/lib/openoffice/program/unopkg list --shared | grep Identifier:.*auf-reflets-tse | cut -d":" -f2`
+ remove_extension $id
+fi
+
+exit 0
--- /dev/null
+#!/bin/sh
+
+exit 0
+
+set -e
+
+flush_unopkg_cache() {
+ /usr/lib/openoffice/program/unopkg list --shared > /dev/null 2>&1
+}
+
+remove_extension() {
+ if /usr/lib/openoffice/program/unopkg list --shared $1 >/dev/null; then
+ echo -n "Removing extension $1..."
+ INSTDIR=`mktemp -d`
+ /usr/lib/openoffice/program/unopkg remove --shared $1 \
+ "-env:UserInstallation=file://$INSTDIR" \
+ '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \
+ "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
+ if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi
+ echo " done."
+ flush_unopkg_cache
+ fi
+}
+
+if [ "$1" = "remove" ]; then
+ # this is a legacy package, so we need to find it first...
+ id=`/usr/lib/openoffice/program/unopkg list --shared | grep Identifier:.*auf-reflets-tse | cut -d":" -f2`
+ remove_extension $id
+fi
+
+exit 0
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd">
+<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
+ <manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data" manifest:full-path="rdesktop.xcu"/>
+</manifest:manifest>
--- /dev/null
+<?xml version='1.0' encoding='UTF-8'?>
+<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="VCL" oor:package="org.openoffice">
+
+
+ <node oor:name="Settings">
+ <node oor:name="Transfer" oor:op="replace">
+ <prop oor:name="SelectionTimeout" oor:type="xs:string" oor:op="replace">
+ <value>30</value>
+ </prop>
+ </node>
+ </node>
+</oor:component-data>