[arch-commits] Commit in bird/repos (3 files)

Sébastien Luttringer seblu at archlinux.org
Tue Apr 13 13:04:50 UTC 2021


    Date: Tuesday, April 13, 2021 @ 13:04:50
  Author: seblu
Revision: 412398

archrelease: copy trunk to testing-x86_64

Added:
  bird/repos/testing-x86_64/
  bird/repos/testing-x86_64/PKGBUILD
    (from rev 412397, bird/trunk/PKGBUILD)
  bird/repos/testing-x86_64/bird.service
    (from rev 412397, bird/trunk/bird.service)

--------------+
 PKGBUILD     |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 bird.service |   23 +++++++++++++++++++++++
 2 files changed, 76 insertions(+)

Copied: bird/repos/testing-x86_64/PKGBUILD (from rev 412397, bird/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2021-04-13 13:04:50 UTC (rev 412398)
@@ -0,0 +1,53 @@
+# Maintainer: Sébastien Luttringer
+
+pkgname=bird
+pkgver=2.0.8
+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')
+replaces=('bird6')
+options=(!emptydirs)
+source=("https://bird.network.cz/download/$pkgname-$pkgver.tar.gz"
+        'bird.service')
+sha256sums=('19d2de83ee25a307b9e5b9e58797dd68766d439bcee33e3ac617ed502370e7f6'
+            'bb6d98a63dfff649143e01ebac8dc20d5850232d906169adfc69871fa9c9542f')
+
+prepare() {
+  cd $pkgname-$pkgver
+  # apply patch from the source array (should be a pacman feature)
+  local filename
+  for filename in "${source[@]}"; do
+    if [[ "$filename" =~ \.patch$ ]]; then
+      msg2 "Applying patch ${filename##*/}"
+      patch -p1 -N -i "$srcdir/${filename##*/}"
+    fi
+  done
+  :
+}
+
+build() {
+  cd $pkgbase-$pkgver
+  ./configure \
+    --prefix=/usr \
+    --sbindir=/usr/bin \
+    --sysconfdir=/etc \
+    --localstatedir=/var \
+    --runstatedir=/run/$pkgname \
+    --docdir=/usr/share/doc/$pkgname
+  make
+}
+
+package () {
+
+  cd $pkgbase-$pkgver
+  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:

Copied: bird/repos/testing-x86_64/bird.service (from rev 412397, bird/trunk/bird.service)
===================================================================
--- testing-x86_64/bird.service	                        (rev 0)
+++ testing-x86_64/bird.service	2021-04-13 13:04:50 UTC (rev 412398)
@@ -0,0 +1,23 @@
+[Unit]
+Description=BIRD routing daemon
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/bird
+ExecReload=/usr/bin/birdc configure
+ExecStop=/usr/bin/birdc down
+RuntimeDirectory=bird
+RuntimeDirectoryMode=0750
+DynamicUser=true
+User=bird
+ProtectSystem=strict
+ProtectHome=true
+ProtectKernelTunables=true
+ProtectControlGroups=true
+PrivateTmp=true
+PrivateDevices=true
+CapabilityBoundingSet=CAP_NET_ADMIN
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list