Changeset 1592 for pykota/trunk
- Timestamp:
- 07/06/04 11:37:11 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 11 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/CREDITS
r1586 r1592 110 110 - Eduardo Gielamo Oliveira and Rodolfo Broco Manin : PCL page counter 111 111 - Sergey Romanov : bug fix 112 - Sergio Gonz�z Gonz�z : More work on Debian packaging + Doc 112 113 113 114 ============================================================== -
pykota/trunk/debian/changelog
r1350 r1592 1 pykota (1.19alpha29) unstable; urgency=low 2 3 * Update from CVS 4 5 -- Sergio Gonz'alez Gonz'alez <sergio@hispalinux.es> Mon, 5 Jul 2004 15:59:03 +0100 6 7 pykota (1.19alpha20.cvs.20040611-1) unstable; urgency=low 8 9 * Update from CVS 10 11 -- Sergio Gonz'alez Gonz'alez <sergio.gonzalez@hispalinux.es> Fri, 11 Jun 2004 17:10:04 +0100 12 1 13 pykota (1.16.cvs.20040119-1) unstable; urgency=low 2 14 -
pykota/trunk/debian/control
r1350 r1592 3 3 Priority: extra 4 4 Maintainer: Peter Hawkins <peterh@debian.org> 5 Build-Depends-Indep: debhelper (>= 4.0.0), python, docbook-utils 5 Build-Depends-Indep: debhelper (>= 4.0.0), python, docbook-utils, python-dev 6 6 Standards-Version: 3.6.1 7 7 8 8 Package: pykota 9 9 Architecture: all 10 Depends: ${python:Depends}, python-egenix-mxdatetime, cupsys | lprng, python-pygresql | python-ldap 10 Depends: ${python:Depends}, python-egenix-mxdatetime, cupsys | lprng, python-pygresql | python-ldap, libapache-mod-python 11 11 Recommends: snmp, netatalk 12 12 Description: Print Quota/Accounting system for CUPS and LPRng 13 FIXME: Description 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. -
pykota/trunk/debian/dirs
r1350 r1592 1 1 usr/bin 2 2 usr/share/pykota 3 usr/share/doc/pykota/logos 4 usr/share/doc/pykota/initscripts/ldap 5 usr/share/doc/pykota/initscripts/postgresql 3 6 usr/lib/cups/backend 7 usr/lib/cgi-bin 4 8 etc/pykota 5 9 etc/default 10 etc/cron.daily 11 var/www -
pykota/trunk/debian/docs
r1350 r1592 4 4 TODO 5 5 SECURITY 6 initscripts/postgresql/README.postgresql7 initscripts/ldap/README.ldap -
pykota/trunk/debian/Makefile.docs
r1350 r1592 5 5 build: build-stamp 6 6 build-stamp: 7 8 7 docbook2html pykota.sgml 8 touch build-stamp 9 9 10 10 install: build 11 12 11 mkdir -p $(DESTDIR)/usr/share/doc/pykota/html/ 12 cp *.html $(DESTDIR)/usr/share/doc/pykota/html/ 13 13 14 14 clean: 15 15 rm -f *.html build-stamp -
pykota/trunk/debian/rules
r1350 r1592 5 5 6 6 # Uncomment this to turn on verbose mode. 7 #export DH_VERBOSE=17 export DH_VERBOSE=1 8 8 9 export DH_COMPAT= 39 export DH_COMPAT=1 10 10 11 11 12 12 build: build-stamp 13 13 build-stamp: 14 15 16 17 18 19 20 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 21 22 22 clean: 23 24 25 26 27 28 29 30 31 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 32 33 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/pykota/usr --no-compile 40 41 install -m 644 conf/pykota.conf.sample $(CURDIR)/debian/pykota/etc/pykota/pykota.conf 42 install -m 640 conf/pykotadmin.conf.sample $(CURDIR)/debian/pykota/etc/pykota/pykotadmin.conf 43 install -m 644 debian/etc/default/printquota $(CURDIR)/debian/pykota/etc/default/printquota 44 45 (cd docs; make -f ../debian/Makefile.docs install DESTDIR=$(CURDIR)/debian/pykota/) 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 45 install -m 755 -g www-data -o www-data cgi-bin/printquota.cgi $(CURDIR)/debian/tmp/usr/lib/cgi-bin/printquota.cgi 46 install -m 644 stylesheets/pykota.css $(CURDIR)/debian/tmp/var/www/pykota.css 47 install -m 644 logos/pykotasmall.png $(CURDIR)/debian/tmp/var/www/pykota.png 48 install -m 644 initscripts/README $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/README 49 install -m 644 initscripts/ldap/pykota-sample.ldif $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/ldap/pykota-sample.ldif 50 install -m 644 initscripts/ldap/pykota.schema $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/ldap/pykota.schema 51 install -m 644 initscripts/ldap/README.ldap $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/ldap/README.ldap 52 install -m 644 initscripts/postgresql/README.postgresql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/README.postgresql 53 install -m 644 initscripts/postgresql/pykota-postgresql.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/pykota-postgresql.sql 54 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 55 install -m 644 initscripts/postgresql/upgrade-to-1.14.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.14.sql 56 install -m 644 initscripts/postgresql/upgrade-to-1.16.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.16.sql 57 install -m 644 initscripts/postgresql/upgrade-to-1.19.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/upgrade-to-1.19.sql 58 install -m 644 initscripts/postgresql/VERYOLDpykota-upgrade-postgresql.sql $(CURDIR)/debian/tmp/usr/share/doc/pykota/initscripts/postgresql/VERYOLDpykota-upgrade-postgresql.sql 59 install -m 644 logos/pleaseupgrade.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pleaseupgrade.png 60 install -m 644 logos/pykotaofficialindexed.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficialindexed.png 61 install -m 644 logos/pykotaofficialindexedsmall.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficialindexedsmall.png 62 install -m 644 logos/pykotaofficial.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficial.png 63 install -m 644 logos/pykotaofficialsmall.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotaofficialsmall.png 64 install -m 644 logos/pykota.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykota.png 65 install -m 644 logos/pykotasmall.png $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykotasmall.png 66 install -m 644 logos/pykota.xcf $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/pykota.xcf 67 install -m 644 logos/README $(CURDIR)/debian/tmp/usr/share/doc/pykota/logos/README 68 (chown www-data.www-data $(CURDIR)/debian/tmp/usr/lib/cgi-bin/printquota.cgi) 69 (chmod 755 $(CURDIR)/debian/tmp/usr/share/pykota/*) 70 (cd docs; make -f ../debian/Makefile.docs install DESTDIR=$(CURDIR)/debian/tmp/) 46 71 47 72 … … 52 77 # Build architecture-independent files here. 53 78 binary-arch: build install 54 55 56 57 58 59 # 60 # 61 # 62 # 63 # 64 # 65 # 66 # 67 68 # 69 70 71 # 72 73 74 # 75 76 # 77 78 # 79 80 81 79 dh_testdir 80 dh_testroot 81 dh_installchangelogs 82 dh_installdocs 83 dh_installexamples 84 # dh_install 85 # dh_installmenu 86 # dh_installdebconf 87 # dh_installlogrotate 88 # dh_installemacsen 89 # dh_installpam 90 # dh_installmime 91 # dh_installinit 92 dh_installcron 93 # dh_installinfo 94 dh_installman 95 dh_link 96 # dh_strip 97 dh_compress 98 dh_fixperms 99 # dh_perl 100 dh_python 101 # dh_makeshlibs 102 dh_installdeb 103 # dh_shlibdeps 104 dh_gencontrol 105 dh_md5sums 106 dh_builddeb 82 107 83 108 binary: binary-indep binary-arch -
pykota/trunk/NEWS
r1591 r1592 22 22 PyKota NEWS : 23 23 24 - 1.19alpha30 : 25 26 - Integrated most of the Debian work from Sergio 27 Gonz�z Gonz�z 28 24 29 - 1.19alpha29 : 25 30 -
pykota/trunk/pykota/version.py
r1584 r1592 22 22 # 23 23 24 __version__ = "1.19alpha 29_unofficial"24 __version__ = "1.19alpha30_unofficial" 25 25 26 26 __doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng.""" -
pykota/trunk/setup.py
r1522 r1592 24 24 # 25 25 # $Log$ 26 # Revision 1.45 2004/07/06 09:37:01 jalet 27 # Integrated most of the Debian packaging work made by Sergio Gonz�z Gonz�z 28 # 26 29 # Revision 1.44 2004/06/05 22:03:49 jalet 27 30 # Payments history is now stored in database … … 195 198 ACTION_CONTINUE = 0 196 199 ACTION_ABORT = 1 200 201 #ETC_DIR = "./debian/tmp/etc/pykota/" 202 ETC_DIR = "/etc/pykota/" 197 203 198 204 def checkOldModule(path) : … … 256 262 257 263 # checks if a configuration file is present in the new location 258 if not os.path.isfile( "/etc/pykota/pykota.conf") :259 if not os.path.isdir( "/etc/pykota") :264 if not os.path.isfile(os.path.join(ETC_DIR,"pykota.conf")) : 265 if not os.path.isdir(ETC_DIR) : 260 266 try : 261 os.mkdir( "/etc/pykota")267 os.mkdir(ETC_DIR) 262 268 except OSError, msg : 263 sys.stderr.write("An error occured while creating the /etc/pykota directory.\n%s\n" % msg)269 sys.stderr.write("An error occured while creating the etc/pykota directory.\n%s\n" % msg) 264 270 sys.exit(-1) 265 271 … … 271 277 if answer[0:1].upper() == 'Y' : 272 278 try : 273 os.rename("/etc/pykota.conf", "/etc/pykota/pykota.conf")279 os.rename("/etc/pykota.conf", os.path.join(ETC_DIR,"pykota.conf")) 274 280 except OSError : 275 281 sys.stderr.write("ERROR : An error occured while moving /etc/pykota.conf to /etc/pykota/pykota.conf\nAborted !\n") … … 287 293 if answer[0:1].upper() == 'Y' : 288 294 try : 289 shutil.copy("conf/pykota.conf.sample", "/etc/pykota/pykota.conf")290 shutil.copy("conf/pykotadmin.conf.sample", "/etc/pykota/pykotadmin.conf")295 shutil.copy("conf/pykota.conf.sample", os.path.join(ETC_DIR,"pykota.conf")) 296 shutil.copy("conf/pykotadmin.conf.sample", os.path.join(ETC_DIR,"pykotadmin.conf")) 291 297 except IOError, msg : 292 298 sys.stderr.write("WARNING : Problem while installing sample configuration files in /etc/pykota/, please do it manually.\n%s\n" % msg) … … 317 323 from pykota.config import PyKotaConfig,PyKotaConfigError 318 324 try : 319 conf = PyKotaConfig( "/etc/pykota/")325 conf = PyKotaConfig(ETC_DIR) 320 326 except PyKotaConfigError, msg : 321 327 sys.stedrr.write("%s\nINSTALLATION ABORTED !\nPlease restart installation.\n" % msg) … … 375 381 376 382 # change files permissions 377 os.chmod( "/etc/pykota/pykota.conf", 0644)378 os.chmod( "/etc/pykota/pykotadmin.conf", 0640)383 os.chmod(os.path.join(ETC_DIR,"pykota.conf"), 0644) 384 os.chmod(os.path.join(ETC_DIR,"pykotadmin.conf"), 0640) 379 385 380 386 # WARNING MESSAGE … … 420 426 data_files.append((directory, [ mofile ])) 421 427 422 docdir = " /usr/share/doc/pykota"428 docdir = "share/doc/pykota" 423 429 docfiles = ["README", "FAQ", "SECURITY", "COPYING", "LICENSE", "CREDITS", "TODO", "NEWS"] 424 430 data_files.append((docdir, docfiles)) -
pykota/trunk/stylesheets/pykota.css
r1525 r1592 19 19 20 20 /* $Id$ */ 21 22 body { 23 background-color: #FFFFFF; 24 } 21 25 22 26 .even {