]> git.donarmstrong.com Git - deb_pkgs/libapache-gallery-perl.git/blob - debian/rules
import Apache2::Const::REDIRECT
[deb_pkgs/libapache-gallery-perl.git] / debian / rules
1 #!/usr/bin/make -f
2
3 %: 
4         dh $@
5
6 # it is necessary to set MOD_PERL_API_VERSION to 2 to avoid trying to
7 # use modperl 1
8 override_dh_auto_test:
9         MOD_PERL_API_VERSION=2 dh_auto_test;
10
11 # install templates and icons
12 override_dh_auto_install:
13         dh_auto_install;
14         cp -r templates/* debian/libapache-gallery-perl/usr/share/libapache-gallery-perl/templates/.;
15         cp -r htdocs/* debian/libapache-gallery-perl/usr/share/libapache-gallery-perl/icons/.;
16
17 # put the missing icons in place
18 override_dh_auto_configure:
19         dh_auto_configure;
20         uudecode -o htdocs/text-txt.png debian/text-text.png.uuencode
21         uudecode -o htdocs/text-html.png debian/text-html.png.uuencode
22
23 # remove the missing icons on clean
24 override_dh_auto_clean:
25         dh_auto_clean;
26         rm -f htdocs/text-text.png htdocs/text-html.png