File: rules

package info (click to toggle)
spf-engine 3.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 484 kB
  • sloc: python: 1,625; sh: 116; makefile: 14
file content (21 lines) | stat: -rwxr-xr-x 576 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
#!/usr/bin/make -f

export PYBUILD_NAME=spf-engine

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_install:
	# Remove stuff from package install we install by hand
	rm -rf debian/python3-spf-engine/usr/bin
	rm -rf debian/python3-spf-engine/usr/share
	rm -rf debian/python3-spf-engine/usr/lib/systemd
	rm -rf debian/python3-spf-engine/usr/etc
	cp .pybuild/cpython3_3.*_spf-engine/data/etc/init.d/pyspf-milter debian/pyspf-milter.init
	mkdir -p debian/pyspf-milter/etc

override_dh_auto_test:

execute_after_dh_auto_clean:
	dh_auto_clean
	rm -f debian/pyspf-milter.init