]> git.etc.gen.nz Git - librt-authen-externalauth-perl.git/blob - debian/rules
Change package name, remove files we drop in /usr/share/perl5.
[librt-authen-externalauth-perl.git] / debian / rules
1 #!/usr/bin/make -f
2 # This debian/rules file is provided as a template for normal perl
3 # packages. It was created by Marc Brockschmidt <marc@dch-faq.de> for
4 # the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
5 # be used freely wherever it is useful.
6
7 # Uncomment this to turn on verbose mode.
8 #export DH_VERBOSE=1
9
10 # If set to a true value then MakeMaker's prompt function will
11 # always return the default without waiting for user input.
12 export PERL_MM_USE_DEFAULT=1
13
14 PERL   ?= /usr/bin/perl
15 PACKAGE = $(shell dh_listpackages)
16 TMP     = $(CURDIR)/debian/$(PACKAGE)
17
18 build: build-stamp
19 build-stamp:
20         dh_testdir
21         # Add commands to compile the package here
22         $(PERL) Makefile.PL INSTALLDIRS=vendor PREFIX=/usr/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth
23         $(MAKE)
24         $(MAKE) test
25         touch $@
26
27 clean:
28         dh_testdir
29         dh_testroot
30         dh_clean build-stamp install-stamp
31         # Add commands to clean up after the build process here
32         [ ! -f Makefile ] || $(MAKE) realclean
33
34 install: install-stamp
35 install-stamp: build-stamp
36         dh_testdir
37         dh_testroot
38         dh_clean -k
39         # Add commands to install the package into $(TMP) here
40         $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
41         rm -rf debian/rt3.8-extension-authen-externalauth/usr/share/perl5
42         touch $@
43
44 binary-arch:
45 # We have nothing to do here for an architecture-independent package
46
47 binary-indep: build install
48         dh_testdir
49         dh_testroot
50         dh_installdocs README
51         dh_installchangelogs ChangeLog
52         dh_installexamples etc/RT_SiteConfig.pm
53         dh_perl usr/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth
54         dh_compress
55         dh_fixperms
56         dh_installdeb
57         dh_gencontrol
58         dh_md5sums
59         dh_builddeb
60
61 binary: binary-indep binary-arch
62 .PHONY: build clean binary-indep binary-arch binary install