File: rules

package info (click to toggle)
flamethrower 0.1.8-6.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 308 kB
  • sloc: perl: 810; sh: 78; makefile: 18
file content (33 lines) | stat: -rwxr-xr-x 757 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PREFIX = /usr
pkg = flamethrower
tmp = $(CURDIR)/debian/$(pkg)

%:
	dh $@

override_dh_auto_configure:
	perl Makefile.PL

override_dh_auto_clean:
	perl Makefile.PL
	$(MAKE) realclean
	dh_auto_clean

override_dh_auto_install:
	$(MAKE) install DESTDIR="$(tmp)" PREFIX="$(PREFIX)" CONFDIR="$(tmp)" SITEPREFIX="$(PREFIX)" INSTALLSITEARCH="$(PREFIX)" INSTALLSITESCRIPT="$(PREFIX)/bin"

	# upstream installs this as executable
	chmod 644 $(tmp)/usr/lib/flamethrower/*.pm

	# this directory tree is empty
	rm -rf $(tmp)/usr/perllocal.pod
	rm -rf $(tmp)/usr/auto

	# let debhelper install this for us
	rm -rf $(tmp)/etc/init.d
	cp etc/init.d/flamethrower-server debian/$(pkg).init