blob: 8e2fb16d6c18261536891b677110e1178028d4c4 (
plain) (
blame)
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
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=ssmtp
pkgver=2.64
pkgrel=12
pkgdesc="Simple MTA to transmit mail to a mail hub"
url="https://packages.debian.org/stable/mail/ssmtp"
arch="all"
options="!check"
license="GPL-2.0+"
provides=/usr/sbin/sendmail
depends=
makedepends="openssl-dev autoconf"
subpackages="$pkgname-doc"
source="https://ftp.debian.org/debian/pool/main/s/$pkgname/${pkgname}_${pkgver}.orig.tar.bz2
generate_config.patch
libcrypto-underlinking.patch
inet6-getaddrinfo.patch
"
build() {
cd "$builddir"
sed -i -e 's:$(CC) -o:$(CC) @LDFLAGS@ -o:' Makefile.in
autoconf
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--sysconfdir=/etc \
--enable-ssl \
--enable-inet6
make
}
package() {
cd "$builddir"
make prefix="$pkgdir"/usr \
etcdir="$pkgdir"/etc \
mandir="$pkgdir"/usr/share/man \
install
ln -s ssmtp "$pkgdir"/usr/sbin/sendmail
}
|