[arch-commits] Commit in lldpd/trunk (PKGBUILD lldpd.tmpfiles.conf)

Christian Hesse eworm at archlinux.org
Fri Dec 7 12:26:47 UTC 2018


    Date: Friday, December 7, 2018 @ 12:26:47
  Author: eworm
Revision: 412095

upgpkg: lldpd 1.0.2-2

fix missing directories (FS#60985)

Added:
  lldpd/trunk/lldpd.tmpfiles.conf
Modified:
  lldpd/trunk/PKGBUILD

---------------------+
 PKGBUILD            |   15 +++++++++++----
 lldpd.tmpfiles.conf |    2 ++
 2 files changed, 13 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-07 12:05:18 UTC (rev 412094)
+++ PKGBUILD	2018-12-07 12:26:47 UTC (rev 412095)
@@ -3,7 +3,7 @@
 
 pkgname=lldpd
 pkgver=1.0.2
-pkgrel=1
+pkgrel=2
 pkgdesc='802.1ab implementation (LLDP) to help you locate neighbors'
 arch=('x86_64')
 url='https://vincentbernat.github.io/lldpd/'
@@ -13,9 +13,11 @@
 backup=('etc/lldpd.conf')
 validpgpkeys=('AEF2348766F371C689A7360095A42FE8353525F9') # Vincent Bernat <bernat at luffy.cx>
 source=("https://media.luffy.cx/files/lldpd/lldpd-${pkgver}.tar.gz"
-        "lldpd-${pkgver}.tar.gz.sig::https://media.luffy.cx/files/lldpd/lldpd-${pkgver}.tar.gz.gpg")
+        "lldpd-${pkgver}.tar.gz.sig::https://media.luffy.cx/files/lldpd/lldpd-${pkgver}.tar.gz.gpg"
+        'lldpd.tmpfiles.conf')
 sha256sums=('b0382a2aa5c7a0a4feea0b999f68dd0ebdf673435022cf97f174bcab8a0dae2a'
-            'SKIP')
+            'SKIP'
+            'df64ebadacb832c4a9dcbdd531848ae70c21d67d309c7397163ba8db7e31248b')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}/"
@@ -22,8 +24,9 @@
 
   ./configure \
     --prefix=/usr \
+    --sbindir=/usr/bin \
     --sysconfdir=/etc \
-    --sbindir=/usr/bin \
+    --localstatedir=/var \
     --with-snmp \
     --with-xml \
     --with-readline \
@@ -46,6 +49,10 @@
   
   make DESTDIR="${pkgdir}" install
 
+  # re-introduce tmpfiles file untill resolved upstream...
+  # https://github.com/vincentbernat/lldpd/pull/311
+  install -D -m 0644 "${srcdir}/lldpd.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/lldpd.conf"
+
   # config stuff
   install -D -m 0644 /dev/null "${pkgdir}/etc/lldpd.conf"
   install -d -m 0755 "${pkgdir}/etc/lldpd.d"

Added: lldpd.tmpfiles.conf
===================================================================
--- lldpd.tmpfiles.conf	                        (rev 0)
+++ lldpd.tmpfiles.conf	2018-12-07 12:26:47 UTC (rev 412095)
@@ -0,0 +1,2 @@
+d /run/lldpd 0750 lldpd lldpd
+d /run/lldpd/chroot 0750 lldpd lldpd



More information about the arch-commits mailing list