[arch-commits] Commit in amavisd-milter/repos (3 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 17:36:00 UTC 2020


    Date: Tuesday, July 7, 2020 @ 17:36:00
  Author: felixonmars
Revision: 659800

archrelease: copy trunk to community-staging-x86_64

Added:
  amavisd-milter/repos/community-staging-x86_64/
  amavisd-milter/repos/community-staging-x86_64/PKGBUILD
    (from rev 659797, amavisd-milter/trunk/PKGBUILD)
  amavisd-milter/repos/community-staging-x86_64/amavisd-milter.service
    (from rev 659798, amavisd-milter/trunk/amavisd-milter.service)

------------------------+
 PKGBUILD               |   50 +++++++++++++++++++++++++++++++++++++++++++++++
 amavisd-milter.service |   18 ++++++++++++++++
 2 files changed, 68 insertions(+)

Copied: amavisd-milter/repos/community-staging-x86_64/PKGBUILD (from rev 659797, amavisd-milter/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 17:36:00 UTC (rev 659800)
@@ -0,0 +1,50 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Florian Pritz <bluewind at xinu.at>
+# Contributor: Karol Babioch <karol at babioch.de>
+
+pkgname=amavisd-milter
+pkgver=1.7.0
+pkgrel=2
+pkgdesc="sendmail milter for amavisd-new using the AM.PDP protocol"
+arch=('x86_64')
+url="http://amavisd-milter.sourceforge.net/"
+license=('BSD')
+depends=('amavisd-new')
+makedepends=('libmilter')
+source=("https://github.com/prehor/amavisd-milter/releases/download/$pkgver/amavisd-milter-$pkgver.tar.gz"
+        'amavisd-milter.service')
+sha512sums=('52fdfe4acdd94e387de63d93aa3347dce46e7e16b8ab51679c7bbfc4f6faba160de5ca55aae141cbd06f3d9d1122dea67fdd67562dd5b8314055f7f6071545af'
+            '0a07da1f1c1299ac26fc8ccd77919e4c5c69ea3e673c1d34f46f730899e2b4234784147fb9929e635a6dc7a40474ca0ba2f03785125ba5b37b1252eb986b4510')
+
+prepare() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+
+    # change upstream default paths (must match those of amavisd-new)
+    sed -i 's|/var/amavis|/var/spool/amavis|g' "${pkgname}/amavisd-milter.8"
+}
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    ./configure \
+        --prefix=/usr \
+        --bindir=/usr/bin \
+        --sbindir=/usr/bin \
+        --sysconfdir=/etc/amavis \
+        --localstatedir=/var/spool/amavis \
+        --sharedstatedir=/usr/share
+    make
+}
+
+check() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    make check
+}
+
+package() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    make DESTDIR="${pkgdir}" install
+    # license
+    install -D -m644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    # systemd unit
+    install -D -m644 "${srcdir}/amavisd-milter.service" "${pkgdir}/usr/lib/systemd/system/amavisd-milter.service"
+}

Copied: amavisd-milter/repos/community-staging-x86_64/amavisd-milter.service (from rev 659798, amavisd-milter/trunk/amavisd-milter.service)
===================================================================
--- community-staging-x86_64/amavisd-milter.service	                        (rev 0)
+++ community-staging-x86_64/amavisd-milter.service	2020-07-07 17:36:00 UTC (rev 659800)
@@ -0,0 +1,18 @@
+[Unit]
+Description=Amavisd Milter
+Wants=amavisd.service
+After=network.target
+
+[Service]
+PIDFile=/run/amavisd-milter/pid
+Type=simple
+User=amavis
+Group=mail
+UMask=0007
+RuntimeDirectory=amavisd-milter
+RuntimeDirectoryMode=750
+ExecStart=/usr/bin/amavisd-milter -f -p /run/amavisd-milter/pid -s unix:/run/amavisd-milter/socket -w /var/spool/amavis/tmp -S /run/amavis/sock -m 2
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list