diff options
Diffstat (limited to 'net-fs/am-utils')
-rw-r--r-- | net-fs/am-utils/ChangeLog | 13 | ||||
-rw-r--r-- | net-fs/am-utils/am-utils-6.1.5.ebuild | 46 | ||||
-rw-r--r-- | net-fs/am-utils/files/am-utils-6.1.5-CVE-2008-1078.patch | 21 | ||||
-rw-r--r-- | net-fs/am-utils/files/am-utils-6.1.5-uts_release.patch | 19 |
4 files changed, 97 insertions, 2 deletions
diff --git a/net-fs/am-utils/ChangeLog b/net-fs/am-utils/ChangeLog index 06eb024e4c30..53ae582bc99b 100644 --- a/net-fs/am-utils/ChangeLog +++ b/net-fs/am-utils/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for net-fs/am-utils -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/am-utils/ChangeLog,v 1.27 2007/04/06 22:23:39 betelgeuse Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/am-utils/ChangeLog,v 1.28 2008/04/01 17:54:22 rbu Exp $ + +*am-utils-6.1.5 (01 Apr 2008) + + 01 Apr 2008; Robert Buchholz <rbu@gentoo.org> + +files/am-utils-6.1.5-CVE-2008-1078.patch, + +files/am-utils-6.1.5-uts_release.patch, +am-utils-6.1.5.ebuild: + Non-maintainer-commit: Version bump (bug #181683), build properly on Kernels + >=2.6.18 (bug #190842) and fix insecure temporary file creation in expn (bug + #210158). 06 Apr 2007; Petteri Räty <betelgeuse@gentoo.org> -am-utils-6.0.9-r1.ebuild, -am-utils-6.0.10.ebuild: diff --git a/net-fs/am-utils/am-utils-6.1.5.ebuild b/net-fs/am-utils/am-utils-6.1.5.ebuild new file mode 100644 index 000000000000..241a00e3f9bf --- /dev/null +++ b/net-fs/am-utils/am-utils-6.1.5.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/am-utils/am-utils-6.1.5.ebuild,v 1.1 2008/04/01 17:54:22 rbu Exp $ + +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="latest" + +inherit eutils autotools + +DESCRIPTION="amd automounter and utilities" +HOMEPAGE="http://www.am-utils.org/" +SRC_URI="ftp://ftp.am-utils.org/pub/am-utils/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86 ~x86-fbsd" +IUSE="ldap" + +RDEPEND="ldap? ( >=net-nds/openldap-1.2 )" +DEPEND="${RDEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${PN}-6.1.4-dbm_open-libc.patch" + epatch "${FILESDIR}/${P}-uts_release.patch" #190842 + epatch "${FILESDIR}/${P}-CVE-2008-1078.patch" #210158 + eautoreconf +} + +src_compile() { + econf \ + $(use_with ldap) \ + --sysconfdir=/etc/amd \ + || die "configure failed" + emake || die "make failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + insinto /etc/amd + doins "${FILESDIR}"/amd.{conf,net} + newinitd "${FILESDIR}/amd.rc" amd +} diff --git a/net-fs/am-utils/files/am-utils-6.1.5-CVE-2008-1078.patch b/net-fs/am-utils/files/am-utils-6.1.5-CVE-2008-1078.patch new file mode 100644 index 000000000000..f0965b4a855a --- /dev/null +++ b/net-fs/am-utils/files/am-utils-6.1.5-CVE-2008-1078.patch @@ -0,0 +1,21 @@ +Index: am-utils-6.1.5/scripts/expn.in +=================================================================== +--- am-utils-6.1.5.orig/scripts/expn.in ++++ am-utils-6.1.5/scripts/expn.in +@@ -9,6 +9,7 @@ + # hardcoded constants, should work fine for BSD-based systems + #require 'sys/socket.ph'; # perl 4 + use Socket; # perl 5 ++use Fcntl; + $AF_INET = &AF_INET; + $SOCK_STREAM = &SOCK_STREAM; + +@@ -1009,7 +1010,7 @@ sub mxlookup + } + + $0 = "$av0 - nslookup of $server"; +- open(T,">/tmp/expn$$") || die "open > /tmp/expn$$: $!\n"; ++ sysopen(T,"/tmp/expn$$", O_EXCL | O_CREAT) || die "open > /tmp/expn$$: $!\n"; + print T "set querytype=MX\n"; + print T "$server\n"; + close(T); diff --git a/net-fs/am-utils/files/am-utils-6.1.5-uts_release.patch b/net-fs/am-utils/files/am-utils-6.1.5-uts_release.patch new file mode 100644 index 000000000000..64b3342e0666 --- /dev/null +++ b/net-fs/am-utils/files/am-utils-6.1.5-uts_release.patch @@ -0,0 +1,19 @@ +Index: am-utils-6.1.5/acinclude.m4 +=================================================================== +--- am-utils-6.1.5.orig/acinclude.m4 ++++ am-utils-6.1.5/acinclude.m4 +@@ -10161,7 +10161,14 @@ AC_DEFUN([AMU_LINUX_HEADERS], + ], + [ + if (argc > 1) ++#ifdef UTS_RELEASE + printf("%s", UTS_RELEASE); ++#else ++# define AMU_MA(a) ((a) >> 16) ++# define AMU_MI(a) (((a) & 0xffff) >> 8) ++# define AMU_PL(a) ((a) & 0xff) ++ printf("%d.%d.%d", AMU_MA(LINUX_VERSION_CODE), AMU_MI(LINUX_VERSION_CODE), AMU_PL(LINUX_VERSION_CODE)); ++#endif + ], + [ host_header_version=$value ], + [ echo |