[csw-devel] SF.net SVN: gar:[10084] csw/mgar/pkg
skayser at users.sourceforge.net
skayser at users.sourceforge.net
Thu Jun 3 17:25:31 CEST 2010
Revision: 10084
http://gar.svn.sourceforge.net/gar/?rev=10084&view=rev
Author: skayser
Date: 2010-06-03 15:25:31 +0000 (Thu, 03 Jun 2010)
Log Message:
-----------
bittwist: initial commit
Added Paths:
-----------
csw/mgar/pkg/bittwist/
csw/mgar/pkg/bittwist/branches/
csw/mgar/pkg/bittwist/tags/
csw/mgar/pkg/bittwist/trunk/
csw/mgar/pkg/bittwist/trunk/Makefile
csw/mgar/pkg/bittwist/trunk/checksums
csw/mgar/pkg/bittwist/trunk/files/
csw/mgar/pkg/bittwist/trunk/files/0001-Makefile-introduce-CPPFLAGS-LDFLAGS-DESTDIR-make-var.patch
Property changes on: csw/mgar/pkg/bittwist/trunk
___________________________________________________________________
Added: svn:ignore
+ cookies
download
work
Added: svn:externals
+ gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2
Added: csw/mgar/pkg/bittwist/trunk/Makefile
===================================================================
--- csw/mgar/pkg/bittwist/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/bittwist/trunk/Makefile 2010-06-03 15:25:31 UTC (rev 10084)
@@ -0,0 +1,28 @@
+# TODO
+# ! Doesn't compile as it requires ifaddrs.h which isn't available on Sol 10
+# http://www.gnu.org/software/gnulib/manual/html_node/ifaddrs_002eh.html
+GARNAME = bittwist
+GARVERSION = 1.1
+CATEGORIES = apps
+
+DESCRIPTION = Libpcap-based ethernet packet generator
+define BLURB
+ With Bit-Twist, you can now regenerate your captured traffic onto a live
+ network! Packets are generated from tcpdump trace file (.pcap file).
+ Bit-Twist also comes with a comprehensive trace file editor to allow you
+ to change the contents of a trace file.
+endef
+
+VENDOR_URL = http://bittwist.sf.net
+MASTER_SITES = $(SF_MIRRORS)
+DISTFILES = $(GARNAME)-linux-$(GARVERSION).tar.gz
+UFILES_REGEX = $(GARNAME)-linux-(\d+(?:\.\d+)*).tar.gz
+
+PATCHFILES += 0001-Makefile-introduce-CPPFLAGS-LDFLAGS-DESTDIR-make-var.patch
+
+CONFIGURE_SCRIPTS =
+TEST_SCRIPTS =
+
+BUILD_ARGS = INSTALL=ginstall
+
+include gar/category.mk
Property changes on: csw/mgar/pkg/bittwist/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: csw/mgar/pkg/bittwist/trunk/checksums
===================================================================
--- csw/mgar/pkg/bittwist/trunk/checksums (rev 0)
+++ csw/mgar/pkg/bittwist/trunk/checksums 2010-06-03 15:25:31 UTC (rev 10084)
@@ -0,0 +1,2 @@
+1a636d0aca0649a6c37f03260eadb7de 0001-Makefile-introduce-CPPFLAGS-LDFLAGS-DESTDIR-make-var.patch
+d79f0181c5b1f14707542674fb747fb7 bittwist-linux-1.1.tar.gz
Added: csw/mgar/pkg/bittwist/trunk/files/0001-Makefile-introduce-CPPFLAGS-LDFLAGS-DESTDIR-make-var.patch
===================================================================
--- csw/mgar/pkg/bittwist/trunk/files/0001-Makefile-introduce-CPPFLAGS-LDFLAGS-DESTDIR-make-var.patch (rev 0)
+++ csw/mgar/pkg/bittwist/trunk/files/0001-Makefile-introduce-CPPFLAGS-LDFLAGS-DESTDIR-make-var.patch 2010-06-03 15:25:31 UTC (rev 10084)
@@ -0,0 +1,73 @@
+From a6dfb7252a1f9bac034817c517643ab689831261 Mon Sep 17 00:00:00 2001
+From: Sebastian Kayser <skayser at opencsw.org>
+Date: Thu, 3 Jun 2010 17:14:48 +0200
+Subject: [PATCH] Makefile: introduce CPPFLAGS/LDFLAGS/DESTDIR, make variables overridable
+
+This patch makes the Makefile more flexible when it comes to a different
+environment where compiler or linker flags like CPPFLAGS/LDFLAGS might be
+preset and where the installation shouldn't be located under /usr.
+---
+ Makefile | 26 ++++++++++++++------------
+ 1 files changed, 14 insertions(+), 12 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 6cbdf49..7b093d1 100755
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,6 @@
+ SHELL = /bin/sh
+
+-prefix = /usr
++prefix ?= /usr
+ exec_prefix = ${prefix}
+ bindir = ${exec_prefix}/bin
+ mandir = ${prefix}/share/man/man1
+@@ -9,6 +9,8 @@ CC ?= gcc
+ DEBUG = -g
+ CFLAGS ?= -O2
+ CFLAGS += $(DEBUG)
++CPPFLAGS ?= -I/usr/local/include
++LDFLAGS ?= -L/usr/local/lib -lpcap
+ SRC = src
+ DOC = doc
+
+@@ -19,25 +21,25 @@ INSTALL_DATA = ${INSTALL} -m 644
+ all: bittwist bittwistb bittwiste
+
+ bittwist:
+- $(CC) $(CFLAGS) $(SRC)/bittwist.c -o $(SRC)/bittwist -I/usr/local/include -L/usr/local/lib -lpcap
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(SRC)/bittwist.c -o $(SRC)/bittwist $(LDFLAGS)
+
+ bittwistb:
+- $(CC) $(CFLAGS) $(SRC)/bittwistb.c -o $(SRC)/bittwistb -I/usr/local/include -L/usr/local/lib -lpcap
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(SRC)/bittwistb.c -o $(SRC)/bittwistb $(LDFLAGS)
+
+ bittwiste:
+- $(CC) $(CFLAGS) $(SRC)/bittwiste.c -o $(SRC)/bittwiste -I/usr/local/include -L/usr/local/lib -lpcap
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(SRC)/bittwiste.c -o $(SRC)/bittwiste $(LDFLAGS)
+
+ clean:
+ rm -f $(SRC)/bittwist $(SRC)/bittwistb $(SRC)/bittwiste
+
+ install:
+- mkdir -p $(bindir)
+- chmod 755 $(bindir)
+- $(INSTALL_PROGRAM) $(SRC)/bittwist $(SRC)/bittwistb $(SRC)/bittwiste $(bindir)
+- mkdir -p $(mandir)
+- chmod 755 $(mandir)
+- $(INSTALL_DATA) $(DOC)/bittwist.1 $(DOC)/bittwistb.1 $(DOC)/bittwiste.1 $(mandir)
++ mkdir -p $(DESTDIR)$(bindir)
++ chmod 755 $(DESTDIR)$(bindir)
++ $(INSTALL_PROGRAM) $(SRC)/bittwist $(SRC)/bittwistb $(SRC)/bittwiste $(DESTDIR)$(bindir)
++ mkdir -p $(DESTDIR)$(mandir)
++ chmod 755 $(DESTDIR)$(mandir)
++ $(INSTALL_DATA) $(DOC)/bittwist.1 $(DOC)/bittwistb.1 $(DOC)/bittwiste.1 $(DESTDIR)$(mandir)
+
+ uninstall:
+- rm -f $(bindir)/bittwist $(bindir)/bittwistb $(bindir)/bittwiste
+- rm -f $(mandir)/bittwist.1 $(mandir)/bittwistb.1 $(mandir)/bittwiste.1
++ rm -f $(addprefix $(DESTDIR)$(bindir)/,bittwist bittwistb bittwiste)
++ rm -f $(addprefix $(DESTDIR)$(mandir)/,bittwist.1 bittwistb.1 bittwiste.1)
+--
+1.7.1
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list