[arch-commits] Commit in keepalived/repos (2 files)

Christian Hesse eworm at gemini.archlinux.org
Sun Jan 16 20:11:33 UTC 2022


    Date: Sunday, January 16, 2022 @ 20:11:33
  Author: eworm
Revision: 1106410

archrelease: copy trunk to community-testing-x86_64

Added:
  keepalived/repos/community-testing-x86_64/
  keepalived/repos/community-testing-x86_64/PKGBUILD
    (from rev 1106409, keepalived/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: keepalived/repos/community-testing-x86_64/PKGBUILD (from rev 1106409, keepalived/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2022-01-16 20:11:33 UTC (rev 1106410)
@@ -0,0 +1,51 @@
+# Maintainer: Sébastien Luttringer
+# Contributor: Andrea Zucchelli <zukka77 at gmail.com>
+
+pkgname=keepalived
+pkgver=2.2.7
+pkgrel=1
+pkgdesc='Failover and monitoring daemon for LVS clusters'
+arch=('x86_64')
+url='https://www.keepalived.org/'
+license=('GPL2')
+backup=('etc/keepalived/keepalived.conf'
+        'etc/sysconfig/keepalived')
+makedepends=('ipset')
+depends=('glibc' 'libnl' 'openssl' 'file' 'iptables' 'systemd-libs')
+optdepends=('ipset: ipset support')
+makedepends=('libnfnetlink' 'ipset' 'systemd')
+options=('!emptydirs')
+source=("https://www.keepalived.org/software/$pkgname-$pkgver.tar.gz")
+sha256sums=('c61940d874154a560a54627ecf7ef47adebdf832164368d10bf242a4d9b7d49d')
+
+build() {
+  # trick broken ./configure systemctl test
+  printf "#!/bin/sh\necho -.mount\n" > systemctl
+  chmod +x systemctl
+  PATH=$PWD:$PATH
+
+  cd "${pkgname}-${pkgver}"
+
+  ./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --sbindir=/usr/bin \
+    --localstatedir=/var \
+    --runstatedir=/run
+  make
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+
+  make DESTDIR="${pkgdir}" install
+
+  # move conf file to correct name
+  mv "${pkgdir}"/etc/keepalived/keepalived.conf{.sample,}
+
+  # move examples to /usr/share
+  install -d -m 0755 "${pkgdir}/usr/share/${pkgname}"
+  mv "${pkgdir}/etc/keepalived/samples" "${pkgdir}/usr/share/$pkgname/samples"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list