--- a/components/libnet/Makefile Wed Dec 14 10:48:32 2011 -0800
+++ b/components/libnet/Makefile Thu Dec 15 06:47:50 2011 -0800
@@ -28,7 +28,7 @@
COMPONENT_NAME= libnet
COMPONENT_VERSION= 1.1.2.1
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
-COMPONENT_PROJECT_URL= http://www.packetfactory.net/libnet/
+COMPONENT_PROJECT_URL= http://packetfactory.openwall.net/projects/libnet/
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_HASH= sha1:9dca91ee0f19b1b9e5e60baaedb9bc44a30a1fc7
COMPONENT_ARCHIVE_URL= http://www.packetfactory.net/libnet/dist/deprecated/$(COMPONENT_ARCHIVE)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/libnet/patches/libnet-types.h.patch Thu Dec 15 06:47:50 2011 -0800
@@ -0,0 +1,12 @@
+--- libnet-1.1.2.1/include/libnet/libnet-types.h.orig Wed Dec 14 08:56:37 2011
++++ libnet-1.1.2.1/include/libnet/libnet-types.h Wed Dec 14 10:39:57 2011
[email protected]@ -33,7 +33,8 @@
+ #define __LIBNET_TYPES_H
+
+ /* Solaris has messed up POSIX nomenclature for these */
+-#if (__sun__ && __svr4__)
++#ifndef __BIT_TYPES_DEFINED__
++#define __BIT_TYPES_DEFINED__
+ typedef uint8_t u_int8_t;
+ typedef uint16_t u_int16_t;
+ typedef uint32_t u_int32_t;