File: rules

package info (click to toggle)
spf-engine 2.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 472 kB
  • sloc: python: 1,391; sh: 116; makefile: 15
file content (23 lines) | stat: -rwxr-xr-x 802 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

export PYBUILD_NAME=spf-engine

%:
	dh $@ --with python3,systemd --buildsystem=pybuild

override_dh_auto_build:

override_dh_auto_install:
	python3 setup.py install --single-version-externally-managed --record=/dev/null --install-layout=deb  --root=build
	# Install logcheck filter
	dh_install debian/postfix-policyd-spf-python.logcheck etc/logcheck/ignore.d.server/
	mv $(CURDIR)/debian/postfix-policyd-spf-python/etc/logcheck/ignore.d.server/postfix-policyd-spf-python.logcheck \
	$(CURDIR)/debian/postfix-policyd-spf-python/etc/logcheck/ignore.d.server/postfix-policyd-spf-python
	cp system/pyspf-milter debian/pyspf-milter.init
	mkdir -p debian/pyspf-milter/etc


override_dh_auto_clean:
	python3 $(CURDIR)/setup.py clean
	rm -rf $(CURDIR)/build
	rm -f debian/pyspf-milter.init