summaryrefslogtreecommitdiffstats
path: root/extra/ssmtp/APKBUILD
blob: be2f4deda230159a73a3ac4de7aaa453f2cab1b3 (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
#Contributor: Leonardo Arena <rnalrd@gmail.com>
pkgname=ssmtp
pkgver=2.62
pkgrel=0
pkgdesc="Extremely simple MTA to get mail off the system to a mail hub"
subpackages="$pkgname-doc"
arch=""
url="http://packages.debian.org/source/lenny/ssmtp"
license="GPL-2"
depends="uclibc"
makedepends="openssl-dev"
install=
source="http://ftp.debian.org/debian/pool/main/s/$pkgname/${pkgname}_${pkgver}.orig.tar.gz
        generate_config.patch
        CVE-2008-3962.patch"

build() {
	cd "$srcdir/$pkgname"
	sed -i -e 's/hostname --fqdn/hostname -f/g' generate_config
	patch generate_config ../../generate_config.patch
	sed -i -e 's:$(CC) -o:$(CC) @LDFLAGS@ -o:' Makefile.in
	patch -p1 ssmtp.c ../../CVE-2008-3962.patch

	./configure --prefix=/usr \
	--mandir=/usr/share/man \
	--sysconfdir=/etc \
	--enable-ssl
	make || return 1
	make prefix="$pkgdir"/usr etcdir="$pkgdir"/etc mandir="$pkgdir"/usr/share/man install
}
md5sums="257ac04e62ab7e3616e220333a1140cb  ssmtp_2.62.orig.tar.gz
d799575f8edefaa279b4cef4df55f874  generate_config.patch
18f0686f1b8888d187f06dcff3b6212a  CVE-2008-3962.patch"