diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2020-07-20 08:46:25 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2020-07-20 08:51:12 -0400 |
commit | 936e10ff51f38f1b9a6a73ae6966fcf14a810b6a (patch) | |
tree | 5321b7ac4a9158e81151e84507f6e92139aa3553 /pcr/rmilter | |
parent | ad20b60463abad9a5bea49c3de7b6a56c5df7842 (diff) | |
download | abslibre-936e10ff51f38f1b9a6a73ae6966fcf14a810b6a.tar.gz abslibre-936e10ff51f38f1b9a6a73ae6966fcf14a810b6a.tar.bz2 abslibre-936e10ff51f38f1b9a6a73ae6966fcf14a810b6a.zip |
[rmilter]: rebuild
Diffstat (limited to 'pcr/rmilter')
-rw-r--r-- | pcr/rmilter/PKGBUILD | 55 |
1 files changed, 29 insertions, 26 deletions
diff --git a/pcr/rmilter/PKGBUILD b/pcr/rmilter/PKGBUILD index 55a3d0bfc..72149e365 100644 --- a/pcr/rmilter/PKGBUILD +++ b/pcr/rmilter/PKGBUILD @@ -1,45 +1,48 @@ -# Maintainer: Oleksandr Natalenko <oleksandr@natalenko.name> -# Maintainer (Parabola): fauno <fauno@parabola.nu> +# Contributor (AUR): Oleksandr Natalenko <oleksandr@natalenko.name> +# Contributor: fauno <fauno@parabola.nu> +# Contrbutor: bill-auger <bill-auger@programmer.net> + + pkgname=rmilter pkgver=1.10.0 -pkgrel=1 -epoch= +pkgrel=2 pkgdesc="Another sendmail milter for different mail checks." arch=('x86_64' 'i686') url="http://rspamd.com" license=('custom:BSD2') + depends=('openssl' 'pcre' 'libmilter' 'opendkim') makedepends=('cmake' 'pkgconfig' 'bison' 'flex') - +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/vstakhov/${pkgname}/archive/${pkgver}.tar.gz) backup=('etc/rmilter/rmilter-grey.conf') - install=rmilter.install -source=("${pkgname}-${pkgver}.tar.gz::https://codeload.github.com/vstakhov/${pkgname}/tar.gz/${pkgver}") - sha256sums=('ea80563fa7636afed0b5fd9a29aa2300f15793ed85788e4ce69c187d341a7d54') -build() { - cd "${srcdir}/${pkgname}-${pkgver}" - cmake \ - -DENABLE_DEBUG=OFF \ - -DCMAKE_BUILD_TYPE=Release \ - -DRMILTER_USER=_rmilter \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DSBINDIR=/usr/bin \ - -DENABLE_MEMCACHED=OFF \ - -DWANT_SYSTEMD_UNITS=ON \ - . +build() +{ + cd "${srcdir}"/${pkgname}-${pkgver} - make -j$(nproc) + cmake \ + -DENABLE_DEBUG=OFF \ + -DCMAKE_BUILD_TYPE=Release \ + -DRMILTER_USER=_rmilter \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DSBINDIR=/usr/bin \ + -DENABLE_MEMCACHED=OFF \ + -DWANT_SYSTEMD_UNITS=ON . + + make } -package() { - cd "${srcdir}/${pkgname}-${pkgver}" - make DESTDIR="${pkgdir}/" install +package() +{ + cd "${srcdir}"/${pkgname}-${pkgver} + + make DESTDIR="${pkgdir}"/ install - install -Dm0644 "${pkgname}.conf.sample" "${pkgdir}/etc/${pkgname}/${pkgname}.conf.sample" - install -Dm0644 "${pkgname}-grey.conf" "${pkgdir}/etc/${pkgname}/${pkgname}-grey.conf" - install -Dm0644 'debian/copyright' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm0644 ${pkgname}.conf.sample "${pkgdir}"/etc/${pkgname}/${pkgname}.conf.sample + install -Dm0644 ${pkgname}-grey.conf "${pkgdir}"/etc/${pkgname}/${pkgname}-grey.conf + install -Dm0644 debian/copyright "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } |