Benjamin Renard commited on 2012-03-26 17:06:26
              Showing 20 changed files, with 572 additions and 0 deletions.
            
| ... | ... | @@ -0,0 +1,17 @@ | 
| 1 | +DESTDIR= | |
| 2 | + | |
| 3 | +all: build | |
| 4 | + | |
| 5 | +build: build-stamp | |
| 6 | +build-stamp: | |
| 7 | + db2html pykota.sgml | |
| 8 | + db2pdf pykota.sgml | |
| 9 | + touch build-stamp | |
| 10 | + | |
| 11 | +install: build | |
| 12 | + mkdir -p $(DESTDIR)/usr/share/doc/pykota/html/ | |
| 13 | + cp pykota.pdf $(DESTDIR)/usr/share/doc/pykota/ | |
| 14 | + cp pykota/*.html $(DESTDIR)/usr/share/doc/pykota/html/ | |
| 15 | + | |
| 16 | +clean: | |
| 17 | + rm -f pykota.pdf *.html build-stamp | 
| ... | ... | @@ -0,0 +1,26 @@ | 
| 1 | +# $Id: README 3481 2009-01-24 21:22:34Z jerome $ | |
| 2 | + | |
| 3 | +PyKota - Print Quotas for CUPS | |
| 4 | + | |
| 5 | +(c) 2003-2009 Jerome Alet <alet@librelogiciel.com> | |
| 6 | +This program is free software: you can redistribute it and/or modify | |
| 7 | +it under the terms of the GNU General Public License as published by | |
| 8 | +the Free Software Foundation, either version 3 of the License, or | |
| 9 | +(at your option) any later version. | |
| 10 | + | |
| 11 | +This program is distributed in the hope that it will be useful, | |
| 12 | +but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | +GNU General Public License for more details. | |
| 15 | + | |
| 16 | +You should have received a copy of the GNU General Public License | |
| 17 | +along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 18 | + | |
| 19 | +============================================================ | |
| 20 | + | |
| 21 | +This directory contains scripts you may find interesting to | |
| 22 | +build Debian GNU/Linux packages for PyKota. | |
| 23 | + | |
| 24 | +============================================================ | |
| 25 | + | |
| 26 | +Please e-mail bugs to: alet@librelogiciel.com (Jerome Alet) | 
| ... | ... | @@ -0,0 +1,115 @@ | 
| 1 | +pykota (1.27alpha2) unstable; urgency=low | |
| 2 | + | |
| 3 | + * Update from SVN. | |
| 4 | + | |
| 5 | + -- Jerome Alet <alet@librelogiciel.com> Tue, 24 Jul 2007 13:55:45 +0200 | |
| 6 | + | |
| 7 | +pykota (1.25) unstable; urgency=low | |
| 8 | + | |
| 9 | + * Update from SVN. | |
| 10 | + | |
| 11 | + -- Jerome Alet <alet@librelogiciel.com> Sun, 3 Dec 2006 16:57:00 +0100 | |
| 12 | + | |
| 13 | +pykota (1.24) unstable; urgency=low | |
| 14 | + | |
| 15 | + * Update from SVN. | |
| 16 | + | |
| 17 | + -- Jerome Alet <alet@librelogiciel.com> Sat, 8 Apr 2006 18:50:00 +0200 | |
| 18 | + | |
| 19 | +pykota (1.24beta) unstable; urgency=low | |
| 20 | + | |
| 21 | + * Update from SVN. | |
| 22 | + | |
| 23 | + -- Jerome Alet <alet@librelogiciel.com> Sun, 26 Mar 2006 11:10:00 +0200 | |
| 24 | + | |
| 25 | +pykota (1.23) unstable; urgency=low | |
| 26 | + | |
| 27 | + * Update from SVN. | |
| 28 | + | |
| 29 | + -- Jerome Alet <alet@librelogiciel.com> Sun, 10 Oct 2005 00:07:00 +0200 | |
| 30 | + | |
| 31 | +pykota (1.23beta) unstable; urgency=low | |
| 32 | + | |
| 33 | + * Update from SVN. | |
| 34 | + | |
| 35 | + -- Jerome Alet <alet@librelogiciel.com> Sun, 25 Sept 2005 17:19:00 +0200 | |
| 36 | + | |
| 37 | +pykota (1.22) unstable; urgency=low | |
| 38 | + | |
| 39 | + * Update from SVN. | |
| 40 | + | |
| 41 | + -- Jerome Alet <alet@librelogiciel.com> Sun, 8 May 2005 22:27:00 +0200 | |
| 42 | + | |
| 43 | +pykota (1.22beta) unstable; urgency=low | |
| 44 | + | |
| 45 | + * Update from SVN. | |
| 46 | + | |
| 47 | + -- Jerome Alet <alet@librelogiciel.com> Sat, 3 May 2005 23:21:00 +0200 | |
| 48 | + | |
| 49 | +pykota (1.21) unstable; urgency=low | |
| 50 | + | |
| 51 | + * Update from CVS. | |
| 52 | + | |
| 53 | + -- Jerome Alet <alet@librelogiciel.com> Sat, 5 Mar 2005 19:58:00 +0200 | |
| 54 | + | |
| 55 | +pykota (1.21beta) unstable; urgency=low | |
| 56 | + | |
| 57 | + * Update from CVS. | |
| 58 | + | |
| 59 | + -- Jerome Alet <alet@librelogiciel.com> Thu, 24 Feb 2005 22:53:00 +0200 | |
| 60 | + | |
| 61 | +pykota (1.20) unstable; urgency=low | |
| 62 | + | |
| 63 | + * Update from CVS. | |
| 64 | + | |
| 65 | + -- Jerome Alet <alet@librelogiciel.com> Mon, 1 Nov 2004 08:51:44 +0200 | |
| 66 | + | |
| 67 | +pykota (1.20beta) unstable; urgency=low | |
| 68 | + | |
| 69 | + * Update from CVS. | |
| 70 | + | |
| 71 | + -- Jerome Alet <alet@librelogiciel.com> Sat, 23 Oct 2004 18:22:44 +0200 | |
| 72 | + | |
| 73 | +pykota (1.20alpha24) unstable; urgency=low | |
| 74 | + | |
| 75 | + * Update from CVS. | |
| 76 | + | |
| 77 | + -- Sergio González González <sergio.gonzalez@hispalinux.es> Wed, 13 Oct 2004 01:29:44 +0200 | |
| 78 | + | |
| 79 | +pykota (1.20alpha23) unstable; urgency=low | |
| 80 | + | |
| 81 | + * Update from CVS. | |
| 82 | + * Added debconf support. | |
| 83 | + * Slightly reorganized the directory debian. | |
| 84 | + * Move pykota.schema to /etc/ldap/schema. | |
| 85 | + * Modified a bit the script setup.py to improve the build process of Debian | |
| 86 | + package. | |
| 87 | + * Add python-psyco as Recommends | |
| 88 | + * Add jaxml and python-osd as Depends | |
| 89 | + | |
| 90 | + -- Sergio González González <sergio.gonzalez@hispalinux.es> Mon, 11 Oct 2004 11:59:15 +0200 | |
| 91 | + | |
| 92 | +pykota (1.19) unstable; urgency=low | |
| 93 | + | |
| 94 | + * Update from CVS. | |
| 95 | + | |
| 96 | + -- Jerome Alet <alet@librelogiciel.com> Wed, 28 Jul 2004 15:59:03 +0100 | |
| 97 | + | |
| 98 | +pykota (1.19alpha29) unstable; urgency=low | |
| 99 | + | |
| 100 | + * Update from CVS. | |
| 101 | + | |
| 102 | + -- Sergio González González <sergio.gonzalez@hispalinux.es> Mon, 5 Jul 2004 15:59:03 +0100 | |
| 103 | + | |
| 104 | +pykota (1.19alpha20.cvs.20040611-1) unstable; urgency=low | |
| 105 | + | |
| 106 | + * Update from CVS. | |
| 107 | + | |
| 108 | + -- Sergio González González <sergio.gonzalez@hispalinux.es> Fri, 11 Jun 2004 17:10:04 +0100 | |
| 109 | + | |
| 110 | +pykota (1.16.cvs.20040119-1) unstable; urgency=low | |
| 111 | + | |
| 112 | + * Initial Release. | |
| 113 | + | |
| 114 | + -- Peter Hawkins <peterh@debian.org> Mon, 19 Jan 2004 20:03:43 +1100 | |
| 115 | + | 
| ... | ... | @@ -0,0 +1,31 @@ | 
| 1 | +Source: pykota | |
| 2 | +Section: text | |
| 3 | +Priority: extra | |
| 4 | +Maintainer: Jerome Alet <alet@librelogiciel.com> | |
| 5 | +Build-Depends: debhelper (>= 4.0.0), python, docbook-utils, python-dev, python-setuptools, python-support | |
| 6 | +Standards-Version: 3.9.1 | |
| 7 | +Vcs-Svn: svn://svn.pykota.com/pykota | |
| 8 | +Vcs-Browser: http://trac.pykota.com/browser/pykota/ | |
| 9 | + | |
| 10 | +Package: pykota | |
| 11 | +Architecture: all | |
| 12 | +Depends:  ${misc:Depends}, ${python:Depends}, python-egenix-mxdatetime, cups,  python-pygresql | python-ldap | python-pysqlite2 | python-mysqldb, jaxml | python-jaxml, python-osd, python-reportlab, python-pysnmp4, python-imaging | |
| 13 | +XB-Python-Version: ${python:Versions} | |
| 14 | +Provides: ${python:Provides} | |
| 15 | +Recommends: qa-assistant, snmp, netatalk, python-psyco, npadmin, python-pam | |
| 16 | +Description: Print Quota/Accounting system for CUPS | |
| 17 | + PyKota is a full featured, internationalized, centralized and extensible | |
| 18 | + Print Quota system for CUPS. It supports both PostgreSQL, MySQL, SQLite and | |
| 19 | + OpenLDAP (or other LDAP servers) as the quota database backend. | |
| 20 | + . | |
| 21 | + One installed, type 'pksetup debian' to configure PyKota. | |
| 22 | + . | |
| 23 | + This software features most of what you might expect from a modern Print | |
| 24 | + Quota and Accounting Solution. However it can be extended at will | |
| 25 | + because it allows one to plug his own administrative scripts at | |
| 26 | + several stages of the printing process. | |
| 27 | + . | |
| 28 | + Full access to source code is granted to all for no fee via Subversion, but | |
| 29 | + installable tarball, DEB and RPM download is for a fee. Redistribution and | |
| 30 | + modification is allowed to all under the terms of the GNU GPL version 3 or | |
| 31 | + later. | 
| ... | ... | @@ -0,0 +1,59 @@ | 
| 1 | +This package was originally debianized by Peter Hawkins <peterh@debian.org> on | |
| 2 | +Tue, 18 Nov 2003 14:47:59 +1100. It was adapted to Debian Squeeze by Pascal Brugier | |
| 3 | +<pbrugier@easter-eggs.com> and Benjamin Renard <brenard@easter-eggs.com> on | |
| 4 | +Mon, 26 Mar 2012 19:04:34 +0200. | |
| 5 | + | |
| 6 | +It was downloaded from: | |
| 7 | +http://www.pykota.com/software/pykota/download | |
| 8 | +(SVN snapshot) | |
| 9 | + | |
| 10 | +Upstream Authors: Jerome Alet <alet@librelogiciel.com> | |
| 11 | + | |
| 12 | +Copyright: | |
| 13 | +(c) 2003-2009 Jerome Alet <alet@librelogiciel.com> | |
| 14 | +This program is free software: you can redistribute it and/or modify | |
| 15 | +it under the terms of the GNU General Public License as published by | |
| 16 | +the Free Software Foundation, either version 3 of the License, or | |
| 17 | +(at your option) any later version. | |
| 18 | + | |
| 19 | +This program is distributed in the hope that it will be useful, | |
| 20 | +but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 21 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 22 | +GNU General Public License for more details. | |
| 23 | + | |
| 24 | +You should have received a copy of the GNU General Public License | |
| 25 | +along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 26 | + | |
| 27 | +The file LICENSE in the source tree contains the instructions which are | |
| 28 | +included below. | |
| 29 | +The author's wishes do not make the software DFSG non-free, since the | |
| 30 | +official/non-official distinction is a request, not a requirement. That said, | |
| 31 | +the debian package complies with the author's wishes and is labelled as | |
| 32 | +unofficial; I encourage you to support free software and buy an official | |
| 33 | +version if pykota turns out to be useful for you. | |
| 34 | + | |
| 35 | +============================================================ | |
| 36 | + | |
| 37 | +Licensing information : | |
| 38 | + | |
| 39 | + * PyKota is licensed under the terms of the GNU General Public License of | |
| 40 | + the Free Software Foundation, version 3, or at your option, any higher | |
| 41 | + version. | |
| 42 | + | |
| 43 | + * You can access to PyKota's latest development tree by using | |
| 44 | + SubVersion (aka SVN) : | |
| 45 | + | |
| 46 | + $ svn co svn://svn.pykota.com/pykota/trunk pykota | |
| 47 | + | |
| 48 | + * You are encouraged to support the project by purchasing unlimited | |
| 49 | + entry passes to 'OFFICIAL' packages, or Technical Support contracts. | |
| 50 | + | |
| 51 | + * I ask you to not label or present a version of PyKota downloaded | |
| 52 | + from SVN as being the 'OFFICIAL' one. | |
| 53 | + | |
| 54 | + * For more informations, please read : | |
| 55 | + | |
| 56 | + http://www.pykota.com/purchase | |
| 57 | + http://www.pykota.com/technical-support | |
| 58 | + http://trac.pykota.com | |
| 59 | + | 
| ... | ... | @@ -0,0 +1,15 @@ | 
| 1 | +usr/bin | |
| 2 | +usr/share/pykota | |
| 3 | +usr/share/doc/pykota/logos | |
| 4 | +usr/share/doc/pykota/initscripts/ldap | |
| 5 | +usr/share/doc/pykota/initscripts/sqlite | |
| 6 | +usr/share/doc/pykota/initscripts/mysql | |
| 7 | +usr/share/doc/pykota/initscripts/postgresql | |
| 8 | +usr/share/qa-assistant/data | |
| 9 | +usr/lib/cups/backend | |
| 10 | +usr/lib/cgi-bin | |
| 11 | +etc/pykota | |
| 12 | +etc/default | |
| 13 | +etc/cron.daily | |
| 14 | +etc/ldap/schema | |
| 15 | +var/www | 
| ... | ... | @@ -0,0 +1 @@ | 
| 1 | +pykota_1.27alpha2_all.deb text extra | 
| ... | ... | @@ -0,0 +1 @@ | 
| 1 | +usr/share/pykota/cupspykota usr/lib/cups/backend/cupspykota | 
| ... | ... | @@ -0,0 +1,24 @@ | 
| 1 | +#! /bin/sh | |
| 2 | +# | |
| 3 | +# PyKota : Print Quotas for CUPS | |
| 4 | +# | |
| 5 | +# (c) 2003-2009 Jerome Alet <alet@librelogiciel.com> | |
| 6 | +# This program is free software: you can redistribute it and/or modify | |
| 7 | +# it under the terms of the GNU General Public License as published by | |
| 8 | +# the Free Software Foundation, either version 3 of the License, or | |
| 9 | +# (at your option) any later version. | |
| 10 | +# | |
| 11 | +# This program is distributed in the hope that it will be useful, | |
| 12 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | +# GNU General Public License for more details. | |
| 15 | +# | |
| 16 | +# You should have received a copy of the GNU General Public License | |
| 17 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 18 | +# | |
| 19 | +# $Id: makedeb.sh 3481 2009-01-24 21:22:34Z jerome $ | |
| 20 | + | |
| 21 | +# Use this to create Debian packages : launch it from the pykota directory | |
| 22 | +# (i.e. the parent of the current directory) | |
| 23 | + | |
| 24 | +/usr/bin/dpkg-buildpackage -rfakeroot -us -uc -b | 
| ... | ... | @@ -0,0 +1,13 @@ | 
| 1 | +#!/bin/sh -e | |
| 2 | +# $Id: postinst 3232 2007-07-24 10:56:50Z jerome $ | |
| 3 | + | |
| 4 | +. /usr/share/debconf/confmodule | |
| 5 | + | |
| 6 | +/bin/chown -R pykota.pykota ~pykota | |
| 7 | +/bin/chmod 0640 ~pykota/pykota.conf | |
| 8 | +/bin/chmod 0600 ~pykota/pykotadmin.conf | |
| 9 | +/bin/chmod 0700 /usr/share/pykota/cupspykota | |
| 10 | + | |
| 11 | +#DEBHELPER# | |
| 12 | + | |
| 13 | +exit 0 | 
| ... | ... | @@ -0,0 +1,20 @@ | 
| 1 | +#!/bin/sh -e | |
| 2 | +# $Id: preinst 3222 2007-07-24 09:59:35Z jerome $ | |
| 3 | + | |
| 4 | +. /usr/share/debconf/confmodule | |
| 5 | + | |
| 6 | +if [ "$1" = "install" -o "$1" = "upgrade" ]; then | |
| 7 | + if ! id -g pykota > /dev/null 2>&1 ; then | |
| 8 | + addgroup --system pykota | |
| 9 | + fi | |
| 10 | + if ! id -u pykota > /dev/null 2>&1 ; then | |
| 11 | + adduser --system --home /etc/pykota --ingroup pykota pykota | |
| 12 | + chsh -s /bin/sh pykota | |
| 13 | + fi | |
| 14 | + if [ "$1" = "upgrade" ]; then | |
| 15 | + cp -a /etc/pykota/pykota.conf /etc/pykota/pykota.conf.saved 2>/dev/null | |
| 16 | + cp -a /etc/pykota/pykotadmin.conf /etc/pykota/pykotadmin.conf.saved 2>/dev/null | |
| 17 | + fi | |
| 18 | +fi | |
| 19 | + | |
| 20 | +exit 0 | 
| ... | ... | @@ -0,0 +1,23 @@ | 
| 1 | +#/bin/sh -e | |
| 2 | +# | |
| 3 | +# | |
| 4 | + | |
| 5 | +# Source debconf library. | |
| 6 | +. /usr/share/debconf/confmodule | |
| 7 | + | |
| 8 | +#db_title "Print Quota/Accounting system for CUPS, PyKota" | |
| 9 | + | |
| 10 | +db_input medium pykota/upgrading_1.23 || true | |
| 11 | +db_go | |
| 12 | + | |
| 13 | +db_input medium pykota/upgrading_1.21alpha24 || true | |
| 14 | +db_go | |
| 15 | + | |
| 16 | +db_input medium pykota/upgrading_1.19alpha24 || true | |
| 17 | +db_go | |
| 18 | + | |
| 19 | +db_input medium pykota/upgrading_1.19alpha17 || true | |
| 20 | +db_go | |
| 21 | + | |
| 22 | +db_input medium pykota/upgrading_1.19alpha10 || true | |
| 23 | +db_go | 
| ... | ... | @@ -0,0 +1,14 @@ | 
| 1 | +#! /bin/sh | |
| 2 | + | |
| 3 | +# check if print quota package is available | |
| 4 | +test -x /usr/bin/warnpykota || exit 0 | |
| 5 | + | |
| 6 | +# check if warnpyquota run is configured | |
| 7 | +test -f /etc/default/printquota || exit 0 | |
| 8 | +. /etc/default/printquota | |
| 9 | + | |
| 10 | +if [ "$run_warnpykota" = "true" ]; then | |
| 11 | + /usr/bin/warnpykota | |
| 12 | +fi | |
| 13 | + | |
| 14 | +exit 0 | 
| ... | ... | @@ -0,0 +1,61 @@ | 
| 1 | + | |
| 2 | +Template: pykota/upgrading_1.23 | |
| 3 | +Type: note | |
| 4 | +Description: Upgrading from a pre-1.23 to >=1.23 | |
| 5 | + Warning: if you are upgrading from a pre-1.23 to | |
| 6 | + 1.23 or above and use the postgreSQL backend, | |
| 7 | + then you have to modify your database schema using | |
| 8 | + /usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.23.sql | |
| 9 | + . | |
| 10 | + Please read documentation in | |
| 11 | + /usr/share/doc/pykota/initscripts/postgresql/ to learn | |
| 12 | + how to do. | |
| 13 | + . | |
| 14 | + You don't have anything special to do if this is your | |
| 15 | + first installation or if you are already running | |
| 16 | + version 1.23 or above. | |
| 17 | + | |
| 18 | +Template: pykota/upgrading_1.21alpha24 | |
| 19 | +Type: note | |
| 20 | +Description: Upgrading from a pre-1.21alpha24 to >=1.21alpha24 | |
| 21 | + Warning: if you ar upgrading from a pre-1.21alpha24 to | |
| 22 | + 1.21alpha24 or above and use the postgreSQL backend, | |
| 23 | + then you have to modify your database schema using | |
| 24 | + /usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.21.sql | |
| 25 | + . | |
| 26 | + Please read documentation in | |
| 27 | + /usr/share/doc/pykota/initscripts/postgresql/ to learn | |
| 28 | + how to do. | |
| 29 | + . | |
| 30 | + You don't have anything special to do if this is your | |
| 31 | + first installation or if you are already running | |
| 32 | + version 1.21alpha24 or above. | |
| 33 | + | |
| 34 | +Template: pykota/upgrading_1.19alpha17 | |
| 35 | +Type: note | |
| 36 | +Description: Upgrading from a pre-1.19alpha17 to >=1.19alpha17 | |
| 37 | + Warning: if you ar upgrading from a pre-1.19alpha17 to | |
| 38 | + 1.19alpha17 or above and use the postgreSQL backend, | |
| 39 | + then you have to modify your database schema using | |
| 40 | + /usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.19.sql | |
| 41 | + . | |
| 42 | + Please read documentation in | |
| 43 | + /usr/share/doc/pykota/initscripts/postgresql/ to learn | |
| 44 | + how to do. | |
| 45 | + . | |
| 46 | + You don't have anything special to do if this is your | |
| 47 | + first installation or if you are already running | |
| 48 | + version 1.19alpha17 or above. | |
| 49 | + | |
| 50 | +Template: pykota/upgrading_1.19alpha10 | |
| 51 | +Type: note | |
| 52 | +Description: Upgrading from a pre-1.19alpha10 to >=1.19alpha10 | |
| 53 | + Warning: if you are upgrading from a pre-1.19alpha10 | |
| 54 | + to 1.19alpha10 or above you **MUST** modify your | |
| 55 | + /etc/pykota/pykota.conf file because "accounter" | |
| 56 | + and "requester" directives supported values have | |
| 57 | + changed. | |
| 58 | + . | |
| 59 | + You don't have anything special to do if this is your | |
| 60 | + first installation or if you are already running | |
| 61 | + version 1.19alpha10 or above. | 
| ... | ... | @@ -0,0 +1,121 @@ | 
| 1 | +#!/usr/bin/make -f | |
| 2 | +# -*- makefile -*- | |
| 3 | +# Sample debian/rules that uses debhelper. | |
| 4 | +# GNU copyright 1997 to 1999 by Joey Hess. | |
| 5 | + | |
| 6 | +# Uncomment this to turn on verbose mode. | |
| 7 | +export DH_VERBOSE=1 | |
| 8 | + | |
| 9 | +export DH_COMPAT=1 | |
| 10 | + | |
| 11 | + | |
| 12 | +build: build-stamp | |
| 13 | +build-stamp: | |
| 14 | + dh_testdir | |
| 15 | + | |
| 16 | + #/usr/bin/docbook-to-man debian/pykota.sgml > pykota.1 | |
| 17 | + /usr/bin/python setup.py build | |
| 18 | + (cd docs; make -f ../debian/Makefile.docs build) | |
| 19 | + | |
| 20 | + touch build-stamp | |
| 21 | + | |
| 22 | +clean: | |
| 23 | + dh_testdir | |
| 24 | + dh_testroot | |
| 25 | + rm -f build-stamp | |
| 26 | + | |
| 27 | + /usr/bin/python setup.py clean --all | |
| 28 | + (cd docs; make -f ../debian/Makefile.docs clean) | |
| 29 | + rm -f pykota/__init__.pyc pykota/version.pyc | |
| 30 | + | |
| 31 | + dh_clean | |
| 32 | + | |
| 33 | +install: build | |
| 34 | + dh_testdir | |
| 35 | + dh_testroot | |
| 36 | + dh_clean -k | |
| 37 | + dh_installdirs | |
| 38 | + | |
| 39 | + /usr/bin/python setup.py install --prefix=`pwd`/debian/tmp/usr --no-compile | |
| 40 | + | |
| 41 | + install -m 644 conf/pykota.conf.sample $(CURDIR)/debian/tmp/etc/pykota/pykota.conf | |
| 42 | + install -m 640 conf/pykotadmin.conf.sample $(CURDIR)/debian/tmp/etc/pykota/pykotadmin.conf | |
| 43 | + install -m 644 debian/printquota.default $(CURDIR)/debian/tmp/etc/default/printquota | |
| 44 | + install -m 755 debian/pykota.cron.daily $(CURDIR)/debian/tmp/etc/cron.daily/pykota | |
| 45 | + | |
| 46 | + install -m 755 -g www-data -o www-data cgi-bin/printquota.cgi $(CURDIR)/debian/tmp/usr/lib/cgi-bin/printquota.cgi | |
| 47 | + install -m 755 -g www-data -o www-data cgi-bin/dumpykota.cgi $(CURDIR)/debian/tmp/usr/lib/cgi-bin/dumpykota.cgi | |
| 48 | + install -m 755 -g www-data -o www-data cgi-bin/pykotme.cgi $(CURDIR)/debian/tmp/usr/lib/cgi-bin/pykotme.cgi | |
| 49 | + install -m 644 stylesheets/pykota.css $(CURDIR)/debian/tmp/var/www/pykota.css | |
| 50 | + install -m 644 logos/pykotasmall.png $(CURDIR)/debian/tmp/var/www/pykota.png | |
| 51 | + install -m 644 initscripts/README $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/README | |
| 52 | + install -m 644 initscripts/ldap/pykota-sample.ldif $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/ldap/pykota-sample.ldif | |
| 53 | + install -m 644 initscripts/ldap/pykota.schema $(CURDIR)/debian/tmp/etc/ldap/schema/pykota.schema | |
| 54 | + install -m 644 initscripts/ldap/README.ldap $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/ldap/README.ldap | |
| 55 | + install -m 644 initscripts/sqlite/README.sqlite $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/sqlite/README.sqlite | |
| 56 | + install -m 644 initscripts/sqlite/pykota-sqlite.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/sqlite/pykota-sqlite.sql | |
| 57 | + install -m 644 initscripts/mysql/README.mysql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/mysql/README.mysql | |
| 58 | + install -m 644 initscripts/mysql/pykota-mysql.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/mysql/pykota-mysql.sql | |
| 59 | + install -m 644 initscripts/postgresql/README.postgresql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/README.postgresql | |
| 60 | + install -m 644 initscripts/postgresql/pykota-postgresql.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/pykota-postgresql.sql | |
| 61 | + install -m 644 initscripts/postgresql/upgrade-from-before-1.03.py $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-from-before-1.03.py | |
| 62 | + install -m 644 initscripts/postgresql/upgrade-to-1.14.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.14.sql | |
| 63 | + install -m 644 initscripts/postgresql/upgrade-to-1.16.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.16.sql | |
| 64 | + install -m 644 initscripts/postgresql/upgrade-to-1.19.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.19.sql | |
| 65 | + install -m 644 initscripts/postgresql/upgrade-to-1.21.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.21.sql | |
| 66 | + install -m 644 initscripts/postgresql/upgrade-to-1.23.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.23.sql | |
| 67 | + install -m 644 initscripts/postgresql/VERYOLDpykota-upgrade-postgresql.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/VERYOLDpykota-upgrade-postgresql.sql | |
| 68 | + install -m 644 logos/pleaseupgrade.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pleaseupgrade.png | |
| 69 | + install -m 644 logos/pykotaofficialindexed.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficialindexed.png | |
| 70 | + install -m 644 logos/pykotaofficialindexedsmall.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficialindexedsmall.png | |
| 71 | + install -m 644 logos/pykotaofficial.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficial.png | |
| 72 | + install -m 644 logos/pykotaofficialsmall.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficialsmall.png | |
| 73 | + install -m 644 logos/pykota.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykota.png | |
| 74 | + install -m 644 logos/pykotasmall.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotasmall.png | |
| 75 | + install -m 644 logos/pykota.xcf $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykota.xcf | |
| 76 | + install -m 644 logos/README $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/README | |
| 77 | + install -m 644 qa-assistant/pykota.xml $(CURDIR)/debian/tmp/usr/share/qa-assistant/data/pykota.xml | |
| 78 | + (chown www-data.www-data $(CURDIR)/debian/tmp/usr/lib/cgi-bin/printquota.cgi) | |
| 79 | + (chown www-data.www-data $(CURDIR)/debian/tmp/usr/lib/cgi-bin/dumpykota.cgi) | |
| 80 | + (chown www-data.www-data $(CURDIR)/debian/tmp/usr/lib/cgi-bin/pykotme.cgi) | |
| 81 | + (cd docs; make -f ../debian/Makefile.docs install DESTDIR=$(CURDIR)/debian/tmp/) | |
| 82 | + | |
| 83 | + | |
| 84 | +# Build architecture-dependent files here. | |
| 85 | +binary-arch: build install | |
| 86 | +# We have nothing to do by default. | |
| 87 | + | |
| 88 | +# Build architecture-independent files here. | |
| 89 | +binary-arch: build install | |
| 90 | + dh_testdir | |
| 91 | + dh_testroot | |
| 92 | + dh_installchangelogs | |
| 93 | + dh_installdocs | |
| 94 | + dh_installexamples | |
| 95 | +# dh_install | |
| 96 | +# dh_installmenu | |
| 97 | + dh_installdebconf | |
| 98 | +# dh_installlogrotate | |
| 99 | +# dh_installemacsen | |
| 100 | +# dh_installpam | |
| 101 | +# dh_installmime | |
| 102 | +# dh_installinit | |
| 103 | + dh_installcron | |
| 104 | +# dh_installinfo | |
| 105 | + dh_installman | |
| 106 | + dh_link | |
| 107 | + dh_pysupport | |
| 108 | +# dh_strip | |
| 109 | + dh_compress | |
| 110 | + dh_fixperms | |
| 111 | +# dh_perl | |
| 112 | + dh_python | |
| 113 | +# dh_makeshlibs | |
| 114 | + dh_installdeb | |
| 115 | +# dh_shlibdeps | |
| 116 | + dh_gencontrol | |
| 117 | + dh_md5sums | |
| 118 | + dh_builddeb | |
| 119 | + | |
| 120 | +binary: binary-indep binary-arch | |
| 121 | +.PHONY: build clean binary-indep binary-arch binary install | |
| 0 | 122 |