Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 337903
Collapse All | Expand All

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

Return to bug 337903