Changeset 2105

Show
Ignore:
Timestamp:
02/24/05 22:53:46 (19 years ago)
Author:
jalet
Message:

Some work on Debian packaging

Location:
pykota/trunk/debian
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/debian/changelog

    r1895 r2105  
     1pykota (1.21beta) unstable; urgency=low 
     2 
     3  * Update from CVS. 
     4   
     5 -- Jerome Alet <alet@librelogiciel.com>  Thu, 24 Feb 2005 22:53:00 +0200 
     6  
    17pykota (1.20) unstable; urgency=low 
    28 
  • pykota/trunk/debian/control

    r1812 r2105  
    88Package: pykota 
    99Architecture: all 
    10 Depends: ${python:Depends}, python-egenix-mxdatetime, cupsys | lprng, python-pygresql | python-ldap, libapache-mod-python, jaxml, python-osd 
    11 Recommends: snmp, netatalk, python-psyco 
     10Depends: ${python:Depends}, python-egenix-mxdatetime, cupsys | lprng, python-pygresql | python-ldap, jaxml, python-osd, python-reportlab 
     11Recommends: snmp, netatalk, python-psyco, npadmin 
    1212Description: Print Quota/Accounting system for CUPS and LPRng 
    13  PyKota is a complete GPLed Print Quota and Accounting Software Solution 
    14  for the Common UNIX Printing System (aka CUPS) and LPR Next Generation 
    15  (aka LPRng) on GNU/Linux and Unix-like operating systems, which offers 
    16  a great flexibility with regard to the page accounting methods it 
    17  supports. By default it works by directly querying the printers for the 
    18  number of pages they have printed, but you can easily plug your own 
    19  page accounting methods if you prefer. 
     13 PyKota is a full featured, internationalized, centralized and extensible  
     14 Print Quota system for CUPS and LPRng. It supports both PostgreSQL and  
     15 OpenLDAP as the quota database backend.  
     16 . 
     17 This software features most of what you might expect from a modern Print  
     18 Quota and Accounting Solution.  
     19 . 
     20 It's unprecedented flexibility and configurability greatly eases its  
     21 integration into your own computing environment. At the same time, its  
     22 reliability can make it a strong basis on which you'll plug your own  
     23 management or reporting tools in the improbable case you'd judge PyKota's  
     24 ones to be inadapted. 
     25 . 
     26 Full access to source code is granted to all for no fee via CVS, but  
     27 installable tarball, DEB and RPM download is for a fee. Redistribution and  
     28 modification is allowed to all under the terms of the GNU GPL. 
  • pykota/trunk/debian/rules

    r1812 r2105  
    1212build: build-stamp 
    1313build-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 
     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 
    2121 
    2222clean: 
    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  
     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  
    3232 
    3333install: 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 644 stylesheets/pykota.css $(CURDIR)/debian/tmp/var/www/pykota.css 
    48         install -m 644 logos/pykotasmall.png $(CURDIR)/debian/tmp/var/www/pykota.png 
    49         install -m 644 initscripts/README $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/README 
    50         install -m 644 initscripts/ldap/pykota-sample.ldif $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/ldap/pykota-sample.ldif 
    51         install -m 644 initscripts/ldap/pykota.schema $(CURDIR)/debian/tmp/etc/ldap/schema/pykota.schema 
    52         install -m 644 initscripts/ldap/README.ldap $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/ldap/README.ldap 
    53         install -m 644 initscripts/mysql/README.mysql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/mysql/README.mysql 
    54         install -m 644 initscripts/mysql/pykota-mysql.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/mysql/pykota-mysql.sql 
    55         install -m 644 initscripts/postgresql/README.postgresql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/README.postgresql 
    56         install -m 644 initscripts/postgresql/pykota-postgresql.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/pykota-postgresql.sql 
    57         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 
    58         install -m 644 initscripts/postgresql/upgrade-to-1.14.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.14.sql 
    59         install -m 644 initscripts/postgresql/upgrade-to-1.16.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.16.sql 
    60         install -m 644 initscripts/postgresql/upgrade-to-1.19.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.19.sql 
    61         install -m 644 initscripts/postgresql/VERYOLDpykota-upgrade-postgresql.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/VERYOLDpykota-upgrade-postgresql.sql 
    62         install -m 644 logos/pleaseupgrade.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pleaseupgrade.png 
    63         install -m 644 logos/pykotaofficialindexed.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficialindexed.png 
    64         install -m 644 logos/pykotaofficialindexedsmall.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficialindexedsmall.png 
    65         install -m 644 logos/pykotaofficial.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficial.png 
    66         install -m 644 logos/pykotaofficialsmall.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficialsmall.png 
    67         install -m 644 logos/pykota.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykota.png 
    68         install -m 644 logos/pykotasmall.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotasmall.png 
    69         install -m 644 logos/pykota.xcf $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykota.xcf 
    70         install -m 644 logos/README $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/README 
    71         (chown www-data.www-data $(CURDIR)/debian/tmp/usr/lib/cgi-bin/printquota.cgi) 
    72         (chmod 755 $(CURDIR)/debian/tmp/usr/share/pykota/*) 
    73         (cd docs; make -f ../debian/Makefile.docs install DESTDIR=$(CURDIR)/debian/tmp/) 
     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 644 stylesheets/pykota.css $(CURDIR)/debian/tmp/var/www/pykota.css 
     49        install -m 644 logos/pykotasmall.png $(CURDIR)/debian/tmp/var/www/pykota.png 
     50        install -m 644 initscripts/README $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/README 
     51        install -m 644 initscripts/ldap/pykota-sample.ldif $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/ldap/pykota-sample.ldif 
     52        install -m 644 initscripts/ldap/pykota.schema $(CURDIR)/debian/tmp/etc/ldap/schema/pykota.schema 
     53        install -m 644 initscripts/ldap/README.ldap $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/ldap/README.ldap 
     54        install -m 644 initscripts/mysql/README.mysql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/mysql/README.mysql 
     55        install -m 644 initscripts/mysql/pykota-mysql.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/mysql/pykota-mysql.sql 
     56        install -m 644 initscripts/postgresql/README.postgresql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/README.postgresql 
     57        install -m 644 initscripts/postgresql/pykota-postgresql.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/pykota-postgresql.sql 
     58        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 
     59        install -m 644 initscripts/postgresql/upgrade-to-1.14.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.14.sql 
     60        install -m 644 initscripts/postgresql/upgrade-to-1.16.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.16.sql 
     61        install -m 644 initscripts/postgresql/upgrade-to-1.19.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.19.sql 
     62        install -m 644 initscripts/postgresql/upgrade-to-1.21.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.21.sql 
     63        install -m 644 initscripts/postgresql/VERYOLDpykota-upgrade-postgresql.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/VERYOLDpykota-upgrade-postgresql.sql 
     64        install -m 644 logos/pleaseupgrade.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pleaseupgrade.png 
     65        install -m 644 logos/pykotaofficialindexed.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficialindexed.png 
     66        install -m 644 logos/pykotaofficialindexedsmall.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficialindexedsmall.png 
     67        install -m 644 logos/pykotaofficial.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficial.png 
     68        install -m 644 logos/pykotaofficialsmall.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficialsmall.png 
     69        install -m 644 logos/pykota.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykota.png 
     70        install -m 644 logos/pykotasmall.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotasmall.png 
     71        install -m 644 logos/pykota.xcf $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykota.xcf 
     72        install -m 644 logos/README $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/README 
     73        (chown www-data.www-data $(CURDIR)/debian/tmp/usr/lib/cgi-bin/printquota.cgi) 
     74        (chown www-data.www-data $(CURDIR)/debian/tmp/usr/lib/cgi-bin/dumpykota.cgi) 
     75        (chmod 755 $(CURDIR)/debian/tmp/usr/share/pykota/*) 
     76        (cd docs; make -f ../debian/Makefile.docs install DESTDIR=$(CURDIR)/debian/tmp/) 
    7477 
    7578 
     
    8083# Build architecture-independent files here. 
    8184binary-arch: build install 
    82         dh_testdir 
    83         dh_testroot 
    84         dh_installchangelogs  
    85         dh_installdocs 
    86         dh_installexamples 
    87 #       dh_install 
    88 #       dh_installmenu 
    89         dh_installdebconf        
    90 #       dh_installlogrotate 
    91 #       dh_installemacsen 
    92 #       dh_installpam 
    93 #       dh_installmime 
    94 #       dh_installinit 
    95         dh_installcron 
    96 #       dh_installinfo 
    97         dh_installman 
    98         dh_link 
    99 #       dh_strip 
    100         dh_compress 
    101         dh_fixperms 
    102 #       dh_perl 
    103         dh_python 
    104 #       dh_makeshlibs 
    105         dh_installdeb 
    106 #       dh_shlibdeps 
    107         dh_gencontrol 
    108         dh_md5sums 
    109         dh_builddeb 
     85        dh_testdir 
     86        dh_testroot 
     87        dh_installchangelogs  
     88        dh_installdocs 
     89        dh_installexamples 
     90#       dh_install 
     91#       dh_installmenu 
     92        dh_installdebconf        
     93#       dh_installlogrotate 
     94#       dh_installemacsen 
     95#       dh_installpam 
     96#       dh_installmime 
     97#       dh_installinit 
     98        dh_installcron 
     99#       dh_installinfo 
     100        dh_installman 
     101        dh_link 
     102#       dh_strip 
     103        dh_compress 
     104        dh_fixperms 
     105#       dh_perl 
     106        dh_python 
     107#       dh_makeshlibs 
     108        dh_installdeb 
     109#       dh_shlibdeps 
     110        dh_gencontrol 
     111        dh_md5sums 
     112        dh_builddeb 
    110113 
    111114binary: binary-indep binary-arch