summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2013-04-20 22:20:57 +0000
committerme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2013-04-20 22:20:57 +0000
commit73b6d4229b1b48a103e4feeeaac874db964d2521 (patch)
tree95f89cc06b16fd70276b2d943708f49ed6c1a421 /debian
parentc26ae17b32ed904635c1601564ff83838f516150 (diff)
downloadpica-pica-73b6d4229b1b48a103e4feeeaac874db964d2521.tar.gz
pica-pica-73b6d4229b1b48a103e4feeeaac874db964d2521.zip
files for building deb packages
git-svn-id: svn://localhost/project_picapica/trunk@239 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control23
-rw-r--r--debian/copyright67
-rw-r--r--debian/docs1
-rw-r--r--debian/pica-client.install4
-rw-r--r--debian/pica-client.menu2
-rw-r--r--debian/pica-client.postinst44
-rw-r--r--debian/pica-client.postrm43
-rw-r--r--debian/pica-client.preinst35
-rw-r--r--debian/pica-client.prerm38
-rw-r--r--debian/pica-node.default10
-rw-r--r--debian/pica-node.dirs1
-rw-r--r--debian/pica-node.init143
-rw-r--r--debian/pica-node.install5
-rw-r--r--debian/pica-node.manpages3
-rw-r--r--debian/pica-node.postinst59
-rw-r--r--debian/pica-node.postrm37
-rw-r--r--debian/pica-node.preinst35
-rw-r--r--debian/pica-node.prerm38
-rwxr-xr-xdebian/rules23
-rw-r--r--debian/source/format1
22 files changed, 618 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c9e8110
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+pica-pica (0.5.3-1) unstable; urgency=low
+
+ * Initial release
+
+ -- Anton Sviridenko <anton@picapica.im> Sun, 24 Feb 2013 18:41:21 +0400
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a192f69
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,23 @@
+Source: pica-pica
+Section: net
+Priority: optional
+Maintainer: Anton Sviridenko <anton@picapica.im>
+Build-Depends: debhelper (>= 8.0.0), autotools-dev, libssl-dev, libqt4-dev
+Standards-Version: 3.9.2
+Homepage: http://picapica.im
+
+Package: pica-client
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Pica Pica instant messaging client
+ Client for secure distributed instant messaging system
+ Pica Pica.
+
+Package: pica-node
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, adduser (>= 3.11)
+Description: node component for Pica Pica IM system
+ Pica Pica node serves Pica Pica distributed IM network.
+ It authenticates users, provides info about other existing
+ nodes and online users, routes encrypted connections between
+ users.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d1be36f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,67 @@
+Format: http://dep.debian.net/deps/dep5
+Upstream-Name: pica-pica
+Source: http://picapica.im
+
+Files: *
+Copyright: 2012-2013 Anton Sviridenko <anton@picapica.im>
+License: BSD-2-clause
+ 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 OWNER 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.
+
+Files: debian/*
+Copyright: 2013 Anton Sviridenko <anton@picapica.im>
+License: GPL-2+
+ This package 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 of the License, or
+ (at your option) any later version.
+ .
+ This package 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, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
+Files: iniparser/*
+Copyright: 2000-2011 Nicolas Devillard
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/debian/pica-client.install b/debian/pica-client.install
new file mode 100644
index 0000000..476b769
--- /dev/null
+++ b/debian/pica-client.install
@@ -0,0 +1,4 @@
+pica-client/pica-client.desktop usr/share/applications
+debian/tmp/usr/bin/pica-client
+debian/tmp/usr/share/pica-client/*
+
diff --git a/debian/pica-client.menu b/debian/pica-client.menu
new file mode 100644
index 0000000..4349f26
--- /dev/null
+++ b/debian/pica-client.menu
@@ -0,0 +1,2 @@
+?package(pica-client):needs=X11 section=Applications/Network/Communication\
+ title="Pica Pica IM Client" command=/usr/bin/pica-client
diff --git a/debian/pica-client.postinst b/debian/pica-client.postinst
new file mode 100644
index 0000000..23cd602
--- /dev/null
+++ b/debian/pica-client.postinst
@@ -0,0 +1,44 @@
+#!/bin/sh
+# postinst script for pica-pica
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+
+ xdg-icon-resource install --size 32 "/usr/share/pica-client/picapica-icon-sit.png" pica-client
+ xdg-icon-resource install --size 22 "/usr/share/pica-client/picapica-icon-sit.png" pica-client
+ xdg-icon-resource install --size 64 "/usr/share/pica-client/picapica-icon-sit.png" pica-client
+
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/pica-client.postrm b/debian/pica-client.postrm
new file mode 100644
index 0000000..47a5753
--- /dev/null
+++ b/debian/pica-client.postrm
@@ -0,0 +1,43 @@
+#!/bin/sh
+# postrm script for pica-pica
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ remove)
+ xdg-icon-resource uninstall --size 32 pica-client
+ xdg-icon-resource uninstall --size 22 pica-client
+ xdg-icon-resource uninstall --size 64 pica-client
+ ;;
+
+ purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/pica-client.preinst b/debian/pica-client.preinst
new file mode 100644
index 0000000..9c3c406
--- /dev/null
+++ b/debian/pica-client.preinst
@@ -0,0 +1,35 @@
+#!/bin/sh
+# preinst script for pica-pica
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <new-preinst> `install'
+# * <new-preinst> `install' <old-version>
+# * <new-preinst> `upgrade' <old-version>
+# * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ install|upgrade)
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "preinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/pica-client.prerm b/debian/pica-client.prerm
new file mode 100644
index 0000000..7575b8d
--- /dev/null
+++ b/debian/pica-client.prerm
@@ -0,0 +1,38 @@
+#!/bin/sh
+# prerm script for pica-pica
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <prerm> `remove'
+# * <old-prerm> `upgrade' <new-version>
+# * <new-prerm> `failed-upgrade' <old-version>
+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+# * <deconfigured's-prerm> `deconfigure' `in-favour'
+# <package-being-installed> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ remove|upgrade|deconfigure)
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/pica-node.default b/debian/pica-node.default
new file mode 100644
index 0000000..c10c48a
--- /dev/null
+++ b/debian/pica-node.default
@@ -0,0 +1,10 @@
+# Defaults for pica-node initscript
+# sourced by /etc/init.d/pica-node
+# installed at /etc/default/pica-node by the maintainer scripts
+
+#
+# This is a POSIX shell fragment
+#
+
+# Additional options that are passed to the Daemon.
+DAEMON_OPTS="-v"
diff --git a/debian/pica-node.dirs b/debian/pica-node.dirs
new file mode 100644
index 0000000..00a8913
--- /dev/null
+++ b/debian/pica-node.dirs
@@ -0,0 +1 @@
+var/log/pica-node
diff --git a/debian/pica-node.init b/debian/pica-node.init
new file mode 100644
index 0000000..d35aad3
--- /dev/null
+++ b/debian/pica-node.init
@@ -0,0 +1,143 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides: pica-node
+# Required-Start: $network $local_fs
+# Required-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: <Enter a short description of the sortware>
+# Description: <Enter a long description of the software>
+# <...>
+# <...>
+### END INIT INFO
+
+# Author: picapica <anton@picapica.im>
+
+# PATH should only include /usr/* if it runs after the mountnfs.sh script
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC=pica-node # Introduce a short description here
+NAME=pica-node # Introduce the short server's name here
+DAEMON=/usr/bin/pica-node # Introduce the server's location here
+DAEMON_ARGS="-v" # Arguments to run the daemon with
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x $DAEMON ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Load the VERBOSE setting and other rcS variables
+. /lib/init/vars.sh
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+ # Return
+ # 0 if daemon has been started
+ # 1 if daemon was already running
+ # 2 if daemon could not be started
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --background --exec $DAEMON --test > /dev/null \
+ || return 1
+ start-stop-daemon --start --quiet --chuid pica-node --pidfile $PIDFILE --background \
+ --make-pidfile --exec /bin/bash -- -c "exec $DAEMON $DAEMON_ARGS >> /var/log/pica-node/pica-node.log \
+ 2>>/var/log/pica-node/pica-node.err " \
+ || return 2
+ # Add code here, if necessary, that waits for the process to be ready
+ # to handle requests from services started subsequently which depend
+ # on this one. As a last resort, sleep for some time.
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+ # Return
+ # 0 if daemon has been stopped
+ # 1 if daemon was already stopped
+ # 2 if daemon could not be stopped
+ # other if a failure occurred
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+ RETVAL="$?"
+ [ "$RETVAL" = 2 ] && return 2
+ # Wait for children to finish too if this is a daemon that forks
+ # and if the daemon is only ever run from this initscript.
+ # If the above conditions are not satisfied then add some other code
+ # that waits for the process to drop all resources that could be
+ # needed by services started subsequently. A last resort is to
+ # sleep for some time.
+ start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
+ [ "$?" = 2 ] && return 2
+ # Many daemons don't delete their pidfiles when they exit.
+ rm -f $PIDFILE
+ return "$RETVAL"
+}
+
+
+case "$1" in
+ start)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME"
+ do_start
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ stop)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ status)
+ status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+ ;;
+ #reload|force-reload)
+ #
+ # If do_reload() is not implemented then leave this commented out
+ # and leave 'force-reload' as an alias for 'restart'.
+ #
+ #log_daemon_msg "Reloading $DESC" "$NAME"
+ #do_reload
+ #log_end_msg $?
+ #;;
+ restart|force-reload)
+ #
+ # If the "reload" option is implemented then remove the
+ # 'force-reload' alias
+ #
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1)
+ do_start
+ case "$?" in
+ 0) log_end_msg 0 ;;
+ 1) log_end_msg 1 ;; # Old process is still running
+ *) log_end_msg 1 ;; # Failed to start
+ esac
+ ;;
+ *)
+ # Failed to stop
+ log_end_msg 1
+ ;;
+ esac
+ ;;
+ *)
+ #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/debian/pica-node.install b/debian/pica-node.install
new file mode 100644
index 0000000..63b9a80
--- /dev/null
+++ b/debian/pica-node.install
@@ -0,0 +1,5 @@
+debian/tmp/etc/pica-node.conf
+debian/tmp/usr/bin/pica-node
+debian/tmp/usr/share/pica-node/*
+debian/tmp/var/lib/pica-node/*
+
diff --git a/debian/pica-node.manpages b/debian/pica-node.manpages
new file mode 100644
index 0000000..3324407
--- /dev/null
+++ b/debian/pica-node.manpages
@@ -0,0 +1,3 @@
+pica-node.8
+pica-node.conf.5
+
diff --git a/debian/pica-node.postinst b/debian/pica-node.postinst
new file mode 100644
index 0000000..8942b5f
--- /dev/null
+++ b/debian/pica-node.postinst
@@ -0,0 +1,59 @@
+#!/bin/sh
+# postinst script for pica-pica
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+
+ if ! getent passwd | grep -q "^pica-node"; then
+ echo "Adding user pica-node.."
+ adduser --quiet --system --group \
+ --no-create-home --disabled-password \
+ pica-node 2>/dev/null || true
+ echo "..done"
+ fi
+
+ if ! dpkg-statoverride --list /var/lib/pica-node > /dev/null
+ then
+ chown -R pica-node:pica-node /var/lib/pica-node
+ chmod u=rwx,g=rx,o=rx /var/lib/pica-node
+ fi
+
+ test -d /var/log/pica-node || mkdir -p /var/log/pica-node
+
+ chown -R pica-node:pica-node /var/log/pica-node
+ chmod u=rwx,g=rx,o=rx /var/log/pica-node
+
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/pica-node.postrm b/debian/pica-node.postrm
new file mode 100644
index 0000000..05a8491
--- /dev/null
+++ b/debian/pica-node.postrm
@@ -0,0 +1,37 @@
+#!/bin/sh
+# postrm script for pica-pica
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/pica-node.preinst b/debian/pica-node.preinst
new file mode 100644
index 0000000..9c3c406
--- /dev/null
+++ b/debian/pica-node.preinst
@@ -0,0 +1,35 @@
+#!/bin/sh
+# preinst script for pica-pica
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <new-preinst> `install'
+# * <new-preinst> `install' <old-version>
+# * <new-preinst> `upgrade' <old-version>
+# * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ install|upgrade)
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "preinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/pica-node.prerm b/debian/pica-node.prerm
new file mode 100644
index 0000000..7575b8d
--- /dev/null
+++ b/debian/pica-node.prerm
@@ -0,0 +1,38 @@
+#!/bin/sh
+# prerm script for pica-pica
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <prerm> `remove'
+# * <old-prerm> `upgrade' <new-version>
+# * <new-prerm> `failed-upgrade' <old-version>
+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+# * <deconfigured's-prerm> `deconfigure' `in-favour'
+# <package-being-installed> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ remove|upgrade|deconfigure)
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c18929d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets by Bill Allombert 2001
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS=-v
+
+override_dh_auto_configure:
+ dh_auto_configure -- --disable-menuitem
+
+%:
+ dh $@
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)