File: rules

package info (click to toggle)
getmail 5.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,012 kB
  • sloc: python: 6,044; sh: 58; makefile: 18
file content (31 lines) | stat: -rwxr-xr-x 1,095 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
#!/usr/bin/make -f
#export DH_VERBOSE=1
%:
	dh $@ --with python2 --buildsystem=pybuild

# Always use debian/getmail as destination (not debian/tmp)
# even when dummy getmail4 package exists
override_dh_auto_install:
	dh_auto_install --destdir debian/getmail

override_dh_install:
	dh_install
	# Move documentation files created by setup.py
	# to Debian style versionless directory
	mv debian/getmail/usr/share/doc/getmail-* \
		debian/getmail/usr/share/doc/getmail
	# Remove files dealt via dh_installdocs
	rm debian/getmail/usr/share/doc/getmail/CHANGELOG
	# Remove extra-files for Debian
	rm debian/getmail/usr/share/doc/getmail/COPYING

override_dh_installdocs:
	dh_installdocs
	# Fix file name to be getmailrc-examples.gz (Bug#463897)
	if [ -s debian/getmail/usr/share/doc/getmail/configuration.txt ]; then \
	sed -i -e 's/getmailrc-examples/getmailrc-examples.gz/' debian/getmail/usr/share/doc/getmail/configuration.txt ;\
	sed -i -e 's/getmailrc-examples/getmailrc-examples.gz/g' debian/getmail/usr/share/doc/getmail/configuration.html ; \
	fi

override_dh_python2:
	dh_python2 -p getmail