aboutsummarylogtreecommitdiffstats
path: root/README.md
blob: 0926bf6323911d9a8d41c8d00ccd59fcc30779de (plain)
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
# README

A build of keepalived for openrc deployment - nothing fancy, nothing special.


### Install

Most installations of this package will likely be on a server (which likely is not using or have a user account). If this is the case you can install as nobody user as follows:

1. install needed dependencies:
```
pacman -S gcc openssl libnl net-snmp git
```
2. create a build directory and set it up to be owned by the nobody user
```
mkdir /home/build
chgrp nobody /home/build
chmod g+ws /home/build
setfacl -m u::rwx,g::rwx /home/build
setfacl -d --set u::rwx,g::rwx,o::- /home/build
```
3. Now you can clone and build:
```
git clone https://gitlab.com/drad/keepalived.git \
  && cd keepalived \
  && sudo -u nobody makepkg -c \
  && ls -lh keepalived*.zst
```
4. Finally install:
```
pacman -U keepalived-openrc-{version-arch}.pkg.tar.zst
```

Optionally, you can installed the usual AUR way:

```
git clone https://gitlab.com/drad/keepalived.git
cd keepalived
makepkg -sirc
```


### Update

1. Update & Build
```
cd /home/build/keepalived \
  && git pull \
  && sudo -u nobody makepkg -c \
  && ls -lh keepalived*.zst
```
2. Install:
```
pacman -U keepalived-openrc-{version-arch}.pkg.tar.zst
```

### Remove

Remove with: `pacman -R keepalived-openrc`