summaryrefslogtreecommitdiff
path: root/package/libdnet
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/libdnet
Initial import
Diffstat (limited to 'package/libdnet')
-rw-r--r--package/libdnet/Config.in9
-rw-r--r--package/libdnet/Makefile30
-rw-r--r--package/libdnet/ipkg/libdnet.control4
-rw-r--r--package/libdnet/patches/libdnet-1.10-dnet_config.patch23
4 files changed, 66 insertions, 0 deletions
diff --git a/package/libdnet/Config.in b/package/libdnet/Config.in
new file mode 100644
index 000000000..bef486d2d
--- /dev/null
+++ b/package/libdnet/Config.in
@@ -0,0 +1,9 @@
+config ADK_PACKAGE_LIBDNET
+ prompt "libdnet........................... Low-level network library"
+ tristate
+ default n
+ help
+ simplified, portable interface to several low-level networking routines
+
+ http://sourceforge.net/projects/libdnet/
+
diff --git a/package/libdnet/Makefile b/package/libdnet/Makefile
new file mode 100644
index 000000000..8b25414bb
--- /dev/null
+++ b/package/libdnet/Makefile
@@ -0,0 +1,30 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= libdnet
+PKG_VERSION:= 1.10
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 416b765e9d9961501ac85e9a366fd219
+MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=$(PKG_NAME)/}
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LIBDNET,libdnet,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+CONFIGURE_STYLE= gnu
+CONFIGURE_ENV+= ac_cv_dnet_bsd_bpf=no
+CONFIGURE_ARGS+= --without-check
+BUILD_STYLE= auto
+INSTALL_STYLE= auto
+
+post-install:
+ $(INSTALL_DIR) $(IDIR_LIBDNET)/usr/lib
+ $(INSTALL_DIR) $(IDIR_LIBDNET)/usr/sbin
+ $(CP) $(WRKINST)/usr/lib/libdnet.so.* $(IDIR_LIBDNET)/usr/lib/
+ $(INSTALL_BIN) $(WRKINST)/usr/sbin/dnet $(IDIR_LIBDNET)/usr/sbin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libdnet/ipkg/libdnet.control b/package/libdnet/ipkg/libdnet.control
new file mode 100644
index 000000000..cb7c6ac67
--- /dev/null
+++ b/package/libdnet/ipkg/libdnet.control
@@ -0,0 +1,4 @@
+Package: libdnet
+Priority: optional
+Section: libs
+Description: a low-level networking library
diff --git a/package/libdnet/patches/libdnet-1.10-dnet_config.patch b/package/libdnet/patches/libdnet-1.10-dnet_config.patch
new file mode 100644
index 000000000..005ac3305
--- /dev/null
+++ b/package/libdnet/patches/libdnet-1.10-dnet_config.patch
@@ -0,0 +1,23 @@
+--- libdnet-1.10/dnet-config.in.orig 2001-10-19 03:29:00.000000000 +0200
++++ libdnet-1.10/dnet-config.in 2005-09-20 09:32:53.000000000 +0200
+@@ -45,10 +45,18 @@
+ done
+
+ if test "$echo_cflags" = "yes"; then
+- echo -I@includedir@
++ includes=
++ if test "@includedir@" != "/usr/include" ; then
++ includes=-I@includedir@
++ fi
++ echo $includes
+ fi
+
+ if test "$echo_libs" = "yes"; then
+- echo -L@libdir@ -ldnet @LIBS@
++ libs=
++ if test "@libdir@" != "/usr/lib" ; then
++ libs=-I@libdir@
++ fi
++ echo $libs -ldnet @LIBS@
+ fi
+