initial import
This commit is contained in:
68
postgrey/PKGBUILD
Normal file
68
postgrey/PKGBUILD
Normal file
@@ -0,0 +1,68 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=postgrey
|
||||
pkgver=1.36
|
||||
_debver=$pkgver
|
||||
_debrel=5.2
|
||||
pkgrel=2
|
||||
pkgdesc="A postfix policy server implementing greylisting"
|
||||
arch=('any')
|
||||
url="https://postgrey.schweikert.ch/"
|
||||
options=(emptydirs)
|
||||
license=('GPL-2')
|
||||
depends=('perl-net-server' 'perl' 'perl-berkeleydb' 'perl-io-multiplex'
|
||||
"db>=4.1" 'perl-netaddr-ip')
|
||||
makedepends=('quilt')
|
||||
optdepends=('postfix: the recommended MTA for use with postgrey'
|
||||
'exim: an alternative MTA'
|
||||
'perl-net-dns: for postgreyreport tool')
|
||||
backup=(etc/postgrey/whitelist_recipients
|
||||
etc/postgrey/whitelist_clients)
|
||||
install=$pkgname.install
|
||||
source=("https://postgrey.schweikert.ch/pub/$pkgname-$pkgver.tar.gz"
|
||||
"https://deb.debian.org/debian/pool/main/p/postgrey/postgrey_$_debver-$_debrel.debian.tar.xz"
|
||||
"$pkgname.initd"
|
||||
"$pkgname.confd"
|
||||
"$pkgname.run")
|
||||
sha512sums=('9b2502b873658c1ef8a86bff091d61b8dc8d66f7395bc0a869f9e6ec60b691a317c084ae326f49ce8dd926f0fa2620a58f3ad76c25e1b1c9606557d2802d1395'
|
||||
'00bd8410b343db2697298dcbe81869d481854d2480cf63ad09c7514e9e44ef8564f578dd3616970c07444454f8c484c226bade3f39c3354c180c3f941bbe5de5'
|
||||
'9e2b76272d2ac780ec1c43486504c7ebe62ca9bf90fb5f6f6bc938a108bd10b6ca515a81648619ecdce8976aec9ff5f498be9f3894fd05787cc6c7d14624fa84'
|
||||
'75341bf097eda87427a91bf9243229a2f7dc330f97a739042e7b9ce85be3ca7cba86c59fd8f9ba2ce5532e850cb80a51febad0ce58a2c92253e2a3fabd2185ad'
|
||||
'2393192cb60aecc730ff43791e81dfffa4be90d399f53216b22ac3cf006d88fe3f4a82300a9e310f88e4efec0694c4dec299560fa5749bf1b2df12bd73783e68')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir"/$pkgname-$pkgver
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir"/$pkgname-$pkgver
|
||||
|
||||
# folder structure
|
||||
mkdir -p "$pkgdir"/var/lib/$pkgname
|
||||
chmod 770 "$pkgdir"/var/lib/$pkgname
|
||||
|
||||
# binary data
|
||||
install -D -m 0755 postgrey "$pkgdir"/usr/sbin/postgrey
|
||||
install -D -m 0755 policy-test "$pkgdir"/usr/sbin/policy-test
|
||||
install -D -m 0755 contrib/postgreyreport "$pkgdir"/usr/bin/postgreyreport
|
||||
install -D -m 0644 postgrey_whitelist_recipients "$pkgdir"/etc/postgrey/whitelist_recipients
|
||||
install -D -m 0644 postgrey_whitelist_clients "$pkgdir"/etc/postgrey/whitelist_clients
|
||||
|
||||
# services
|
||||
install -Dm 644 "$srcdir/$pkgname.confd" "$pkgdir/etc/conf.d/$pkgname"
|
||||
install -Dm 755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
|
||||
install -Dm 755 "$srcdir/$pkgname.run" "$pkgdir/etc/sv/$pkgname/run"
|
||||
|
||||
# license
|
||||
install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
||||
Reference in New Issue
Block a user