diff options
author | Jeroen Roovers <jer@gentoo.org> | 2009-11-01 22:41:58 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2009-11-01 22:41:58 +0000 |
commit | 7f61e658a1af8e9fa12b3762779def93ee24443d (patch) | |
tree | 6ea9c0291543265487c7a175c203309cbd887ec4 /net-misc/packETH | |
parent | Fix manifest (diff) | |
download | gentoo-2-7f61e658a1af8e9fa12b3762779def93ee24443d.tar.gz gentoo-2-7f61e658a1af8e9fa12b3762779def93ee24443d.tar.bz2 gentoo-2-7f61e658a1af8e9fa12b3762779def93ee24443d.zip |
Version bump thanks to DrChandra (bug #260381). Respect CC, CFLAGS, LDFLAGS, and point to proper pixmaps directory.
(Portage version: 2.2_rc48/cvs/Linux i686)
Diffstat (limited to 'net-misc/packETH')
-rw-r--r-- | net-misc/packETH/ChangeLog | 11 | ||||
-rw-r--r-- | net-misc/packETH/files/packETH-1.6.3-gentoo.patch | 25 | ||||
-rw-r--r-- | net-misc/packETH/files/packETH-1.6.3-pixmaps.patch | 11 | ||||
-rw-r--r-- | net-misc/packETH/packETH-1.6.3.ebuild | 37 |
4 files changed, 82 insertions, 2 deletions
diff --git a/net-misc/packETH/ChangeLog b/net-misc/packETH/ChangeLog index 479634c97ea7..113462920633 100644 --- a/net-misc/packETH/ChangeLog +++ b/net-misc/packETH/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/packETH -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/packETH/ChangeLog,v 1.4 2008/01/30 21:08:35 pva Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/packETH/ChangeLog,v 1.5 2009/11/01 22:41:57 jer Exp $ + +*packETH-1.6.3 (01 Nov 2009) + + 01 Nov 2009; Jeroen Roovers <jer@gentoo.org> +packETH-1.6.3.ebuild, + +files/packETH-1.6.3-gentoo.patch, +files/packETH-1.6.3-pixmaps.patch: + Version bump thanks to DrChandra (bug #260381). Respect CC, CFLAGS, + LDFLAGS, and point to proper pixmaps directory. 30 Jan 2008; <pva@gentoo.org> -packETH-1.3.ebuild, packETH-1.4.ebuild: Fixed missing gtk+ dependency, bug 205423, thank Evil Compile Person <bugs diff --git a/net-misc/packETH/files/packETH-1.6.3-gentoo.patch b/net-misc/packETH/files/packETH-1.6.3-gentoo.patch new file mode 100644 index 000000000000..cd336673e685 --- /dev/null +++ b/net-misc/packETH/files/packETH-1.6.3-gentoo.patch @@ -0,0 +1,25 @@ +--- packETH-1.6.3/Makefile.orig 2009-01-20 16:07:51.000000000 +0100 ++++ packETH-1.6.3/Makefile 2009-11-01 23:22:52.000000000 +0100 +@@ -22,17 +22,15 @@ + prefix = /usr + includedir = /usr/src/include + ++packages = gthread-2.0 gtk+-x11-2.0 ++ + INSTALL = /usr/bin/install -c + INSTALL_DATA = ${INSTALL} -m 644 + INSTALL_PREFIX = /usr + +-CC = gcc +-CPPFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include +-LDFLAGS = +-CFLAGS = -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations +-#LIBS = -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXi -lXext -lX11 -lm -lpthread -lgthread +-#LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lpthread -lgthread-2.0 +-LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lglib-2.0 -lpthread -lgthread-2.0 ++CPPFLAGS = $(shell pkg-config --cflags $(packages)) ++CFLAGS += -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations ++LIBS = $(shell pkg-config --libs $(packages)) + + SOURCES = \ + main.c \ diff --git a/net-misc/packETH/files/packETH-1.6.3-pixmaps.patch b/net-misc/packETH/files/packETH-1.6.3-pixmaps.patch new file mode 100644 index 000000000000..035755880ab8 --- /dev/null +++ b/net-misc/packETH/files/packETH-1.6.3-pixmaps.patch @@ -0,0 +1,11 @@ +--- packETH-1.6.3/interface.c.orig 2009-10-23 17:24:31.000000000 +0200 ++++ packETH-1.6.3/interface.c 2009-11-01 23:27:22.000000000 +0100 +@@ -914,6 +914,8 @@ + GtkWidget *label251; + GtkWidget *statusbar1; + ++ add_pixmap_directory ("/usr/share/pixmaps/packETH"); ++ + window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); + gtk_window_set_title (GTK_WINDOW (window1), _("PackETH - ethernet packet generator")); + gtk_window_set_position (GTK_WINDOW (window1), GTK_WIN_POS_CENTER); diff --git a/net-misc/packETH/packETH-1.6.3.ebuild b/net-misc/packETH/packETH-1.6.3.ebuild new file mode 100644 index 000000000000..e3a048dfc8f8 --- /dev/null +++ b/net-misc/packETH/packETH-1.6.3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/packETH/packETH-1.6.3.ebuild,v 1.1 2009/11/01 22:41:57 jer Exp $ + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="Packet generator tool for ethernet" +HOMEPAGE="http://packeth.sourceforge.net/" +SRC_URI="mirror://sourceforge/packeth/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="=x11-libs/gtk+-2*" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + epatch "${FILESDIR}"/${P}-pixmaps.patch +} + +src_compile() { + tc-export CC + default_src_compile +} + +src_install() { + insinto /usr/bin + dobin packETH || die + insinto /usr/share/pixmaps/packETH + doins pixmaps/* + dodoc ChangeLog README TODO +} |