Code

Argh. Why the heck are these lines missing?
[gosa.git] / debian / rules
1 #!/usr/bin/make -f
2 # Made with the aid of dh_make, by Craig Small
3 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Some lines taken from debmake, by Cristoph Lameter.
6 export DH_COMPAT=3
7 # Uncomment this to turn on verbose mode.
8 #export DH_VERBOSE=1
10 build: 
11         #**** Off we go... ****
13 clean:
14         dh_testdir
15         rm -f install-stamp 
16         -rm -f debian/files
17         -rm -f debian/substvars
18         dh_clean
20 install: install-stamp
21 install-stamp: 
22         dh_testdir
23         dh_testroot
24         dh_clean -k
25         dh_installdirs
27         for i in `ls | grep -v debian`; do \
28           cp -R $$i debian/gosa/usr/share/gosa ; \
29         done
30         -find debian/gosa -type d -name ".svn" -exec rm -rf {} \; &> /dev/null || /bin/true
31         -cp -R debian/gosa/usr/share/gosa/contrib/* debian/gosa/usr/share/doc/gosa/contrib/
32         -cp debian/gosa/usr/share/gosa/contrib/openldap/go*.schema debian/gosa-schema/etc/ldap/schema
33         -mkdir debian/gosa/usr/share/doc/gosa/manual
34         -mkdir debian/gosa/usr/share/gosa/bin
35         -mkdir -p debian/gosa-schema/usr/share/doc/gosa-schema
36         -cp -R debian/gosa/usr/share/gosa/doc/* debian/gosa/usr/share/doc/gosa/manual
37         -cp -R INSTALL debian/gosa/usr/share/doc/gosa/README.INSTALL
38         -gzip -c9 debian/changelog > debian/gosa/usr/share/doc/gosa/changelog.Debian.gz
39         -gzip -c9 debian/changelog > debian/gosa-schema/usr/share/doc/gosa-schema/changelog.Debian.gz
40         -gzip -c9 Changelog > debian/gosa/usr/share/doc/gosa/changelog.gz
41         -cp AUTHORS TODO README FAQ README.safemode DEVEL debian/gosa/usr/share/doc/gosa/
42         -rm debian/gosa/usr/share/gosa/README debian/gosa/usr/share/gosa/INSTALL
43         -rm debian/gosa/usr/share/gosa/README.safemode
44         -rm debian/gosa/usr/share/gosa/AUTHORS debian/gosa/usr/share/gosa/Changelog
45         -rm debian/gosa/usr/share/gosa/DEVEL
46         -rm debian/gosa/usr/share/gosa/COPYING debian/gosa/usr/share/gosa/TODO
47         -rm debian/gosa/usr/share/gosa/FAQ
48         -mkdir -p debian/gosa/var/spool/gosa/compile
49         -mkdir -p debian/gosa/var/spool/gosa/config
50         -mkdir -p debian/gosa/var/spool/gosa/cache
51         -rm -rf debian/gosa/usr/share/gosa/compile
52         -mkdir -p debian/gosa/etc/gosa/vacation
53         -cp -R debian/apache.conf debian/gosa/etc/gosa/apache.conf
54         -cp -R contrib/encodings debian/gosa/etc/gosa/encodings
55         -cp -R plugins/personal/mail/sieve-*.txt debian/gosa/etc/gosa
56         -cp contrib/shells debian/gosa/etc/gosa
57         -rm -rf debian/gosa/usr/share/gosa/contrib
58         -rm -rf debian/gosa/usr/share/gosa/doc
59         -rm debian/gosa/usr/share/gosa/bin/gosa
60         -mkdir -p debian/gosa/usr/lib/gosa
61         -mv debian/gosa/usr/share/gosa/bin/* debian/gosa/usr/bin
62         -rm -rf debian/gosa/usr/share/gosa/bin
63         -rm -rf debian/gosa/usr/share/doc/gosa/marketing
64         -find debian/gosa -type f -exec chmod -x {} \;
65         -chmod +x debian/gosa/usr/bin/mkntpasswd
66         -chmod +x debian/gosa/usr/lib/gosa/*
67         -rm -rf debian/gosa/usr/share/gosa/gen_locale.sh
68         -rm -rf debian/gosa/usr/share/gosa/gen_function_list.php
69         -rm -rf debian/gosa/usr/share/gosa/update.sh
70         -mkdir -p debian/gosa/usr/share/php/smarty/libs/plugins
71         -cp include/smarty/plugins/block.t.php debian/gosa/usr/share/php/smarty/libs/plugins
72         -rm -rf debian/gosa/usr/share/gosa/include/smarty
73         -sed 's%"CONFIG_TEMPLATE_DIR", "../contrib/"%"CONFIG_TEMPLATE_DIR", "/usr/share/doc/gosa/contrib/"%g' debian/gosa/usr/share/gosa/include/functions.inc > debian/gosa/usr/share/gosa/include/functions.inc.new
74         -mv debian/gosa/usr/share/gosa/include/functions.inc.new debian/gosa/usr/share/gosa/include/functions.inc
75         -sed 's%require("smarty/Smarty.class.php");%require("/usr/share/php/smarty/libs/Smarty.class.php");%g' debian/gosa/usr/share/gosa/include/php_setup.inc > debian/gosa/usr/share/gosa/include/php_setup.inc.new
76         -mv debian/gosa/usr/share/gosa/include/php_setup.inc.new debian/gosa/usr/share/gosa/include/php_setup.inc
77         touch install-stamp
79 binary-indep: install
80         dh_testdir
81         dh_testroot
82         dh_installdocs 
83         dh_installcron
84         dh_installexamples
85 #       dh_undocumented  
86         dh_installman
87         dh_link
88         dh_strip
89 #       dh_compress
90         dh_fixperms 
91         dh_perl
92         dh_installdeb
93         dh_shlibdeps
95         cd debian/gosa && find ./etc -type f -print | sed -e 's#^./#/#' > DEBIAN/conffiles
96         chmod 644 debian/gosa/DEBIAN/conffiles
98         dh_gencontrol
99         dh_md5sums
100         dh_builddeb
102 source diff:                                                                  
103         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
105 binary: binary-indep 
106 .PHONY: build install clean binary-indep binary