diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-04-23 18:50:19 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-04-23 18:50:19 -0400 |
commit | 88d324a87749b2e82db62a9e29f2c09c7f400d2c (patch) | |
tree | c9c37027da76f3b4fb8dcbec71de466d0c50b6d7 /pcr/postsrsd/PKGBUILD | |
parent | 5a8cc1bc0ebb8517e5e0162113c1c5d69895d0e3 (diff) | |
download | abslibre-88d324a87749b2e82db62a9e29f2c09c7f400d2c.tar.gz abslibre-88d324a87749b2e82db62a9e29f2c09c7f400d2c.tar.bz2 abslibre-88d324a87749b2e82db62a9e29f2c09c7f400d2c.zip |
update pcr/postsrsd
Diffstat (limited to 'pcr/postsrsd/PKGBUILD')
-rw-r--r-- | pcr/postsrsd/PKGBUILD | 53 |
1 files changed, 29 insertions, 24 deletions
diff --git a/pcr/postsrsd/PKGBUILD b/pcr/postsrsd/PKGBUILD index 43581298e..66ee84cfc 100644 --- a/pcr/postsrsd/PKGBUILD +++ b/pcr/postsrsd/PKGBUILD @@ -1,41 +1,46 @@ -# Based on -# Maintainer: Thomas Haider <t.haider@deprecate.de> +# Maintainer: Luke Shumaker <lukeshu@parabola.nu> +# Maintainer (AUR:postsrsd-git): Radek Podgorny <radek@podgorny.cz> +# Maintainer (AUR:postsrsd-git): Thomas Haider <t.haider@deprecate.de> +# Maintainer (AUR:postsrsd): fordprefect <fordprefect@dukun.de> pkgname=postsrsd -pkgver=1.1 +pkgver=1.4 pkgrel=1 -pkgdesc="Provides the Sender Rewriting Scheme (SRS) via TCP-based lookup tables for Postfix" -arch=('i686' 'x86_64' 'mips64el') -depends=('glibc') +pkgdesc="Sender Rewriting Scheme (SRS) daemon for Postfix" +arch=('i686' 'x86_64' 'armv7h') makedepends=('cmake' 'help2man') -backup=('etc/postsrsd/postsrsd.conf') +backup=('etc/default/postsrsd') url="https://github.com/roehling/postsrsd" -install=postsrsd.install license=('GPL2') -source=('https://github.com/roehling/postsrsd/archive/1.1.tar.gz' 'postsrsd.service') -md5sums=('5cde2c2ae7046347f5e17aef2ea8a4a8' - '64f31e8914f5063297371d36f699302d') - -prepare() { - cd "$srcdir/${pkgname}-${pkgver}" - mkdir build -} +source=("$pkgname-$pkgver.tar.gz::https://github.com/roehling/postsrsd/archive/${pkgver}.tar.gz" + postsrsd-genkey.service + postsrsd.service-genkey.conf) +md5sums=('cb6e13a06d6bbd7d383efb9bbf0867ce' + 'ca8cae7a54e57f71e59372c29785cddc' + '3441061474bd5da0d5f8148f53b05917') build() { cd "$srcdir/${pkgname}-${pkgver}" + mkdir -p build cd build - cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DGENERATE_SRS_SECRET=OFF + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DGENERATE_SRS_SECRET=OFF \ + -DUSE_APPARMOR=ON \ + -DINIT_FLAVOR=systemd \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DSYSD_UNIT_DIR='/usr/lib/systemd/system' make all } package() { cd "$srcdir/${pkgname}-${pkgver}/build" make DESTDIR="$pkgdir/" install - - rm -rf $pkgdir/usr/lib - mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin" - sed -e 's/^\(RUN_AS=\)nobody/#\1postsrsd/;s/\(\/etc\/postsrsd\)\(\.secret\)/\1\/postsrsd\2/' \ - -e 's/^\(# is \).*$/\1localhost\.localdomain/'< ../postsrsd.default > postsrsd.conf - install -D -m644 "postsrsd.conf" "$pkgdir/etc/postsrsd/postsrsd.conf" - install -D -m644 "$srcdir/postsrsd.service" "$pkgdir/usr/lib/systemd/system/postsrsd.service" + + mv "$pkgdir"/usr/{sbin,bin} + + # This is to defer running the keygen until runtime; because of + # GENERATE_SRS_SECRET=OFF. + install -Dm644 "$srcdir/postsrsd-genkey.service" "$pkgdir/usr/lib/systemd/system/postsrsd-genkey.service" + install -Dm644 "$srcdir/postsrsd.service-genkey.conf" "$pkgdir/usr/lib/systemd/system/postsrsd.service.d/genkey.conf" } |