File: rules

package info (click to toggle)
dkimpy-milter 1.2.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 432 kB
  • sloc: python: 1,200; sh: 112; makefile: 14
file content (24 lines) | stat: -rwxr-xr-x 622 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
#!/usr/bin/make -f
# -*- makefile -*-

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

%:
	dh $@ --buildsystem=pybuild

execute_before_dh_auto_build:
	python3 setup.py expand --bindir=/usr/bin --sysconfigdir=/etc

execute_after_dh_auto_install:
	cp system/dkimpy-milter debian/dkimpy-milter.init
	mkdir -p debian/dkimpy-milter/etc/dkimpy-milter
	mv debian/dkimpy-milter/usr/etc/dkimpy-milter/* \
	    debian/dkimpy-milter/etc/dkimpy-milter
	rm -rf debian/dkimpy-milter/usr/etc

override_dh_python3:
	dh_python3 --no-guessing-deps -v -p dkimpy-milter

execute_before_dh_auto_clean:
	python3 setup.py expand