aboutsummaryrefslogtreecommitdiffstats
path: root/main/ssmtp/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/ssmtp/APKBUILD')
-rw-r--r--main/ssmtp/APKBUILD21
1 files changed, 16 insertions, 5 deletions
diff --git a/main/ssmtp/APKBUILD b/main/ssmtp/APKBUILD
index d21dac8b0c..d8ee553a24 100644
--- a/main/ssmtp/APKBUILD
+++ b/main/ssmtp/APKBUILD
@@ -3,22 +3,32 @@
pkgname=ssmtp
pkgver=2.64
-pkgrel=4
+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"
+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 "$srcdir"/$pkgname-$pkgver
- patch generate_config ../generate_config.patch || return 1
+ cd "$_builddir"
sed -i -e 's:$(CC) -o:$(CC) @LDFLAGS@ -o:' Makefile.in
./configure --prefix=/usr \
@@ -38,4 +48,5 @@ package() {
}
md5sums="65b4e0df4934a6cd08c506cabcbe584f ssmtp_2.64.orig.tar.bz2
-c70c395fe71589ca8b10b666455d5071 generate_config.patch"
+a9ea0b998975e51b37a8946f5ea977db generate_config.patch
+d782db1a953c6d48b63353d71f0c52f5 libcrypto-underlinking.patch"