Adding the possibility to listening multiple IP L2TP tunnels.
[l2tpns.git] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4
5 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
6         CFLAGS += -g
7 endif
8 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
9         INSTALL_PROGRAM += -s
10 endif
11
12 configure: configure-stamp
13 configure-stamp:
14         dh_testdir
15         # Add here commands to configure the package.
16
17         touch configure-stamp
18
19 build: build-stamp
20
21 build-stamp: configure-stamp 
22         dh_testdir
23
24         # Add here commands to compile the package.
25         $(MAKE)
26         #/usr/bin/docbook-to-man debian/l2tpns.sgml > l2tpns.1
27
28         touch build-stamp
29
30 clean:
31         dh_testdir
32         dh_testroot
33         rm -f build-stamp configure-stamp
34
35         # Add here commands to clean up after the build process.
36         -$(MAKE) clean
37
38         dh_clean
39
40 install: build
41         dh_testdir
42         dh_testroot
43         dh_clean -k
44         dh_installdirs
45
46         $(MAKE) install DESTDIR=$(CURDIR)/debian/l2tpns
47         install -D -m 644 -o root -g root etc/l2tpns.logrotate \
48                 $(CURDIR)/debian/l2tpns/etc/logrotate.d/l2tpns
49
50
51 # Build architecture-independent files here.
52 binary-indep: build install
53 # We have nothing to do by default.
54
55 # Build architecture-dependent files here.
56 binary-arch: build install
57         dh_testdir
58         dh_testroot
59 #       dh_installdebconf       
60         dh_installdocs Docs/manual.html
61         dh_installexamples
62         dh_installmenu
63 #       dh_installlogrotate
64 #       dh_installpam
65         dh_installinit
66         dh_installcron
67         dh_installman
68         dh_installinfo
69         dh_installchangelogs Changes
70         dh_link
71         dh_strip
72         dh_compress
73         dh_fixperms
74         dh_installdeb
75 #       dh_perl
76         dh_shlibdeps
77         dh_gencontrol
78         dh_md5sums
79         dh_builddeb
80
81 binary: binary-indep binary-arch
82 .PHONY: build clean binary-indep binary-arch binary install configure