summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
commit1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch)
tree0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-networking/recipes-connectivity
downloadmeta-openembedded-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-networking/recipes-connectivity')
-rw-r--r--meta-networking/recipes-connectivity/barnyard2/barnyard2-1.8/barnyard2-cross-fix.patch24
-rw-r--r--meta-networking/recipes-connectivity/barnyard2/barnyard2_1.8.bb18
-rw-r--r--meta-networking/recipes-connectivity/crda/crda_1.1.3.bb38
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/disable-pre-ANSI-compilers.patch16
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/fix-disable-ipv6.patch60
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch29
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.8-0003-wchar.patch14
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.9-PATH_PROCNET_DEV.patch26
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/remove-gets.patch21
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rexec.xinetd.inetutils20
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rlogin.xinetd.inetutils23
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rsh.xinetd.inetutils21
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/telnet.xinetd.inetutils13
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/tftpd.xinetd.inetutils19
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/version.patch17
-rw-r--r--meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb172
-rw-r--r--meta-networking/recipes-connectivity/libdnet/libdnet_1.12.bb14
-rw-r--r--meta-networking/recipes-connectivity/sethdlc/sethdlc.bb30
-rw-r--r--meta-networking/recipes-connectivity/snort/files/0001-libpcap-search-sysroot-for-headers.patch31
-rw-r--r--meta-networking/recipes-connectivity/snort/files/disable-dap-address-space-id.patch52
-rw-r--r--meta-networking/recipes-connectivity/snort/files/disable-inaddr-none.patch75
-rw-r--r--meta-networking/recipes-connectivity/snort/files/snort.init109
-rw-r--r--meta-networking/recipes-connectivity/snort/snort_2.9.4.6.bb73
-rw-r--r--meta-networking/recipes-connectivity/vlan/vlan_1.9.bb25
-rw-r--r--meta-networking/recipes-connectivity/vpnc/vpnc/default.conf19
-rw-r--r--meta-networking/recipes-connectivity/vpnc/vpnc/long-help168
-rw-r--r--meta-networking/recipes-connectivity/vpnc/vpnc/makeman.patch11
-rw-r--r--meta-networking/recipes-connectivity/vpnc/vpnc/vpnc-install.patch35
-rw-r--r--meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb30
29 files changed, 1203 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/barnyard2/barnyard2-1.8/barnyard2-cross-fix.patch b/meta-networking/recipes-connectivity/barnyard2/barnyard2-1.8/barnyard2-cross-fix.patch
new file mode 100644
index 0000000000..7b5a60c2c5
--- /dev/null
+++ b/meta-networking/recipes-connectivity/barnyard2/barnyard2-1.8/barnyard2-cross-fix.patch
@@ -0,0 +1,24 @@
1Upstream-Status: Pending
2
3Index: barnyard2-1.8/configure.in
4===================================================================
5--- barnyard2-1.8.orig/configure.in 2010-08-03 15:12:06.000000000 +0400
6+++ barnyard2-1.8/configure.in 2010-08-03 15:13:46.000000000 +0400
7@@ -73,7 +73,7 @@
8 # libpcap doesn't even LOOK at the timeout you give it under Linux
9 AC_DEFINE([PCAP_TIMEOUT_IGNORED],[1],[Define if pcap timeout is ignored])
10 AC_SUBST(extra_incl)
11- extra_incl="-I/usr/include/pcap"
12+ extra_incl="-I=/usr/include/pcap"
13 ;;
14 *-hpux10*|*-hpux11*)
15 AC_DEFINE([HPUX],[1],[Define if HP-UX 10 or 11])
16@@ -230,7 +230,7 @@
17 # In case INADDR_NONE is not defined (like on Solaris)
18 have_inaddr_none="no"
19 AC_MSG_CHECKING([for INADDR_NONE])
20-AC_RUN_IFELSE(
21+AC_COMPILE_IFELSE(
22 [AC_LANG_PROGRAM(
23 [[
24 #include <sys/types.h>
diff --git a/meta-networking/recipes-connectivity/barnyard2/barnyard2_1.8.bb b/meta-networking/recipes-connectivity/barnyard2/barnyard2_1.8.bb
new file mode 100644
index 0000000000..14acdac66e
--- /dev/null
+++ b/meta-networking/recipes-connectivity/barnyard2/barnyard2_1.8.bb
@@ -0,0 +1,18 @@
1DESCRIPTION = "Barnyard2 is a fork of the original barnyard project, designed specifically for Snort's new unified2 file format"
2HOMEPAGE = "http://www.securixlive.com/barnyard2/"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
5DEPENDS = "libpcap"
6
7SRC_URI = " \
8 http://www.securixlive.com/download/barnyard2/${BP}.tar.gz \
9 file://barnyard2-cross-fix.patch \
10 "
11SRC_URI[md5sum] = "72fc6c490db6ea6a0f46c27d24998067"
12SRC_URI[sha256sum] = "1abfe6530d721debd98921421722b02c844c289564730b1e85729e4915b2bb7a"
13
14inherit autotools pkgconfig
15
16EXTRA_OECONF = "--enable-prelude --enable-gre --without-mysql"
17
18CONFFILES_${PN} = "${sysconfdir}/barnyard2.conf"
diff --git a/meta-networking/recipes-connectivity/crda/crda_1.1.3.bb b/meta-networking/recipes-connectivity/crda/crda_1.1.3.bb
new file mode 100644
index 0000000000..0bb899860b
--- /dev/null
+++ b/meta-networking/recipes-connectivity/crda/crda_1.1.3.bb
@@ -0,0 +1,38 @@
1SUMMARY = "Wireless Central Regulatory Domain Agent"
2HOMEPAGE = "http://wireless.kernel.org/en/developers/Regulatory/CRDA"
3
4LICENSE = "ISC"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=07c4f6dea3845b02a18dc00c8c87699c"
6
7
8DEPENDS = "python-m2crypto-native python-native libgcrypt libnl"
9
10SRC_URI = "http://wireless.kernel.org/download/crda/${BP}.tar.bz2;name=crda \
11 http://wireless.kernel.org/download/wireless-regdb/regulatory.bins/2013.01.11-regulatory.bin;name=bin \
12"
13SRC_URI[crda.md5sum] = "29579185e06a75675507527243d28e5c"
14SRC_URI[crda.sha256sum] = "aa8a7fe92f0765986c421a5b6768a185375ac210393df0605ee132f6754825f0"
15SRC_URI[bin.md5sum] = "e0c8a5ca63fb8bf803213f9a0c90b50b"
16SRC_URI[bin.sha256sum] = "b1ee0b20c123c612dfdb6851ab42c01666f66fb583e0e590942f19bb54cf84be"
17
18inherit python-dir pythonnative
19# Recursive make problem
20EXTRA_OEMAKE = "MAKEFLAGS= DESTDIR=${D}"
21
22do_compile() {
23 oe_runmake all_noverify
24}
25
26do_install() {
27 oe_runmake SBINDIR=${sbindir}/ install
28
29 install -d ${D}${libdir}/crda/
30
31 install -m 0644 ${WORKDIR}/2013.01.11-regulatory.bin ${D}${libdir}/crda/regulatory.bin
32}
33
34
35RDEPENDS_${PN} = "udev"
36FILES_${PN} += "${libdir}crda/regulatory.bin \
37 ${base_libdir}/udev/rules.d/85-regulatory.rules \
38"
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/disable-pre-ANSI-compilers.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/disable-pre-ANSI-compilers.patch
new file mode 100644
index 0000000000..a7fa61c798
--- /dev/null
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/disable-pre-ANSI-compilers.patch
@@ -0,0 +1,16 @@
1Upstream-Status: Pending
2
3disable pre-ANSI compilers
4
5Signed-off-by: Chunrong Guo <b40290@freescale.com>
6--- inetutils-1.9.1/configure.ac 2012-01-06 22:05:05.000000000 +0800
7+++ inetutils-1.9.1/configure.ac 2012-11-12 14:05:30.756957063 +0800
8@@ -586,7 +586,7 @@
9 #include <arpa/tftp.h>])
10
11 ### Checks for compiler characteristics.
12-AM_C_PROTOTYPES dnl FIXME: Does inetutils even compile on pre-ANSI compilers?
13+#AM_C_PROTOTYPES dnl FIXME: Does inetutils even compile on pre-ANSI compilers?
14 AC_C_CONST
15
16 dnl See if `weak refs' are possible; these make it possible (with shared
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/fix-disable-ipv6.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/fix-disable-ipv6.patch
new file mode 100644
index 0000000000..bd3ae476bd
--- /dev/null
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/fix-disable-ipv6.patch
@@ -0,0 +1,60 @@
1Upstream: http://www.mail-archive.com/bug-inetutils@gnu.org/msg02103.html
2
3Upstream-Status: Pending
4
5diff -ur inetutils-1.8.orig/ping/ping_common.h inetutils-1.8/ping/ping_common.h
6--- inetutils-1.8.orig/ping/ping_common.h 2010-05-15 20:55:47.000000000 +0930
7+++ inetutils-1.8/ping/ping_common.h 2010-12-01 12:19:08.000000000 +1030
8@@ -17,10 +17,14 @@
9 You should have received a copy of the GNU General Public License
10 along with this program. If not, see `http://www.gnu.org/licenses/'. */
11
12+#include <config.h>
13+
14 #include <netinet/in_systm.h>
15 #include <netinet/in.h>
16 #include <netinet/ip.h>
17+#ifdef HAVE_IPV6
18 #include <netinet/icmp6.h>
19+#endif
20 #include <icmp.h>
21 #include <error.h>
22 #include <progname.h>
23@@ -66,13 +70,19 @@
24 (t).tv_usec = ((i)%PING_PRECISION)*(1000000/PING_PRECISION) ;\
25 } while (0)
26
27+#ifdef HAVE_IPV6
28 /* Not sure about this step*/
29 #define _PING_BUFLEN(p, USE_IPV6) ((USE_IPV6)? ((p)->ping_datalen + sizeof (struct icmp6_hdr)) : \
30 ((p)->ping_datalen + sizeof (icmphdr_t)))
31+#else
32+#define _PING_BUFLEN(p, USE_IPV6) ((p)->ping_datalen + sizeof (icmphdr_t))
33+#endif
34
35+#ifdef HAVE_IPV6
36 typedef int (*ping_efp6) (int code, void *closure, struct sockaddr_in6 * dest,
37 struct sockaddr_in6 * from, struct icmp6_hdr * icmp,
38 int datalen);
39+#endif
40
41 typedef int (*ping_efp) (int code,
42 void *closure,
43@@ -81,13 +91,17 @@
44 struct ip * ip, icmphdr_t * icmp, int datalen);
45
46 union event {
47+#ifdef HAVE_IPV6
48 ping_efp6 handler6;
49+#endif
50 ping_efp handler;
51 };
52
53 union ping_address {
54 struct sockaddr_in ping_sockaddr;
55+#ifdef HAVE_IPV6
56 struct sockaddr_in6 ping_sockaddr6;
57+#endif
58 };
59
60 typedef struct ping_data PING;
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch
new file mode 100644
index 0000000000..3da4e9f55a
--- /dev/null
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch
@@ -0,0 +1,29 @@
1From 552a7d64ad4a7188a9b7cd89933ae7caf7ebfe90 Mon Sep 17 00:00:00 2001
2From: Mike Frysinger <vapier at gentoo.org>
3Date: Thu, 18 Nov 2010 16:59:14 -0500
4Subject: [PATCH gnulib] printf-parse: pull in features.h for __GLIBC__
5
6Upstream-Status: Pending
7
8Signed-off-by: Mike Frysinger <vapier at gentoo.org>
9---
10 lib/printf-parse.h | 3 +++
11 1 files changed, 3 insertions(+), 0 deletions(-)
12
13diff --git a/lib/printf-parse.h b/lib/printf-parse.h
14index 67a4a2a..3bd6152 100644
15--- a/lib/printf-parse.h
16+++ b/lib/printf-parse.h
17@@ -25,6 +25,9 @@
18
19 #include "printf-args.h"
20
21+#ifdef HAVE_FEATURES_H
22+# include <features.h> /* for __GLIBC__ */
23+#endif
24
25 /* Flags */
26 #define FLAG_GROUP 1 /* ' flag */
27--
281.7.3.2
29
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.8-0003-wchar.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.8-0003-wchar.patch
new file mode 100644
index 0000000000..b13bb9229f
--- /dev/null
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.8-0003-wchar.patch
@@ -0,0 +1,14 @@
1Upstream-Status: Pending
2
3--- inetutils-1.8/lib/wchar.in.h
4+++ inetutils-1.8/lib/wchar.in.h
5@@ -70,6 +70,9 @@
6 /* The include_next requires a split double-inclusion guard. */
7 #if @HAVE_WCHAR_H@
8 # @INCLUDE_NEXT@ @NEXT_WCHAR_H@
9+#else
10+# include <stddef.h>
11+# define MB_CUR_MAX 1
12 #endif
13
14 #undef _GL_ALREADY_INCLUDING_WCHAR_H
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.9-PATH_PROCNET_DEV.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.9-PATH_PROCNET_DEV.patch
new file mode 100644
index 0000000000..2592989a90
--- /dev/null
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/inetutils-1.9-PATH_PROCNET_DEV.patch
@@ -0,0 +1,26 @@
1inetutils: define PATH_PROCNET_DEV if not already defined
2
3this prevents the following compilation error :
4system/linux.c:401:15: error: 'PATH_PROCNET_DEV' undeclared (first use in this function)
5
6this patch comes from :
7 http://repository.timesys.com/buildsources/i/inetutils/inetutils-1.9/
8
9Upstream-Status: Inappropriate [not author]
10
11Signed-of-by: Eric Bénard <eric@eukrea.com>
12---
13diff -Naur inetutils-1.9.orig/ifconfig/system/linux.c inetutils-1.9/ifconfig/system/linux.c
14--- inetutils-1.9.orig/ifconfig/system/linux.c 2012-01-04 16:31:36.000000000 -0500
15+++ inetutils-1.9/ifconfig/system/linux.c 2012-01-04 16:40:53.000000000 -0500
16@@ -49,6 +49,10 @@
17 #include "../ifconfig.h"
18
19
20+#ifndef PATH_PROCNET_DEV
21+ #define PATH_PROCNET_DEV "/proc/net/dev"
22+#endif
23+
24 /* ARPHRD stuff. */
25
26 static void
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/remove-gets.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/remove-gets.patch
new file mode 100644
index 0000000000..61d16e3a74
--- /dev/null
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/remove-gets.patch
@@ -0,0 +1,21 @@
1Uptream-Status: Pending
2
3remove gets function
4
5Signed-off-by: Chunrong Guo <b40290@freescale.com>
6--- inetutils-1.9.1.org/lib/stdio.in.h 2012-01-06 22:11:13.000000000 +0800
7+++ inetutils-1.9.1/lib/stdio.in.h 2012-11-12 14:30:49.044958001 +0800
8@@ -715,9 +715,13 @@
9 /* It is very rare that the developer ever has full control of stdin,
10 so any use of gets warrants an unconditional warning. Assume it is
11 always declared, since it is required by C89. */
12+#if defined gets
13+#undef gets
14 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
15 #endif
16
17+#endif
18+
19
20 #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
21 struct obstack;
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rexec.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rexec.xinetd.inetutils
new file mode 100644
index 0000000000..80aed36ffb
--- /dev/null
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rexec.xinetd.inetutils
@@ -0,0 +1,20 @@
1# default: off
2# description:
3# Rexecd is the server for the rexec program. The server provides remote
4# execution facilities with authentication based on user names and
5# passwords.
6#
7service exec
8{
9 socket_type = stream
10 protocol = tcp
11 flags = NAMEINARGS
12 wait = no
13 user = root
14 group = root
15 log_on_success += USERID
16 log_on_failure += USERID
17 server = /usr/bin/tcpd
18 server_args = /usr/sbin/in.rexecd
19 disable = yes
20}
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rlogin.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rlogin.xinetd.inetutils
new file mode 100644
index 0000000000..00dbf935bb
--- /dev/null
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rlogin.xinetd.inetutils
@@ -0,0 +1,23 @@
1# default: off
2# description:
3# Rlogind is a server for the rlogin program. The server provides remote
4# execution with authentication based on privileged port numbers from trusted
5# host
6#
7service login
8{
9 socket_type = stream
10 protocol = tcp
11 flags = NAMEINARGS
12 wait = no
13 user = root
14 group = root
15 log_on_success += USERID
16 log_on_failure += USERID
17 server = /usr/bin/tcpd
18 server_args = /usr/sbin/in.rlogind -a
19 disable = yes
20}
21
22
23
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rsh.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rsh.xinetd.inetutils
new file mode 100644
index 0000000000..ad59b62076
--- /dev/null
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/rsh.xinetd.inetutils
@@ -0,0 +1,21 @@
1# default: off
2# description:
3# The rshd server is a server for the rcmd(3) routine and,
4# consequently, for the rsh(1) program. The server provides
5# remote execution facilities with authentication based on
6# privileged port numbers from trusted hosts.
7#
8service shell
9{
10 socket_type = stream
11 protocol = tcp
12 flags = NAMEINARGS
13 wait = no
14 user = root
15 group = root
16 log_on_success += USERID
17 log_on_failure += USERID
18 server = /usr/bin/tcpd
19 server_args = /usr/sbin/in.rshd -aL
20 disable = yes
21}
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/telnet.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/telnet.xinetd.inetutils
new file mode 100644
index 0000000000..2a2a12e3ad
--- /dev/null
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/telnet.xinetd.inetutils
@@ -0,0 +1,13 @@
1# default: on
2# description: The telnet server serves telnet sessions; it uses \
3# unencrypted username/password pairs for authentication.
4service telnet
5{
6 disable = no
7 flags = REUSE
8 socket_type = stream
9 wait = no
10 user = root
11 server = /usr/sbin/in.telnetd
12 log_on_failure += USERID
13}
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/tftpd.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/tftpd.xinetd.inetutils
new file mode 100644
index 0000000000..f549163394
--- /dev/null
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/tftpd.xinetd.inetutils
@@ -0,0 +1,19 @@
1# default: off
2# description:
3# Tftpd is a server which supports the Internet Trivial File Transfer
4# Pro-tocol (RFC 783). The TFTP server operates at the port indicated
5# in the tftp service description; see services(5).
6#
7service tftp
8{
9 disable = yes
10 socket_type = dgram
11 protocol = udp
12 flags = IPv6
13 wait = yes
14 user = root
15 group = root
16 server = /usr/sbin/in.tftpd
17 server_args = /tftpboot
18}
19
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/version.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/version.patch
new file mode 100644
index 0000000000..ac3181ddb2
--- /dev/null
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.1/version.patch
@@ -0,0 +1,17 @@
1Upstream-Status: Pending
2
3remove m4_esyscmd function
4
5Signed-off-by: Chunrong Guo <b40290@freescale.com>
6--- inetutils-1.9.1/configure.ac 2012-01-06 22:05:05.000000000 +0800
7+++ inetutils-1.9.1/configure.ac 2012-11-12 14:01:11.732957019 +0800
8@@ -20,8 +20,7 @@
9
10 AC_PREREQ(2.59)
11
12-AC_INIT([GNU inetutils],
13- m4_esyscmd([build-aux/git-version-gen .tarball-version 's/inetutils-/v/;s/_/./g']),
14+AC_INIT([GNU inetutils],[1.9.1],
15 [bug-inetutils@gnu.org])
16
17 AC_CONFIG_SRCDIR([src/inetd.c])
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb
new file mode 100644
index 0000000000..0e47015c0e
--- /dev/null
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb
@@ -0,0 +1,172 @@
1DESCRIPTION = "The GNU inetutils are a collection of common \
2networking utilities and servers including ftp, ftpd, rcp, \
3rexec, rlogin, rlogind, rsh, rshd, syslog, syslogd, talk, \
4talkd, telnet, telnetd, tftp, tftpd, and uucpd."
5SECTION = "libs"
6DEPENDS = "ncurses netbase readline"
7LICENSE = "GPLv3"
8
9LIC_FILES_CHKSUM = "file://COPYING;md5=0c7051aef9219dc7237f206c5c4179a7"
10
11PR = "r1"
12SRC_URI = "${GNU_MIRROR}/inetutils/inetutils-${PV}.tar.gz \
13 file://disable-pre-ANSI-compilers.patch \
14 file://version.patch \
15 file://remove-gets.patch \
16 file://inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch \
17 file://inetutils-1.8-0003-wchar.patch \
18 file://rexec.xinetd.inetutils \
19 file://rlogin.xinetd.inetutils \
20 file://rsh.xinetd.inetutils \
21 file://telnet.xinetd.inetutils \
22 file://tftpd.xinetd.inetutils \
23 file://inetutils-1.9-PATH_PROCNET_DEV.patch \
24"
25
26SRC_URI[md5sum] = "944f7196a2b3dba2d400e9088576000c"
27SRC_URI[sha256sum] = "02a9ebde8a198cb85f87545b9d88fb103a183958139864a85fe9e027ad79ff2b"
28
29inherit autotools gettext update-alternatives
30
31SRC_URI += "${@base_contains('DISTRO_FEATURES', 'ipv6', '', 'file://fix-disable-ipv6.patch', d)}"
32noipv6="${@base_contains('DISTRO_FEATURES', 'ipv6', '', '--disable-ipv6 gl_cv_socket_ipv6=no', d)}"
33
34PACKAGECONFIG ??= "ftp uucpd"
35PACKAGECONFIG[ftp] = "--enable-ftp,--disable-ftp,readline"
36PACKAGECONFIG[uucpd] = "--enable-uucpd,--disable-uucpd,readline"
37
38EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR} \
39 ${noipv6} \
40 --with-libreadline-prefix=${STAGING_LIBDIR} \
41 --enable-rpath=no \
42"
43
44do_configure_prepend () {
45 export HELP2MAN='true'
46 cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${S}/build-aux/config.rpath
47 rm -f ${S}/glob/configure*
48}
49
50do_install_append () {
51 install -m 0755 -d ${D}${base_bindir}
52 install -m 0755 -d ${D}${base_sbindir}
53 install -m 0755 -d ${D}${sbindir}
54 install -m 0755 -d ${D}${sysconfdir}/xinetd.d
55 mv ${D}${bindir}/ping ${D}${base_bindir}/
56 mv ${D}${bindir}/ping6 ${D}${base_bindir}/
57 mv ${D}${bindir}/ifconfig ${D}${base_sbindir}/
58 mv ${D}${libexecdir}/syslogd ${D}${base_sbindir}/
59 mv ${D}${bindir}/hostname ${D}${base_bindir}/
60 mv ${D}${libexecdir}/tftpd ${D}${sbindir}/in.tftpd
61 mv ${D}${libexecdir}/telnetd ${D}${sbindir}/in.telnetd
62 mv ${D}${libexecdir}/rexecd ${D}${sbindir}/in.rexecd
63 mv ${D}${libexecdir}/rlogind ${D}${sbindir}/in.rlogind
64 mv ${D}${libexecdir}/rshd ${D}${sbindir}/in.rshd
65 mv ${D}${libexecdir}/talkd ${D}${sbindir}/in.talkd
66 mv ${D}${libexecdir}/uucpd ${D}${sbindir}/in.uucpd
67 mv ${D}${libexecdir}/* ${D}${bindir}/
68 cp ${WORKDIR}/rexec.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/rexec
69 cp ${WORKDIR}/rlogin.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/rlogin
70 cp ${WORKDIR}/rsh.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/rsh
71 cp ${WORKDIR}/telnet.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/telnet
72 cp ${WORKDIR}/tftpd.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/tftpd
73 rm -rf ${D}${libexecdir}/
74 # remove usr/lib if empty
75 rmdir ${D}${libdir}
76}
77
78PACKAGES =+ "${PN}-ping ${PN}-ping6 ${PN}-hostname ${PN}-ifconfig \
79${PN}-tftp ${PN}-logger ${PN}-traceroute ${PN}-syslogd \
80${PN}-ftp ${PN}-ftpd ${PN}-tftpd ${PN}-telnet ${PN}-telnetd ${PN}-inetd \
81${PN}-rsh ${PN}-rshd"
82
83# The packages tftpd, telnetd and rshd conflict with the ones
84# provided by netkit, so add the corresponding -dbg packages
85# for them to avoid the confliction between the dbg package
86# of inetutils and netkit.
87PACKAGES += "${PN}-tftpd-dbg ${PN}-telnetd-dbg ${PN}-rshd-dbg"
88
89ALTERNATIVE_PRIORITY = "80"
90ALTERNATIVE_${PN} = "talk whois"
91ALTERNATIVE_LINK_NAME[talkd] = "${sbindir}/in.talkd"
92ALTERNATIVE_LINK_NAME[uucpd] = "${sbindir}/in.uucpd"
93
94ALTERNATIVE_${PN}-logger = "logger"
95ALTERNATIVE_${PN}-syslogd = "syslogd"
96ALTERNATIVE_LINK_NAME[syslogd] = "${base_sbindir}/syslogd"
97
98ALTERNATIVE_${PN}-ftp = "ftp"
99ALTERNATIVE_${PN}-ftpd = "ftpd"
100ALTERNATIVE_${PN}-tftp = "tftp"
101ALTERNATIVE_${PN}-tftpd = "tftpd"
102ALTERNATIVE_LINK_NAME[tftpd] = "${bindir}/tftpd"
103ALTERNATIVE_TARGET[tftpd] = "${sbindir}/in.tftpd"
104
105ALTERNATIVE_${PN}-telnet = "telnet"
106ALTERNATIVE_${PN}-telnetd = "telnetd"
107ALTERNATIVE_LINK_NAME[telnetd] = "${bindir}/telnetd"
108ALTERNATIVE_TARGET[telnetd] = "${sbindir}/in.telnetd"
109
110ALTERNATIVE_${PN}-rsh = "rcp rexec rlogin rsh"
111ALTERNATIVE_${PN}-rshd = "rshd rexecd rlogind"
112ALTERNATIVE_LINK_NAME[rshd] = "${bindir}/rshd"
113ALTERNATIVE_TARGET[rshd] = "${sbindir}/in.rshd"
114ALTERNATIVE_LINK_NAME[rexecd] = "${bindir}/rexecd"
115ALTERNATIVE_TARGET[rexecd] = "${sbindir}/in.rexecd"
116ALTERNATIVE_LINK_NAME[rlogind] = "${bindir}/rlogind"
117ALTERNATIVE_TARGET[rlogind] = "${sbindir}/in.rlogind"
118
119ALTERNATIVE_${PN}-inetd= "inetd"
120ALTERNATIVE_${PN}-traceroute = "traceroute"
121
122ALTERNATIVE_${PN}-hostname = "hostname"
123ALTERNATIVE_LINK_NAME[hostname] = "${base_bindir}/hostname"
124
125ALTERNATIVE_${PN}-ifconfig = "ifconfig"
126ALTERNATIVE_LINK_NAME[ifconfig] = "${base_sbindir}/ifconfig"
127
128ALTERNATIVE_${PN}-ping = "ping"
129ALTERNATIVE_LINK_NAME[ping] = "${base_bindir}/ping"
130
131ALTERNATIVE_${PN}-ping6 = "ping6"
132ALTERNATIVE_LINK_NAME[ping6] = "${base_bindir}/ping6"
133
134
135FILES_${PN}-ping = "${base_bindir}/ping.${BPN}"
136FILES_${PN}-ping6 = "${base_bindir}/ping6.${BPN}"
137FILES_${PN}-hostname = "${base_bindir}/hostname.${BPN}"
138FILES_${PN}-ifconfig = "${base_sbindir}/ifconfig.${BPN}"
139FILES_${PN}-traceroute = "${bindir}/traceroute.${BPN}"
140FILES_${PN}-logger = "${bindir}/logger.${BPN}"
141FILES_${PN}-syslogd = "${base_sbindir}/syslogd.${BPN}"
142FILES_${PN}-ftp = "${bindir}/ftp.${BPN}"
143
144FILES_${PN}-tftp = "${bindir}/tftp.${BPN}"
145FILES_${PN}-telnet = "${bindir}/telnet.${BPN}"
146FILES_${PN}-rsh = "${bindir}/rsh.${BPN} ${bindir}/rlogin.${BPN} ${bindir}/rexec.${BPN} ${bindir}/rcp.${BPN}"
147
148FILES_${PN}-rshd = "${sbindir}/in.rshd ${sbindir}/in.rlogind ${sbindir}/in.rexecd \
149 ${sysconfdir}/xinetd.d/rsh ${sysconfdir}/xinetd.d/rlogin ${sysconfdir}/xinetd.d/rexec"
150FILES_${PN}-rshd-dbg = "${sbindir}/.debug/in.rshd ${sbindir}/.debug/in.rlogind ${sbindir}/.debug/in.rexecd"
151RDEPENDS_${PN}-rshd += "xinetd tcp-wrappers"
152RCONFLICTS_${PN}-rshd += "netkit-rshd"
153RPROVIDES_${PN}-rshd = "rshd"
154
155FILES_${PN}-ftpd = "${bindir}/ftpd.${BPN}"
156FILES_${PN}-ftpd-dbg = "${bindir}/.debug/ftpd.${BPN}"
157RDEPENDS_${PN}-ftpd += "xinetd"
158
159FILES_${PN}-tftpd = "${sbindir}/in.tftpd ${sysconfdir}/xinetd.d/tftpd"
160FILES_${PN}-tftpd-dbg = "${sbindir}/.debug/in.tftpd"
161RCONFLICTS_${PN}-tftpd += "netkit-tftpd"
162RDEPENDS_${PN}-tftpd += "xinetd"
163
164FILES_${PN}-telnetd = "${sbindir}/in.telnetd ${sysconfdir}/xinetd.d/telnet"
165FILES_${PN}-telnetd-dbg = "${sbindir}/.debug/in.telnetd"
166RCONFLICTS_${PN}-telnetd += "netkit-telnetd"
167RPROVIDES_${PN}-telnetd = "telnetd"
168RDEPENDS_${PN}-telnetd += "xinetd"
169
170FILES_${PN}-inetd = "${bindir}/inetd.${BPN}"
171
172RDEPENDS_${PN} = "xinetd"
diff --git a/meta-networking/recipes-connectivity/libdnet/libdnet_1.12.bb b/meta-networking/recipes-connectivity/libdnet/libdnet_1.12.bb
new file mode 100644
index 0000000000..47525061ef
--- /dev/null
+++ b/meta-networking/recipes-connectivity/libdnet/libdnet_1.12.bb
@@ -0,0 +1,14 @@
1SUMMARY = "dumb networking library"
2HOMEPAGE = "http://code.google.com/p/libdnet/"
3LICENSE = "BSD"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=0036c1b155f4e999f3e0a373490b5db9"
5
6SRC_URI = "http://libdnet.googlecode.com/files/libdnet-${PV}.tgz"
7
8SRC_URI[md5sum] = "9253ef6de1b5e28e9c9a62b882e44cc9"
9SRC_URI[sha256sum] = "83b33039787cf99990e977cef7f18a5d5e7aaffc4505548a83d31bd3515eb026"
10
11inherit autotools
12
13acpaths = "-I ./config/"
14
diff --git a/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb b/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb
new file mode 100644
index 0000000000..3a9692f86f
--- /dev/null
+++ b/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb
@@ -0,0 +1,30 @@
1DESCRIPTION = "set Linux HDLC packet radio modem driver port information"
2HOMEPAGE = "https://www.kernel.org/pub/linux/utils/net/hdlc"
3LICENSE = "GPLv2 & GPLv2+ "
4LIC_FILES_CHKSUM = "file://Makefile;md5=19aada31930b2be84bf7138420d77263"
5
6
7SRC_URI = "https://www.kernel.org/pub/linux/utils/net/hdlc/${BPN}-1.18.tar.gz \
8"
9SRC_URI[md5sum] = "9016878156a5eadb06c0bae71cc5c9ab"
10SRC_URI[sha256sum] = "21b1e2e1cb0e288b0ec8fcfd9fed449914e0f8e6fc273706bd5b3d4f6ab6b04e"
11
12
13S = "${WORKDIR}/${BPN}-1.18"
14
15DEPENDS="virtual/kernel"
16
17EXTRA_OEMAKE="CROSS_COMPILE=${TARGET_PREFIX} CC='${CC} ${LDFLAGS}' \
18 KERNEL_DIR=${STAGING_KERNEL_DIR} "
19
20do_compile_prepend () {
21 oe_runmake clean
22}
23
24
25do_install() {
26 install -d ${D}/${bindir}
27 install sethdlc ${D}/${bindir}/
28}
29
30FILES_${PN} += "${bindir}/sethdlc"
diff --git a/meta-networking/recipes-connectivity/snort/files/0001-libpcap-search-sysroot-for-headers.patch b/meta-networking/recipes-connectivity/snort/files/0001-libpcap-search-sysroot-for-headers.patch
new file mode 100644
index 0000000000..54c2a9521b
--- /dev/null
+++ b/meta-networking/recipes-connectivity/snort/files/0001-libpcap-search-sysroot-for-headers.patch
@@ -0,0 +1,31 @@
1From 4d7ebe3ed6cee72bc7db98bd408d22c10ef5dd82 Mon Sep 17 00:00:00 2001
2From: Joe MacDonald <joe@deserted.net>
3Date: Wed, 20 Nov 2013 16:06:07 -0500
4Subject: [PATCH] libpcap: search sysroot for headers
5
6Configure hard-coded host header paths when building with libpcap. Point
7the search path at the sysroot instead.
8
9Upstream-Status: Pending
10
11Signed-off-by: Joe MacDonald <joe@deserted.net>
12---
13 configure.in | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/configure.in b/configure.in
17index e52bb6c..8ded35d 100644
18--- a/configure.in
19+++ b/configure.in
20@@ -78,7 +78,7 @@ case "$host" in
21 linux="yes"
22 AC_DEFINE([LINUX],[1],[Define if Linux])
23 AC_SUBST(extra_incl)
24- extra_incl="-I/usr/include/pcap"
25+ extra_incl="-I=/usr/include/pcap"
26 ;;
27 *-hpux10*|*-hpux11*)
28 AC_DEFINE([HPUX],[1],[Define if HP-UX 10 or 11])
29--
301.7.10.4
31
diff --git a/meta-networking/recipes-connectivity/snort/files/disable-dap-address-space-id.patch b/meta-networking/recipes-connectivity/snort/files/disable-dap-address-space-id.patch
new file mode 100644
index 0000000000..39e5c9c03a
--- /dev/null
+++ b/meta-networking/recipes-connectivity/snort/files/disable-dap-address-space-id.patch
@@ -0,0 +1,52 @@
1Upstream-Status:Inappropriate [embedded specific]
2
3fix the below error:
4checking for dap address space id... configure:
5configure: error: cannot run test program while cross compiling
6
7
8Signed-off-by: Chunrong Guo <B40290@freescale.com>
9
10--- a/configure.in 2013-08-23 00:06:37.239361932 -0500
11+++ b/configure.in 2013-08-23 00:07:32.860266534 -0500
12@@ -679,23 +679,23 @@
13
14 AC_CHECK_FUNCS([daq_hup_apply] [daq_acquire_with_meta])
15
16-AC_MSG_CHECKING([for daq address space ID])
17-AC_RUN_IFELSE(
18-[AC_LANG_PROGRAM(
19-[[
20-#include <daq.h>
21-]],
22-[[
23- DAQ_PktHdr_t hdr;
24- hdr.address_space_id = 0;
25-]])],
26-[have_daq_address_space_id="yes"],
27-[have_daq_address_space_id="no"])
28-AC_MSG_RESULT($have_daq_address_space_id)
29-if test "x$have_daq_address_space_id" = "xyes"; then
30- AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1],
31- [DAQ version supports address space ID in header.])
32-fi
33+#AC_MSG_CHECKING([for daq address space ID])
34+#AC_RUN_IFELSE(
35+#[AC_LANG_PROGRAM(
36+#[[
37+##include <daq.h>
38+#]],
39+#[[
40+# DAQ_PktHdr_t hdr;
41+# hdr.address_space_id = 0;
42+#]])],
43+have_daq_address_space_id="yes"
44+#[have_daq_address_space_id="no"])
45+#AC_MSG_RESULT($have_daq_address_space_id)
46+#if test "x$have_daq_address_space_id" = "xyes"; then
47+# AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1],
48+# [DAQ version supports address space ID in header.])
49+#fi
50
51 # any sparc platform has to have this one defined.
52 AC_MSG_CHECKING(for sparc)
diff --git a/meta-networking/recipes-connectivity/snort/files/disable-inaddr-none.patch b/meta-networking/recipes-connectivity/snort/files/disable-inaddr-none.patch
new file mode 100644
index 0000000000..9dafe63459
--- /dev/null
+++ b/meta-networking/recipes-connectivity/snort/files/disable-inaddr-none.patch
@@ -0,0 +1,75 @@
1Upstream-Status: Inappropriate [embedded specific]
2
3fix the below error:
4checking for INADDR_NONE... configure:
5configure: error: cannot run test program while cross compiling
6
7Signed-off-by: Chunrong Guo <B40290@freescale.com>
8
9
10--- a/configure.in 2013-08-21 03:56:17.197414789 -0500
11+++ b/configure.in 2013-08-21 23:19:05.298553560 -0500
12@@ -281,25 +281,7 @@
13 AC_CHECK_TYPES([boolean])
14
15 # In case INADDR_NONE is not defined (like on Solaris)
16-have_inaddr_none="no"
17-AC_MSG_CHECKING([for INADDR_NONE])
18-AC_RUN_IFELSE(
19-[AC_LANG_PROGRAM(
20-[[
21-#include <sys/types.h>
22-#include <netinet/in.h>
23-#include <arpa/inet.h>
24-]],
25-[[
26- if (inet_addr("10,5,2") == INADDR_NONE);
27- return 0;
28-]])],
29-[have_inaddr_none="yes"],
30-[have_inaddr_none="no"])
31-AC_MSG_RESULT($have_inaddr_none)
32-if test "x$have_inaddr_none" = "xno"; then
33- AC_DEFINE([INADDR_NONE],[-1],[For INADDR_NONE definition])
34-fi
35+have_inaddr_none="yes"
36
37 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
38 #include <stdio.h>
39@@ -397,21 +379,21 @@
40 fi
41 fi
42
43-AC_MSG_CHECKING([for pcap_lex_destroy])
44-AC_RUN_IFELSE(
45-[AC_LANG_PROGRAM(
46-[[
47-#include <pcap.h>
48-]],
49-[[
50- pcap_lex_destroy();
51-]])],
52-[have_pcap_lex_destroy="yes"],
53-[have_pcap_lex_destroy="no"])
54-AC_MSG_RESULT($have_pcap_lex_destroy)
55-if test "x$have_pcap_lex_destroy" = "xyes"; then
56- AC_DEFINE([HAVE_PCAP_LEX_DESTROY],[1],[Can cleanup lex buffer stack created by pcap bpf filter])
57-fi
58+#AC_MSG_CHECKING([for pcap_lex_destroy])
59+#AC_RUN_IFELSE(
60+#[AC_LANG_PROGRAM(
61+#[[
62+##include <pcap.h>
63+#]],
64+#[[
65+# pcap_lex_destroy();
66+#]])],
67+have_pcap_lex_destroy="yes"
68+#[have_pcap_lex_destroy="no"])
69+#AC_MSG_RESULT($have_pcap_lex_destroy)
70+#if test "x$have_pcap_lex_destroy" = "xyes"; then
71+# AC_DEFINE([HAVE_PCAP_LEX_DESTROY],[1],[Can cleanup lex buffer stack created by pcap bpf filter])
72+#fi
73
74 AC_MSG_CHECKING([for pcap_lib_version])
75 AC_LINK_IFELSE(
diff --git a/meta-networking/recipes-connectivity/snort/files/snort.init b/meta-networking/recipes-connectivity/snort/files/snort.init
new file mode 100644
index 0000000000..d8a00c43fc
--- /dev/null
+++ b/meta-networking/recipes-connectivity/snort/files/snort.init
@@ -0,0 +1,109 @@
1#!/bin/sh
2#
3# Snort Startup Script modified for OpenEmbedded
4#
5
6# Script variables
7
8LAN_INTERFACE="$2"
9RETURN_VAL=0
10BINARY=/usr/bin/snort
11PATH=/bin:/usr/bin
12PID=/var/run/snort_${LAN_INTERFACE}_ids.pid
13DEL_PID=$PID
14LOGDIR="/var/log/snort"
15DATE=`/bin/date +%Y%m%d`
16CONFIG_FILE=/etc/snort/snort.conf
17PROG=snort
18USER=root
19GROUP=root
20
21if [ ! -x "$BINARY" ]; then
22 echo "ERROR: $BINARY not found."
23 exit 1
24fi
25
26if [ ! -r "$CONFIG_FILE" ]; then
27 echo "ERROR: $CONFIG_FILE not found."
28 exit 1
29fi
30
31start()
32{
33
34 [ -n "$LAN_INTERFACE" ] || return 0
35 # Check if log diratory is present. Otherwise, create it.
36 if [ ! -d $LOGDIR/$DATE ]; then
37 mkdir -d $LOGDIR/$DATE
38 /bin/chown -R $USER:$USER $LOGDIR/$DATE
39 /bin/chmod -R 700 $LOGDIR/$DATE
40 fi
41
42 /bin/echo "Starting $PROG: "
43 # Snort parameters
44 # -D Run Snort in background (daemon) mode
45 # -i <if> Listen on interface <if>
46 # -u <uname> Run snort uid as <uname> user (or uid)
47 # -g <gname> Run snort uid as <gname> group (or gid)
48 # -c Load configuration file
49 # -N Turn off logging (alerts still work) (removed to enable logging) :)
50 # -l Log to directory
51 # -t Chroots process to directory after initialization
52 # -R <id> Include 'id' in snort_intf<id>.pid file name
53
54 $BINARY -D -i $LAN_INTERFACE -u $USER -g $GROUP -c $CONFIG_FILE -l $LOGDIR/$DATE -t $LOGDIR/$DATE -R _ids
55 /bin/echo "$PROG startup complete."
56 return $RETURN_VAL
57}
58
59stop()
60{
61 if [ -s $PID ]; then
62 /bin/echo "Stopping $PROG with PID `cat $PID`: "
63 kill -TERM `cat $PID` 2>/dev/null
64 RETURN_VAL=$?
65 /bin/echo "$PROG shutdown complete."
66 [ -e $DEL_PID ] && rm -f $DEL_PID
67 [ -e $DEL_PID.lck ] && rm -f $DEL_PID.lck
68 else
69 /bin/echo "ERROR: PID in $PID file not found."
70 RETURN_VAL=1
71 fi
72 return $RETURN_VAL
73}
74
75status() {
76 if [ -s $PID ]; then
77 echo "$PROG is running as pid `cat $PID`:"
78 else
79 echo "$PROG is not running."
80 fi
81}
82
83restart()
84{
85 stop
86 start
87 RETURN_VAL=$?
88 return $RETURN_VAL
89}
90
91case "$1" in
92 start)
93 start
94 ;;
95 stop)
96 stop
97 ;;
98 status)
99 status
100 ;;
101 restart|reload)
102 restart
103 ;;
104 *)
105 /bin/echo "Usage: $0 {start|stop|status|restart|reload}"
106 RETURN_VAL=1
107esac
108
109exit $RETURN_VAL
diff --git a/meta-networking/recipes-connectivity/snort/snort_2.9.4.6.bb b/meta-networking/recipes-connectivity/snort/snort_2.9.4.6.bb
new file mode 100644
index 0000000000..acb1b1a88d
--- /dev/null
+++ b/meta-networking/recipes-connectivity/snort/snort_2.9.4.6.bb
@@ -0,0 +1,73 @@
1DESCRIPTION = "snort - a free lightweight network intrusion detection system for UNIX and Windows."
2HOMEPAGE = "http://www.snort.org/"
3LICENSE = "GPL-2.0"
4LIC_FILES_CHKSUM = "file://COPYING;md5=78fa8ef966b48fbf9095e13cc92377c5"
5
6DEPENDS = "libpcap libpcre daq libdnet"
7
8
9SRC_URI = " ${GENTOO_MIRROR}/${BP}.tar.gz;name=tarball \
10 file://snort.init \
11 file://disable-inaddr-none.patch \
12 file://disable-dap-address-space-id.patch \
13 file://0001-libpcap-search-sysroot-for-headers.patch \
14"
15
16SRC_URI[tarball.md5sum] = "4111df01a4f21bd1d328a18b76d625bd"
17SRC_URI[tarball.sha256sum] = "cfaa5390b1840aaaa68a6c05a7077dd92cb916e6186a014baa451d43cdb0b3bc"
18
19inherit autotools gettext update-rc.d
20
21INITSCRIPT_NAME = "snort"
22INITSCRIPT_PARAMS = "defaults"
23
24EXTRA_OECONF = " \
25 --enable-gre \
26 --enable-linux-smp-stats \
27 --enable-reload \
28 --enable-reload-error-restart \
29 --enable-targetbased \
30 --disable-static-daq \
31 "
32
33do_install_append() {
34 install -d ${D}/${sysconfdir}/snort/rules
35 install -d ${D}/${sysconfdir}/snort/preproc_rules
36 install -d ${D}${sysconfdir}/init.d
37 for i in map config conf dtd; do
38 cp ${S}/etc/*.$i ${D}/${sysconfdir}/snort/
39 done
40 cp ${S}/preproc_rules/*.rules ${D}/${sysconfdir}/snort/preproc_rules/
41 install -m 755 ${WORKDIR}/snort.init ${D}/${sysconfdir}/init.d/snort
42 mkdir -p ${D}/${localstatedir}/log/snort
43 install -d ${D}/var/log/snort
44}
45
46FILES_${PN} += " \
47 ${libdir}/snort_dynamicengine/*.so.* \
48 ${libdir}/snort_dynamicpreprocessor/*.so.* \
49 ${libdir}/snort_dynamicrules/*.so.* \
50 "
51FILES_${PN}-dbg += " \
52 ${libdir}/snort_dynamicengine/.debug \
53 ${libdir}/snort_dynamicpreprocessor/.debug \
54 ${libdir}/snort_dynamicrules/.debug \
55 "
56FILES_${PN}-staticdev += " \
57 ${libdir}/snort_dynamicengine/*.a \
58 ${libdir}/snort_dynamicpreprocessor/*.a \
59 ${libdir}/snort_dynamicrules/*.a \
60 ${libdir}/snort/dynamic_preproc/*.a \
61 ${libdir}/snort/dynamic_output/*.a \
62 "
63FILES_${PN}-dev += " \
64 ${libdir}/snort_dynamicengine/*.la \
65 ${libdir}/snort_dynamicpreprocessor/*.la \
66 ${libdir}/snort_dynamicrules/*.la \
67 ${libdir}/snort_dynamicengine/*.so \
68 ${libdir}/snort_dynamicpreprocessor/*.so \
69 ${libdir}/snort_dynamicrules/*.so \
70 ${prefix}/src/snort_dynamicsrc \
71 "
72
73RRECOMMENDS_${PN} += "barnyard2"
diff --git a/meta-networking/recipes-connectivity/vlan/vlan_1.9.bb b/meta-networking/recipes-connectivity/vlan/vlan_1.9.bb
new file mode 100644
index 0000000000..2c4f1577e8
--- /dev/null
+++ b/meta-networking/recipes-connectivity/vlan/vlan_1.9.bb
@@ -0,0 +1,25 @@
1SUMMARY = "VLAN provides vconfig utility"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://vconfig.c;md5=293ef69c4e88434d37a5ee577a5288cb"
4
5SRC_URI = "http://${BPN}.sourcearchive.com/downloads/${PV}-3ubuntu9/${BPN}_${PV}.orig.tar.gz"
6
7SRC_URI[md5sum] = "5f0c6060b33956fb16e11a15467dd394"
8SRC_URI[sha256sum] = "3b8f0a1bf0d3642764e5f646e1f3bbc8b1eeec474a77392d9aeb4868842b4cca"
9
10S = "${WORKDIR}/${BPN}"
11
12# comment out MakeInclude in Makefile which sets build environment
13do_configure_append () {
14 sed -i 's/^ include/#^include/' ${S}/Makefile
15}
16
17# ignore strip to avoid yocto errors in stripping
18do_compile () {
19 oe_runmake PLATFORM=ARM 'STRIP=echo' all
20}
21
22do_install () {
23 install -d ${D}/${exec_prefix}/bin
24 cp ${S}/vconfig ${D}/${exec_prefix}/bin
25}
diff --git a/meta-networking/recipes-connectivity/vpnc/vpnc/default.conf b/meta-networking/recipes-connectivity/vpnc/vpnc/default.conf
new file mode 100644
index 0000000000..48b15eca6e
--- /dev/null
+++ b/meta-networking/recipes-connectivity/vpnc/vpnc/default.conf
@@ -0,0 +1,19 @@
1# Comment out the options you need.
2# Verify your config with "vpnc --print-config".
3# You might also try "vpnc --long-help" or look into the documentation.
4
5# Needed (you will be prompted if this is missing):
6#IPSec gateway 10.1.2.3
7#IPSec ID YOURPEERSID
8#IPSec secret YOURPEERSSECRET
9#Xauth username YOURUSERNAME
10#Xauth password YOURPASSWORD
11
12# Optional:
13#UDP Encapsulate
14#UDP Encapsulation Port 10000
15#Noninteractive
16#No Detach
17#Debug 99
18#Interface name tun0
19#Script /etc/vpnc/vpnc-script
diff --git a/meta-networking/recipes-connectivity/vpnc/vpnc/long-help b/meta-networking/recipes-connectivity/vpnc/vpnc/long-help
new file mode 100644
index 0000000000..fbec254144
--- /dev/null
+++ b/meta-networking/recipes-connectivity/vpnc/vpnc/long-help
@@ -0,0 +1,168 @@
1Usage: vpnc [--version] [--print-config] [--help] [--long-help] [options] [config files]
2
3Options:
4 --gateway <ip/hostname>
5 IP/name of your IPSec gateway
6 conf-variable: IPSec gateway <ip/hostname>
7
8 --id <ASCII string>
9 your group name
10 conf-variable: IPSec ID <ASCII string>
11
12 (configfile only option)
13 your group password (cleartext)
14 conf-variable: IPSec secret <ASCII string>
15
16 (configfile only option)
17 your group password (obfuscated)
18 conf-variable: IPSec obfuscated secret <hex string>
19
20 --username <ASCII string>
21 your username
22 conf-variable: Xauth username <ASCII string>
23
24 (configfile only option)
25 your password (cleartext)
26 conf-variable: Xauth password <ASCII string>
27
28 (configfile only option)
29 your password (obfuscated)
30 conf-variable: Xauth obfuscated password <hex string>
31
32 --domain <ASCII string>
33 (NT-) Domain name for authentication
34 conf-variable: Domain <ASCII string>
35
36 --xauth-inter
37 enable interactive extended authentication (for challenge response auth)
38 conf-variable: Xauth interactive
39
40 --vendor <cisco/netscreen>
41 vendor of your IPSec gateway
42 Default: cisco
43 conf-variable: Vendor <cisco/netscreen>
44
45 --natt-mode <natt/none/force-natt/cisco-udp>
46 Which NAT-Traversal Method to use:
47 * natt -- NAT-T as defined in RFC3947
48 * none -- disable use of any NAT-T method
49 * force-natt -- always use NAT-T encapsulation even
50 without presence of a NAT device
51 (useful if the OS captures all ESP traffic)
52 * cisco-udp -- Cisco proprietary UDP encapsulation, commonly over Port 10000
53 Note: cisco-tcp encapsulation is not yet supported
54 Default: natt
55 conf-variable: NAT Traversal Mode <natt/none/force-natt/cisco-udp>
56
57 --script <command>
58 command is executed using system() to configure the interface,
59 routing and so on. Device name, IP, etc. are passed using enviroment
60 variables, see README. This script is executed right after ISAKMP is
61 done, but before tunneling is enabled. It is called when vpnc
62 terminates, too
63 Default: /etc/vpnc/vpnc-script
64 conf-variable: Script <command>
65
66 --dh <dh1/dh2/dh5>
67 name of the IKE DH Group
68 Default: dh2
69 conf-variable: IKE DH Group <dh1/dh2/dh5>
70
71 --pfs <nopfs/dh1/dh2/dh5/server>
72 Diffie-Hellman group to use for PFS
73 Default: server
74 conf-variable: Perfect Forward Secrecy <nopfs/dh1/dh2/dh5/server>
75
76 --enable-1des
77 enables weak single DES encryption
78 conf-variable: Enable Single DES
79
80 --enable-no-encryption
81 enables using no encryption for data traffic (key exchanged must be encrypted)
82 conf-variable: Enable no encryption
83
84 --application-version <ASCII string>
85 Application Version to report. Note: Default string is generated at runtime.
86 Default: Cisco Systems VPN Client 0.5.3-394:Linux
87 conf-variable: Application version <ASCII string>
88
89 --ifname <ASCII string>
90 visible name of the TUN/TAP interface
91 conf-variable: Interface name <ASCII string>
92
93 --ifmode <tun/tap>
94 mode of TUN/TAP interface:
95 * tun: virtual point to point interface (default)
96 * tap: virtual ethernet interface
97 Default: tun
98 conf-variable: Interface mode <tun/tap>
99
100 --debug <0/1/2/3/99>
101 Show verbose debug messages
102 * 0: Do not print debug information.
103 * 1: Print minimal debug information.
104 * 2: Show statemachine and packet/payload type information.
105 * 3: Dump everything exluding authentication data.
106 * 99: Dump everything INCLUDING AUTHENTICATION data (e.g. PASSWORDS).
107 conf-variable: Debug <0/1/2/3/99>
108
109 --no-detach
110 Don't detach from the console after login
111 conf-variable: No Detach
112
113 --pid-file <filename>
114 store the pid of background process in <filename>
115 Default: /var/run/vpnc/pid
116 conf-variable: Pidfile <filename>
117
118 --local-addr <ip/hostname>
119 local IP to use for ISAKMP / ESP / ... (0.0.0.0 == automatically assign)
120 Default: 0.0.0.0
121 conf-variable: Local Addr <ip/hostname>
122
123 --local-port <0-65535>
124 local ISAKMP port number to use (0 == use random port)
125 Default: 500
126 conf-variable: Local Port <0-65535>
127
128 --udp-port <0-65535>
129 Local UDP port number to use (0 == use random port).
130 This is only relevant if cisco-udp nat-traversal is used.
131 This is the _local_ port, the remote udp port is discovered automatically.
132 It is especially not the cisco-tcp port.
133 Default: 10000
134 conf-variable: Cisco UDP Encapsulation Port <0-65535>
135
136 --dpd-idle <0,10-86400>
137 Send DPD packet after not receiving anything for <idle> seconds.
138 Use 0 to disable DPD completely (both ways).
139 Default: 300
140 conf-variable: DPD idle timeout (our side) <0,10-86400>
141
142 --non-inter
143 Don't ask anything, exit on missing options
144 conf-variable: Noninteractive
145
146 --auth-mode <psk/cert/hybrid>
147 Authentication mode:
148 * psk: pre-shared key (default)
149 * cert: server + client certificate (not implemented yet)
150 * hybrid: server certificate + xauth (if built with openssl support)
151 Default: psk
152 conf-variable: IKE Authmode <psk/cert/hybrid>
153
154 --ca-file <filename>
155 filename and path to the CA-PEM-File
156 conf-variable: CA-File <filename>
157
158 --ca-dir <directory>
159 path of the trusted CA-Directory
160 Default: /etc/ssl/certs
161 conf-variable: CA-Dir <directory>
162
163 --target-network <target network/netmask>
164 Target network in dotted decimal or CIDR notation
165 Default: 0.0.0.0/0.0.0.0
166 conf-variable: IPSEC target network <target network/netmask>
167
168Report bugs to vpnc@unix-ag.uni-kl.de
diff --git a/meta-networking/recipes-connectivity/vpnc/vpnc/makeman.patch b/meta-networking/recipes-connectivity/vpnc/vpnc/makeman.patch
new file mode 100644
index 0000000000..f394e6abdd
--- /dev/null
+++ b/meta-networking/recipes-connectivity/vpnc/vpnc/makeman.patch
@@ -0,0 +1,11 @@
1--- vpnc-0.5.1/makeman.pl.old 2008-03-16 02:17:59.000000000 -0500
2+++ vpnc-0.5.1/makeman.pl 2008-03-16 02:29:34.000000000 -0500
3@@ -29,7 +29,7 @@ my $vpnc = './vpnc';
4 # indenting lists (those originally starting with an asterisk). I hope
5 # this pays off when converting the manpage to HTML or such.
6
7-open my $LONGHELP, '-|', "$vpnc --long-help";
8+open my $LONGHELP, '-|', "cat ../long-help";
9 my $vpnc_options = '';
10 my $relative_indent = 0;
11 my $indent_needed = 0;
diff --git a/meta-networking/recipes-connectivity/vpnc/vpnc/vpnc-install.patch b/meta-networking/recipes-connectivity/vpnc/vpnc/vpnc-install.patch
new file mode 100644
index 0000000000..3de65ec35e
--- /dev/null
+++ b/meta-networking/recipes-connectivity/vpnc/vpnc/vpnc-install.patch
@@ -0,0 +1,35 @@
1--- a/Makefile~ 2009-01-20 18:44:30.000000000 +0100
2+++ b/Makefile 2009-01-20 18:44:30.000000000 +0100
3@@ -119,21 +119,21 @@
4 else \
5 install vpnc-script $(DESTDIR)$(ETCDIR); \
6 fi
7- install -m600 vpnc.conf $(DESTDIR)$(ETCDIR)/default.conf
8- install -m755 vpnc-disconnect $(DESTDIR)$(SBINDIR)
9- install -m755 pcf2vpnc $(DESTDIR)$(BINDIR)
10- install -m644 vpnc.8 $(DESTDIR)$(MANDIR)/man8
11- install -m644 pcf2vpnc.1 $(DESTDIR)$(MANDIR)/man1
12- install -m644 cisco-decrypt.1 $(DESTDIR)$(MANDIR)/man1
13- install -m644 COPYING $(DESTDIR)$(DOCDIR)
14+ install -m 600 vpnc.conf $(DESTDIR)$(ETCDIR)/default.conf
15+ install -m 755 vpnc-disconnect $(DESTDIR)$(SBINDIR)
16+ install -m 755 pcf2vpnc $(DESTDIR)$(BINDIR)
17+ install -m 644 vpnc.8 $(DESTDIR)$(MANDIR)/man8
18+ install -m 644 pcf2vpnc.1 $(DESTDIR)$(MANDIR)/man1
19+ install -m 644 cisco-decrypt.1 $(DESTDIR)$(MANDIR)/man1
20+ install -m 644 COPYING $(DESTDIR)$(DOCDIR)
21
22 install : install-common
23- install -m755 vpnc $(DESTDIR)$(SBINDIR)
24- install -m755 cisco-decrypt $(DESTDIR)$(BINDIR)
25+ install -m 755 vpnc $(DESTDIR)$(SBINDIR)
26+ install -m 755 cisco-decrypt $(DESTDIR)$(BINDIR)
27
28 install-strip : install-common
29- install -s -m755 vpnc $(DESTDIR)$(SBINDIR)
30- install -s -m755 cisco-decrypt $(DESTDIR)$(BINDIR)
31+ install -s -m 755 vpnc $(DESTDIR)$(SBINDIR)
32+ install -s -m 755 cisco-decrypt $(DESTDIR)$(BINDIR)
33
34 uninstall :
35 rm -f $(DESTDIR)$(SBINDIR)/vpnc \
diff --git a/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb b/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb
new file mode 100644
index 0000000000..986416ade2
--- /dev/null
+++ b/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb
@@ -0,0 +1,30 @@
1SUMMARY = "A client for the Cisco3000 VPN Concentrator"
2HOMEPAGE = "http://www.unix-ag.uni-kl.de/~massar/vpnc/"
3AUTHOR = "Maurice Massar vpnc@unix-ag.uni-kl.de"
4SECTION = "console/network"
5PRIORITY = "optional"
6LICENSE = "GPL-2.0+"
7LIC_FILES_CHKSUM = "file://COPYING;md5=173b74cb8ac640a9992c03f3bce22a33"
8DEPENDS = "libgcrypt"
9
10CFLAGS_append = ' -DVERSION=\\"${PV}\\"'
11LDFLAGS_append = " -lgcrypt -lgpg-error"
12
13do_install () {
14 sed -i s:m600:m\ 600:g Makefile
15 oe_runmake 'DESTDIR=${D}' 'PREFIX=/usr' install
16 rm -f ${D}${sysconfdir}/vpnc/vpnc.conf #This file is useless
17 install ${WORKDIR}/default.conf ${D}${sysconfdir}/vpnc/default.conf
18}
19
20CONFFILES_${PN} = "${sysconfdir}/vpnc/default.conf"
21RDEPENDS_${PN} = "kernel-module-tun perl-module-io-file"
22
23SRC_URI = "http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-${PV}.tar.gz \
24 file://makeman.patch \
25 file://vpnc-install.patch \
26 file://long-help \
27 file://default.conf"
28
29SRC_URI[md5sum] = "4378f9551d5b077e1770bbe09995afb3"
30SRC_URI[sha256sum] = "46cea3bd02f207c62c7c6f2f22133382602baeda1dc320747809e94881414884"