]> git.sven.stormbind.net Git - sven/pflogsumm.git/blob - debian/rules
fa4571a08999fa1f818ee7773c99293bd3b0f3d8
[sven/pflogsumm.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 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 # This is the debhelper compatability version to use.
9 export DH_COMPAT=4
10
11 configure: configure-stamp
12 configure-stamp:
13         dh_testdir
14         # Add here commands to configure the package.
15         
16
17         touch configure-stamp
18
19 build: configure-stamp build-stamp
20 build-stamp:
21         dh_testdir
22
23         # Add here commands to compile the package.
24         #/usr/bin/docbook-to-man debian/pflogsumm.sgml > pflogsumm.1
25
26         touch build-stamp
27
28 clean:
29         dh_testdir
30         dh_testroot
31         rm -f build-stamp configure-stamp
32
33         # Add here commands to clean up after the build process.
34
35         dh_clean
36
37 install: build
38         dh_testdir
39         dh_testroot
40         dh_clean -k
41         dh_installdirs
42
43         # Add here commands to install the package into debian/pflogsumm.
44         #$(MAKE) install DESTDIR=$(CURDIR)/debian/pflogsumm
45         cp pflogsumm.pl $(CURDIR)/debian/pflogsumm/usr/sbin/pflogsumm
46         cd $(CURDIR)/debian/pflogsumm/usr/sbin && ln -s pflogsumm pflogsumm.pl
47         cp pflogsumm.1 $(CURDIR)/debian/pflogsumm/usr/share/man/man1
48
49
50 # Build architecture-independent files here.
51 binary-indep: build install
52 # We have nothing to do by default.
53
54 # Build architecture-dependent files here.
55 binary-arch: build install
56 #       dh_testversion 2
57         dh_testdir
58         dh_testroot
59 #       dh_installdebconf       
60         dh_installdocs rem_smtpd_stats_supp.pl pflogsumm-faq.txt README ToDo
61         dh_installexamples debian/example.cron.daily debian/example.cron.weekly 
62 #       dh_installmenu
63 #       dh_installemacsen
64 #       dh_installpam
65 #       dh_installinit
66 #       dh_installcron
67 #       dh_installmanpages
68 #       dh_installinfo
69 #       dh_undocumented
70         dh_installchangelogs ChangeLog
71         dh_link
72         dh_strip
73         dh_compress
74         cd $(CURDIR)/debian/pflogsumm/usr/share/man/man1/ && ln -s pflogsumm.1.gz pflogsumm.pl.1.gz
75         
76         dh_fixperms
77         # You may want to make some executables suid here.
78 #       dh_suidregister
79 #       dh_makeshlibs
80         dh_installdeb
81 #       dh_perl
82         dh_shlibdeps
83         dh_gencontrol
84         dh_md5sums
85         dh_builddeb
86
87 binary: binary-indep binary-arch
88 .PHONY: build clean binary-indep binary-arch binary install configure