root/pkg/debian/rules

Revision 1c72b25e1ee042e2a8e8a16eec7239c98e6cd892, 1.3 kB (checked in by Brandon Philips <brandon.philips@rackspace.com>, 3 years ago)

pkg: fix up debian package to actually work

A number of changes have left the debian package broken including the
javalibdir changes and version bumps. Fix these minor issues.

Then I also automated the version number creation so that every time you
call pkg/build-debian.sh it generates a new version number if the HEAD
has moved. It is a little hacky but solves the version bumping issue for
now.

  • Property mode set to 100755
Line 
1 #! /usr/bin/make -f
2
3 clean:
4         dh_testdir
5         dh_clean
6         -$(MAKE) clean
7         -rm build-stamp install-stamp
8
9 build: build-stamp
10
11 build-stamp:
12         autoconf
13         ./configure --prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc/reconnoiter --localstatedir=/var/lib/reconnoiter --datarootdir=/usr/share --with-java-libdir=/usr/share/java
14         $(MAKE)
15         touch $@
16
17 install: build install-stamp
18 install-stamp:
19         dh_testdir
20         dh_testroot
21         dh_clean -k
22         dh_installdirs
23        
24         $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
25         -cp -a $(CURDIR)/ui/web $(CURDIR)/debian/tmp/usr/share/reconnoiter/www
26         -cp -a $(CURDIR)/debian/tmp/etc/reconnoiter/noit.conf.sample $(CURDIR)/debian/tmp/etc/reconnoiter/noit.conf
27         -cp -a $(CURDIR)/debian/tmp/etc/reconnoiter/stratcon.conf.sample $(CURDIR)/debian/tmp/etc/reconnoiter/stratcon.conf
28
29
30         touch $@
31        
32        
33 binary-indep: install
34         dh_testdir
35         dh_testroot
36         dh_install -i
37         dh_installdocs -i
38         dh_installchangelogs -i
39         dh_installinit  -i
40         dh_installcron -i
41         dh_compress -i
42         dh_fixperms -i
43         dh_installdeb -i
44         dh_gencontrol -i
45         dh_md5sums -i
46         dh_builddeb -i
47
48 binary-arch: install
49         dh_testdir
50         dh_testroot
51         dh_install -a --autodest
52         dh_installdocs -a
53         dh_installchangelogs -a
54         dh_installinit -a
55         dh_installcron -a
56         dh_makeshlibs -a
57         dh_shlibdeps -a
58         dh_compress -a
59         dh_fixperms -a
60         dh_installdeb -a
61         dh_gencontrol -a
62         dh_md5sums -a
63         dh_builddeb -a
64
65 binary: binary-arch
Note: See TracBrowser for help on using the browser.