aboutsummaryrefslogtreecommitdiffstats
path: root/main/procmail/APKBUILD
blob: d3672c381b48f6b3d2bd0b9a75eca4129ad36abe (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=procmail
pkgver=3.22
pkgrel=2
pkgdesc="Highly configurable auto mail processing"
url="http://www.procmail.org"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="ftp://ftp.informatik.rwth-aachen.de/pub/packages/procmail/procmail-$pkgver.tar.gz
	procmail-3.22-getline.patch
	CVE-2014-3618.patch
	"

_builddir="$srcdir"/procmail-$pkgver
prepare() {
	local i
	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 CFLAGS0="${CFLAGS}" LDFLAGS0="${LDFLAGS}" \
		LOCKINGTEST="'$srcdir' ." || return 1
}

package() {
	cd "$_builddir"
	make BASENAME="${pkgdir}"/usr MANDIR="${pkgdir}"/usr/share/man \
		install || return 1
	install -D -m644 Artistic ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
	install -d -m755 ${pkgdir}/usr/share/doc/${pkgname}/examples
	install -m644 examples/* ${pkgdir}/usr/share/doc/${pkgname}/examples/
}

md5sums="1678ea99b973eb77eda4ecf6acae53f1  procmail-3.22.tar.gz
cf8e5d4854050ab0c836e07406a3dfa9  procmail-3.22-getline.patch
a24e86941e3357ef4fe51e2ec02b32b1  CVE-2014-3618.patch"
sha256sums="087c75b34dd33d8b9df5afe9e42801c9395f4bf373a784d9bc97153b0062e117  procmail-3.22.tar.gz
aaa5ce562e5ef65f56a0225eedda3fcc7ab2938da6097ed4d9b11abf861929de  procmail-3.22-getline.patch
024e6d599abf585d181d8871c5dd69bf9480fee177832a72e7240d351b7954df  CVE-2014-3618.patch"
sha512sums="3d0658329a55957a8d5741e03b0853b030c4524acef30641663213aa9eefc8264f8cc2b68a00a89e5f9f0f7c916c41a42e1b6c8df562c545ba97d8ab9049a936  procmail-3.22.tar.gz
b0a908a04d1af27b3ff98326d00d2dde3e6c0ed0d63eec1884bec6a5e9e8d8846140993322ef609b4a7eb882f077581b5a9d56d81c8160b7c29ca95a3aaca868  procmail-3.22-getline.patch
2d7f9983dd49afcb33de5a856bdc21cfd972b50e8df5ba46b2f61a521f32d842e50f73b34e32f8adbab2acb572d8da4f512bc9f7a2a909584a7b15be9ad9cfcd  CVE-2014-3618.patch"