summaryrefslogtreecommitdiffstats
path: root/main/dkimproxy/APKBUILD
blob: d3b586840115c028b84a141b636a3ae7a70508e0 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=dkimproxy
pkgver=1.4.1
pkgrel=4
pkgdesc="SMTP-proxy that signs and/or verifies emails, using the Mail::DKIM module"
url="http://dkimproxy.sourceforge.net/"
arch="noarch"
license="GPL"
depends="perl-mail-dkim perl-net-server perl-error"
depends_dev=
makedepends="$depends_dev"
install=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	dkimproxy.in.initd
	dkimproxy.out.initd
	dkimproxy.in.confd
	dkimproxy.out.confd
	"


_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	eval local $(perl -V:vendorlib)
	perllibdir="$vendorlib" ./configure --prefix=/usr \
		--sysconfdir=/etc/dkimproxy \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--bindir=/usr/bin

	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	#FIXME
	mkdir -p "$pkgdir"/usr/sbin
	mv "$pkgdir"/usr/bin/$pkgname.* "$pkgdir"/usr/sbin/

	install -D -m755 "$srcdir"/$pkgname.in.initd \
		"$pkgdir"/etc/init.d/$pkgname.in
	install -D -m755 "$srcdir"/$pkgname.out.initd \
		"$pkgdir"/etc/init.d/$pkgname.out
	install -D -m755 "$srcdir"/$pkgname.in.confd \
		"$pkgdir"/etc/conf.d/$pkgname.in
	install -D -m755 "$srcdir"/$pkgname.out.confd \
		"$pkgdir"/etc/conf.d/$pkgname.out
	
}

md5sums="3ecaa38a8c865a5b7682f7f261354218  dkimproxy-1.4.1.tar.gz
107cf9043a8c643cec928e916940be6f  dkimproxy.in.initd
bd8c5498de00763537c46b40b8d56b02  dkimproxy.out.initd
ed0a3b96bfa39456b8c140bb7299590e  dkimproxy.in.confd
29bd82752fb872abcd7711244de6bc09  dkimproxy.out.confd"
sha256sums="e5345a1d3cefd32d1fb0face9fa73490118132767253b0ce643463f1e86185bd  dkimproxy-1.4.1.tar.gz
7539be4d723e2f5e04cf946a4e9015e1faa4ccc6d36fe62d43c84ef6683491a4  dkimproxy.in.initd
a78822d98e3da41bed4e0d96517ac86ce0bae427f6cceccb0303293f316d44ce  dkimproxy.out.initd
e4aeae0ed78eb8b414a1cc75de9dabadfd566f5b00f5034503ef0ab9ee1de8f9  dkimproxy.in.confd
345ed8aeded05bc5a687dce0380800e53a0dddf547c05c49bc5c9d6aa45b50e0  dkimproxy.out.confd"
sha512sums="ad5ac961ea25cdd7ccc763521d1fa5e143ef93056ca4bdace1d0d8f564ab85cb128b4c97ace310bcbf9e4d49430dd5baf1e9f836f5a44a4b3f1e7498ebc352b6  dkimproxy-1.4.1.tar.gz
35368ff9d63103c7a17ce4320ad434daad1e0039d19e6777e0d226befdcc290c0737baf856a384bb915b0ca8f0311b10259fb2c0df1c9896445e748622b66a64  dkimproxy.in.initd
31a91b1bccb76210aad13329c55a0f1c9d499188fd73b0bc4fb2160790885e1f74a27328c8864744bdc4610b27fba1f13b10494ad9d789599c58bb1dbf33a5f5  dkimproxy.out.initd
aaea5eb0e7b7d400e2774a60c39d55fe9c905336f416db7dfe5477b6ffa6e243ba3897a7e0ce8bdb485a9b730a9b0d6531bd31c49af8cef9f208f895a19b483d  dkimproxy.in.confd
2882eebaf991b8b236cb345ec421c1ead103d2b6cd3e60203d9351587381a25d470c470f8869ce29f6a1cdbc3b9657378787d43da846efad93712983d7a56b32  dkimproxy.out.confd"