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

Antonio Rojas arojas at archlinux.org
Wed Apr 5 11:01:17 UTC 2017


    Date: Wednesday, April 5, 2017 @ 11:01:17
  Author: arojas
Revision: 220592

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

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

--------------------------------------------+
 community-staging-i686/PKGBUILD            |   68 +++++++++++++++++++++++++++
 community-staging-i686/opensmtpd.install   |   26 ++++++++++
 community-staging-i686/smtpd.service       |   10 +++
 community-staging-i686/smtpd.socket        |    8 +++
 community-staging-x86_64/PKGBUILD          |   68 +++++++++++++++++++++++++++
 community-staging-x86_64/opensmtpd.install |   26 ++++++++++
 community-staging-x86_64/smtpd.service     |   10 +++
 community-staging-x86_64/smtpd.socket      |    8 +++
 8 files changed, 224 insertions(+)

Copied: opensmtpd/repos/community-staging-i686/PKGBUILD (from rev 220591, opensmtpd/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-04-05 11:01:17 UTC (rev 220592)
@@ -0,0 +1,68 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Sébastien Luttringer
+# Contributor: parchd <parchd at archlinux.info>
+
+pkgname=opensmtpd
+pkgver=6.0.2p1
+pkgrel=3
+pkgdesc='Free implementation of the server-side SMTP protocol'
+arch=('i686' 'x86_64')
+url='http://www.opensmtpd.org/'
+license=('custom')
+depends=('libasr' 'libevent' 'openssl-1.0' 'pam')
+provides=('smtp-server' 'smtp-forwarder')
+conflicts=('smtp-server' 'smtp-forwarder')
+backup=('etc/smtpd/smtpd.conf' 'etc/smtpd/aliases')
+options=('emptydirs')
+install=opensmtpd.install
+source=("https://www.opensmtpd.org/archives/$pkgname-$pkgver.tar.gz"
+        'smtpd.service'
+        'smtpd.socket')
+sha256sums=('2af9b6d08784c7e546bf124bb61e311a6aa0c9835507710a76f5c242383190ac'
+            '3760f7268e776b696548e57f5f9e4d18ed19e8854dc0631c176a69d558a8b362'
+            '32d46de5562d01de445d04c93bcc9f94bf103539b676e449c32e3603a3866cf8')
+
+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-libssl='/usr/lib/openssl-1.0' \
+    --with-cflags='-I/usr/include/openssl-1.0'
+
+  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 license and systemd unit files
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 "$srcdir/smtpd.service" "$pkgdir/usr/lib/systemd/system/smtpd.service"
+  install -Dm644 "$srcdir/smtpd.socket" "$pkgdir/usr/lib/systemd/system/smtpd.socket"
+
+  # install an empty aliases file (used by the default config)
+  install -Dm644 /dev/null "$pkgdir/etc/smtpd/aliases"
+}

Copied: opensmtpd/repos/community-staging-i686/opensmtpd.install (from rev 220591, opensmtpd/trunk/opensmtpd.install)
===================================================================
--- community-staging-i686/opensmtpd.install	                        (rev 0)
+++ community-staging-i686/opensmtpd.install	2017-04-05 11:01:17 UTC (rev 220592)
@@ -0,0 +1,26 @@
+# arg 1:  the new package version
+post_install() {
+  # create users
+  getent group smtpq >/dev/null || groupadd  -r smtpq
+  getent passwd smtpd >/dev/null || useradd -c "SMTP Daemon" -d /var/empty -u 91 -g 1 -s /bin/nologin smtpd
+  getent passwd smtpq >/dev/null || useradd -c "SMTPD Queue" -d /var/empty -u 92 -g smtpq -s/bin/nologin smtpq
+  :
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+  post_install "$1"
+  if (( $(vercmp $2 5.3.3p1-1) < 0 )); then
+    echo 'Configuration files have been moved to /etc/smtpd.'
+    echo 'New users have been added.'
+    echo 'Check your configuration!'
+  elif (( $(vercmp $2 5.4) < 0 )); then
+    echo 'User smtpf is no more required. It will be removed!'
+    echo 'Check your configuration!'
+    userdel -f smtpf
+  fi
+  :
+}
+
+# vim:set ts=2 sw=2 et:

Copied: opensmtpd/repos/community-staging-i686/smtpd.service (from rev 220591, opensmtpd/trunk/smtpd.service)
===================================================================
--- community-staging-i686/smtpd.service	                        (rev 0)
+++ community-staging-i686/smtpd.service	2017-04-05 11:01:17 UTC (rev 220592)
@@ -0,0 +1,10 @@
+[Unit]
+Description=OpenSMTPD
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/smtpd
+
+[Install]
+WantedBy=multi-user.target

Copied: opensmtpd/repos/community-staging-i686/smtpd.socket (from rev 220591, opensmtpd/trunk/smtpd.socket)
===================================================================
--- community-staging-i686/smtpd.socket	                        (rev 0)
+++ community-staging-i686/smtpd.socket	2017-04-05 11:01:17 UTC (rev 220592)
@@ -0,0 +1,8 @@
+[Unit]
+Description=OpenSMTPD Socket
+
+[Socket]
+ListenStream=/run/smtpd.sock
+
+[Install]
+WantedBy=sockets.target

Copied: opensmtpd/repos/community-staging-x86_64/PKGBUILD (from rev 220591, opensmtpd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-04-05 11:01:17 UTC (rev 220592)
@@ -0,0 +1,68 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Sébastien Luttringer
+# Contributor: parchd <parchd at archlinux.info>
+
+pkgname=opensmtpd
+pkgver=6.0.2p1
+pkgrel=3
+pkgdesc='Free implementation of the server-side SMTP protocol'
+arch=('i686' 'x86_64')
+url='http://www.opensmtpd.org/'
+license=('custom')
+depends=('libasr' 'libevent' 'openssl-1.0' 'pam')
+provides=('smtp-server' 'smtp-forwarder')
+conflicts=('smtp-server' 'smtp-forwarder')
+backup=('etc/smtpd/smtpd.conf' 'etc/smtpd/aliases')
+options=('emptydirs')
+install=opensmtpd.install
+source=("https://www.opensmtpd.org/archives/$pkgname-$pkgver.tar.gz"
+        'smtpd.service'
+        'smtpd.socket')
+sha256sums=('2af9b6d08784c7e546bf124bb61e311a6aa0c9835507710a76f5c242383190ac'
+            '3760f7268e776b696548e57f5f9e4d18ed19e8854dc0631c176a69d558a8b362'
+            '32d46de5562d01de445d04c93bcc9f94bf103539b676e449c32e3603a3866cf8')
+
+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-libssl='/usr/lib/openssl-1.0' \
+    --with-cflags='-I/usr/include/openssl-1.0'
+
+  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 license and systemd unit files
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 "$srcdir/smtpd.service" "$pkgdir/usr/lib/systemd/system/smtpd.service"
+  install -Dm644 "$srcdir/smtpd.socket" "$pkgdir/usr/lib/systemd/system/smtpd.socket"
+
+  # install an empty aliases file (used by the default config)
+  install -Dm644 /dev/null "$pkgdir/etc/smtpd/aliases"
+}

Copied: opensmtpd/repos/community-staging-x86_64/opensmtpd.install (from rev 220591, opensmtpd/trunk/opensmtpd.install)
===================================================================
--- community-staging-x86_64/opensmtpd.install	                        (rev 0)
+++ community-staging-x86_64/opensmtpd.install	2017-04-05 11:01:17 UTC (rev 220592)
@@ -0,0 +1,26 @@
+# arg 1:  the new package version
+post_install() {
+  # create users
+  getent group smtpq >/dev/null || groupadd  -r smtpq
+  getent passwd smtpd >/dev/null || useradd -c "SMTP Daemon" -d /var/empty -u 91 -g 1 -s /bin/nologin smtpd
+  getent passwd smtpq >/dev/null || useradd -c "SMTPD Queue" -d /var/empty -u 92 -g smtpq -s/bin/nologin smtpq
+  :
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+  post_install "$1"
+  if (( $(vercmp $2 5.3.3p1-1) < 0 )); then
+    echo 'Configuration files have been moved to /etc/smtpd.'
+    echo 'New users have been added.'
+    echo 'Check your configuration!'
+  elif (( $(vercmp $2 5.4) < 0 )); then
+    echo 'User smtpf is no more required. It will be removed!'
+    echo 'Check your configuration!'
+    userdel -f smtpf
+  fi
+  :
+}
+
+# vim:set ts=2 sw=2 et:

Copied: opensmtpd/repos/community-staging-x86_64/smtpd.service (from rev 220591, opensmtpd/trunk/smtpd.service)
===================================================================
--- community-staging-x86_64/smtpd.service	                        (rev 0)
+++ community-staging-x86_64/smtpd.service	2017-04-05 11:01:17 UTC (rev 220592)
@@ -0,0 +1,10 @@
+[Unit]
+Description=OpenSMTPD
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/smtpd
+
+[Install]
+WantedBy=multi-user.target

Copied: opensmtpd/repos/community-staging-x86_64/smtpd.socket (from rev 220591, opensmtpd/trunk/smtpd.socket)
===================================================================
--- community-staging-x86_64/smtpd.socket	                        (rev 0)
+++ community-staging-x86_64/smtpd.socket	2017-04-05 11:01:17 UTC (rev 220592)
@@ -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