]> git.sur5r.net Git - bacula/bacula/blob - gui/debian/rules
Drop AFS detection.
[bacula/bacula] / gui / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 #
5 # This file was originally written by Joey Hess and Craig Small.
6 # As a special exception, when this file is copied by dh-make into a
7 # dh-make output file, you may use that output file without restriction.
8 # This special exception was added by Craig Small in version 0.37 of dh-make.
9 #
10 # Modified to make a template file for a multi-binary package with separated
11 # build-arch and build-indep targets  by Bill Allombert 2001
12
13 # Uncomment this to turn on verbose mode.
14 #export DH_VERBOSE=1
15
16 # This has to be exported to make some magic below work.
17 export DH_OPTIONS
18
19
20 #Architecture 
21 build: build-arch build-indep
22
23 build-arch: build-arch-stamp
24 build-arch-stamp: 
25         touch build-arch-stamp
26
27 build-indep: build-indep-stamp
28 build-indep-stamp: 
29         dh_installdirs -i
30         touch build-indep-stamp
31
32 clean:
33         dh_testdir
34         rm -f build-arch-stamp build-indep-stamp binary-common-stamp install-indep-stamp install-arch-stamp #CONFIGURE-STAMP#
35         rm -f debian/*.1
36         rm -f debian/*.init
37         dh_clean 
38
39 install: install-indep-stamp
40 install-indep-stamp: install-indep
41 install-indep:
42         dh_testdir
43         dh_testroot
44         dh_clean -k -i 
45         dh_installdirs -i
46         install -m 755 brestore/brestore.pl debian/brestore/usr/bin
47         install -m 644 brestore/brestore.glade debian/brestore/usr/share/brestore
48         install -m 644 brestore/brestore-fr.glade debian/brestore/usr/share/brestore
49         install -m 644 brestore/brestore.png debian/brestore/usr/share/brestore
50
51         install -m 644 bweb/lib/Bconsole.pm debian/bweb-common/usr/share/perl5
52         install -m 644 bweb/lib/CCircle.pm debian/bweb/usr/share/perl5
53         install -m 644 bweb/lib/Bweb.pm debian/bweb/usr/share/perl5
54         install -m 644 bweb/lib/GTime.pm debian/bweb/usr/share/perl5
55         install -m 644 bweb/lib/GBalloon.pm debian/bweb/usr/share/perl5
56         install -m 644 bweb/script/bweb.conf debian/bweb/etc/apache2/sites-available
57         install -m 755 bweb/cgi/bgraph.pl debian/bweb/usr/lib/cgi-bin/bweb
58         install -m 755 bweb/cgi/bweb.pl debian/bweb/usr/lib/cgi-bin/bweb
59         install -m 755 bweb/cgi/btime.pl debian/bweb/usr/lib/cgi-bin/bweb
60         install -m 755 bweb/cgi/bresto.pl debian/bweb/usr/lib/cgi-bin/bweb
61         install -m 755 bweb/cgi/bfileview.pl debian/bweb/usr/lib/cgi-bin/bweb
62         install -m 755 bweb/cgi/bconsole.pl debian/bweb/usr/lib/cgi-bin/bweb
63         install -m 644 bweb/lang/en/tpl/*.tpl debian/bweb/usr/share/bweb/tpl/en 
64         install -m 644 bweb/lang/fr/tpl/*.tpl debian/bweb/usr/share/bweb/tpl/fr 
65         install -m 644 bweb/lang/es/tpl/*.tpl debian/bweb/usr/share/bweb/tpl/es 
66         install -m 644 bweb/html/*.js debian/bweb/usr/share/bweb/html
67         install -m 644 bweb/html/*.css debian/bweb/usr/share/bweb/html
68         install -m 644 bweb/html/*.png debian/bweb/usr/share/bweb/html
69         install -m 644 bweb/html/*.gif debian/bweb/usr/share/bweb/html
70         install -m 644 bweb/html/*.html debian/bweb/usr/share/bweb/html
71         install -m 644 bweb/html/*.ico debian/bweb/usr/share/bweb/html
72         install -m 644 bweb/script/*.sql debian/bweb/usr/share/bweb
73         echo '$$VAR1 = { template_dir => "/usr/share/bweb/tpl", bconsole => "/usr/bin/bconsole -n -c /etc/bacula/bconsole.conf", fv_write_path => "/var/spool/bweb" };' > debian/bweb/etc/bacula/bweb.conf
74         chmod 600 debian/bweb/etc/bacula/bweb.conf
75         dh_install -i
76         touch install-indep-stamp
77
78 install-arch: install-arch-stamp
79 install-arch-stamp:
80         dh_testdir
81         dh_testroot
82 #       dh_clean -pbrestore -k -s 
83 #       dh_clean -pbweb    -k -s 
84
85         touch install-arch-stamp
86
87 binary: build install binary-common 
88 # Must not depend on anything. This is to be called by
89 # binary-arch/binary-indep
90 # in another 'make' thread.
91 binary-common: binary-common-stamp
92 binary-common-stamp:
93         dh_testdir
94         dh_testroot
95         dh_installchangelogs 
96         dh_installdocs
97         dh_installexamples
98         dh_installmenu -psched-builder
99         dh_installdebconf       
100 #       dh_installlogrotate     
101 #       dh_installemacsen
102 #       dh_installpam
103 #       dh_installmime
104 #       dh_installinit
105 #       dh_installcron
106 #       dh_installinfo
107         dh_installman
108         dh_link
109         dh_strip
110         dh_compress 
111         dh_fixperms
112 #       dh_perl
113 #       dh_python
114         dh_makeshlibs
115         dh_installdeb
116         dh_shlibdeps
117         dh_gencontrol
118         dh_md5sums
119         dh_builddeb
120         touch binary-common-stamp
121
122 # Build architecture independant packages using the common target.
123 binary-indep: build-indep install-indep-stamp
124         $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
125
126 # Build architecture dependant packages using the common target.
127 binary-arch: build-arch install-arch
128         $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
129
130 binary: binary-arch binary-indep
131 .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure