File: rules.modules

package info (click to toggle)
netfilter-extensions 20080719%2Bdebian-1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 336 kB
  • ctags: 724
  • sloc: ansic: 6,275; sh: 315; makefile: 84
file content (58 lines) | stat: -rw-r--r-- 1,461 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/make -f

POM_MODULES += \
	net/ipv4/netfilter/ip_set.ko \
	net/ipv4/netfilter/ip_set_iphash.ko \
	net/ipv4/netfilter/ip_set_ipmap.ko \
	net/ipv4/netfilter/ip_set_ipporthash.ko \
	net/ipv4/netfilter/ip_set_iptree.ko \
	net/ipv4/netfilter/ip_set_iptreemap.ko \
	net/ipv4/netfilter/ip_set_macipmap.ko \
	net/ipv4/netfilter/ip_set_nethash.ko \
	net/ipv4/netfilter/ip_set_portmap.ko \
	net/ipv4/netfilter/ipt_ipv4options.ko \
	net/ipv4/netfilter/ipt_SET.ko \
	net/ipv4/netfilter/ipt_set.ko \
	net/ipv4/netfilter/ipt_TARPIT.ko \
	net/ipv4/netfilter/ipt_u32.ko

psource:=netfilter-extensions-source
sname:=netfilter-extensions

### KERNEL SETUP

PACKAGE=netfilter-extensions-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)/net/ipv4/netfilter clean

### end KERNEL SETUP

binary-modules:
	dh_testroot
	dh_clean -k

	# Build the module
	$(MAKE) -C $(KSRC) M=$(CURDIR)/net/ipv4/netfilter modules

	# Install the modules
	for module in $(POM_MODULES); do \
		install -D -m 0644 $$module debian/$(PKGNAME)/lib/modules/$(KVERS)/kernel/$$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