rpms/driftnet/F-8 .cvsignore, 1.2, 1.3 driftnet-0.1.6-no-makedepend.patch, 1.2, 1.3 driftnet-dont-use-tmpnam.patch, 1.1, 1.2 driftnet.spec, 1.6, 1.7 sources, 1.2, 1.3
Paul Wouters (pwouters)
fedora-extras-commits at redhat.com
Thu Nov 29 19:22:37 UTC 2007
- Previous message: rpms/bouml/F-7 .cvsignore, 1.11, 1.12 bouml.spec, 1.12, 1.13 sources, 1.11, 1.12
- Next message: rpms/evolution/F-8 evolution-2.12.2-auto-contacts.patch, NONE, 1.1 evolution.spec, 1.303, 1.304
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: pwouters
Update of /cvs/extras/rpms/driftnet/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32553
Modified Files:
.cvsignore driftnet-0.1.6-no-makedepend.patch
driftnet-dont-use-tmpnam.patch driftnet.spec sources
Log Message:
* Thu Nov 29 2007 Paul Wouters <paul at xelerance.com> - 0.1.6-15.20040426cvs
- ported up from devel pacakge
- based on cvs snapshow
- Fixes not capturing on x86_64 and the 1 pixel window popup.
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/driftnet/F-8/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- .cvsignore 3 Apr 2006 12:15:00 -0000 1.2
+++ .cvsignore 29 Nov 2007 19:22:02 -0000 1.3
@@ -1 +1,2 @@
driftnet-0.1.6.tar.gz
+driftnet-0.1.6-20040426cvs.tar.gz
driftnet-0.1.6-no-makedepend.patch:
Index: driftnet-0.1.6-no-makedepend.patch
===================================================================
RCS file: /cvs/extras/rpms/driftnet/F-8/driftnet-0.1.6-no-makedepend.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- driftnet-0.1.6-no-makedepend.patch 3 Apr 2006 13:04:44 -0000 1.2
+++ driftnet-0.1.6-no-makedepend.patch 29 Nov 2007 19:22:02 -0000 1.3
@@ -1,51 +1,11 @@
-diff -urN driftnet-0.1.6.old/endian.c driftnet-0.1.6/endian.c
---- driftnet-0.1.6.old/endian.c 2002-07-09 20:26:41.000000000 +0100
-+++ driftnet-0.1.6/endian.c 1970-01-01 01:00:00.000000000 +0100
-@@ -1,37 +0,0 @@
--/*
-- * endian.c:
-- * Determine platform endianness.
-- *
-- * Copyright (c) 2002 . All rights reserved.
-- * Email: chris at ex-parrot.com; WWW: http://www.ex-parrot.com/~chris/
-- *
-- */
--
--static const char rcsid[] = "$Id$";
--
--#include <stdio.h>
--#ifdef USE_SYS_TYPES_H
--# include <sys/types.h> /* Solaris etc. */
--#else
--# include <stdint.h> /* C99 standard. */
--#endif
--
--int main(void) {
--#if defined(LITTLE_ENDIAN) || defined(_LITTLE_ENDIAN)
-- printf("-DDRIFTNET_LITTLE_ENDIAN\n");
-- return 0;
--#elif defined(BIG_ENDIAN) || defined(_BIG_ENDIAN)
-- printf("-DDRIFTNET_BIG_ENDIAN\n");
-- return 0;
--#else
-- uint32_t a = 0;
-- *((uint8_t*)&a) = 0xff;
-- if (a == 0xff000000)
-- printf("-DDRIFTNET_BIG_ENDIAN\n");
-- else if (a == 0x000000ff)
-- printf("-DDRIFTNET_LITTLE_ENDIAN\n");
-- else
-- return -1; /* don't know. */
--#endif /* endianness test */
-- return 0;
--}
diff -urN driftnet-0.1.6.old/img.h driftnet-0.1.6/img.h
--- driftnet-0.1.6.old/img.h 2002-07-09 20:26:41.000000000 +0100
-+++ driftnet-0.1.6/img.h 2006-04-03 13:05:04.000000000 +0100
-@@ -21,12 +21,13 @@
- #endif
++++ driftnet-0.1.6/img.h 2007-10-22 17:13:58.000000000 -0400
+@@ -22,13 +22,13 @@
#include <stdio.h>
+
+-#include "endianness.h"
+#include <glib.h>
typedef uint8_t chan;
@@ -57,7 +17,7 @@
# define PEL(r, g, b) ((pel)((chan)(r) | ((chan)(g) << 8) | ((chan)(b) << 16)))
# define PELA(r, g, b, a) ((pel)((chan)(r) | ((chan)(g) << 8) | ((chan)(b) << 16) | ((chan)(a) << 24)))
-@@ -34,7 +35,7 @@
+@@ -36,7 +36,7 @@
# define GETG(p) ((chan)(((p) & (pel)0x0000ff00) >> 8))
# define GETB(p) ((chan)(((p) & (pel)0x00ff0000) >> 16))
# define GETA(p) ((chan)(((p) & (pel)0xff000000) >> 24))
@@ -65,20 +25,11 @@
+#elif (G_BYTE_ORDER == G_BIG_ENDIAN)
# define PEL(r, g, b) ((pel)(((chan)(r) << 24) | ((chan)(g) << 16) | ((chan)(b) << 8)))
# define PELA(r, g, b, a) ((pel)(((chan)(r) << 24) | ((chan)(g) << 16) | ((chan)(b) << 8) | ((chan)(a))))
-
+
diff -urN driftnet-0.1.6.old/Makefile driftnet-0.1.6/Makefile
--- driftnet-0.1.6.old/Makefile 2006-04-03 13:02:13.000000000 +0100
-+++ driftnet-0.1.6/Makefile 2006-04-03 13:06:00.000000000 +0100
-@@ -67,7 +67,7 @@
-
- SUBDIRS =
-
--TXTS = README TODO COPYING CHANGES CREDITS driftnet.1 driftnet.1.in endian.c
-+TXTS = README TODO COPYING CHANGES CREDITS driftnet.1 driftnet.1.in
- SRCS = audio.c mpeghdr.c gif.c img.c jpeg.c png.c driftnet.c image.c \
- display.c playaudio.c connection.c media.c
- HDRS = img.h driftnet.h mpeghdr.h
-@@ -77,41 +77,26 @@
++++ driftnet-0.1.6/Makefile 2007-10-21 22:33:35.000000000 -0400
+@@ -76,41 +76,25 @@
default: driftnet driftnet.1
@@ -89,22 +40,21 @@
driftnet.1: driftnet.1.in Makefile
( echo '.\" DO NOT EDIT THIS FILE-- edit driftnet.1.in instead' ; sed s/@@@VERSION@@@/$(VERSION)/ ) < driftnet.1.in > driftnet.1
--endianness: endian
-- ./endian > endianness
-+%.o: %.c Makefile
-+ $(CC) $(CFLAGS) -c -o $@ $<
-
+-endianness.h: endian
+- ./endian > endianness.h
+-
-endian: endian.c
- $(CC) $(CFLAGS) -o endian endian.c
-
--%.o: %.c Makefile endianness
-- $(CC) $(CFLAGS) `cat endianness` -c -o $@ $<
--
+-%.o: %.c Makefile endianness.h
++%.o: %.c Makefile
+ $(CC) $(CFLAGS) -c -o $@ $<
+
-clean: nodepend
-- rm -f *~ *.bak *.o core $(BINS) TAGS driftnet.1 endian endianness
+- rm -f *~ *.bak *.o core $(BINS) TAGS driftnet.1 endian endianness.h
+-
+clean:
+ rm -f *~ *.bak *.o core $(BINS) TAGS driftnet.1
-
tags:
etags *.c *.h
@@ -116,7 +66,7 @@
rm -rf driftnet-$(VERSION)
mv driftnet-$(VERSION).tar.gz ..
--depend: endianness
+-depend: endianness.h
- makedepend -- $(CFLAGS) `cat endianness` -- $(SRCS)
- touch depend
- rm -f Makefile.bak
driftnet-dont-use-tmpnam.patch:
Index: driftnet-dont-use-tmpnam.patch
===================================================================
RCS file: /cvs/extras/rpms/driftnet/F-8/driftnet-dont-use-tmpnam.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- driftnet-dont-use-tmpnam.patch 3 Apr 2006 12:15:00 -0000 1.1
+++ driftnet-dont-use-tmpnam.patch 29 Nov 2007 19:22:02 -0000 1.2
@@ -1,30 +1,21 @@
diff -urp driftnet-0.1.6.old/driftnet.c driftnet-0.1.6/driftnet.c
--- driftnet-0.1.6.old/driftnet.c 2002-07-09 20:26:41.000000000 +0100
+++ driftnet-0.1.6/driftnet.c 2005-12-13 16:52:04.000000000 +0000
-@@ -11,6 +11,8 @@ static const char rcsid[] = "$Id: driftn
-
- #undef NDEBUG
-
-+#include <glib.h>
-+
- #include <assert.h>
- #include <dirent.h>
- #include <errno.h>
@@ -585,10 +587,15 @@ int main(int argc, char *argv[]) {
} else {
/* need to make a temporary directory. */
for (;;) {
-- tmpdir = strdup(tmpnam(NULL));
+- tmpdir = strdup(tmpnam(NULL)); /* may generate a warning, but this is safe because we create a directory not a file */
- if (mkdir(tmpdir, 0700) == 0)
- break;
-- free(tmpdir);
+- xfree(tmpdir);
+ const char *tmp;
+ char *template;
+
+ tmp = g_get_tmp_dir();
+ template = g_build_filename(tmp, "drifnet-XXXXXX", NULL);
+ tmpdir = mkdtemp (template);
-+ g_free (template);
++ /* Paul: not sure why but this breaks tmpdir: g_free (template); */
+ if (tmpdir)
+ break;
}
Index: driftnet.spec
===================================================================
RCS file: /cvs/extras/rpms/driftnet/F-8/driftnet.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- driftnet.spec 24 Dec 2006 18:57:27 -0000 1.6
+++ driftnet.spec 29 Nov 2007 19:22:02 -0000 1.7
@@ -2,13 +2,13 @@
License: GPL
Group: Applications/Internet
Version: 0.1.6
-Release: 12
+Release: 15.20040426cvs%{?dist}
Summary: Network image sniffer
URL: http://www.ex-parrot.com/~chris/driftnet/
-Source0: http://www.ex-parrot.com/~chris/driftnet/driftnet-0.1.6.tar.gz
+Source0: driftnet-0.1.6-20040426cvs.tar.gz
Source1: %name-%{version}-pam.config
Source2: %name-%{version}-security.config
-Patch0: driftnet-gtk2-port.patch
+#Patch0: driftnet-gtk2-port.patch
Patch1: driftnet-dont-use-tmpnam.patch
Patch2: driftnet-0.1.6-no-makedepend.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -22,7 +22,7 @@
%prep
%setup -q
-%patch0 -p1 -b .gtk2
+#%patch0 -p1 -b .gtk2
%patch1 -p1 -b .tmpnam
%patch2 -p1 -b .makedep
@@ -55,6 +55,11 @@
rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Nov 29 2007 Paul Wouters <paul at xelerance.com> - 0.1.6-15.20040426cvs
+- ported up from devel pacakge
+- based on cvs snapshow
+- Fixes not capturing on x86_64 and the 1 pixel window popup.
+
* Sun Dec 24 2006 Jason L Tibbitts III <tibbs at math.uh.edu> - 0.1.6-12
- Rebuild with updated libpcap.
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/driftnet/F-8/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sources 3 Apr 2006 12:15:00 -0000 1.2
+++ sources 29 Nov 2007 19:22:02 -0000 1.3
@@ -1 +1,2 @@
8e11d77770452f97bb3c23f510489815 driftnet-0.1.6.tar.gz
+2aabf57ed798bc74a55e1333268c27fe driftnet-0.1.6-20040426cvs.tar.gz
- Previous message: rpms/bouml/F-7 .cvsignore, 1.11, 1.12 bouml.spec, 1.12, 1.13 sources, 1.11, 1.12
- Next message: rpms/evolution/F-8 evolution-2.12.2-auto-contacts.patch, NONE, 1.1 evolution.spec, 1.303, 1.304
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list