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

Sébastien Luttringer seblu at archlinux.org
Sun Apr 18 22:16:39 UTC 2021


    Date: Sunday, April 18, 2021 @ 22:16:38
  Author: seblu
Revision: 412885

db-move: moved bird from [testing] to [extra] (x86_64)

Added:
  bird/repos/extra-x86_64/PKGBUILD
    (from rev 412884, bird/repos/testing-x86_64/PKGBUILD)
  bird/repos/extra-x86_64/bird.service
    (from rev 412884, bird/repos/testing-x86_64/bird.service)
Deleted:
  bird/repos/extra-x86_64/PKGBUILD
  bird/repos/extra-x86_64/bird.service
  bird/repos/testing-x86_64/

---------------------------+
 /PKGBUILD                 |   53 ++++++++++++++++++++++++++++++++++++
 /bird.service             |   24 ++++++++++++++++
 extra-x86_64/PKGBUILD     |   64 --------------------------------------------
 extra-x86_64/bird.service |   12 --------
 4 files changed, 77 insertions(+), 76 deletions(-)

Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2021-04-18 22:08:02 UTC (rev 412884)
+++ extra-x86_64/PKGBUILD	2021-04-18 22:16:38 UTC (rev 412885)
@@ -1,64 +0,0 @@
-# Maintainer: Sébastien Luttringer
-
-pkgname=bird
-pkgver=2.0.8
-pkgrel=1
-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')
-source=("https://bird.network.cz/download/$pkgname-$pkgver.tar.gz"
-        'bird.service')
-sha512sums=('5f8ad63b1dcdcfdfd4c98f55601dda3a07dea3099fc51b52a340650ca475bd943ee6aac31a1e7735b7596b279e338697c65728754b97108ae687a05f566c94e2'
-            '7321e51fea464914241b21a40be8de2251b650ff470730b6e460a4476ef10c17be3b2eb9e2ac96a9a956de5cc8e3b92417f9c920ae24ab9b06e58b887dd9e49e')
-
-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/extra-x86_64/PKGBUILD (from rev 412884, bird/repos/testing-x86_64/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2021-04-18 22:16:38 UTC (rev 412885)
@@ -0,0 +1,53 @@
+# Maintainer: Sébastien Luttringer
+
+pkgname=bird
+pkgver=2.0.8
+pkgrel=3
+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'
+            '4aa1e8d41229badd276aa3747f613e7df34761892add2258c63bdb5097dfeb2b')
+
+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:

Deleted: extra-x86_64/bird.service
===================================================================
--- extra-x86_64/bird.service	2021-04-18 22:08:02 UTC (rev 412884)
+++ extra-x86_64/bird.service	2021-04-18 22:16:38 UTC (rev 412885)
@@ -1,12 +0,0 @@
-[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

Copied: bird/repos/extra-x86_64/bird.service (from rev 412884, bird/repos/testing-x86_64/bird.service)
===================================================================
--- extra-x86_64/bird.service	                        (rev 0)
+++ extra-x86_64/bird.service	2021-04-18 22:16:38 UTC (rev 412885)
@@ -0,0 +1,24 @@
+[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 CAP_NET_BIND_SERVICE CAP_NET_RAW
+AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list