summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrumeet2021-12-01 19:56:05 -0800
committerTrumeet2021-12-01 19:56:05 -0800
commit43d7396bdc69776e4ad9aa6147d040f6b18a6a79 (patch)
tree6d4e69a76785e18aaa9175873672da914cc108f1
downloadaur-43d7396bdc69776e4ad9aa6147d040f6b18a6a79.tar.gz
First Commit: 7.2
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD62
-rw-r--r--bgpd.service10
-rw-r--r--sysusers.conf1
5 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..27ee47a1927
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = openbgpd
+ pkgdesc = A FREE implementation of the Border Gateway Protocol, Version 4
+ pkgver = 7.2
+ pkgrel = 1
+ url = https://openbgpd.com
+ arch = x86_64
+ license = ISC
+ makedepends = git
+ depends = glibc
+ depends = rpki-client
+ source = https://github.com/openbgpd-portable/openbgpd-portable/archive/refs/tags/7.2.tar.gz
+ source = bgpd.service
+ source = sysusers.conf
+ sha256sums = b9a0da39e69fcd7aa96dc4c624de430a522160b669bc0bf548158c1f5db291b0
+ sha256sums = d19c8a1ce86e09a5cf7ed9c77fe84bf725dd28cb0e71f912c09907b4e7130239
+ sha256sums = 66d091f846ea9202bc87c985918d69425fb0f165f38d753b02094569b9e1191c
+
+pkgname = openbgpd
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..bb5adbf0ff6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+*.zst
+*.tar.gz
+*.log
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..464f0b395be
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,62 @@
+# Maintainer: Yuuta Liang <yuuta@yuuta.moe>
+pkgname=openbgpd
+pkgver=7.2
+pkgrel=1
+epoch=
+pkgdesc="A FREE implementation of the Border Gateway Protocol, Version 4"
+arch=(x86_64)
+url="https://openbgpd.com"
+license=('ISC')
+groups=()
+depends=(glibc rpki-client)
+makedepends=(git)
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("https://github.com/openbgpd-portable/openbgpd-portable/archive/refs/tags/$pkgver.tar.gz"
+"bgpd.service"
+"sysusers.conf")
+noextract=()
+sha256sums=('b9a0da39e69fcd7aa96dc4c624de430a522160b669bc0bf548158c1f5db291b0'
+ 'd19c8a1ce86e09a5cf7ed9c77fe84bf725dd28cb0e71f912c09907b4e7130239'
+ '66d091f846ea9202bc87c985918d69425fb0f165f38d753b02094569b9e1191c')
+validpgpkeys=()
+
+prepare() {
+ cd "$pkgname-portable-$pkgver"
+}
+
+build() {
+ cd "$pkgname-portable-$pkgver"
+ ./autogen.sh
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc/bgpd \
+ --localstatedir=/var \
+ --sbindir=/usr/bin \
+ --with-privsep-user=bgpd
+ make
+}
+
+check() {
+ cd "$pkgname-portable-$pkgver"
+ make -k check
+}
+
+package() {
+ cd "$pkgname-portable-$pkgver"
+ make DESTDIR="$pkgdir/" install
+ rm -r "$pkgdir/var/run"
+ mkdir -p "$pkgdir/usr/share/licenses/openbgpd/"
+ install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/openbgpd/"
+ mkdir -p "$pkgdir/usr/lib/sysusers.d/"
+ install -Dm644 "$srcdir/sysusers.conf" "$pkgdir/usr/lib/sysusers.d/bgpd.conf"
+ mkdir -p "$pkgdir/usr/lib/systemd/system/"
+ install -Dm644 "$srcdir/bgpd.service" "$pkgdir/usr/lib/systemd/system/bgpd.service"
+}
diff --git a/bgpd.service b/bgpd.service
new file mode 100644
index 00000000000..e4e6de4f7ef
--- /dev/null
+++ b/bgpd.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=OpenNTP Daemon
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/bgpd
+
+[Install]
+WantedBy=multi-user.target
diff --git a/sysusers.conf b/sysusers.conf
new file mode 100644
index 00000000000..eb0a376b11c
--- /dev/null
+++ b/sysusers.conf
@@ -0,0 +1 @@
+u bgpd - "OpenBGP daemon" / /bin/nologin