Date: Thursday, June 2, 2016 @ 20:55:13 Author: spupykin Revision: 177753
archrelease: copy trunk to community-i686, community-x86_64 Added: opendmarc/repos/community-i686/ opendmarc/repos/community-i686/PKGBUILD (from rev 177752, opendmarc/trunk/PKGBUILD) opendmarc/repos/community-i686/opendmarc.install (from rev 177752, opendmarc/trunk/opendmarc.install) opendmarc/repos/community-i686/opendmarc.service (from rev 177752, opendmarc/trunk/opendmarc.service) opendmarc/repos/community-x86_64/ opendmarc/repos/community-x86_64/PKGBUILD (from rev 177752, opendmarc/trunk/PKGBUILD) opendmarc/repos/community-x86_64/opendmarc.install (from rev 177752, opendmarc/trunk/opendmarc.install) opendmarc/repos/community-x86_64/opendmarc.service (from rev 177752, opendmarc/trunk/opendmarc.service) ------------------------------------+ community-i686/PKGBUILD | 58 +++++++++++++++++++++++++++++++++++ community-i686/opendmarc.install | 24 ++++++++++++++ community-i686/opendmarc.service | 11 ++++++ community-x86_64/PKGBUILD | 58 +++++++++++++++++++++++++++++++++++ community-x86_64/opendmarc.install | 24 ++++++++++++++ community-x86_64/opendmarc.service | 11 ++++++ 6 files changed, 186 insertions(+) Copied: opendmarc/repos/community-i686/PKGBUILD (from rev 177752, opendmarc/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2016-06-02 18:55:13 UTC (rev 177753) @@ -0,0 +1,58 @@ +# $Id$ +# Maintainer: Sergej Pupykin <arch+...@sergej.pp.ru> +# Orginal Maintainer: Arthur Țițeică arthur.titeica/gmail/com +# Current Maintainer: Hao Zhang <theivorytower [at] gmail [dot] com> + +pkgname=opendmarc +pkgver=1.3.1 +pkgrel=2 +pkgdesc="Free open source software implementation of the DMARC specification" +arch=('i686' 'x86_64') +url="http://www.trusteddomain.org/opendmarc/" +license=('custom') +depends=('smtp-server') +makedepends=('libmilter') +optdepends=('opendbx: acts as a middleware layer between OpenDMARC and a SQL backend of choice' + 'python: run opendmarc scripts at /usr/share/doc/opendmarc' + 'perl: run opendmarc scripts at /usr/share/doc/opendmarc' + 'perl-switch: generate DMARC reports' + 'perl-dbd-mysql: generate DMARC reports' + 'perl-libwww: generate DMARC reports') +install=$pkgname.install +backup=(etc/opendmarc/opendmarc.conf) +source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz + opendmarc.service) +md5sums=('5b0c1ddd302566e395baabb0be7c1338' + '921eeb6e499273bcadeeae8bb5d42bc1') + +build() { + export LDFLAGS="${LDFLAGS//,--as-needed}" + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/bin \ + --sysconfdir=/etc/$pkgname + + make +} + +check() { + cd "$srcdir/$pkgname-$pkgver" + make -k check +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install + + # sample config + install -D -m644 "$srcdir"/$pkgname-$pkgver/$pkgname/opendmarc.conf.sample "$pkgdir"/etc/$pkgname/opendmarc.conf.sample + # 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" + +} + +# vim:set ts=2 sw=2 et: Copied: opendmarc/repos/community-i686/opendmarc.install (from rev 177752, opendmarc/trunk/opendmarc.install) =================================================================== --- community-i686/opendmarc.install (rev 0) +++ community-i686/opendmarc.install 2016-06-02 18:55:13 UTC (rev 177753) @@ -0,0 +1,24 @@ +_config_instructions() { + echo "==> The opendmarc user has been created." + echo " It is recommended to run the daemon under this user." + echo " A sample configuration file has been instaled at" + echo " /etc/opendmarc/opendmarc.conf.sample" +} + +post_install() { + getent passwd opendmarc >/dev/null || \ + useradd --system -g mail -s /usr/bin/nologin -d /etc/opendmarc opendmarc + if [ ! -e /etc/opendmarc/opendmarc.conf ]; then + _config_instructions + fi +} + +post_upgrade() { + post_install +} + +post_remove(){ + if getent passwd opendmarc >/dev/null 2>&1; then + userdel opendmarc + fi +} Copied: opendmarc/repos/community-i686/opendmarc.service (from rev 177752, opendmarc/trunk/opendmarc.service) =================================================================== --- community-i686/opendmarc.service (rev 0) +++ community-i686/opendmarc.service 2016-06-02 18:55:13 UTC (rev 177753) @@ -0,0 +1,11 @@ +[Unit] +Description=OpenDMARC +After=network.target remote-fs.target nss-lookup.target + +[Service] +Type=forking +ExecStart=/usr/bin/opendmarc -c /etc/opendmarc/opendmarc.conf +Restart=always + +[Install] +WantedBy=multi-user.target Copied: opendmarc/repos/community-x86_64/PKGBUILD (from rev 177752, opendmarc/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2016-06-02 18:55:13 UTC (rev 177753) @@ -0,0 +1,58 @@ +# $Id$ +# Maintainer: Sergej Pupykin <arch+...@sergej.pp.ru> +# Orginal Maintainer: Arthur Țițeică arthur.titeica/gmail/com +# Current Maintainer: Hao Zhang <theivorytower [at] gmail [dot] com> + +pkgname=opendmarc +pkgver=1.3.1 +pkgrel=2 +pkgdesc="Free open source software implementation of the DMARC specification" +arch=('i686' 'x86_64') +url="http://www.trusteddomain.org/opendmarc/" +license=('custom') +depends=('smtp-server') +makedepends=('libmilter') +optdepends=('opendbx: acts as a middleware layer between OpenDMARC and a SQL backend of choice' + 'python: run opendmarc scripts at /usr/share/doc/opendmarc' + 'perl: run opendmarc scripts at /usr/share/doc/opendmarc' + 'perl-switch: generate DMARC reports' + 'perl-dbd-mysql: generate DMARC reports' + 'perl-libwww: generate DMARC reports') +install=$pkgname.install +backup=(etc/opendmarc/opendmarc.conf) +source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz + opendmarc.service) +md5sums=('5b0c1ddd302566e395baabb0be7c1338' + '921eeb6e499273bcadeeae8bb5d42bc1') + +build() { + export LDFLAGS="${LDFLAGS//,--as-needed}" + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/bin \ + --sysconfdir=/etc/$pkgname + + make +} + +check() { + cd "$srcdir/$pkgname-$pkgver" + make -k check +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install + + # sample config + install -D -m644 "$srcdir"/$pkgname-$pkgver/$pkgname/opendmarc.conf.sample "$pkgdir"/etc/$pkgname/opendmarc.conf.sample + # 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" + +} + +# vim:set ts=2 sw=2 et: Copied: opendmarc/repos/community-x86_64/opendmarc.install (from rev 177752, opendmarc/trunk/opendmarc.install) =================================================================== --- community-x86_64/opendmarc.install (rev 0) +++ community-x86_64/opendmarc.install 2016-06-02 18:55:13 UTC (rev 177753) @@ -0,0 +1,24 @@ +_config_instructions() { + echo "==> The opendmarc user has been created." + echo " It is recommended to run the daemon under this user." + echo " A sample configuration file has been instaled at" + echo " /etc/opendmarc/opendmarc.conf.sample" +} + +post_install() { + getent passwd opendmarc >/dev/null || \ + useradd --system -g mail -s /usr/bin/nologin -d /etc/opendmarc opendmarc + if [ ! -e /etc/opendmarc/opendmarc.conf ]; then + _config_instructions + fi +} + +post_upgrade() { + post_install +} + +post_remove(){ + if getent passwd opendmarc >/dev/null 2>&1; then + userdel opendmarc + fi +} Copied: opendmarc/repos/community-x86_64/opendmarc.service (from rev 177752, opendmarc/trunk/opendmarc.service) =================================================================== --- community-x86_64/opendmarc.service (rev 0) +++ community-x86_64/opendmarc.service 2016-06-02 18:55:13 UTC (rev 177753) @@ -0,0 +1,11 @@ +[Unit] +Description=OpenDMARC +After=network.target remote-fs.target nss-lookup.target + +[Service] +Type=forking +ExecStart=/usr/bin/opendmarc -c /etc/opendmarc/opendmarc.conf +Restart=always + +[Install] +WantedBy=multi-user.target