blob: e5808496f30d5809fa7cf03b9fc78fc758d33a00 (
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
|
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
pkgname=libmilter
_pkgname="sendmail"
pkgver=1.0.2
_pkgver=8.15.2
pkgrel=0
pkgdesc="Sendmail Mail Filter API"
url="http://www.sendmail.com/sm/open_source"
arch="all"
license="custom"
depends=""
depends_dev=""
makedepends="$depends_dev m4 linux-headers bsd-compat-headers"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://ftp.sendmail.org/pub/$_pkgname/$_pkgname.$_pkgver.tar.gz
libmilter-sharedlib.patch"
_builddir="$srcdir"/$_pkgname-$_pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
make -j1 -C libmilter MILTER_SOVER=$pkgver || return 1
}
package() {
cd "$_builddir"
mkdir -p "$pkgdir"/usr/lib
make -j1 -C libmilter \
INCOWN=root INCGRP=root INCMODE=644 \
LIBOWN=root LIBGRP=root LIBMODE=644 UBINMODE=755 \
MILTER_SOVER=$pkgver DESTDIR="$pkgdir" install || return 1
install -Dm644 libmilter/README "$pkgdir"/usr/share/doc/$pkgname/README
cp -r libmilter/docs "$pkgdir"/usr/share/doc/$pkgname/
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/license
}
md5sums="a824fa7dea4d3341efb6462ccd816f00 sendmail.8.15.2.tar.gz
49558fc2c9e38f433e0dc64d76705c05 libmilter-sharedlib.patch"
sha256sums="24f94b5fd76705f15897a78932a5f2439a32b1a2fdc35769bb1a5f5d9b4db439 sendmail.8.15.2.tar.gz
3a753b0881fe622814b471ee5f9037905c7cc3ed08ef74908464ab5307e59d5a libmilter-sharedlib.patch"
sha512sums="04feb37316c13b66b1518596507a7da7c16cb0bf1abf10367f7fd888a428fadb093a9efa55342fa55b936c3f0cbdc63b9e2505cd99201a69a0c05b8ad65f49f9 sendmail.8.15.2.tar.gz
31c36b57739946c1b9c7c85307fe5c53c45d7f8cbf427a0f2248db8b74871a6f5a30ef1af524915821aeca54310d28272bcd0a587cb918192214fa5c30e4a8da libmilter-sharedlib.patch"
|