aboutsummaryrefslogtreecommitdiffstats
path: root/extra/ssmtp
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-27 09:53:24 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-27 09:53:24 +0000
commit1fa7bc47fc4327eb4846e92e3126fc8d8a5500de (patch)
treee9450ac734962780e5a6ed05f8eee16ea2957174 /extra/ssmtp
parent121ae6a1cadc270332c257bd60477c18d8a04c12 (diff)
downloadaports-1fa7bc47fc4327eb4846e92e3126fc8d8a5500de.tar.bz2
aports-1fa7bc47fc4327eb4846e92e3126fc8d8a5500de.tar.xz
testing/ssmtp: moved from extra
Diffstat (limited to 'extra/ssmtp')
-rw-r--r--extra/ssmtp/APKBUILD33
-rw-r--r--extra/ssmtp/CVE-2008-3962.patch14
-rw-r--r--extra/ssmtp/generate_config.patch27
3 files changed, 0 insertions, 74 deletions
diff --git a/extra/ssmtp/APKBUILD b/extra/ssmtp/APKBUILD
deleted file mode 100644
index be2f4deda2..0000000000
--- a/extra/ssmtp/APKBUILD
+++ /dev/null
@@ -1,33 +0,0 @@
-#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"
diff --git a/extra/ssmtp/CVE-2008-3962.patch b/extra/ssmtp/CVE-2008-3962.patch
deleted file mode 100644
index fca144fa68..0000000000
--- a/extra/ssmtp/CVE-2008-3962.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- ssmtp.orig/ssmtp.c
-+++ ssmtp/ssmtp.c
-@@ -485,6 +485,11 @@ char *from_format(char *str, bool_t over
- die("from_format() -- snprintf() failed");
- }
- }
-+ else {
-+ if(snprintf(buf, BUF_SZ, "%s", str) == -1) {
-+ die("from_format() -- snprintf() failed");
-+ }
-+ }
- }
-
- #if 0
diff --git a/extra/ssmtp/generate_config.patch b/extra/ssmtp/generate_config.patch
deleted file mode 100644
index e154310841..0000000000
--- a/extra/ssmtp/generate_config.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-18,34c18
-< echo "Please enter the mail name of your system."
-< echo "This is the hostname portion of the address to be shown"
-< echo "on outgoing news and mail messages headers."
-< echo "The default is $syshostname, your system's host name."
-< echo
-< echo -n "Mail name [$syshostname]: "
-< read mailname
-< echo
-<
-< echo -n "Please enter the SMTP port number [25]: "
-< read smtpport
-< if test -z "$smtpport"
-< then
-< mailhub=$mailhub
-< else
-< mailhub="$mailhub:$smtpport"
-< fi
----
-> mailhub="$mailhub:25"
-61,66d44
-<
-< echo
-< echo
-< echo "Please check the configuration file $1 for correctness."
-< echo
-< echo