From 000a4885669921b160ba31328fb43842fcd3c6e1 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Sun, 14 Jul 2002 02:54:13 +0000 Subject: - Debian packaging based on John's package of plptools-0.10 --- debian/README.Debian | 12 +++++++ debian/changelog | 31 ++++++++++++++++ debian/control | 49 +++++++++++++++++++++++++ debian/copyright | 26 ++++++++++++++ debian/klipsi.files | 7 ++++ debian/kpsion.files | 9 +++++ debian/kpsion.menu | 7 ++++ debian/plptools-dev.docs | 4 +++ debian/plptools-dev.files | 3 ++ debian/plptools-kde.files | 10 ++++++ debian/plptools.conf | 5 +++ debian/plptools.conffiles | 1 + debian/plptools.dirs | 3 ++ debian/plptools.docs | 4 +++ debian/plptools.files | 9 +++++ debian/plptools.init | 64 +++++++++++++++++++++++++++++++++ debian/plptools.manpages | 6 ++++ debian/plptools.menu | 5 +++ debian/plptools.postinst | 48 +++++++++++++++++++++++++ debian/plptools.templates | 14 ++++++++ debian/rules | 91 +++++++++++++++++++++++++++++++++++++++++++++++ 21 files changed, 408 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/klipsi.files create mode 100644 debian/kpsion.files create mode 100644 debian/kpsion.menu create mode 100644 debian/plptools-dev.docs create mode 100644 debian/plptools-dev.files create mode 100644 debian/plptools-kde.files create mode 100644 debian/plptools.conf create mode 100644 debian/plptools.conffiles create mode 100644 debian/plptools.dirs create mode 100644 debian/plptools.docs create mode 100644 debian/plptools.files create mode 100644 debian/plptools.init create mode 100644 debian/plptools.manpages create mode 100644 debian/plptools.menu create mode 100644 debian/plptools.postinst create mode 100644 debian/plptools.templates create mode 100755 debian/rules (limited to 'debian') diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..db73139 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,12 @@ +plptools for Debian +---------------------- + +Built from the CVS version, extracted at 7:30 on 2 Nov 2001 +This version defaults to connecting the Psion to /dev/ttyS0 - if you +connect to a different serial line you will need to change the plptools +init script (e.g. /etc/init.d/plptools if you use SV5 init) + +The debian version of plpnfsd mounts the Psion disks to /var/lib/plptools/mnt + + + -- John Lines , Sat Nov 10 13:10:45 GMT 2001 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..f7ce4ff --- /dev/null +++ b/debian/changelog @@ -0,0 +1,31 @@ +plptools (0.11-1) unstable; urgency=low + + * New upstream version + * Made separate binaries for KDE dependant programs + * Made separate dev package + + -- Fritz Elfert Sun, 14 Jul 2002 04:22:58 +0100 + +plptools (0.10-1) unstable; urgency=low + + * New upstream version Closes: #102107 + * Depend on libreadline4, Closes: #89415 + * Add Build-Depends (might fix autobuilder problems on hppa and m68k + + -- John Lines Tue, 6 Nov 2001 21:24:21 +0000 + +plptools (0.7-2) unstable; urgency=low + + * rebuild for libreadline4 Closes: #89415 + + -- John Lines Sun, 13 May 2001 18:55:40 +0100 + +plptools (0.7-1) unstable; urgency=low + + * Initial Release. + + -- John Lines Wed, 13 Dec 2000 11:35:52 +0000 + +Local variables: +mode: debian-changelog +End: diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c2d5fcf --- /dev/null +++ b/debian/control @@ -0,0 +1,49 @@ +Source: plptools +Build-Depends: debhelper, automake (>= 1:1.4-p4-1.1), autoconf, libtool, gettext, libncurses5-dev, libreadline4-dev, libnewt-dev, kdoc, kdebase-dev +Section: otherosfs +Priority: optional +Maintainer: John Lines +Standards-Version: 3.5.6 + +Package: plptools +Architecture: any +Depends: ${shlibs:Depends}, debconf +Description: Access a Psion PDA over a serial link + This package lets you access Psion drives over a serial link. You + can mount them, pseudo NFS style, access them ftp-like, use a local + printer from the Psion (Psion S5 only) and perform backup/restore. + . + The software is partially based on p3nfs, which is also packed for + Debian, but plptools uses the native Psion protocol, whereas p3nfs + requires a program to be installed on the Psion. + +Package: plptools-dev +Architecture: any +Section: devel +Depends: plptools (= ${Source-Version}) +Description: plptools (development files) + You need these files if you want to build programs which use libplp. + +Package: plptools-kde +Architecture: any +Depends: ${shlibs:Depends}, kdebase-libs, konqueror, plptools (= ${Source-Version}) +Description: KDE integration of plptools + This package provides integrated access to a Psion PDA into KDE + Using a kioslave, any KDE compliant application can access files on + a Psion using a new URL protocol type "psion:/". Furthermore, a plugin + for KDE's advanced file manager konqueror adds Psion-related entries + to it's property dialog. + +Package: kpsion +Architecture: any +Depends: ${shlibs:Depends}, kdebase-libs, plptools (= ${Source-Version}) +Description: Backup and Restore of a Psion PDA + This package provides a KDE frontend for backup/restore of a Psion PDA + +Package: klipsi +Architecture: any +Depends: ${shlibs:Depends}, kdebase-libs, plptools (= ${Source-Version}) +Description: Remote Cut&Paste for Psion PDA + This package provides a KDE systray application which allows to share + KDE's clipboard remotely with a Psion PDA. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..3fc7ca2 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by John Lines on +Wed, 13 Dec 2000 11:35:52 +0000. + +It was downloaded from plptools.sourceforge.net via CVS + +Upstream Author(s): Fritz Elfert + +Copyright: + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place Suite 330, Boston, MA 02111-1307 USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + diff --git a/debian/klipsi.files b/debian/klipsi.files new file mode 100644 index 0000000..79f66d9 --- /dev/null +++ b/debian/klipsi.files @@ -0,0 +1,7 @@ +usr/bin/klipsi +usr/lib/klipsi.* +usr/share/applnk/*/klipsi* +usr/share/apps/klipsi/* +usr/share/icons/*/*/apps/klipsi* +usr/share/icons/*/*/actions/klipsi* +usr/share/locale/*/LC_MESSAGES/klipsi.mo diff --git a/debian/kpsion.files b/debian/kpsion.files new file mode 100644 index 0000000..65779b8 --- /dev/null +++ b/debian/kpsion.files @@ -0,0 +1,9 @@ +usr/bin/kpsion +usr/lib/libkpsion.* +usr/share/applnk/*/kpsion* +usr/share/apps/kpsion/* +usr/share/apps/konqueror/* +usr/share/icons/*/*/apps/kpsion* +usr/share/icons/*/*/actions/psion* +usr/share/locale/*/LC_MESSAGES/kpsion.mo +usr/share/doc/HTML/*/kpsion diff --git a/debian/kpsion.menu b/debian/kpsion.menu new file mode 100644 index 0000000..9262bdd --- /dev/null +++ b/debian/kpsion.menu @@ -0,0 +1,7 @@ +?package(kpsion):\ + needs=x11\ + section=Apps/Tools\ + hints="KDE"\ + kderemove="y"\ + title="Psion backup/restore"\ + command="/usr/bin/kpsion" diff --git a/debian/plptools-dev.docs b/debian/plptools-dev.docs new file mode 100644 index 0000000..9d002f6 --- /dev/null +++ b/debian/plptools-dev.docs @@ -0,0 +1,4 @@ +etc/psidump* +etc/*magic* +etc/ttytap.c +doc/api diff --git a/debian/plptools-dev.files b/debian/plptools-dev.files new file mode 100644 index 0000000..25d4b2f --- /dev/null +++ b/debian/plptools-dev.files @@ -0,0 +1,3 @@ +usr/lib/libplp.so +usr/lib/libplp.a +usr/include/plptools diff --git a/debian/plptools-kde.files b/debian/plptools-kde.files new file mode 100644 index 0000000..f90dfdc --- /dev/null +++ b/debian/plptools-kde.files @@ -0,0 +1,10 @@ +usr/lib/kio_plp.so* +usr/lib/kio_plp.la +usr/lib/libplpprops.so* +usr/lib/libplpprops.la +usr/share/services/* +usr/share/icons/*/*/mimetypes/* +usr/share/icons/*/*/devices/* +usr/share/icons/*/*/apps/psion* +usr/share/locale/*/LC_MESSAGES/libplpprops.mo +usr/share/mimelnk/*/* diff --git a/debian/plptools.conf b/debian/plptools.conf new file mode 100644 index 0000000..5b090a3 --- /dev/null +++ b/debian/plptools.conf @@ -0,0 +1,5 @@ +NCPD_ARGS= +START_PLPNFSD=yes +PLPNFSD_ARGS= +START_PLPPRINTD=no +PLPPRINTD_ARGS= diff --git a/debian/plptools.conffiles b/debian/plptools.conffiles new file mode 100644 index 0000000..05275a7 --- /dev/null +++ b/debian/plptools.conffiles @@ -0,0 +1 @@ +/etc/psion.conf diff --git a/debian/plptools.dirs b/debian/plptools.dirs new file mode 100644 index 0000000..9693826 --- /dev/null +++ b/debian/plptools.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/sbin +var/lib/plptools/mnt diff --git a/debian/plptools.docs b/debian/plptools.docs new file mode 100644 index 0000000..272bb94 --- /dev/null +++ b/debian/plptools.docs @@ -0,0 +1,4 @@ +README +TODO +CHANGES +ChangeLog diff --git a/debian/plptools.files b/debian/plptools.files new file mode 100644 index 0000000..8962d70 --- /dev/null +++ b/debian/plptools.files @@ -0,0 +1,9 @@ +usr/sbin/* +usr/bin/plpbackup +usr/bin/plpftp +usr/bin/sisinstall +usr/lib/libplp.la +usr/lib/libplp.so.* +usr/share/locale/*/LC_MESSAGES/plptools.mo +usr/share/man +usr/share/plptools diff --git a/debian/plptools.init b/debian/plptools.init new file mode 100644 index 0000000..1108970 --- /dev/null +++ b/debian/plptools.init @@ -0,0 +1,64 @@ +#! /bin/sh +# +# start or stop the plptools daemon +# +# This file was automatically customized by dh-make on Wed, 13 Dec 2000 11:35:52 +0000 + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/ncpd +NAME=plptools +DESC=plptools +SERIAL=/dev/ttyS0 + +test -f $DAEMON || exit 0 + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet \ + --exec $DAEMON -- -s $SERIAL + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet \ + --exec $DAEMON + echo "$NAME." + ;; + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # echo "Reloading $DESC configuration files." + # start-stop-daemon --stop --signal 1 --quiet --pidfile \ + # /var/run/$NAME.pid --exec $DAEMON + #;; + restart|force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart". + # + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON + sleep 1 + start-stop-daemon --start --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/debian/plptools.manpages b/debian/plptools.manpages new file mode 100644 index 0000000..157c02e --- /dev/null +++ b/debian/plptools.manpages @@ -0,0 +1,6 @@ +usr/share/man/man1/plpbackup.1 +usr/share/man/man1/plpftp.1 +usr/share/man/man1/sisinstall.1 +usr/share/man/man8/ncpd.8 +usr/share/man/man8/plpnfsd.8 +usr/share/man/man8/plpprintd.8 diff --git a/debian/plptools.menu b/debian/plptools.menu new file mode 100644 index 0000000..4dd06d6 --- /dev/null +++ b/debian/plptools.menu @@ -0,0 +1,5 @@ +?package(plptools):needs=text section=Apps/Tools\ + title="plpftp" command="/usr/bin/plpftp" + +?package(plptools):needs=text section=Apps/Tools\ + title="plpbackup" command="/usr/bin/plpbackup" diff --git a/debian/plptools.postinst b/debian/plptools.postinst new file mode 100644 index 0000000..5e36acb --- /dev/null +++ b/debian/plptools.postinst @@ -0,0 +1,48 @@ +#! /bin/sh +# postinst script for plptools +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/share/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + /sbin/ldconfig + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/plptools.templates b/debian/plptools.templates new file mode 100644 index 0000000..f0eb4ee --- /dev/null +++ b/debian/plptools.templates @@ -0,0 +1,14 @@ +Template: plptools/setup +Type: note +Description: In addition to plptools' main daemon "ncpd", plptools provides + two optional daemons: + plpnfsd (for nfs-like mounting a Psion's drives) + plpprintd (for printing via PC from a Psion Series 5) + Both daemons are disabled by default. You can enable them by editing + /etc/plptools.conf. +Description-de: Zusätzlich zum Haupt-Daemon "ncpd", stellt das Packet plptools + zwei optionale Daemonen zur Verfügung: + plpnfsd (zum Einhängen von Psion-Laufwerken - ähnlich wie NFS) + plpprintd (zum Drucken via PC von einem Psion Serie 5) + Beide Daemonen sind standardmäßig abgeschaltet. Sie können aktiviert weden, + indem die Datei /etc/plptools.conf editiert wird. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ed8b8b5 --- /dev/null +++ b/debian/rules @@ -0,0 +1,91 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=3 + +tmp = $(shell pwd)/debian/tmp + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + aclocal -I conf/m4/plptools -I conf/m4/kde + echo n | gettextize -f + -test -f po/ChangeLog~ && mv -f po/ChangeLog~ po/ChangeLog + libtoolize --force + autoheader + automake --add-missing + make -C kde2 -f Makefile.am am_edit + autoconf + touch include/stamp-h.in + ./configure --prefix=/usr --with-mountdir=/var/lib/plptools/mnt \ + --with-initdir=none --enable-kde + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + # Add here commands to compile the package. + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + # Add here commands to clean up after the build process. + -$(MAKE) maintainer-clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + $(MAKE) DESTDIR=$(tmp) install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir + dh_testroot + dh_installdebconf -a + dh_installdocs -a +# dh_installexamples + dh_installmenu -a +# dh_installemacsen +# dh_installpam + dh_installinit -a +# dh_installcron + dh_installman -a +# dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + # You may want to make some executables suid here. +# dh_suidregister +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install -- cgit v1.2.3