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

Felix Yan felixonmars at archlinux.org
Tue May 19 09:58:24 UTC 2020


    Date: Tuesday, May 19, 2020 @ 09:58:23
  Author: felixonmars
Revision: 386620

archrelease: copy trunk to staging-x86_64

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

--------------+
 PKGBUILD     |   64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 bird.service |   12 ++++++++++
 2 files changed, 76 insertions(+)

Copied: bird/repos/staging-x86_64/PKGBUILD (from rev 386619, bird/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-05-19 09:58:23 UTC (rev 386620)
@@ -0,0 +1,64 @@
+# Maintainer: Sébastien Luttringer
+
+pkgname=bird
+pkgver=2.0.7
+pkgrel=2
+pkgdesc='RIP, OSPF, BGP, MPLS, BFD, Babbel routing daemon'
+arch=('x86_64')
+url='https://bird.network.cz/'
+license=('GPL2')
+backup=('etc/bird.conf')
+depends=('glibc' 'readline' 'ncurses' 'libssh')
+replaces=('bird6')
+source=("ftp://bird.network.cz/pub/bird/$pkgname-$pkgver.tar.gz"
+        'bird.service')
+md5sums=('dc884bbe5905578e452f28158700527c'
+         '69221e063a3f07dcad519d5eeacaae75')
+
+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
+  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+  ./configure \
+    --prefix=/usr \
+    --sbindir=/usr/bin \
+    --sysconfdir=/etc \
+    --localstatedir=/var \
+    --docdir=/usr/share/doc/$pkgname
+  make
+}
+
+package () {
+
+  cd $pkgbase-$pkgver
+  make \
+    prefix="$pkgdir/usr" \
+    sysconfdir="$pkgdir/etc" \
+    sbindir="$pkgdir/usr/bin" \
+    localstatedir="$pkgdir/var" \
+    docdir="$pkgdir/usr/share/doc/$pkgname" \
+    install
+
+  # no /var inside pkg
+  rm -r "$pkgdir/var"
+
+  # systemd
+  install -D -m 644 "$srcdir/bird.service" "$pkgdir/usr/lib/systemd/system/bird.service"
+
+  # overwrite invalid default config file (see FS#57096)
+  install -D -m 644 doc/bird.conf.example2 "$pkgdir/etc/bird.conf"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: bird/repos/staging-x86_64/bird.service (from rev 386619, bird/trunk/bird.service)
===================================================================
--- staging-x86_64/bird.service	                        (rev 0)
+++ staging-x86_64/bird.service	2020-05-19 09:58:23 UTC (rev 386620)
@@ -0,0 +1,12 @@
+[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
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list