Christian Hesse pushed to branch main at Arch Linux / Packaging / Packages / 
lldpd


Commits:
85c404a1 by Christian Hesse at 2025-01-01T23:56:07+01:00
upgpkg: 1.0.18-3: fully locked system accounts

https://archlinux.org/todo/change-sysusers-to-fully-locked-system-accounts/

- - - - -


3 changed files:

- .SRCINFO
- + 0001-create-a-fully-locked-system-account.patch
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = lldpd
        pkgdesc = 802.1ab implementation (LLDP) to help you locate neighbors
        pkgver = 1.0.18
-       pkgrel = 2
+       pkgrel = 3
        url = https://vincentbernat.github.io/lldpd/
        arch = x86_64
        license = custom:ISC
@@ -20,10 +20,12 @@ pkgbase = lldpd
        backup = etc/lldpd.conf
        source = https://media.luffy.cx/files/lldpd/lldpd-1.0.18.tar.gz
        source = 
lldpd-1.0.18.tar.gz.sig::https://media.luffy.cx/files/lldpd/lldpd-1.0.18.tar.gz.gpg
+       source = 0001-create-a-fully-locked-system-account.patch
        source = lldpd.tmpfiles.conf
        validpgpkeys = AEF2348766F371C689A7360095A42FE8353525F9
        sha256sums = 
4b320675d608901a4a0d4feff8f96bb846d4913d914b0cf75b7d0ae80490f2f7
        sha256sums = SKIP
+       sha256sums = 
1347be34f137cac2838a834b9ec9a8e111f73dbc5c27a2c6556920f1787619bc
        sha256sums = 
df64ebadacb832c4a9dcbdd531848ae70c21d67d309c7397163ba8db7e31248b
 
 pkgname = lldpd


=====================================
0001-create-a-fully-locked-system-account.patch
=====================================
@@ -0,0 +1,22 @@
+From ee8277eb93f72a24ca56a97909e0ed7a27f94e19 Mon Sep 17 00:00:00 2001
+From: Christian Hesse <[email protected]>
+Date: Wed, 1 Jan 2025 23:51:02 +0100
+Subject: [PATCH 1/1] create a fully locked system account
+
+https://github.com/systemd/systemd/blob/v257/NEWS#L767-L777
+https://www.freedesktop.org/software/systemd/man/latest/sysusers.d.html#u
+---
+ src/daemon/lldpd.sysusers.conf.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/daemon/lldpd.sysusers.conf.in 
b/src/daemon/lldpd.sysusers.conf.in
+index 7cbf50a..5c79a3a 100644
+--- a/src/daemon/lldpd.sysusers.conf.in
++++ b/src/daemon/lldpd.sysusers.conf.in
+@@ -2,5 +2,5 @@
+ # @PRIVSEP_USER@:@PRIVSEP_GROUP@
+ 
+ # Type Name ID GECOS Home
+-u @PRIVSEP_USER@ - "lldpd user" @PRIVSEP_CHROOT@
++u! @PRIVSEP_USER@ - "lldpd user" @PRIVSEP_CHROOT@
+ m @PRIVSEP_USER@ @PRIVSEP_GROUP@


=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
 
 pkgname=lldpd
 pkgver=1.0.18
-pkgrel=2
+pkgrel=3
 pkgdesc='802.1ab implementation (LLDP) to help you locate neighbors'
 arch=('x86_64')
 url='https://vincentbernat.github.io/lldpd/'
@@ -15,11 +15,19 @@ backup=('etc/lldpd.conf')
 validpgpkeys=('AEF2348766F371C689A7360095A42FE8353525F9') # Vincent Bernat 
<[email protected]>
 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";
+        '0001-create-a-fully-locked-system-account.patch'
         'lldpd.tmpfiles.conf')
 sha256sums=('4b320675d608901a4a0d4feff8f96bb846d4913d914b0cf75b7d0ae80490f2f7'
             'SKIP'
+            '1347be34f137cac2838a834b9ec9a8e111f73dbc5c27a2c6556920f1787619bc'
             'df64ebadacb832c4a9dcbdd531848ae70c21d67d309c7397163ba8db7e31248b')
 
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}/"
+
+  patch -Np1 < ../0001-create-a-fully-locked-system-account.patch
+}
+
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}/"
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/lldpd/-/commit/85c404a1b5f9bd0b210ab6890277fa5b58822fac

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/lldpd/-/commit/85c404a1b5f9bd0b210ab6890277fa5b58822fac
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to