summaryrefslogtreecommitdiffstats
path: root/alpine/APKBUILD.in
diff options
context:
space:
mode:
Diffstat (limited to 'alpine/APKBUILD.in')
-rw-r--r--alpine/APKBUILD.in15
1 files changed, 8 insertions, 7 deletions
diff --git a/alpine/APKBUILD.in b/alpine/APKBUILD.in
index 9a29ff3..2cb3fee 100644
--- a/alpine/APKBUILD.in
+++ b/alpine/APKBUILD.in
@@ -27,10 +27,9 @@ source="$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
+_sysconfdir=/etc
_sbindir=/usr/lib/frr
-_sysconfdir=/etc/frr
_libdir=/usr/lib
-_localstatedir=/var/run/frr
_user=frr
build() {
@@ -38,10 +37,10 @@ build() {
./configure \
--prefix=/usr \
- --sbindir=$_sbindir \
--sysconfdir=$_sysconfdir \
+ --localstatedir=/var \
+ --sbindir=$_sbindir \
--libdir=$_libdir \
- --localstatedir=$_localstatedir \
--enable-rpki \
--enable-vtysh \
--enable-multipath=64 \
@@ -63,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
}