Date: Monday, December 16, 2013 @ 02:28:09 Author: seblu Revision: 102584
archrelease: copy trunk to community-testing-i686, community-testing-x86_64 Added: opensmtpd/repos/community-testing-i686/ opensmtpd/repos/community-testing-i686/PKGBUILD (from rev 102583, opensmtpd/trunk/PKGBUILD) opensmtpd/repos/community-testing-i686/opensmtpd.install (from rev 102583, opensmtpd/trunk/opensmtpd.install) opensmtpd/repos/community-testing-i686/smtpd.service (from rev 102583, opensmtpd/trunk/smtpd.service) opensmtpd/repos/community-testing-i686/smtpd.socket (from rev 102583, opensmtpd/trunk/smtpd.socket) opensmtpd/repos/community-testing-x86_64/ opensmtpd/repos/community-testing-x86_64/PKGBUILD (from rev 102583, opensmtpd/trunk/PKGBUILD) opensmtpd/repos/community-testing-x86_64/opensmtpd.install (from rev 102583, opensmtpd/trunk/opensmtpd.install) opensmtpd/repos/community-testing-x86_64/smtpd.service (from rev 102583, opensmtpd/trunk/smtpd.service) opensmtpd/repos/community-testing-x86_64/smtpd.socket (from rev 102583, opensmtpd/trunk/smtpd.socket) --------------------------------------------+ community-testing-i686/PKGBUILD | 61 +++++++++++++++++++++++++++ community-testing-i686/opensmtpd.install | 35 +++++++++++++++ community-testing-i686/smtpd.service | 10 ++++ community-testing-i686/smtpd.socket | 8 +++ community-testing-x86_64/PKGBUILD | 61 +++++++++++++++++++++++++++ community-testing-x86_64/opensmtpd.install | 35 +++++++++++++++ community-testing-x86_64/smtpd.service | 10 ++++ community-testing-x86_64/smtpd.socket | 8 +++ 8 files changed, 228 insertions(+) Copied: opensmtpd/repos/community-testing-i686/PKGBUILD (from rev 102583, opensmtpd/trunk/PKGBUILD) =================================================================== --- community-testing-i686/PKGBUILD (rev 0) +++ community-testing-i686/PKGBUILD 2013-12-16 01:28:09 UTC (rev 102584) @@ -0,0 +1,61 @@ +# $Id$ +# Maintainer: Sébastien Luttringer + +pkgname=opensmtpd +pkgver=5.4.1p1 +pkgrel=2 +pkgdesc='Free implementation of the server-side SMTP protocol' +arch=('i686' 'x86_64') +url='http://www.opensmtpd.org/' +license=('custom') +depends=('libevent' 'openssl') +provides=('smtp-server' 'smtp-forwarder') +conflicts=('smtp-server' 'smtp-forwarder') +backup=('etc/smtpd/smtpd.conf' 'etc/smtpd/aliases') +options=('emptydirs') +install=opensmtpd.install +source=("http://www.opensmtpd.org/archives/$pkgname-$pkgver.tar.gz" + 'smtpd.service' + 'smtpd.socket') +md5sums=('74551342985b78eb687995f7953d1790' + 'a278f272d97a9fe5a8aac784a7c98d67' + 'c2c01e9ca78df3f65efe40a7c0e17ee0') + +prepare() { + sed -ri 's,/etc/mail,/etc/smtpd,g' $pkgname-$pkgver/smtpd/smtpd.conf +} + +build() { + cd $pkgname-$pkgver + # Remove _FORTIFY_SOURCES: FS#38124 + export CPPFLAGS='' + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc/smtpd \ + --sbindir=/usr/bin \ + --libexecdir=/usr/lib/smtpd \ + --with-maildir=/var/spool/mail \ + --with-privsep-path=/var/empty \ + --with-sock-dir=/run \ + --with-ca-file=/etc/ssl/certs/ca-certificates.crt \ + --with-privsep-user=smtpd \ + --with-queue-user=smtpq \ + --with-pam + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir/" install + # license + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + # working directory + cd "$pkgdir" + # install systemd units + install -Dm644 "$srcdir/smtpd.service" usr/lib/systemd/system/smtpd.service + install -Dm644 "$srcdir/smtpd.socket" usr/lib/systemd/system/smtpd.socket + # empty aliases file (used by default config) + install -Dm644 /dev/null etc/smtpd/aliases +} + +# vim:set ts=2 sw=2 et: Copied: opensmtpd/repos/community-testing-i686/opensmtpd.install (from rev 102583, opensmtpd/trunk/opensmtpd.install) =================================================================== --- community-testing-i686/opensmtpd.install (rev 0) +++ community-testing-i686/opensmtpd.install 2013-12-16 01:28:09 UTC (rev 102584) @@ -0,0 +1,35 @@ +# arg 1: the new package version +post_install() { + # create users + getent passwd smtpd >/dev/null || useradd -d / -u 91 -g 1 smtpd + getent passwd smtpq >/dev/null || useradd -d /var/spool/smtpd -u 92 -g 1 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 + : +} + +# arg 1: the old package version +post_remove() { + userdel -f smtpd + userdel -f smtpq + if (( $(vercmp $1 5.4) <= 0 )); then + userdel -f smtpf + fi + : +} + +# vim:set ts=2 sw=2 et: Copied: opensmtpd/repos/community-testing-i686/smtpd.service (from rev 102583, opensmtpd/trunk/smtpd.service) =================================================================== --- community-testing-i686/smtpd.service (rev 0) +++ community-testing-i686/smtpd.service 2013-12-16 01:28:09 UTC (rev 102584) @@ -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-testing-i686/smtpd.socket (from rev 102583, opensmtpd/trunk/smtpd.socket) =================================================================== --- community-testing-i686/smtpd.socket (rev 0) +++ community-testing-i686/smtpd.socket 2013-12-16 01:28:09 UTC (rev 102584) @@ -0,0 +1,8 @@ +[Unit] +Description=OpenSMTPD Socket + +[Socket] +ListenStream=/run/smtpd.sock + +[Install] +WantedBy=sockets.target Copied: opensmtpd/repos/community-testing-x86_64/PKGBUILD (from rev 102583, opensmtpd/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2013-12-16 01:28:09 UTC (rev 102584) @@ -0,0 +1,61 @@ +# $Id$ +# Maintainer: Sébastien Luttringer + +pkgname=opensmtpd +pkgver=5.4.1p1 +pkgrel=2 +pkgdesc='Free implementation of the server-side SMTP protocol' +arch=('i686' 'x86_64') +url='http://www.opensmtpd.org/' +license=('custom') +depends=('libevent' 'openssl') +provides=('smtp-server' 'smtp-forwarder') +conflicts=('smtp-server' 'smtp-forwarder') +backup=('etc/smtpd/smtpd.conf' 'etc/smtpd/aliases') +options=('emptydirs') +install=opensmtpd.install +source=("http://www.opensmtpd.org/archives/$pkgname-$pkgver.tar.gz" + 'smtpd.service' + 'smtpd.socket') +md5sums=('74551342985b78eb687995f7953d1790' + 'a278f272d97a9fe5a8aac784a7c98d67' + 'c2c01e9ca78df3f65efe40a7c0e17ee0') + +prepare() { + sed -ri 's,/etc/mail,/etc/smtpd,g' $pkgname-$pkgver/smtpd/smtpd.conf +} + +build() { + cd $pkgname-$pkgver + # Remove _FORTIFY_SOURCES: FS#38124 + export CPPFLAGS='' + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc/smtpd \ + --sbindir=/usr/bin \ + --libexecdir=/usr/lib/smtpd \ + --with-maildir=/var/spool/mail \ + --with-privsep-path=/var/empty \ + --with-sock-dir=/run \ + --with-ca-file=/etc/ssl/certs/ca-certificates.crt \ + --with-privsep-user=smtpd \ + --with-queue-user=smtpq \ + --with-pam + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir/" install + # license + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + # working directory + cd "$pkgdir" + # install systemd units + install -Dm644 "$srcdir/smtpd.service" usr/lib/systemd/system/smtpd.service + install -Dm644 "$srcdir/smtpd.socket" usr/lib/systemd/system/smtpd.socket + # empty aliases file (used by default config) + install -Dm644 /dev/null etc/smtpd/aliases +} + +# vim:set ts=2 sw=2 et: Copied: opensmtpd/repos/community-testing-x86_64/opensmtpd.install (from rev 102583, opensmtpd/trunk/opensmtpd.install) =================================================================== --- community-testing-x86_64/opensmtpd.install (rev 0) +++ community-testing-x86_64/opensmtpd.install 2013-12-16 01:28:09 UTC (rev 102584) @@ -0,0 +1,35 @@ +# arg 1: the new package version +post_install() { + # create users + getent passwd smtpd >/dev/null || useradd -d / -u 91 -g 1 smtpd + getent passwd smtpq >/dev/null || useradd -d /var/spool/smtpd -u 92 -g 1 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 + : +} + +# arg 1: the old package version +post_remove() { + userdel -f smtpd + userdel -f smtpq + if (( $(vercmp $1 5.4) <= 0 )); then + userdel -f smtpf + fi + : +} + +# vim:set ts=2 sw=2 et: Copied: opensmtpd/repos/community-testing-x86_64/smtpd.service (from rev 102583, opensmtpd/trunk/smtpd.service) =================================================================== --- community-testing-x86_64/smtpd.service (rev 0) +++ community-testing-x86_64/smtpd.service 2013-12-16 01:28:09 UTC (rev 102584) @@ -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-testing-x86_64/smtpd.socket (from rev 102583, opensmtpd/trunk/smtpd.socket) =================================================================== --- community-testing-x86_64/smtpd.socket (rev 0) +++ community-testing-x86_64/smtpd.socket 2013-12-16 01:28:09 UTC (rev 102584) @@ -0,0 +1,8 @@ +[Unit] +Description=OpenSMTPD Socket + +[Socket] +ListenStream=/run/smtpd.sock + +[Install] +WantedBy=sockets.target