blob: 5d9d59ccc90e98aa20f4a46644233a3acc242885 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Contributor: Simon Frankenberger <simon-alpine@fraho.eu>
# Maintainer: Simon Frankenberger <simon-alpine@fraho.eu>
pkgname=postfwd
pkgver=2.01
pkgrel=0
pkgdesc="Combines complex postfix restrictions in a ruleset similar to those of the most firewalls"
url="https://postfwd.org/"
arch="noarch"
license="BSD"
depends="perl-net-server perl-net-dns perl-io-multiplex"
subpackages="$pkgname-doc $pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz
$pkgname.initd
$pkgname.confd
"
options="!check" # package has no tests
builddir="$srcdir/$pkgname-$pkgver"
pkgusers="postfwd"
pkggroups="postfwd"
install="$pkgname.pre-install"
provides="postfwd2=$pkgver-r$pkgrel" # for backward compatibility
replaces="postfwd2" # for backward compatibility
build() {
cd "$builddir"
# just print out version to check if all dependencies are met
sbin/postfwd -V
}
package() {
cd "$builddir"
mkdir -p "$pkgdir"/usr/sbin \
"$pkgdir"/usr/share/doc/$pkgname \
"$pkgdir"/usr/share/man/man8 \
"$pkgdir"/etc/$pkgname \
"$pkgdir"/etc/init.d
install -m0755 sbin/postfwd3 "$pkgdir"/usr/sbin
ln -s postfwd3 "$pkgdir"/usr/sbin/postfwd
ln -s postfwd3 "$pkgdir"/usr/sbin/postfwd2
cp -r doc/* "$pkgdir"/usr/share/doc/$pkgname
install -m0644 man/man8/* "$pkgdir"/usr/share/man/man8
install -m0644 etc/postfwd.cf.sample "$pkgdir"/etc/$pkgname
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
install -dm750 -o postfwd -g postfwd "$pkgdir"/var/lib/postfw
}
sha512sums="71433e67ed0da166909cde427847a78e3764439871f17a749c7560e21668a5b89f43f354e2af84a3724dff1c763407e79384eb92ba3334a3515b853262e1556e postfwd-2.01.tar.gz
d68b1a1a8294fcccc7a2d9d88bb7b93c16569524e6844f17c4a4ad0df0abca17690dc021267e92b10b4a88f8dd21b559d36a9ca8a71e1813ca3819b4a2684d1c postfwd.initd
3fdd6558eb3d87b8ef05c4e650ea33fcfe5bde412590ab7cb745bc1fdbf62f4f4630da271de59e6300ddd1a77287e084f7f2766c312bc2f82eb98a5623dedac2 postfwd.confd"
|