blob: ee4019674a886598530b18a7421d2474543da694 (
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
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natananael Copa <ncopa@alpinelinux.org>
pkgname=ssmtp
pkgver=2.64
pkgrel=5
pkgdesc="Extremely simple MTA to get mail off the system to a mail hub"
subpackages="$pkgname-doc"
arch="all"
url="http://packages.debian.org/source/lenny/ssmtp"
license="GPL-2"
depends=
makedepends="openssl-dev autoconf"
install=
source="http://ftp.debian.org/debian/pool/main/s/$pkgname/${pkgname}_${pkgver}.orig.tar.bz2
generate_config.patch
libcrypto-underlinking.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
autoconf
}
build() {
cd "$_builddir"
sed -i -e 's:$(CC) -o:$(CC) @LDFLAGS@ -o:' Makefile.in
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--sysconfdir=/etc \
--enable-ssl \
|| return 1
make
}
package() {
cd "$srcdir"/$pkgname-$pkgver
make prefix="$pkgdir"/usr \
etcdir="$pkgdir"/etc \
mandir="$pkgdir"/usr/share/man \
install
ln -s ssmtp "$pkgdir"/usr/sbin/sendmail
}
md5sums="65b4e0df4934a6cd08c506cabcbe584f ssmtp_2.64.orig.tar.bz2
a9ea0b998975e51b37a8946f5ea977db generate_config.patch
d782db1a953c6d48b63353d71f0c52f5 libcrypto-underlinking.patch"
|