File: rules

package info (click to toggle)
proftpd-mod-proxy 0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 3,068 kB
  • sloc: perl: 31,071; ansic: 24,330; sh: 3,314; makefile: 200
file content (30 lines) | stat: -rwxr-xr-x 845 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
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DH_VERBOSE=1
MODULE_NAME=mod_proxy
DEBNAME=proftpd-mod-proxy

%:
	dh $@ --without autoreconf --max-parallel=1

override_dh_auto_configure:
	./configure --with-modules=$(MODULE_NAME) --enable-dso

override_dh_auto_install:
	#DESTDIR=$(CURDIR)/debian/$(DEBNAME) prxs -i -c $(MODULE_NAME).c
	make install DESTDIR=$(CURDIR)/debian/$(DEBNAME)
	rm -f $(CURDIR)/debian/$(DEBNAME)/usr/lib/proftpd/*.la \
		$(CURDIR)/debian/$(DEBNAME)/usr/lib/proftpd/*.a

override_dh_gencontrol:
	cat /usr/share/proftpd/proftpd-substvars >> $(CURDIR)/debian/$(DEBNAME).substvars
	dh_gencontrol

override_dh_auto_clean:
	find lib -name \*.o | xargs rm -f
	find lib -name \*.lo | xargs rm -f
	DESTDIR=$(CURDIR)/debian/$(DEBNAME) prxs -d $(MODULE_NAME).c

override_dh_auto_test: