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 31 32 33 34 35 36 37 38
|
#!/usr/bin/make -f
IP_NF_SET_MAX = 256
IP_NF_SET_HASHSIZE = 1024
PACKAGE = ipset-modules
MA_DIR ?= /usr/share/modass
-include $(MA_DIR)/include/generic.make
-include $(MA_DIR)/include/common-rules.make
kdist_config: prep-deb-files
kdist_clean:
$(MAKE) -C $(KSRC) M=$(CURDIR) clean
binary-modules:
dh_testroot
dh_clean -k
# Build the module
$(MAKE) -C $(KSRC) M=$(CURDIR) IP_NF_SET_MAX=$(IP_NF_SET_MAX) IP_NF_SET_HASHSIZE=$(IP_NF_SET_HASHSIZE) modules
# Install the modules
for module in *.ko; do \
install -D -m 0644 $$module debian/$(PKGNAME)/lib/modules/$(KVERS)/extra/ipset/$$module; \
done
dh_installdocs
dh_installchangelogs
dh_compress
dh_fixperms
dh_installmodules
dh_installdeb
dh_gencontrol -- -v$(VERSION)
dh_md5sums
dh_builddeb --destdir=$(DEB_DESTDIR)
dh_clean -k
.PHONY: binary-modules kdist kdist_config kdist_image kdist_clean
|