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.
7 # Uncomment this to turn on verbose mode.
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
14 PACKAGE
=$(shell dh_listpackages
)
20 include /usr
/share
/quilt
/quilt.make
22 TMP
=$(CURDIR
)/debian
/$(PACKAGE
)
24 # Allow disabling build optimation by setting noopt in
27 ifneq (,$(findstring noopt
,$(DEB_BUILD_OPTIONS
)))
34 build-stamp
: $(QUILT_STAMPFN
)
38 # Add commands to compile the package here
39 $(PERL
) Makefile.PL INSTALLDIRS
=vendor
40 $(MAKE
) OPTIMIZE
="$(CFLAGS)" LD_RUN_PATH
=""
48 # Add commands to clean up after the build process here
49 [ ! -f Makefile
] ||
$(MAKE
) realclean
51 dh_clean build-stamp install-stamp
53 install: build install-stamp
59 # Add commands to install the package into debian/PACKAGE_NAME here
61 $(MAKE
) install DESTDIR
=$(TMP
) PREFIX
=/usr
64 rm $(TMP
)/etc
/mail
/spamassassin
/local.cf
67 tar xzvf ..
/sa-updates.tgz
-C
$(TMP
)/usr
/share
/spamassassin
/
68 #patch -d $(TMP)/usr/share/spamassassin <../72_active.cf.diff
70 # As this is a architecture dependent package, we are not
71 # supposed to install stuff to /usr/share. MakeMaker creates
72 # the dirs, we delete them from the deb:
73 rmdir
--ignore-fail-on-non-empty
--parents
$(TMP
)/usr
/share
/perl5
77 # Build architecture-independent files here.
78 binary-indep
: build
install
79 # We have nothing to do by default.
81 # Build architecture-dependent files here.
82 binary-arch
: build
install
85 dh_installdocs README t
/README sql
/README.awl sql
/README.bayes sql
/README spamd
/README.vpopmail spamd
/README spamd
/OSXStartup
/README spamc
/README.win spamc
/README.qmail spamd-apache2
/README.apache ldap
/README ldap
/README.testing
90 dh_installchangelogs Changes
104 @echo
>&2 'source and diff are obsolete - use dpkg-source -b'; false
106 binary
: binary-indep binary-arch
107 .PHONY
: build
clean binary-indep binary-arch binary