# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
-MEDIA_ROOT = '/usr/lib/ais/www/'
+MEDIA_ROOT = '/usr/share/ais/www/'
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
- '/usr/lib/ais/www_templates',
+ '/usr/share/ais/www_templates',
)
INSTALLED_APPS = (
kmz = zipfile.ZipFile(output, 'w')
kmz.writestr('doc.kml', inputstr)
for iconname in STYLE.used_icons:
- kmz.write('/usr/lib/ais/kmz_icons/'+iconname, iconname)
+ kmz.write('/usr/share/ais/kmz_icons/'+iconname, iconname)
kmz.close()
return output.getvalue()
--- /dev/null
+ais (0.2) UNRELEASED; urgency=low
+
+ * Initial release.
+
+ -- Jean-Michel Vourgère <jmv_deb@nirgal.com> Mon, 17 Dec 2012 10:49:26 +0000
--- /dev/null
+Source: ais
+Section: net
+Priority: optional
+Maintainer: Jean-Michel Vourgère <jmv_deb@nirgal.com>
+Build-Depends: debhelper (>= 8)
+Standards-Version: 3.9.1
+Vcs-Svn: svn://svn.nirgal.com/ais
+
+Package: ais
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, postgresql, python (>= 2.6), python-serial, python-rrdtool, python-psycopg2, python-cracklib, libjs-jquery, apache2, libapache2-mod-python, python-django, xz-utils, python-daemon, ntp, python-daemon, sudo, python-decoratedstr, python-htmlentities, adduser
+Description: Nirgal's Ais server
+ Stores AIS ship trafic
+ .
+ And more.
--- /dev/null
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ais
+Upstream-Contact: Jean-Michel Vourgère <jmv_deb@nirgal.com>
+Source: svn://svn.nirgal.com/ais
+
+Files: *
+Copyright: 2009-2012 Jean-Michel Vourgère
+License: GPL-3+
+
+License: GPL-3+
+ 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the text of the GNU General Public License
+ version 3 can be found in `/usr/share/common-licenses/GPL-3'.
--- /dev/null
+../etc/init.sh
\ No newline at end of file
--- /dev/null
+/etc/config.SAMPLE /etc/ais/
+/etc/database.SAMPLE /etc/ais/
+/bin/*.py /usr/share/python-support/ais/
+/bin/djais/*.py /usr/share/python-support/ais/djais/
+/bin/djais/templatetags/*.py /usr/share/python-support/ais/djais/templatetags/
+/bin/extras/*.py /usr/share/python-support/ais/extras/
+/bin/inputs/*.py /usr/share/python-support/ais/inputs/
+/kmz_icons /usr/share/ais/
+/www /usr/share/ais/
+/www_templates /usr/share/ais/
--- /dev/null
+#!/bin/sh
+# postinst script
+#
+# 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)
+ # System users and groups are NOT to be removed on package purge
+ # So that any orphaned file does not get another owner with a reused UID
+ addgroup --system ais
+ adduser --system --home /var/lib/ais --disabled-password --ingroup ais ais
+
+ if ! dpkg-statoverride --list /var/lib/ais >/dev/null 2>&1; then
+ dpkg-statoverride --update --add ais ais 2775 /var/lib/ais
+ fi
+ ;;
+
+ 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
+
--- /dev/null
+#!/bin/sh
+# postrm script for eyefiserver
+#
+# 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)
+ if dpkg-statoverride --list /var/lib/ais >/dev/null 2>&1; then
+ dpkg-statoverride --remove /var/lib/ais
+ fi
+ ;;
+ 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
--- /dev/null
+#!/usr/bin/make -f
+DH_VERBOSE=1
+export DH_ALWAYS_EXCLUDE=.svn
+%:
+ dh $@
--- /dev/null
+3.0 (native)
--- /dev/null
+tar-ignore = *.svn*
+tar-ignore = ressources*
+tar-ignore = bin/old/*
case $1 in
start)
- [ -r /etc/ais/database ] && RUN_PARAMS=--db
+ [ -r /etc/ais/database ] && RUN_PARAMS=--db
log_daemon_msg "Starting AIS acquisition"
if sudo -u nirgal python -m ais.inputs.run $RUN_PARAMS
then
log_warning_msg "Disabled because there is no /etc/ais/database"
fi
;;
- stop)
+ stop|restart|force-reload)
log_success_msg "Not implemented"
exit 1
;;