proftpd-mod-proxy_protocol/debian/rules

25 lines
733 B
Plaintext
Raw Normal View History

2020-03-10 14:33:46 +01:00
#!/usr/bin/make -f
# -*- makefile -*-
export DH_VERBOSE=1
VERSION=$(shell grep PROFTPD_VERSION_TEXT /usr/include/proftpd/version.h|cut -d\" -f2)
MODULE_NAME=mod_proxy_protocol
DEBNAME=proftpd-mod-proxy-protocol
2020-03-10 16:08:38 +01:00
CFLAGS := -Wno-implicit-function-declaration
2020-03-10 14:33:46 +01:00
%:
dh $@ --without python-support
override_dh_auto_build:
2020-03-10 16:01:36 +01:00
DESTDIR=$(CURDIR)/debian/$(DEBNAME) CFLAGS=$(CFLAGS) prxs -c $(MODULE_NAME).c
2020-03-10 14:33:46 +01:00
override_dh_auto_install:
2020-03-10 16:01:36 +01:00
DESTDIR=$(CURDIR)/debian/$(DEBNAME) CFLAGS=$(CFLAGS) prxs -i -c $(MODULE_NAME).c
2020-03-10 14:33:46 +01:00
override_dh_gencontrol:
cat /usr/share/proftpd/proftpd-substvars >>$(CURDIR)/debian/$(DEBNAME).substvars
dh_gencontrol
override_dh_auto_clean:
2020-03-10 16:01:36 +01:00
DESTDIR=$(CURDIR)/debian/$(DEBNAME) CFLAGS=$(CFLAGS) prxs -d $(MODULE_NAME).c