1
by Anibal Monsalve Salazar
Import upstream version 0.6.5 |
1 |
#!/usr/bin/make -f
|
2 |
# Sample debian/rules that uses debhelper.
|
|
3 |
# Copyright 1997 to 1999 by Joey Hess.
|
|
4 |
# License: GNU General Public License (GPL)
|
|
5 |
||
1.1.2
by Ante Karamatic
Import upstream version 1.0.7+hg20100210 |
6 |
# Thanks to Paolo Molaro <lupus@debian.org> and heartbeat_0.4.6-2.diff
|
1
by Anibal Monsalve Salazar
Import upstream version 0.6.5 |
7 |
|
8 |
# Uncomment this to turn on verbose mode.
|
|
1.1.2
by Ante Karamatic
Import upstream version 1.0.7+hg20100210 |
9 |
# export DH_VERBOSE=1
|
6
by Ante Karamatic
* Remove old and obsolete patches and patching system |
10 |
|
2
by Anibal Monsalve Salazar
* New upstream release |
11 |
#
|
12 |
# Path to SSH and SCP
|
|
13 |
# Usually this is guessed if ssh is installed.
|
|
14 |
# However, there is a long standing bug with installing ssh
|
|
15 |
# on arm in debian and this is preventing heartbeat from
|
|
16 |
# moving into sarge. By adding this we can remove the build
|
|
2.1.1
by Martin Loschwitz, Martin Loschwitz
[ Martin Loschwitz ] |
17 |
# dependency on ssh and get an updated heartbeat into sarge...
|
2
by Anibal Monsalve Salazar
* New upstream release |
18 |
# I hope. Horms 26th July 2004
|
19 |
#
|
|
20 |
# If this is removed then the build depandancy on ssh should be
|
|
21 |
# restored
|
|
22 |
#
|
|
1
by Anibal Monsalve Salazar
Import upstream version 0.6.5 |
23 |
|
51
by james.page at ubuntu
- d/control: Bump minimum corosync version to 2.3.0. |
24 |
cfg:=--prefix=/usr --sysconfdir=/etc --localstatedir=/var \ |
2.1.20
by Martin Loschwitz
* New upstream revision (Pacemaker 1.1.7) |
25 |
--libexecdir=/usr/lib --mandir=/usr/share/man \ |
51
by james.page at ubuntu
- d/control: Bump minimum corosync version to 2.3.0. |
26 |
--enable-snmp-subagent --with-mibsdir=/usr/share/snmp/mibs \ |
27 |
--disable-fatal-warnings --enable-glib-malloc --with-esmtp \ |
|
28 |
--with-snmp --with-ais --with-heartbeat --libdir=/usr/lib \ |
|
29 |
--enable-upstart |
|
1
by Anibal Monsalve Salazar
Import upstream version 0.6.5 |
30 |
|
31 |
RELEASE := $(shell dpkg-parsechangelog | awk '/^Version: / { print $$2 }') |
|
32 |
UPSTREAM := $(shell echo "$(RELEASE)" | sed 's/:\?\([0-9\.]\+\)-[0-9].*/\1/') |
|
1.1.1
by Ante Karamatic
Import upstream version 1.0.5+hg20090813 |
33 |
ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH) |
1
by Anibal Monsalve Salazar
Import upstream version 0.6.5 |
34 |
|
35 |
patch: |
|
36 |
override_version=$(RELEASE) sh debian/apply |
|
37 |
||
38 |
unpatch: |
|
39 |
override_version=$(RELEASE) sh debian/apply $(UPSTREAM) |
|
40 |
||
2.1.15
by Martin Loschwitz, Martin G. Loschwitz, Andres Rodriguez
[ Martin G. Loschwitz ] |
41 |
build-arch: build |
42 |
build-indep: build |
|
1.1.2
by Ante Karamatic
Import upstream version 1.0.7+hg20100210 |
43 |
build: build-stamp |
1
by Anibal Monsalve Salazar
Import upstream version 0.6.5 |
44 |
build-stamp: |
45 |
dh_testdir
|
|
1.1.1
by Ante Karamatic
Import upstream version 1.0.5+hg20090813 |
46 |
[ -f configure ] || sh autogen.sh |
47 |
if [ -e configure -a ! -x configure ]; then chmod u+x configure; fi |
|
48 |
if [ -e py-compile -a ! -x py-compile ]; then chmod u+x py-compile; fi |
|
1.1.2
by Ante Karamatic
Import upstream version 1.0.7+hg20100210 |
49 |
# run configure script
|
50 |
./configure $(cfg) |
|
1.1.1
by Ante Karamatic
Import upstream version 1.0.5+hg20090813 |
51 |
# set rng compatibility symlinks
|
52 |
$(shell cd xml && for a in *-1.0.rng; do ln -s "$$a" `echo "$$a" | sed 's/-1.0//g'`; done) |
|
1.1.2
by Ante Karamatic
Import upstream version 1.0.7+hg20100210 |
53 |
$(MAKE) |
1
by Anibal Monsalve Salazar
Import upstream version 0.6.5 |
54 |
touch build-stamp |
55 |
||
56 |
clean: |
|
57 |
dh_testdir
|
|
58 |
dh_testroot
|
|
2.1.1
by Martin Loschwitz, Martin Loschwitz
[ Martin Loschwitz ] |
59 |
|
60 |
[ ! -f Makefile ] || $(MAKE) clean |
|
1.1.1
by Ante Karamatic
Import upstream version 1.0.5+hg20090813 |
61 |
rm -f tools/ccdv |
62 |
rm -f libltdl.tar autoconf automake autoheader |
|
63 |
rm -f build-stamp |
|
64 |
rm -f debian/*.files debian/*.dirs |
|
2.1.1
by Martin Loschwitz, Martin Loschwitz
[ Martin Loschwitz ] |
65 |
|
1.1.1
by Ante Karamatic
Import upstream version 1.0.5+hg20090813 |
66 |
rm -rf debian/*-build-* |
67 |
rm -rf debian/tmp-* |
|
2.1.1
by Martin Loschwitz, Martin Loschwitz
[ Martin Loschwitz ] |
68 |
|
1.1.1
by Ante Karamatic
Import upstream version 1.0.5+hg20090813 |
69 |
## Zero autoconf foo
|
1
by Anibal Monsalve Salazar
Import upstream version 0.6.5 |
70 |
rm -f config.status libltdl/config.log libltdl/config.status |
2.1.1
by Martin Loschwitz, Martin Loschwitz
[ Martin Loschwitz ] |
71 |
|
1
by Anibal Monsalve Salazar
Import upstream version 0.6.5 |
72 |
dh_clean
|
73 |
||
74 |
install: build install-stamp |
|
75 |
install-stamp: |
|
76 |
dh_testdir
|
|
77 |
dh_testroot
|
|
2
by Anibal Monsalve Salazar
* New upstream release |
78 |
dh_installdirs
|
1.1.2
by Ante Karamatic
Import upstream version 1.0.7+hg20100210 |
79 |
$(MAKE) install DESTDIR=`pwd`/debian/tmp docdir=/usr/share/doc/pacemaker |
2.1.15
by Martin Loschwitz, Martin G. Loschwitz, Andres Rodriguez
[ Martin G. Loschwitz ] |
80 |
for file in `find debian/tmp -name '*.la'`; do \ |
81 |
sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \ |
|
82 |
done
|
|
1
by Anibal Monsalve Salazar
Import upstream version 0.6.5 |
83 |
|
84 |
binary-indep: build install |
|
85 |
||
86 |
binary-arch: build install |
|
87 |
dh_testdir -a |
|
88 |
dh_testroot -a |
|
2.1.3
by Martin Loschwitz
* Build new packages for upload to official unstable repository |
89 |
|
2.2.2
by Martin Loschwitz
* Package split to better comply with Debian Policy (c. 8.1.) |
90 |
rm -rf `pwd`/debian/tmp/usr/lib/service_crm.so |
91 |
rm -rf `pwd`/debian/tmp/usr/lib/service_crm.la |
|
92 |
rm -rf `pwd`/debian/tmp/usr/lib/service_crm.a |
|
93 |
||
25
by Andres Rodriguez
* New upstream release |
94 |
dh_install --sourcedir=debian/tmp --list-missing |
50
by james.page at ubuntu
Revert previous commit |
95 |
|
2.2.3
by Martin Loschwitz
* New upstream version |
96 |
# install default file
|
97 |
mkdir -p $(CURDIR)/debian/pacemaker/etc/default |
|
98 |
cp -ax $(CURDIR)/mcp/pacemaker.sysconfig $(CURDIR)/debian/pacemaker/etc/default/pacemaker |
|
99 |
||
1.1.1
by Ante Karamatic
Import upstream version 1.0.5+hg20090813 |
100 |
# make non-scripts non-executable
|
1.1.2
by Ante Karamatic
Import upstream version 1.0.7+hg20100210 |
101 |
-chmod -x `pwd`/debian/pacemaker/usr/share/pacemaker/crm-transitional.dtd |
102 |
-chmod -x `pwd`/debian/pacemaker/usr/share/pacemaker/resources-1.0.rng |
|
103 |
-chmod -x `pwd`/debian/pacemaker/usr/share/pacemaker/upgrade06.xsl |
|
104 |
-chmod -x `pwd`/debian/pacemaker/usr/share/pacemaker/constraints-1.0.rng |
|
105 |
-chmod -x `pwd`/debian/pacemaker/usr/share/pacemaker/pacemaker.rng |
|
106 |
-chmod -x `pwd`/debian/pacemaker/usr/share/pacemaker/pacemaker-1.0.rng |
|
107 |
-chmod -x `pwd`/debian/pacemaker/usr/share/pacemaker/score.rng |
|
108 |
-chmod -x `pwd`/debian/pacemaker/usr/share/pacemaker/crm.dtd |
|
2.1.19
by Martin Loschwitz
Adopted numerous changes from the Ubuntu packages, implemented by Andres |
109 |
|
1.1.1
by Ante Karamatic
Import upstream version 1.0.5+hg20090813 |
110 |
# delete redundant COPYING files
|
2.1.1
by Martin Loschwitz, Martin Loschwitz
[ Martin Loschwitz ] |
111 |
rm -rf debian/pacemaker/usr/share/doc/pacemaker/COPYING.LGPL |
112 |
rm -rf debian/pacemaker/usr/share/doc/pacemaker/COPYING.LIB |
|
113 |
rm -rf debian/pacemaker/usr/share/doc/pacemaker/COPYING |
|
50
by james.page at ubuntu
Revert previous commit |
114 |
|
115 |
# create special directory
|
|
116 |
mkdir -p `pwd`/debian/pacemaker/var/lib/pengine |
|
117 |
mkdir -p `pwd`/debian/pacemaker/var/lib/heartbeat/pengine |
|
51
by james.page at ubuntu
- d/control: Bump minimum corosync version to 2.3.0. |
118 |
mkdir -p `pwd`/debian/pacemaker/var/lib/pacemaker/blackbox |
119 |
mkdir -p `pwd`/debian/pacemaker/var/lib/pacemaker/cib |
|
120 |
mkdir -p `pwd`/debian/pacemaker/var/lib/pacemaker/cores |
|
121 |
mkdir -p `pwd`/debian/pacemaker/var/lib/pacemaker/pengine |
|
50
by james.page at ubuntu
Revert previous commit |
122 |
|
2
by Anibal Monsalve Salazar
* New upstream release |
123 |
dh_installdebconf -a |
124 |
dh_installdocs -a |
|
125 |
dh_installexamples -a |
|
126 |
dh_installinit -a -n -u 'defaults 20 32' |
|
127 |
dh_installman -a |
|
2.1.1
by Martin Loschwitz, Martin Loschwitz
[ Martin Loschwitz ] |
128 |
dh_lintian
|
2
by Anibal Monsalve Salazar
* New upstream release |
129 |
dh_installchangelogs
|
130 |
dh_link -a |
|
2.1.21
by Martin Loschwitz
Added a pacemaker-dbg package for debugging purposes |
131 |
dh_strip -a --dbg-package=pacemaker-dbg |
50
by james.page at ubuntu
Revert previous commit |
132 |
|
1
by Anibal Monsalve Salazar
Import upstream version 0.6.5 |
133 |
dh_compress -a |
134 |
dh_fixperms -a |
|
2.1.19
by Martin Loschwitz
Adopted numerous changes from the Ubuntu packages, implemented by Andres |
135 |
|
2.1.15
by Martin Loschwitz, Martin G. Loschwitz, Andres Rodriguez
[ Martin G. Loschwitz ] |
136 |
chmod -x $(CURDIR)/debian/pacemaker/usr/share/pacemaker/*.rng |
137 |
||
1
by Anibal Monsalve Salazar
Import upstream version 0.6.5 |
138 |
dh_makeshlibs -a -V |
2.1.5
by Frederik Schüler
run dh_installdeb *after* dh_perl and dh_pycentral. |
139 |
dh_perl -a |
25
by Andres Rodriguez
* New upstream release |
140 |
dh_python2 -ppacemaker -ppacemaker-dev |
1
by Anibal Monsalve Salazar
Import upstream version 0.6.5 |
141 |
dh_installdeb -a |
2
by Anibal Monsalve Salazar
* New upstream release |
142 |
dh_shlibdeps -a |
1
by Anibal Monsalve Salazar
Import upstream version 0.6.5 |
143 |
dh_gencontrol -a |
144 |
dh_md5sums -a |
|
145 |
dh_builddeb -a |
|
146 |
||
147 |
binary: binary-indep binary-arch |
|
148 |
||
1.1.2
by Ante Karamatic
Import upstream version 1.0.7+hg20100210 |
149 |
.PHONY: build clean binary binary-indep binary-arch install \ |
1
by Anibal Monsalve Salazar
Import upstream version 0.6.5 |
150 |
patch unpatch |