blob: 34265ef3318ae42af74e0bcb8bbe0fcf9c99f6d1 (
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
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=dkimproxy
pkgver=1.4.1
pkgrel=3
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
825ed04082c623be6b53933424534d88 dkimproxy.in.initd
9d88fb0db1e9829803492cc508840dde dkimproxy.out.initd
ed0a3b96bfa39456b8c140bb7299590e dkimproxy.in.confd
29bd82752fb872abcd7711244de6bc09 dkimproxy.out.confd"
|