[arch-commits] Commit in opendmarc/trunk (3 files)

Thore Bödecker foxxx0 at archlinux.org
Mon Jan 8 15:13:55 UTC 2018


    Date: Monday, January 8, 2018 @ 15:13:54
  Author: foxxx0
Revision: 280536

upgpkg: opendmarc 1.3.2-4

switch to sysusers.d

Added:
  opendmarc/trunk/opendmarc.sysusers
Modified:
  opendmarc/trunk/PKGBUILD
Deleted:
  opendmarc/trunk/opendmarc.install

--------------------+
 PKGBUILD           |   13 ++++++++-----
 opendmarc.install  |    8 --------
 opendmarc.sysusers |    2 ++
 3 files changed, 10 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-08 14:46:17 UTC (rev 280535)
+++ PKGBUILD	2018-01-08 15:13:54 UTC (rev 280536)
@@ -5,7 +5,7 @@
 
 pkgname=opendmarc
 pkgver=1.3.2
-pkgrel=3
+pkgrel=4
 pkgdesc="Free open source software implementation of the DMARC specification"
 arch=('x86_64')
 url="http://www.trusteddomain.org/opendmarc/"
@@ -18,15 +18,16 @@
             'perl-switch: generate DMARC reports'
             'perl-dbd-mysql: generate DMARC reports'
             'perl-libwww: generate DMARC reports')
-install=${pkgname}.install
 backup=('etc/opendmarc/opendmarc.conf')
 # unfortunately the gpg key used for signing (2D55C45B89CFFD42) is not public
 source=("https://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}.tar.gz" #{,.asc}
         'opendmarc.service'
-        'opendmarc.conf')
+        'opendmarc.conf'
+        'opendmarc.sysusers')
 sha512sums=('6045fb7d2be8f0ffdeca07324857d92908a41c6792749017c2fcc1058f05f55317b1919c67c780827dd7094ec8fff2e1fa4aeb5bab7ff7461537957af2652748'
             '738de0cd286dd30713f32034f9ecf9009b6f64038c573c9f8aedaf10df8293bb9eec9d19492a03a2ebf2d2960289bdf48be9b1eb25395dbe9a490f7e3b25cb34'
-            '2753ad4477b499947ca07bb385ad0e10f327efa61a9059884091ead8e8e2bd65793436053d5a9c734e4c0676b7823982083ea7b35fae967eeacaeafb6226ff20')
+            '2753ad4477b499947ca07bb385ad0e10f327efa61a9059884091ead8e8e2bd65793436053d5a9c734e4c0676b7823982083ea7b35fae967eeacaeafb6226ff20'
+            'fbd5e81ded35281e3a63b4858a368033fa27696dee22a5dcf52e3e04b0762476e1ffa6edb489cf76612f3b4ffaee0fce586ab97d1da9805a089bbaf3487c907b')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
@@ -50,10 +51,12 @@
   cd "${srcdir}/${pkgname}-${pkgver}"
   make DESTDIR="${pkgdir}/" install
   # config
-  install -D -m644 "${srcdir}/opendmarc.conf" "${pkgdir}/etc/${pkgname}/opendmarc.conf"
+  install -D -m640 -o 335 -g 12 "${srcdir}/opendmarc.conf" "${pkgdir}/etc/${pkgname}/opendmarc.conf"
   # License
   install -D -m644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
   rm "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
   # systemd service
   install -D -m644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
+  # sysusers.d snippet
+  install -D -m644 "${srcdir}/${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
 }

Deleted: opendmarc.install
===================================================================
--- opendmarc.install	2018-01-08 14:46:17 UTC (rev 280535)
+++ opendmarc.install	2018-01-08 15:13:54 UTC (rev 280536)
@@ -1,8 +0,0 @@
-post_install() {
-  getent passwd opendmarc >/dev/null || \
-  useradd --system -g mail -s /usr/bin/nologin -d /etc/opendmarc opendmarc
-}
-
-post_upgrade() {
-  post_install
-}

Added: opendmarc.sysusers
===================================================================
--- opendmarc.sysusers	                        (rev 0)
+++ opendmarc.sysusers	2018-01-08 15:13:54 UTC (rev 280536)
@@ -0,0 +1,2 @@
+u opendmarc 335 - /etc/opendmarc
+m opendmarc mail



More information about the arch-commits mailing list