#!/usr/bin/make -f # debian/rules for pmb package, by # Miguel Gea Milvaques # # modified from: # debian/rules for test-installdb package, by # sean finney # # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. # export DH_VERBOSE=1 # This is the debhelper compatibility version to use. # export DH_COMPAT=3 PMBVERSION=3.1.2 build: configure dh_testdir configure: dh_testdir touch $@ clean: dh_testdir dh_testroot dh_clean -rm configure install: configure build dh_testdir dh_testroot dh_prep dh_installdirs # # pmb needs the sql skeleton/upgrade here: # dh_install -ppmb pmb-server usr/bin dh_install -ppmb pmb/* usr/share/pmb/www/ uudecode -o images/logo_default_lliurex.jpg images/logo_default_lliurex.jpg.uuencode uudecode -o images/logo_default_small_lliurex.jpg images/logo_default_small_lliurex.jpg.uuencode dh_install -ppmb images/logo_default_lliurex.jpg usr/share/pmb/www/images/ dh_install -ppmb images/logo_default_small_lliurex.jpg usr/share/pmb/www/images/ dh_install -ppmb configfiles/pmb-server.conf etc/pmb/ dh_install pmb32x32.xpm usr/share/pmb/ dh_install opac32x32.xpm usr/share/pmb/ dh_install -ppmb configfiles/pmb-server.desktop usr/share/applications #dh_install -ppmb configfiles/biblioteca-guide.desktop usr/share/applications mkdir -p usr/share/doc/pmb uudecode -o docum/Manual_Administracion_PMB.es.pdf docum/Manual_Administracion_PMB.es.pdf.uuencode uudecode -o docum/Manual_Administracion_PMB.va.pdf docum/Manual_Administracion_PMB.va.pdf.uuencode uudecode -o docum/CSV_TO_PMB_xml_UNIMARC.es.pdf docum/CSV_TO_PMB_xml_UNIMARC.es.pdf.uuencode uudecode -o docum/CSV_TO_PMB_xml_UNIMARC.va.pdf docum/CSV_TO_PMB_xml_UNIMARC.va.pdf.uuencode uudecode -o docum/CSV_TO_PMB_xml_UNIMARC.ods.tar.gz docum/CSV_TO_PMB_xml_UNIMARC.ods.tar.gz.uuencode dh_install -ppmb docum/Manual_Administracion_PMB.es.pdf usr/share/doc/pmb/ dh_install -ppmb docum/Manual_Administracion_PMB.es.pdf usr/share/pmb/www/doc/ dh_install -ppmb docum/Manual_Administracion_PMB.va.pdf usr/share/doc/pmb/ dh_install -ppmb docum/Manual_Administracion_PMB.va.pdf usr/share/pmb/www/doc/ dh_install -ppmb docum/CSV_TO_PMB_xml_UNIMARC.ods.tar.gz usr/share/pmb/www/doc/ dh_install -ppmb docum/CSV_TO_PMB_xml_UNIMARC.es.pdf usr/share/pmb/www/doc/ dh_install -ppmb docum/CSV_TO_PMB_xml_UNIMARC.va.pdf usr/share/pmb/www/doc/ dh_install -ppmb configfiles/opac_db_param.inc.php usr/share/pmb/www/opac_css/includes/ dh_install -ppmb configfiles/db_param.inc.php usr/share/pmb/www/includes/ install -o root -g root -m 0644 debian/pmb.apache2 \ debian/pmb/etc/apache2/conf.d/pmb install -o root -g root -m 0644 configfiles/create_tables.sql \ debian/pmb/usr/share/dbconfig-common/data/pmb/install/mysql install -o root -g root -m 0644 configfiles/z3950.sql \ debian/pmb/usr/share/dbconfig-common/data/pmb/upgrade/mysql/3.1.2-lliurex6 install -o root -g root -m 0644 configfiles/locations.sql \ debian/pmb/usr/share/dbconfig-common/data/pmb/upgrade/mysql/3.1.2-lliurex33 dh_install -ppmb configfiles/locations.sql usr/share/pmb/www/tables/ install -o root -g root -m 0644 configfiles/new_reports.sql \ debian/pmb/usr/share/dbconfig-common/data/pmb/upgrade/mysql/3.1.2-lliurex45 dh_install -ppmb configfiles/new_reports.sql usr/share/pmb/www/tables/ install -o root -g root -m 0644 configfiles/new_reports2.sql debian/pmb/usr/share/dbconfig-common/data/pmb/upgrade/mysql/3.1.2-lliurex50 dh_install -ppmb configfiles/new_reports2.sql usr/share/pmb/www/tables/ install -o root -g root -m 0644 configfiles/z3950_2.sql \ debian/pmb/usr/share/dbconfig-common/data/pmb/upgrade/mysql/3.1.2-lliurex51 dh_install -ppmb configfiles/z3950_2.sql usr/share/pmb/www/tables/ rm debian/pmb/usr/share/pmb/www/classes/writeexcel/LICENSE.TXT rm -Rf debian/pmb/usr/share/pmb/www/admin/backup rm -Rf debian/pmb/usr/share/pmb/www/temp dh_install -ppmb-client pmb-client usr/bin dh_install -ppmb configfiles/pmb-client.desktop usr/share/applications dh_installmenu dh_installman man/pmb-client.1 man/pmb-server.1 dh_install -ppmb fpdf/barcode.php usr/share/php/fpdf/font dh_install -ppmb fpdf/barcode.z usr/share/php/fpdf/font dh_install dh_installinit --no-start -- defaults 99 15 binary-arch: # Build architecture-independent files here. binary-indep: build install dh_testdir dh_testroot dh_installdebconf dh_installdocs dh_installchangelogs dh_link dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install