[arch-commits] Commit in opensmtpd/repos (6 files)

Bruno Pagani archange at archlinux.org
Thu Dec 24 14:52:46 UTC 2020


    Date: Thursday, December 24, 2020 @ 14:52:46
  Author: archange
Revision: 788207

archrelease: copy trunk to community-testing-x86_64

Added:
  opensmtpd/repos/community-testing-x86_64/
  opensmtpd/repos/community-testing-x86_64/PKGBUILD
    (from rev 788206, opensmtpd/trunk/PKGBUILD)
  opensmtpd/repos/community-testing-x86_64/opensmtpd.install
    (from rev 788206, opensmtpd/trunk/opensmtpd.install)
  opensmtpd/repos/community-testing-x86_64/opensmtpd.sysusers
    (from rev 788206, opensmtpd/trunk/opensmtpd.sysusers)
  opensmtpd/repos/community-testing-x86_64/smtpd.service
    (from rev 788206, opensmtpd/trunk/smtpd.service)
  opensmtpd/repos/community-testing-x86_64/smtpd.socket
    (from rev 788206, opensmtpd/trunk/smtpd.socket)

--------------------+
 PKGBUILD           |   71 +++++++++++++++++++++++++++++++++++++++++++++++++++
 opensmtpd.install  |   10 +++++++
 opensmtpd.sysusers |    4 ++
 smtpd.service      |   11 +++++++
 smtpd.socket       |    8 +++++
 5 files changed, 104 insertions(+)

Copied: opensmtpd/repos/community-testing-x86_64/PKGBUILD (from rev 788206, opensmtpd/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-12-24 14:52:46 UTC (rev 788207)
@@ -0,0 +1,71 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Sébastien Luttringer
+# Contributor: parchd <parchd at archlinux.info>
+
+pkgname=opensmtpd
+pkgver=6.8.0p2
+pkgrel=1
+pkgdesc="Free implementation of the server-side SMTP protocol"
+arch=(x86_64)
+url="https://www.opensmtpd.org/"
+license=(custom)
+depends=(libevent libressl pam libxcrypt zlib)
+optdepends=('opensmtpd-filter-rspamd: rspamd integration')
+provides=(smtp-server smtp-forwarder)
+conflicts=(smtp-server smtp-forwarder)
+backup=(etc/smtpd/smtpd.conf etc/smtpd/aliases)
+options=(emptydirs)
+source=("https://www.opensmtpd.org/archives/${pkgname}-${pkgver}.tar.gz"
+        opensmtpd.sysusers
+        smtpd.service
+        smtpd.socket)
+sha256sums=('51bf05312fe56764748faab9e63170bfbb7c7d84a37c4117b62b2681eb3a4d17'
+            'b38b64f1457b7227d55585edc711cce525e089516d16b093e6c44387380e6b13'
+            'abf5baeb2a87c60d668ad18ea41cc08cab7a4f76339dd6df05de15cdaadaf922'
+            '32d46de5562d01de445d04c93bcc9f94bf103539b676e449c32e3603a3866cf8')
+install=${pkgname}.install
+
+prepare() {
+  sed -ri 's,/etc/mail,/etc/smtpd,g' ${pkgname}-${pkgver}/usr.sbin/smtpd/smtpd.conf
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+
+  ./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc/smtpd \
+    --sbindir=/usr/bin \
+    --libexecdir=/usr/lib/smtpd \
+    --with-path-mbox=/var/spool/mail \
+    --with-path-empty=/var/empty \
+    --with-path-socket=/run \
+    --with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \
+    --with-user-smtpd=smtpd \
+    --with-user-queue=smtpq \
+    --with-group-queue=smtpq \
+    --with-auth-pam \
+    --with-cflags='-I/usr/include/libressl -L/usr/lib/libressl -Wl,-rpath=/usr/lib/libressl'
+
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+
+  make DESTDIR="${pkgdir}" install SMTPD_QUEUE_USER=92
+
+  ln -s /usr/bin/smtpctl "${pkgdir}"/usr/bin/sendmail
+  ln -s /usr/bin/smtpctl "${pkgdir}"/usr/bin/mailq
+  ln -s /usr/bin/smtpctl "${pkgdir}"/usr/bin/newaliases
+  ln -s /usr/bin/smtpctl "${pkgdir}"/usr/bin/makemap
+
+  install -Dm644 etc/aliases -t  "${pkgdir}"/etc/smtpd/
+
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+
+  install -Dm644 ../smtpd.service -t "${pkgdir}"/usr/lib/systemd/system/
+  install -Dm644 ../smtpd.socket -t "${pkgdir}"/usr/lib/systemd/system/
+  install -Dm644 ../opensmtpd.sysusers "${pkgdir}"/usr/lib/sysusers.d/opensmtpd.conf
+}

Copied: opensmtpd/repos/community-testing-x86_64/opensmtpd.install (from rev 788206, opensmtpd/trunk/opensmtpd.install)
===================================================================
--- community-testing-x86_64/opensmtpd.install	                        (rev 0)
+++ community-testing-x86_64/opensmtpd.install	2020-12-24 14:52:46 UTC (rev 788207)
@@ -0,0 +1,10 @@
+post_install() {
+    # Fix ownership of smtpctl for old systems
+    systemd-sysusers /usr/lib/sysusers.d/opensmtpd.conf
+    chgrp smtpq /usr/bin/smtpctl
+    chmod 2555 /usr/bin/smtpctl
+}
+
+post_upgrade() {
+    post_install
+}

Copied: opensmtpd/repos/community-testing-x86_64/opensmtpd.sysusers (from rev 788206, opensmtpd/trunk/opensmtpd.sysusers)
===================================================================
--- community-testing-x86_64/opensmtpd.sysusers	                        (rev 0)
+++ community-testing-x86_64/opensmtpd.sysusers	2020-12-24 14:52:46 UTC (rev 788207)
@@ -0,0 +1,4 @@
+u smtpd 91 "SMTP Daemon" -
+u smtpq 92 "SMTP Queue"  -
+
+m smtpd root

Copied: opensmtpd/repos/community-testing-x86_64/smtpd.service (from rev 788206, opensmtpd/trunk/smtpd.service)
===================================================================
--- community-testing-x86_64/smtpd.service	                        (rev 0)
+++ community-testing-x86_64/smtpd.service	2020-12-24 14:52:46 UTC (rev 788207)
@@ -0,0 +1,11 @@
+[Unit]
+Description=OpenSMTPD
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/smtpd
+
+[Install]
+WantedBy=multi-user.target

Copied: opensmtpd/repos/community-testing-x86_64/smtpd.socket (from rev 788206, opensmtpd/trunk/smtpd.socket)
===================================================================
--- community-testing-x86_64/smtpd.socket	                        (rev 0)
+++ community-testing-x86_64/smtpd.socket	2020-12-24 14:52:46 UTC (rev 788207)
@@ -0,0 +1,8 @@
+[Unit]
+Description=OpenSMTPD Socket
+
+[Socket]
+ListenStream=/run/smtpd.sock
+
+[Install]
+WantedBy=sockets.target



More information about the arch-commits mailing list