aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine/APKBUILD
blob: 3fb188add66e094a3d8cfedff901d47a1ee2308a (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: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine
pkgver=2.00_p73
_ver=${pkgver%_p*}
_pver=${pkgver##*_p}
pkgrel=0
pkgdesc="Text-based email client, friendly for novices but powerful"
url="http://www.washington.edu/alpine/"
license="APACHE"
depends=""
makedepends="openldap-dev heimdal-dev ncurses-dev openssl-dev"
subpackages="$pkgname-doc"
source="ftp://ftp.cac.washington.edu/alpine/alpine.tar.bz2
	http://staff.washington.edu/chappa/alpine/patches/alpine-${_ver}/all_${_pver}.patch.gz
	2.00-lpam.patch
	CVE-2008-5514.patch"

_builddir="$srcdir"/$pkgname-$_ver
prepare() {
	cd "$_builddir"
	gunzip -c "$srcdir"/all_$_pver.patch.gz | patch -p1 || return 1
	for i in $source; do
		case $i in
		*.patch)
			msg "Applying $i"
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
	# we dont have pam
	sed -i -e "s/-lpam//" alpine/Makefile.in
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--without-passfile \
		--without-tcl \
		--disable-shared \
		--with-system-pinerc=/etc/alpine.d/pine.conf \
		--with-system-fixed-pinerc=/etc/alpine.d/pine.conf.fixed
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="84e44cbf71ed674800a5d57eed9c1c52  alpine.tar.bz2
12fa93aa8bf008f40bf8cc9326a8751f  all_73.patch.gz
cd3911c16fc6a072e853c0ccfc35857c  2.00-lpam.patch
1b52a54a656979116c09fb1d948a4325  CVE-2008-5514.patch"