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

Bruno Pagani archange at archlinux.org
Thu Apr 16 11:08:18 UTC 2020


    Date: Thursday, April 16, 2020 @ 11:08:17
  Author: archange
Revision: 615324

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: opensmtpd/repos/community-staging-x86_64/PKGBUILD (from rev 615323, opensmtpd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-16 11:08:17 UTC (rev 615324)
@@ -0,0 +1,72 @@
+# 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.6.4p1
+pkgrel=2
+pkgdesc="Free implementation of the server-side SMTP protocol"
+arch=(x86_64)
+url="https://www.opensmtpd.org/"
+license=(custom)
+depends=(libasr libevent libressl pam)
+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=('e2f9962a6b99b3cc1572b63a10db648fdca4ad2b58079b680b4202cc7c82d7cf'
+            'b38b64f1457b7227d55585edc711cce525e089516d16b093e6c44387380e6b13'
+            'abf5baeb2a87c60d668ad18ea41cc08cab7a4f76339dd6df05de15cdaadaf922'
+            '32d46de5562d01de445d04c93bcc9f94bf103539b676e449c32e3603a3866cf8')
+install=${pkgname}.install
+
+prepare() {
+  sed -ri 's,/etc/mail,/etc/smtpd,g' ${pkgname}-${pkgver}/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
+
+  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}/
+
+  cd ..
+  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-staging-x86_64/opensmtpd.install (from rev 615323, opensmtpd/trunk/opensmtpd.install)
===================================================================
--- community-staging-x86_64/opensmtpd.install	                        (rev 0)
+++ community-staging-x86_64/opensmtpd.install	2020-04-16 11:08:17 UTC (rev 615324)
@@ -0,0 +1,11 @@
+post_upgrade() {
+    if [ $(vercmp $2 6.4.2p1-1) -lt 0 ] ; then
+        cat << EOF
+
+The configuration syntax changed in OpenSMTPD 6.4.
+Please refer to https://poolp.org/posts/2018-05-21/switching-to-opensmtpd-new-config/
+as well as smtpd.conf(5) for the new syntax.
+
+EOF
+    fi
+}

Copied: opensmtpd/repos/community-staging-x86_64/opensmtpd.sysusers (from rev 615323, opensmtpd/trunk/opensmtpd.sysusers)
===================================================================
--- community-staging-x86_64/opensmtpd.sysusers	                        (rev 0)
+++ community-staging-x86_64/opensmtpd.sysusers	2020-04-16 11:08:17 UTC (rev 615324)
@@ -0,0 +1,4 @@
+u smtpd 91 "SMTP Daemon" -
+u smtpq 92 "SMTP Queue"  -
+
+m smtpd root

Copied: opensmtpd/repos/community-staging-x86_64/smtpd.service (from rev 615323, opensmtpd/trunk/smtpd.service)
===================================================================
--- community-staging-x86_64/smtpd.service	                        (rev 0)
+++ community-staging-x86_64/smtpd.service	2020-04-16 11:08:17 UTC (rev 615324)
@@ -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-staging-x86_64/smtpd.socket (from rev 615323, opensmtpd/trunk/smtpd.socket)
===================================================================
--- community-staging-x86_64/smtpd.socket	                        (rev 0)
+++ community-staging-x86_64/smtpd.socket	2020-04-16 11:08:17 UTC (rev 615324)
@@ -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