--- a/sipcalc-1.1.4.ebuild 2009-09-23 20:06:50.000000000 +0000 +++ a/sipcalc-1.1.4.ebuild 2010-11-11 03:22:50.262299304 +0000 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/sipcalc/sipcalc-1.1.4.ebuild,v 1.4 2009/09/23 19:44:24 patrick Exp $ +EAPI="2" + DESCRIPTION="Sipcalc is an advanced console-based IP subnet calculator." HOMEPAGE="http://www.routemeister.net/projects/sipcalc/" SRC_URI="http://www.routemeister.net/projects/${PN}/files/${P}.tar.gz" @@ -12,6 +14,17 @@ DEPEND="" +src_prepare() { + # Fix "format not a string literal" + sed -i \ + -e 's/snprintf.*16,/& "%s",/' \ + src/sub-output.c || die + # Fix "will always overflow destination buffer" + sed -i \ + -e 's/\(snprintf(\(ifarg_cur->errorstr\), \)127/\1sizeof(\2)/' \ + src/sub.c || die +} + src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc ChangeLog AUTHORS NEWS README TODO