blob: dc96709c21969188327709f050c3722f6f044f1c (
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
60
61
62
|
# Maintainer: Stephanie Wilde-Hobbs <git@stephanie.is>
# Upstream-Maintainer: Sébastien Luttringer
pkgname=bird-babel-rtt
pkgver=2.13.1
pkgrel=2
pkgdesc='RIP, OSPF, BGP, MPLS, BFD, Babel routing daemon'
arch=('x86_64')
url='https://bird.network.cz/'
license=('GPL2')
backup=('etc/bird.conf')
depends=('glibc' 'readline' 'ncurses' 'libssh')
makedepends=('git')
replaces=('bird6')
conflicts=('bird')
options=(!emptydirs)
source=("git+https://gitlab.nic.cz/labs/bird.git"
'bird.service')
sha256sums=('SKIP'
'4aa1e8d41229badd276aa3747f613e7df34761892add2258c63bdb5097dfeb2b')
prepare() {
cd bird
git remote add -f tohojo https://github.com/tohojo/bird.git
git checkout babel-rtt-01
git -c user.name="pkgbuild" -c user.email="pkgbuild" rebase "v$pkgver"
# apply patch from the source array (should be a pacman feature)
local filename
for filename in "${source[@]}"; do
if [[ "$filename" =~ \.patch$ ]]; then
echo "Applying patch ${filename##*/}"
patch -p1 -N -i "$srcdir/${filename##*/}"
fi
done
:
}
build() {
cd bird
autoreconf
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--localstatedir=/var \
--runstatedir=/run/bird \
--docdir=/usr/share/doc/bird
make
}
package () {
cd bird
make DESTDIR="$pkgdir" install
# systemd
install -D -m 644 "$srcdir/bird.service" "$pkgdir/usr/lib/systemd/system/bird.service"
}
# vim:set ts=2 sw=2 et:
|