diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-02-29 13:43:57 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-03-09 08:33:40 +0100 |
commit | b0b0d7ab08960ed7b43b4d1dabeaf377fad40942 (patch) | |
tree | e7b822acb9020ee4a0791726ee8ea40bacc082b5 /alpine | |
parent | docker: Do not use pip Python package manager (diff) | |
download | frr-b0b0d7ab08960ed7b43b4d1dabeaf377fad40942.tar.xz frr-b0b0d7ab08960ed7b43b4d1dabeaf377fad40942.zip |
docker: Fix post function for Alpine build (package)
It was using a wrong sysdir.
```
--------------------
72 | # Own the config / PID files
73 | RUN mkdir -p /var/run/frr
74 | >>> RUN chown -R frr:frr /etc/frr /var/run/frr
75 |
76 | # Simple init manager for reaping processes and forwarding signals
--------------------
```
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'alpine')
-rw-r--r-- | alpine/APKBUILD.in | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/alpine/APKBUILD.in b/alpine/APKBUILD.in index 98d3e5145..2cb3feec1 100644 --- a/alpine/APKBUILD.in +++ b/alpine/APKBUILD.in @@ -27,6 +27,7 @@ source="$pkgname-$pkgver.tar.gz" builddir="$srcdir"/$pkgname-$pkgver +_sysconfdir=/etc _sbindir=/usr/lib/frr _libdir=/usr/lib _user=frr @@ -36,7 +37,7 @@ build() { ./configure \ --prefix=/usr \ - --sysconfdir=/etc \ + --sysconfdir=$_sysconfdir \ --localstatedir=/var \ --sbindir=$_sbindir \ --libdir=$_libdir \ @@ -61,7 +62,9 @@ package() { cd "$builddir" make DESTDIR="$pkgdir" install - install -Dm644 "$builddir"/tools/etc/frr/daemons "$pkgdir"$_sysconfdir/daemons - install -d "$pkgdir"/etc/init.d - ln -s ${_sbindir}/frr "$pkgdir"/etc/init.d/frr + install -d $pkgdir/$_sysconfdir/frr + install -m 0644 tools/etc/frr/daemons $pkgdir/$_sysconfdir/frr/daemons + + install -d $pkgdir/$_sysconfdir/init.d + ln -s ${_sbindir}/frr $pkgdir/$_sysconfdir/init.d/frr } |