diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2013-02-20 13:56:01 +0000 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2013-02-20 13:56:01 +0000 |
commit | 68b14977d6b2111bd1855708fed402ceb5cac252 (patch) | |
tree | f4f8868e4faf4a8de663cf9382905b4b7a1f310c /net-misc | |
parent | Fix USE=-gtk (where dev-libs/glib is still used, bug #456788). (diff) | |
download | gentoo-2-68b14977d6b2111bd1855708fed402ceb5cac252.tar.gz gentoo-2-68b14977d6b2111bd1855708fed402ceb5cac252.tar.bz2 gentoo-2-68b14977d6b2111bd1855708fed402ceb5cac252.zip |
Revision bump: EAPI 5, base eclass, use flag-o-matic for CFLAGS handling, respect LDFLAGS, wrt bug #337879
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/stone/ChangeLog | 9 | ||||
-rw-r--r-- | net-misc/stone/files/stone-2.3e-makefile.patch | 20 | ||||
-rw-r--r-- | net-misc/stone/stone-2.3e-r1.ebuild | 45 |
3 files changed, 73 insertions, 1 deletions
diff --git a/net-misc/stone/ChangeLog b/net-misc/stone/ChangeLog index c5d381449682..840e63447932 100644 --- a/net-misc/stone/ChangeLog +++ b/net-misc/stone/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/stone # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/stone/ChangeLog,v 1.20 2013/02/03 12:37:34 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/stone/ChangeLog,v 1.21 2013/02/20 13:56:01 pinkbyte Exp $ + +*stone-2.3e-r1 (20 Feb 2013) + + 20 Feb 2013; Sergey Popov <pinkbyte@gentoo.org> +stone-2.3e-r1.ebuild, + +files/stone-2.3e-makefile.patch: + Revision bump: EAPI 5, base eclass, use flag-o-matic for CFLAGS handling, + respect LDFLAGS, wrt bug #337879 03 Feb 2013; Pacho Ramos <pacho@gentoo.org> -stone-2.2c.ebuild, -stone-2.2e.ebuild, metadata.xml: diff --git a/net-misc/stone/files/stone-2.3e-makefile.patch b/net-misc/stone/files/stone-2.3e-makefile.patch new file mode 100644 index 000000000000..5df2b6868a24 --- /dev/null +++ b/net-misc/stone/files/stone-2.3e-makefile.patch @@ -0,0 +1,20 @@ +--- Makefile.orig 2013-02-20 17:45:36.000000000 +0400 ++++ Makefile 2013-02-20 17:47:19.323650328 +0400 +@@ -19,8 +19,6 @@ + # -DWINDOWS Windows95/98/NT + # -DNT_SERVICE WindowsNT/2000 native service + +-CFLAGS= # -g +- + SSL= /usr/local/ssl + SSL_FLAGS= -DUSE_SSL + SSL_LIBS= -lssl -lcrypto +@@ -60,7 +58,7 @@ + @echo "*** md5c.c is contained in RFC1321" + + stone: stone.c +- $(CC) $(CFLAGS) $(FLAGS) -o $@ $? $(LIBS) ++ $(CC) $(CFLAGS) $(FLAGS) ${LDFLAGS} -o $@ $? $(LIBS) + + pop_stone: $(POP_LIBS) + $(MAKE) FLAGS="$(POP_FLAGS)" LIBS="$(POP_LIBS)" $(TARGET) diff --git a/net-misc/stone/stone-2.3e-r1.ebuild b/net-misc/stone/stone-2.3e-r1.ebuild new file mode 100644 index 000000000000..704b86e198d2 --- /dev/null +++ b/net-misc/stone/stone-2.3e-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/stone/stone-2.3e-r1.ebuild,v 1.1 2013/02/20 13:56:01 pinkbyte Exp $ + +EAPI=5 + +inherit base eutils flag-o-matic toolchain-funcs + +DESCRIPTION="A simple TCP/IP packet repeater" +HOMEPAGE="http://www.gcd.org/sengoku/stone/" +SRC_URI="http://www.gcd.org/sengoku/stone/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="ssl" + +DEPEND="ssl? ( dev-libs/openssl )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}-2.3d-2.3.2.7" + +PATCHES=( "${FILESDIR}/${P}-makefile.patch" ) # bug #337879 + +src_prepare() { + tc-export CC + append-cflags "-D_GNU_SOURCE" + + base_src_prepare +} + +src_compile() { + local myargs + if use ssl ; then + myargs="SSL=/usr linux-ssl" + else + myargs="linux" + fi + emake ${myargs} +} + +src_install() { + dobin stone + dodoc README* +} |