File: rules

package info (click to toggle)
libace-perl 1.92-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,984 kB
  • sloc: perl: 7,763; ansic: 7,420; makefile: 74
file content (55 lines) | stat: -rwxr-xr-x 2,292 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/make -f

PERL   ?= /usr/bin/perl
PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh  $@

override_dh_auto_build:
	# The following is pasted from an interactive session, to better understand what is echoed to Makefile.PL.

	# Add commands to compile the package here
	#
	# Following echo answers the questions below.
	# What do you want to build?
	# 1) Interface to Ace socket server and local databases (pure Perl)
	# 2) The above plus XS optimizations (requires C compiler)
	# 3) The above plus RPC server interface (requires C compiler)
	#
	# Enter your choice:  [1]
	# Do you want to install Ace::Browser?  [n]
	# Directory for the site-specific configuration files (~username ok): [/usr/local/apache/conf/ace]
	# Directory does not exist.  Shall I create it for you? [y]
	# Directory for the acebrowser CGI scripts (~username ok): [/usr/local/apache/cgi-bin/ace]
	# Directory does not exist.  Shall I create it for you? [y]
	# Directory for the acebrowser HTML files and images (~username ok): [/usr/local/apache/htdocs/ace]
	perl -e "print qq(3\ny\n$(CURDIR)/debian/$(PACKAGE)/etc/libace-perl\ny\n$(CURDIR)/debian/$(PACKAGE)/usr/lib/cgi-bin\ny\n$(CURDIR)/debian/$(PACKAGE)/usr/share/$(PACKAGE))" | $(PERL) Makefile.PL INSTALLDIRS=vendor
	dh_auto_build -- OPTIMIZE="$(CFLAGS)" LD_RUN_PATH="" OTHERLDFLAGS="$(LDFLAGS)"

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	# Disabled as they need internet access.
endif

override_dh_clean:
	[ ! -f Makefile ] || $(MAKE) realclean
	$(RM) --recursive docs/Ace
	dh_clean .docs Ace/Browser/LocalSiteDefs.pm docs/Ace.html pod2htmd.tmp pod2htmi.tmp util/ace.pl util/install.pl

override_dh_auto_install:
	# Add commands to install the package into $(TMP)
	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
	mv $(TMP)/usr/bin/ace.pl $(TMP)/usr/bin/ace
	# Manpage is somehow empty and will be replaced by the manually edited debian/ace.1
	rm -f $(TMP)/usr/share/man/man1/ace.pl.1p
	[ ! -d $(TMP)/usr/share/perl5 ] || \
		rmdir --ignore-fail-on-non-empty --parents --verbose \
		$(TMP)/usr/share/perl5

override_dh_installexamples:
	dh_installexamples
	sed -i 's?#!/usr/local/bin/perl?#!/usr/bin/perl?' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*.pl