aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nullmailer/APKBUILD
blob: b15b887963d14dccc5d4dea78355047212228fca (plain) (blame)
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
51
52
53
54
55
# Contributor: Simon Frankenberger <simon-alpine@fraho.eu>
# Maintainer: Simon Frankenberger <simon-alpine@fraho.eu>
pkgname=nullmailer
pkgver=2.2
pkgrel=0
pkgdesc="Simple relay-only mail transport agent"
url="https://github.com/bruceg/nullmailer"
arch="all"
license="GPL-2.0-only"
subpackages="$pkgname-doc $pkgname-openrc"
makedepends="automake autoconf bash"
checkdepends="daemontools ucspi-tcp6"
source="$pkgname-$pkgver.tar.gz::https://github.com/bruceg/nullmailer/archive/$pkgver.tar.gz
	fix-tests-catch-port.patch

	nullmailer.initd
	adminaddr.conf
	defaultdomain.conf
	remotes.conf
	"
pkgusers="nullmailer"
pkggroups="nullmailer"
install="$pkgname.pre-install"

prepare() {
	default_prepare
	ash ./autogen.sh
}

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR=$pkgdir install
	install -Dm0755 "$srcdir/nullmailer.initd"   "$pkgdir/etc/init.d/nullmailer"
	install -Dm0644 "$srcdir/adminaddr.conf"     "$pkgdir/etc/nullmailer/adminaddr"
	install -Dm0644 "$srcdir/defaultdomain.conf" "$pkgdir/etc/nullmailer/defaultdomain"
	install -Dm0644 "$srcdir/remotes.conf"       "$pkgdir/etc/nullmailer/remotes"
}

sha512sums="15c070edcf820ad13d8e0b250f73d75e45f592caa039e94fd717226fe09cd0ddc1f165388fab6234f57b340acc5127b54df14f35022858aab971b1f3d4e89e63  nullmailer-2.2.tar.gz
499666333703d6b4dfe9afa76f1d4a48ec7faa4a2ca9dbe8aee6737ce98dcf4509b281ebe2fd2ce0b32d3a91b807a8b2dcffe794b70cb5b3ccb10cb7eca713e4  fix-tests-catch-port.patch
e183bf83055ea0d9fd63598329296d9f654f99bea8761b4f9a5961a76b26ae62e4a8a4b92007e12ecd56e8416a3bac87aaff16d575c7079d6ac571e3b8f80595  nullmailer.initd
93eac7b9fde3c7a2ffe3acdba1dcfccc1e40d94eb9fc7fc6722d3dfaaa3fd4378bf33698ebc0e10e108833251dbfa35fd280d62d865145fe415c431120b11ffe  adminaddr.conf
0d3df6c4d710b8e91d40649ca991e7ab424be625cae724f8305d1ed4f2cf8a1b08e07030ee690cea7091a4c0320aae4e2df14e19efbcc54f1875338d883d8809  defaultdomain.conf
9858c4c52057b222c4f4219301adcc8b36e6c7e4ed51af51f887141fba7a639ed52b756eec06776c91f91767006c4592bca0158708acc371a9123d2efd9b6004  remotes.conf"