-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcluster-tools-lihas.jonixbuild
executable file
·119 lines (84 loc) · 2.8 KB
/
cluster-tools-lihas.jonixbuild
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/bin/sh
NAME="cluster-tools-lihas"
# !!! VERSION und BUILD werden im Makefile im selben Verzeichnis gesetzt.
version=$(cd $CWD; git describe | cut -d'-' -f1)
git_id=$(cd $CWD; git describe | cut -d'-' -f3)
#VERSION=$(cd $CWD; git describe | cut -d'-' -f1)
BUILD=$(cd $CWD; git describe | cut -d'-' -f2)
VERSION=$version
shortdesc="Cluster Tools LiHAS"
longdesc="Tools to create vserver/lxc/kvm on lvm/drbd-cluster.
Exchange ssh-keys, edit /etc/ha.d/ha.cf, edit
/etc/cluster-tools-lihas.conf and create volumegroups as
vg_\$hostname to make the tools work. Also, heartbeat-daemon has to be up and running. Works with corossync as well, needs 'crm'"
section=admin
author="Adrian Reyer <[email protected]>"
website="http://www.lihas.de/"
ARCH=all # i686, noarch, fw (firmware)
depends="heartbeat2-scripts-lihas, ipcalc"
suggests="util-vserver-build, pacemaker, drbd8-utils"
recommends="debootstrap"
conffiles="/etc/cluster-tools-lihas.conf"
copyright=GPL
cat << EOF > $basedir/EXCEPTION
mkdir -p $PKG/var/backups/crm
EOF
cat << EOF > $changelog
$NAME (1.4.3-1)
* crm-backup: inital version
-- are <[email protected]> 2014-12-11
$NAME (1.4.0-1)
* lxc-neu.sh: inital version
-- are <[email protected]> 2013-12-20
$NAME (1.3.4-1)
* vserver-neu.sh: use correct broadcast address in crm
-- are <[email protected]> 2013-10-25
$NAME (1.3.3-1)
* kvm-neu.sh: calc MAC base from hostname
-- are <[email protected]> 2013-10-25
$NAME (1.3.1-3)
* Fix VG in kvm_neu.sh
-- are <[email protected]> 2013-10-24
$NAME (1.3.1-3)
* Added some dependencies
-- jsc <[email protected]> 2013-10-23
$NAME (1.3.1-2)
* Added some dependencies
-- jsc <[email protected]> 2013-10-23
$NAME (1.3.1-1)
* Support drbd 8.4.3 within kvm-neu.sh
-- are <[email protected]> 2013-10-02
$NAME (1.3.0-1)
* export common drbd stuff to usr/lib/cluster-tools-lihas/drbd-functions.sh
-- are <[email protected]> 2013-10-02
$NAME (1.2.8-1)
* drbd-conf-sync-after added
-- are <[email protected]> 2013-10-02
$NAME (1.2.7-1)
* vserver-add-disk.sh now adds colocation statement
-- are <[email protected]> 2013-03-22
$NAME (1.2.5-1)
* bugfix: /usr/local/bin/vserver-neu.sh typo
-- are <[email protected]> 2013-03-13
$NAME (1.2.4-1)
* neu: VSHOOKPOST
-- are <[email protected]> 2013-03-08
$NAME (1.2-1)
* neu: vserver-add-disk.sh
-- are <[email protected]> 2012-09-25
$NAME (1.1-1)
* VServer build Methode debootstrap statt rsync
-- are <[email protected]> 2012-08-24
$NAME (1.0-1)
* Initales Paket gebaut.
-- jsc <[email protected]> 2012-08-21
EOF
build () {
cp -a $CWD/etc $PKG/ || exit 1
cp -a $CWD/usr $PKG/ || exit 1
$FAKEROOT chmod 755 $PKG/usr/bin/kvm-neu || exit 1
$FAKEROOT chmod 755 $PKG/usr/bin/vserver-neu || exit 1
$FAKEROOT chmod 755 $PKG/usr/bin/vserver-add-disk || exit 1
$FAKEROOT chmod 755 $PKG/usr/bin/drbd-conf-sync-after || exit 1
$FAKEROOT chmod 755 $PKG/usr/bin/crm-backup || exit 1
}