This is an automated email from the git hooks/post-receive script. rubund-guest pushed a commit to branch master in repository osm-tile-server.
commit 228d431c737ebf4cf320c5a903094e905f757e49 Author: Ruben Undheim <[email protected]> Date: Wed Sep 2 22:40:20 2015 +0200 Added debian folder --- debian/changelog | 5 +++ debian/compat | 1 + debian/config | 15 +++++++ debian/control | 16 +++++++ debian/copyright | 9 ++++ debian/dirs | 0 debian/docs | 0 debian/install | 0 debian/links | 0 debian/osm-tile-server.cron.daily | 12 ++++++ debian/po/POTFILES.in | 1 + debian/po/templates.pot | 54 ++++++++++++++++++++++++ debian/postinst | 87 +++++++++++++++++++++++++++++++++++++++ debian/prerm | 40 ++++++++++++++++++ debian/rules | 8 ++++ debian/source/format | 1 + debian/templates | 30 ++++++++++++++ 17 files changed, 279 insertions(+) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..15de596 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +osm-tile-server (1.0) unstable; urgency=low + + * Initial Release. + + -- Ruben Undheim <[email protected]> Wed, 02 Sep 2015 22:38:06 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/config b/debian/config new file mode 100644 index 0000000..5dd8276 --- /dev/null +++ b/debian/config @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +#db_input high osm-tile-server/path || true +db_input medium osm-tile-server/db-name || true +db_input medium osm-tile-server/db-user || true +db_input medium osm-tile-server/db-password || true +db_input medium osm-tile-server/root-password || true +db_input medium osm-tile-server/enable || true +db_go + +exit 0 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..0b65612 --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: osm-tile-server +Section: web +Priority: optional +Maintainer: Ruben Undheim <[email protected]> +Build-Depends: debhelper (>= 9) +Standards-Version: 3.9.6 + +Package: osm-tile-server +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, php5-gd, php5-mysql, apache2, + gir1.2-gexiv2-0.10, python-mysql.connector, + mysql-server, mysql-client, php5-common, libapache2-mod-php5, + imagemagick, python, python3, anacron, + python-django, libapache2-mod-wsgi +Description: Naturfakta web service + This is the Debian package of the Naturfakta web site. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..742b514 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,9 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: osm-tile-server + +Files: * +Copyright: 2015 Ruben Undheim <[email protected]> +License: GPL-2+ + + +License: GPL-2+ diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..e69de29 diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e69de29 diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..e69de29 diff --git a/debian/links b/debian/links new file mode 100644 index 0000000..e69de29 diff --git a/debian/osm-tile-server.cron.daily b/debian/osm-tile-server.cron.daily new file mode 100644 index 0000000..3cba296 --- /dev/null +++ b/debian/osm-tile-server.cron.daily @@ -0,0 +1,12 @@ +#!/bin/sh + + +if [ -e /var/lib/naturfakta-web/images ] ; then + chgrp www-data `readlink -f /var/lib/naturfakta-web/images` + chmod g+w `readlink -f /var/lib/naturfakta-web/images` + mkdir -p /var/lib/naturfakta-web/images/orig + chgrp www-data `readlink -f /var/lib/naturfakta-web/images/orig` + chmod g+w `readlink -f /var/lib/naturfakta-web/images/orig` + cp /usr/share/naturfakta-web/keys/check.php /usr/share/naturfakta-web/keys/.htaccess /var/lib/naturfakta-web/keys/ + ln -sf /usr/share/websites/naturfakta/www/versions/bimage.php /var/lib/naturfakta-web/images/bimage.php +fi diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in new file mode 100644 index 0000000..cef83a3 --- /dev/null +++ b/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates diff --git a/debian/po/templates.pot b/debian/po/templates.pot new file mode 100644 index 0000000..eb6e657 --- /dev/null +++ b/debian/po/templates.pot @@ -0,0 +1,54 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: osm-tile-server\n" +"Report-Msgid-Bugs-To: [email protected]\n" +"POT-Creation-Date: 2015-09-02 22:41+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <[email protected]>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Enter the path to the pictures:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "Enter name of mysql database to use for naturfakta:" +msgstr "" + +#. Type: password +#. Description +#: ../templates:3001 +msgid "Enter the password for the mysql database:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:4001 +msgid "Enter name of the mysql user:" +msgstr "" + +#. Type: password +#. Description +#: ../templates:5001 +msgid "Enter the root password for the config db:" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:6001 +msgid "Enable apache site for naturfakta now?:" +msgstr "" diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..e7b314f --- /dev/null +++ b/debian/postinst @@ -0,0 +1,87 @@ +#!/bin/sh +# postinst script for osm-tile-server +# +# see: dh_installdeb(1) + +set -e + +. /usr/share/debconf/confmodule + +# 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 https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + #db_get osm-tile-server/db-name + #DBNAME=$RET + #db_get osm-tile-server/db-password + #PASSWORD=$RET + #db_get osm-tile-server/db-user + #DBUSER=$RET + #db_get osm-tile-server/root-password + #ROOTPASSWORD=$RET + #RES=$(echo "select schema_name from information_schema.schemata where schema_name = '$DBNAME';" | mysql -h localhost -u root -p$ROOTPASSWORD mysql) + #if [ "$RES" = "" ] ; then + # echo "Database does not exist. Creating..." + # echo "create database $DBNAME;" | mysql -h localhost -u root -p$ROOTPASSWORD mysql + # echo "grant all on ${DBNAME}.* to ${DBUSER} identified by '${PASSWORD}';" | mysql -h localhost -u root -p$ROOTPASSWORD mysql + #else + # echo "Database $DBNAME exists already. Skipping setup" + #fi + #sed -i 's/DBNAME=.*$/DBNAME='$DBNAME'/' /etc/osm-tile-server.conf + #sed -i 's/DBUSER=.*$/DBUSER='$DBUSER'/' /etc/osm-tile-server.conf + #sed -i 's/DBPASS=.*$/DBPASS='$PASSWORD'/' /etc/osm-tile-server.conf + #sed -i 's/database =.*$/database = '$DBNAME'/' /etc/osm-tile-server.mysql.cnf + #sed -i 's/user =.*$/user = '$DBUSER'/' /etc/osm-tile-server.mysql.cnf + #sed -i 's/password =.*$/password = '$PASSWORD'/' /etc/osm-tile-server.mysql.cnf + #sed -i "s/\$dbuser = .*$/\$dbuser = '"$DBUSER"';/" /usr/share/websites/naturfakta/www/versions/mysql.php + #sed -i "s/\$dbpass = .*$/\$dbpass = '"$PASSWORD"';/" /usr/share/websites/naturfakta/www/versions/mysql.php + #sed -i "s/\$dbname = .*$/\$dbname = '"$DBNAME"';/" /usr/share/websites/naturfakta/www/versions/mysql.php + #sed -i "s/\$dbuser = .*$/\$dbuser = '"$DBUSER"';/" /usr/share/websites/naturfakta/www/edit/mysql.php + #sed -i "s/\$dbpass = .*$/\$dbpass = '"$PASSWORD"';/" /usr/share/websites/naturfakta/www/edit/mysql.php + #sed -i "s/\$dbname = .*$/\$dbname = '"$DBNAME"';/" /usr/share/websites/naturfakta/www/edit/mysql.php + #sed -i "s/sqldbname = .*$/sqldbname = '"$DBNAME"';/" /usr/lib/osm-tile-server/python/mypasswords.py + #sed -i "s/sqlpass = .*$/sqlpass = '"$PASSWORD"';/" /usr/lib/osm-tile-server/python/mypasswords.py + #sed -i "s/sqldbuser = .*$/sqldbuser = '"$DBUSER"';/" /usr/lib/osm-tile-server/python/mypasswords.py + #db_get osm-tile-server/enable + #ENABLENOW=$RET + #if [ "$ENABLENOW" = "true" ] ; then + # echo "Enabling site now" + # a2ensite naturfakta.conf + # a2enmod rewrite + # a2enmod ssl + # a2enmod wsgi + #fi + ##db_get osm-tile-server/path + ##PICTUREPATH=$RET + ##ln -sf $PICTUREPATH /var/www/packages/bilder/www/bilder + #chown -R www-data:www-data /var/cache/naturfakta + #cp /usr/share/osm-tile-server/keys/check.php /usr/share/osm-tile-server/keys/.htaccess /var/lib/osm-tile-server/keys/ + #ln -sf /usr/share/websites/naturfakta/www/versions/bimage.php /var/lib/osm-tile-server/images/bimage.php + ;; + + 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/prerm b/debian/prerm new file mode 100644 index 0000000..0352459 --- /dev/null +++ b/debian/prerm @@ -0,0 +1,40 @@ +#!/bin/sh +# prerm script for bilder-ru +# +# 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 https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + #a2dissite naturfakta.conf + #rm /var/www/packages/bilder/www/bilder + ;; + + 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..4cbf11c --- /dev/null +++ b/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +%: + dh $@ + + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/templates b/debian/templates new file mode 100644 index 0000000..1fb8613 --- /dev/null +++ b/debian/templates @@ -0,0 +1,30 @@ +Template: osm-tile-server/path +Type: string +Default: /blabla +_Description: Enter the path to the pictures: + +Template: osm-tile-server/db-name +Type: string +Default: naturfakta +_Description: Enter name of mysql database to use for naturfakta: + +Template: osm-tile-server/db-password +Type: password +Default: default +_Description: Enter the password for the mysql database: + +Template: osm-tile-server/db-user +Type: string +Default: naturfaktauser +_Description: Enter name of the mysql user: + +Template: osm-tile-server/root-password +Type: password +Default: +_Description: Enter the root password for the config db: + +Template: osm-tile-server/enable +Type: boolean +Default: true +_Description: Enable apache site for naturfakta now?: + -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osm-tile-server.git _______________________________________________ Pkg-grass-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

