diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
commit | 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch) | |
tree | a21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-networking/recipes-connectivity | |
download | meta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-networking/recipes-connectivity')
29 files changed, 1504 insertions, 0 deletions
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 000000000..0bb899860 --- /dev/null +++ b/meta-networking/recipes-connectivity/crda/crda_1.1.3.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | SUMMARY = "Wireless Central Regulatory Domain Agent" | ||
2 | HOMEPAGE = "http://wireless.kernel.org/en/developers/Regulatory/CRDA" | ||
3 | |||
4 | LICENSE = "ISC" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=07c4f6dea3845b02a18dc00c8c87699c" | ||
6 | |||
7 | |||
8 | DEPENDS = "python-m2crypto-native python-native libgcrypt libnl" | ||
9 | |||
10 | SRC_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 | " | ||
13 | SRC_URI[crda.md5sum] = "29579185e06a75675507527243d28e5c" | ||
14 | SRC_URI[crda.sha256sum] = "aa8a7fe92f0765986c421a5b6768a185375ac210393df0605ee132f6754825f0" | ||
15 | SRC_URI[bin.md5sum] = "e0c8a5ca63fb8bf803213f9a0c90b50b" | ||
16 | SRC_URI[bin.sha256sum] = "b1ee0b20c123c612dfdb6851ab42c01666f66fb583e0e590942f19bb54cf84be" | ||
17 | |||
18 | inherit python-dir pythonnative | ||
19 | # Recursive make problem | ||
20 | EXTRA_OEMAKE = "MAKEFLAGS= DESTDIR=${D}" | ||
21 | |||
22 | do_compile() { | ||
23 | oe_runmake all_noverify | ||
24 | } | ||
25 | |||
26 | do_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 | |||
35 | RDEPENDS_${PN} = "udev" | ||
36 | FILES_${PN} += "${libdir}crda/regulatory.bin \ | ||
37 | ${base_libdir}/udev/rules.d/85-regulatory.rules \ | ||
38 | " | ||
diff --git a/meta-networking/recipes-connectivity/cyassl/cyassl_3.1.0.bb b/meta-networking/recipes-connectivity/cyassl/cyassl_3.1.0.bb new file mode 100644 index 000000000..e3edab6f1 --- /dev/null +++ b/meta-networking/recipes-connectivity/cyassl/cyassl_3.1.0.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | SUMMARY = "CyaSSL Embedded SSL Library" | ||
2 | DESCRIPTION = "CyaSSL is a lightweight SSL library written in C and \ | ||
3 | optimized for embedded and RTOS environments. It can be \ | ||
4 | Up to 20 times smaller than OpenSSL while still supporting \ | ||
5 | a full TLS 1.2 client and server." | ||
6 | HOMEPAGE = "http://www.yassl.com/yaSSL/Products-cyassl.html" | ||
7 | BUGTRACKER = "http://github.com/cyassl/cyassl/issues" | ||
8 | SECTION = "libs/network" | ||
9 | LICENSE = "GPLv2" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
11 | |||
12 | SRC_URI = "http://www.yassl.com/${BP}.zip" | ||
13 | |||
14 | SRC_URI[md5sum] = "72477eb50697e759d309c49cb1aef18a" | ||
15 | SRC_URI[sha256sum] = "85a79009d2a7468910dfb1e4b975e0b00a42c695f4f1a2adc16d2507b5d0b03e" | ||
16 | |||
17 | inherit autotools | ||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/fix-disable-ipv6.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/fix-disable-ipv6.patch new file mode 100644 index 000000000..bd3ae476b --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/fix-disable-ipv6.patch | |||
@@ -0,0 +1,60 @@ | |||
1 | Upstream: http://www.mail-archive.com/bug-inetutils@gnu.org/msg02103.html | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | diff -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.2/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch new file mode 100644 index 000000000..3da4e9f55 --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 552a7d64ad4a7188a9b7cd89933ae7caf7ebfe90 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mike Frysinger <vapier at gentoo.org> | ||
3 | Date: Thu, 18 Nov 2010 16:59:14 -0500 | ||
4 | Subject: [PATCH gnulib] printf-parse: pull in features.h for __GLIBC__ | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Mike Frysinger <vapier at gentoo.org> | ||
9 | --- | ||
10 | lib/printf-parse.h | 3 +++ | ||
11 | 1 files changed, 3 insertions(+), 0 deletions(-) | ||
12 | |||
13 | diff --git a/lib/printf-parse.h b/lib/printf-parse.h | ||
14 | index 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 | -- | ||
28 | 1.7.3.2 | ||
29 | |||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/inetutils-1.8-0003-wchar.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/inetutils-1.8-0003-wchar.patch new file mode 100644 index 000000000..b13bb9229 --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/inetutils-1.8-0003-wchar.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | Upstream-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.2/inetutils-1.9-PATH_PROCNET_DEV.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/inetutils-1.9-PATH_PROCNET_DEV.patch new file mode 100644 index 000000000..2592989a9 --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/inetutils-1.9-PATH_PROCNET_DEV.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | inetutils: define PATH_PROCNET_DEV if not already defined | ||
2 | |||
3 | this prevents the following compilation error : | ||
4 | system/linux.c:401:15: error: 'PATH_PROCNET_DEV' undeclared (first use in this function) | ||
5 | |||
6 | this patch comes from : | ||
7 | http://repository.timesys.com/buildsources/i/inetutils/inetutils-1.9/ | ||
8 | |||
9 | Upstream-Status: Inappropriate [not author] | ||
10 | |||
11 | Signed-of-by: Eric Bénard <eric@eukrea.com> | ||
12 | --- | ||
13 | diff -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.2/rexec.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rexec.xinetd.inetutils new file mode 100644 index 000000000..80aed36ff --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/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 | # | ||
7 | service 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.2/rlogin.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rlogin.xinetd.inetutils new file mode 100644 index 000000000..00dbf935b --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/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 | # | ||
7 | service 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.2/rsh.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rsh.xinetd.inetutils new file mode 100644 index 000000000..ad59b6207 --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/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 | # | ||
8 | service 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.2/telnet.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/telnet.xinetd.inetutils new file mode 100644 index 000000000..2a2a12e3a --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/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. | ||
4 | service 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.2/tftpd.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/tftpd.xinetd.inetutils new file mode 100644 index 000000000..f54916339 --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/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 | # | ||
7 | service 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.2/version.patch b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/version.patch new file mode 100644 index 000000000..1caa2d39d --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/version.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | remove m4_esyscmd function | ||
4 | |||
5 | Signed-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.2], | ||
15 | [bug-inetutils@gnu.org]) | ||
16 | |||
17 | AC_CONFIG_SRCDIR([src/inetd.c]) | ||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.2.bb b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.2.bb new file mode 100644 index 000000000..e46133efb --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.2.bb | |||
@@ -0,0 +1,170 @@ | |||
1 | DESCRIPTION = "The GNU inetutils are a collection of common \ | ||
2 | networking utilities and servers including ftp, ftpd, rcp, \ | ||
3 | rexec, rlogin, rlogind, rsh, rshd, syslog, syslogd, talk, \ | ||
4 | talkd, telnet, telnetd, tftp, tftpd, and uucpd." | ||
5 | SECTION = "libs" | ||
6 | DEPENDS = "ncurses netbase readline" | ||
7 | LICENSE = "GPLv3" | ||
8 | |||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=0c7051aef9219dc7237f206c5c4179a7" | ||
10 | |||
11 | SRC_URI = "${GNU_MIRROR}/inetutils/inetutils-${PV}.tar.gz \ | ||
12 | file://version.patch \ | ||
13 | file://inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch \ | ||
14 | file://inetutils-1.8-0003-wchar.patch \ | ||
15 | file://rexec.xinetd.inetutils \ | ||
16 | file://rlogin.xinetd.inetutils \ | ||
17 | file://rsh.xinetd.inetutils \ | ||
18 | file://telnet.xinetd.inetutils \ | ||
19 | file://tftpd.xinetd.inetutils \ | ||
20 | file://inetutils-1.9-PATH_PROCNET_DEV.patch \ | ||
21 | " | ||
22 | |||
23 | SRC_URI[md5sum] = "aa1a9a132259db83e66c1f3265065ba2" | ||
24 | SRC_URI[sha256sum] = "0423ea40a160cd4630f817e247df5c08ecc625378d2bb56a0509117a36a89913" | ||
25 | |||
26 | inherit autotools gettext update-alternatives texinfo | ||
27 | |||
28 | SRC_URI += "${@base_contains('DISTRO_FEATURES', 'ipv6', '', 'file://fix-disable-ipv6.patch', d)}" | ||
29 | noipv6="${@base_contains('DISTRO_FEATURES', 'ipv6', '', '--disable-ipv6 gl_cv_socket_ipv6=no', d)}" | ||
30 | |||
31 | PACKAGECONFIG ??= "ftp uucpd" | ||
32 | PACKAGECONFIG[ftp] = "--enable-ftp,--disable-ftp,readline" | ||
33 | PACKAGECONFIG[uucpd] = "--enable-uucpd,--disable-uucpd,readline" | ||
34 | |||
35 | EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR} \ | ||
36 | ${noipv6} \ | ||
37 | inetutils_cv_path_login=${base_bindir}/login \ | ||
38 | --with-libreadline-prefix=${STAGING_LIBDIR} \ | ||
39 | --enable-rpath=no \ | ||
40 | " | ||
41 | |||
42 | do_configure_prepend () { | ||
43 | export HELP2MAN='true' | ||
44 | cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${S}/build-aux/config.rpath | ||
45 | rm -f ${S}/glob/configure* | ||
46 | } | ||
47 | |||
48 | do_install_append () { | ||
49 | install -m 0755 -d ${D}${base_bindir} | ||
50 | install -m 0755 -d ${D}${base_sbindir} | ||
51 | install -m 0755 -d ${D}${sbindir} | ||
52 | install -m 0755 -d ${D}${sysconfdir}/xinetd.d | ||
53 | mv ${D}${bindir}/ping ${D}${base_bindir}/ | ||
54 | mv ${D}${bindir}/ping6 ${D}${base_bindir}/ | ||
55 | mv ${D}${bindir}/ifconfig ${D}${base_sbindir}/ | ||
56 | mv ${D}${libexecdir}/syslogd ${D}${base_sbindir}/ | ||
57 | mv ${D}${bindir}/hostname ${D}${base_bindir}/ | ||
58 | mv ${D}${libexecdir}/tftpd ${D}${sbindir}/in.tftpd | ||
59 | mv ${D}${libexecdir}/telnetd ${D}${sbindir}/in.telnetd | ||
60 | mv ${D}${libexecdir}/rexecd ${D}${sbindir}/in.rexecd | ||
61 | mv ${D}${libexecdir}/rlogind ${D}${sbindir}/in.rlogind | ||
62 | mv ${D}${libexecdir}/rshd ${D}${sbindir}/in.rshd | ||
63 | mv ${D}${libexecdir}/talkd ${D}${sbindir}/in.talkd | ||
64 | mv ${D}${libexecdir}/uucpd ${D}${sbindir}/in.uucpd | ||
65 | mv ${D}${libexecdir}/* ${D}${bindir}/ | ||
66 | cp ${WORKDIR}/rexec.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/rexec | ||
67 | cp ${WORKDIR}/rlogin.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/rlogin | ||
68 | cp ${WORKDIR}/rsh.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/rsh | ||
69 | cp ${WORKDIR}/telnet.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/telnet | ||
70 | cp ${WORKDIR}/tftpd.xinetd.inetutils ${D}/${sysconfdir}/xinetd.d/tftpd | ||
71 | rm -rf ${D}${libexecdir}/ | ||
72 | # remove usr/lib if empty | ||
73 | rmdir ${D}${libdir} | ||
74 | } | ||
75 | |||
76 | PACKAGES =+ "${PN}-ping ${PN}-ping6 ${PN}-hostname ${PN}-ifconfig \ | ||
77 | ${PN}-tftp ${PN}-logger ${PN}-traceroute ${PN}-syslogd \ | ||
78 | ${PN}-ftp ${PN}-ftpd ${PN}-tftpd ${PN}-telnet ${PN}-telnetd ${PN}-inetd \ | ||
79 | ${PN}-rsh ${PN}-rshd" | ||
80 | |||
81 | # The packages tftpd, telnetd and rshd conflict with the ones | ||
82 | # provided by netkit, so add the corresponding -dbg packages | ||
83 | # for them to avoid the confliction between the dbg package | ||
84 | # of inetutils and netkit. | ||
85 | PACKAGES += "${PN}-tftpd-dbg ${PN}-telnetd-dbg ${PN}-rshd-dbg" | ||
86 | |||
87 | ALTERNATIVE_PRIORITY = "80" | ||
88 | ALTERNATIVE_${PN} = "talk whois" | ||
89 | ALTERNATIVE_LINK_NAME[talkd] = "${sbindir}/in.talkd" | ||
90 | ALTERNATIVE_LINK_NAME[uucpd] = "${sbindir}/in.uucpd" | ||
91 | |||
92 | ALTERNATIVE_${PN}-logger = "logger" | ||
93 | ALTERNATIVE_${PN}-syslogd = "syslogd" | ||
94 | ALTERNATIVE_LINK_NAME[syslogd] = "${base_sbindir}/syslogd" | ||
95 | |||
96 | ALTERNATIVE_${PN}-ftp = "ftp" | ||
97 | ALTERNATIVE_${PN}-ftpd = "ftpd" | ||
98 | ALTERNATIVE_${PN}-tftp = "tftp" | ||
99 | ALTERNATIVE_${PN}-tftpd = "tftpd" | ||
100 | ALTERNATIVE_LINK_NAME[tftpd] = "${bindir}/tftpd" | ||
101 | ALTERNATIVE_TARGET[tftpd] = "${sbindir}/in.tftpd" | ||
102 | |||
103 | ALTERNATIVE_${PN}-telnet = "telnet" | ||
104 | ALTERNATIVE_${PN}-telnetd = "telnetd" | ||
105 | ALTERNATIVE_LINK_NAME[telnetd] = "${bindir}/telnetd" | ||
106 | ALTERNATIVE_TARGET[telnetd] = "${sbindir}/in.telnetd" | ||
107 | |||
108 | ALTERNATIVE_${PN}-rsh = "rcp rexec rlogin rsh" | ||
109 | ALTERNATIVE_${PN}-rshd = "rshd rexecd rlogind" | ||
110 | ALTERNATIVE_LINK_NAME[rshd] = "${bindir}/rshd" | ||
111 | ALTERNATIVE_TARGET[rshd] = "${sbindir}/in.rshd" | ||
112 | ALTERNATIVE_LINK_NAME[rexecd] = "${bindir}/rexecd" | ||
113 | ALTERNATIVE_TARGET[rexecd] = "${sbindir}/in.rexecd" | ||
114 | ALTERNATIVE_LINK_NAME[rlogind] = "${bindir}/rlogind" | ||
115 | ALTERNATIVE_TARGET[rlogind] = "${sbindir}/in.rlogind" | ||
116 | |||
117 | ALTERNATIVE_${PN}-inetd= "inetd" | ||
118 | ALTERNATIVE_${PN}-traceroute = "traceroute" | ||
119 | |||
120 | ALTERNATIVE_${PN}-hostname = "hostname" | ||
121 | ALTERNATIVE_LINK_NAME[hostname] = "${base_bindir}/hostname" | ||
122 | |||
123 | ALTERNATIVE_${PN}-ifconfig = "ifconfig" | ||
124 | ALTERNATIVE_LINK_NAME[ifconfig] = "${base_sbindir}/ifconfig" | ||
125 | |||
126 | ALTERNATIVE_${PN}-ping = "ping" | ||
127 | ALTERNATIVE_LINK_NAME[ping] = "${base_bindir}/ping" | ||
128 | |||
129 | ALTERNATIVE_${PN}-ping6 = "ping6" | ||
130 | ALTERNATIVE_LINK_NAME[ping6] = "${base_bindir}/ping6" | ||
131 | |||
132 | |||
133 | FILES_${PN}-ping = "${base_bindir}/ping.${BPN}" | ||
134 | FILES_${PN}-ping6 = "${base_bindir}/ping6.${BPN}" | ||
135 | FILES_${PN}-hostname = "${base_bindir}/hostname.${BPN}" | ||
136 | FILES_${PN}-ifconfig = "${base_sbindir}/ifconfig.${BPN}" | ||
137 | FILES_${PN}-traceroute = "${bindir}/traceroute.${BPN}" | ||
138 | FILES_${PN}-logger = "${bindir}/logger.${BPN}" | ||
139 | FILES_${PN}-syslogd = "${base_sbindir}/syslogd.${BPN}" | ||
140 | FILES_${PN}-ftp = "${bindir}/ftp.${BPN}" | ||
141 | |||
142 | FILES_${PN}-tftp = "${bindir}/tftp.${BPN}" | ||
143 | FILES_${PN}-telnet = "${bindir}/telnet.${BPN}" | ||
144 | FILES_${PN}-rsh = "${bindir}/rsh.${BPN} ${bindir}/rlogin.${BPN} ${bindir}/rexec.${BPN} ${bindir}/rcp.${BPN}" | ||
145 | |||
146 | FILES_${PN}-rshd = "${sbindir}/in.rshd ${sbindir}/in.rlogind ${sbindir}/in.rexecd \ | ||
147 | ${sysconfdir}/xinetd.d/rsh ${sysconfdir}/xinetd.d/rlogin ${sysconfdir}/xinetd.d/rexec" | ||
148 | FILES_${PN}-rshd-dbg = "${sbindir}/.debug/in.rshd ${sbindir}/.debug/in.rlogind ${sbindir}/.debug/in.rexecd" | ||
149 | RDEPENDS_${PN}-rshd += "xinetd tcp-wrappers" | ||
150 | RCONFLICTS_${PN}-rshd += "netkit-rshd" | ||
151 | RPROVIDES_${PN}-rshd = "rshd" | ||
152 | |||
153 | FILES_${PN}-ftpd = "${bindir}/ftpd.${BPN}" | ||
154 | FILES_${PN}-ftpd-dbg = "${bindir}/.debug/ftpd.${BPN}" | ||
155 | RDEPENDS_${PN}-ftpd += "xinetd" | ||
156 | |||
157 | FILES_${PN}-tftpd = "${sbindir}/in.tftpd ${sysconfdir}/xinetd.d/tftpd" | ||
158 | FILES_${PN}-tftpd-dbg = "${sbindir}/.debug/in.tftpd" | ||
159 | RCONFLICTS_${PN}-tftpd += "netkit-tftpd" | ||
160 | RDEPENDS_${PN}-tftpd += "xinetd" | ||
161 | |||
162 | FILES_${PN}-telnetd = "${sbindir}/in.telnetd ${sysconfdir}/xinetd.d/telnet" | ||
163 | FILES_${PN}-telnetd-dbg = "${sbindir}/.debug/in.telnetd" | ||
164 | RCONFLICTS_${PN}-telnetd += "netkit-telnetd" | ||
165 | RPROVIDES_${PN}-telnetd = "telnetd" | ||
166 | RDEPENDS_${PN}-telnetd += "xinetd" | ||
167 | |||
168 | FILES_${PN}-inetd = "${bindir}/inetd.${BPN}" | ||
169 | |||
170 | RDEPENDS_${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 000000000..47525061e --- /dev/null +++ b/meta-networking/recipes-connectivity/libdnet/libdnet_1.12.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | SUMMARY = "dumb networking library" | ||
2 | HOMEPAGE = "http://code.google.com/p/libdnet/" | ||
3 | LICENSE = "BSD" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=0036c1b155f4e999f3e0a373490b5db9" | ||
5 | |||
6 | SRC_URI = "http://libdnet.googlecode.com/files/libdnet-${PV}.tgz" | ||
7 | |||
8 | SRC_URI[md5sum] = "9253ef6de1b5e28e9c9a62b882e44cc9" | ||
9 | SRC_URI[sha256sum] = "83b33039787cf99990e977cef7f18a5d5e7aaffc4505548a83d31bd3515eb026" | ||
10 | |||
11 | inherit autotools | ||
12 | |||
13 | acpaths = "-I ./config/" | ||
14 | |||
diff --git a/meta-networking/recipes-connectivity/polarssl/polarssl_1.3.8.bb b/meta-networking/recipes-connectivity/polarssl/polarssl_1.3.8.bb new file mode 100644 index 000000000..7a496b7c5 --- /dev/null +++ b/meta-networking/recipes-connectivity/polarssl/polarssl_1.3.8.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | SUMMARY = "Lightweight crypto and SSL/TLS library" | ||
2 | DESCRIPTION = "PolarSSL is a lean open source crypto library \ | ||
3 | for providing SSL and TLS support in your programs. It offers \ | ||
4 | an intuitive API and documented header files, so you can actually \ | ||
5 | understand what the code does. It features: \ | ||
6 | \ | ||
7 | - Symmetric algorithms, like AES, Blowfish, Triple-DES, DES, ARC4, \ | ||
8 | Camellia and XTEA \ | ||
9 | - Hash algorithms, like SHA-1, SHA-2, RIPEMD-160 and MD5 \ | ||
10 | - Entropy pool and random generators, like CTR-DRBG and HMAC-DRBG \ | ||
11 | - Public key algorithms, like RSA, Elliptic Curves, Diffie-Hellman, \ | ||
12 | ECDSA and ECDH \ | ||
13 | - SSL v3 and TLS 1.0, 1.1 and 1.2 \ | ||
14 | - Abstraction layers for ciphers, hashes, public key operations, \ | ||
15 | platform abstraction and threading \ | ||
16 | " | ||
17 | |||
18 | HOMEPAGE = "https://polarssl.org" | ||
19 | BUGTRACKER = "https://github.com/polarssl/polarssl/issues" | ||
20 | |||
21 | LICENSE = "GPLv2" | ||
22 | LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe" | ||
23 | |||
24 | SECTION = "net" | ||
25 | |||
26 | SRC_URI = "https://polarssl.org/download/polarssl-${PV}-gpl.tgz" | ||
27 | |||
28 | SRC_URI[md5sum] = "d1a2b4f21727e888f143414d2e3144e6" | ||
29 | SRC_URI[sha256sum] = "318171db41335cacbb5b0047c94f1faf91442ab70a223b5223436703c9406ff1" | ||
30 | |||
31 | DEPENDS = "openssl" | ||
32 | RDEPENDS_${PN} += "libcrypto" | ||
33 | EXTRA_OECMAKE = "-DUSE_SHARED_POLARSSL_LIBRARY=on" | ||
34 | |||
35 | inherit cmake | ||
diff --git a/meta-networking/recipes-connectivity/sethdlc/files/sethdlc-fix-host-contamination.patch b/meta-networking/recipes-connectivity/sethdlc/files/sethdlc-fix-host-contamination.patch new file mode 100644 index 000000000..f25a02cd8 --- /dev/null +++ b/meta-networking/recipes-connectivity/sethdlc/files/sethdlc-fix-host-contamination.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 9a9137c3df5309ac359737d6ebd67fb4ff5f3cf2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Wenzong Fan <wenzong.fan@windriver.com> | ||
3 | Date: Mon, 24 Nov 2014 22:05:18 -0500 | ||
4 | Subject: [PATCH] sethdlc: fix host contamination | ||
5 | |||
6 | Clean INCLUDES to fix the host contamination errors: | ||
7 | |||
8 | In file included from /usr/src/linux/include/linux/posix_types.h:47:0, | ||
9 | from /usr/src/linux/include/linux/types.h:17, | ||
10 | from /usr/src/linux/include/linux/if.h:22, | ||
11 | from sethdlc.c:23: | ||
12 | /usr/src/linux/include/asm-generic/posix_types.h:91:3: \ | ||
13 | error: conflicting types for '__kernel_fsid_t' | ||
14 | } __kernel_fsid_t; | ||
15 | ^ | ||
16 | .../tmp/sysroots/qemumips/usr/include/asm/posix_types.h:26:3: \ | ||
17 | note: previous declaration of '__kernel_fsid_t' was here | ||
18 | } __kernel_fsid_t; | ||
19 | ^ | ||
20 | |||
21 | Upstream-Status: Pending | ||
22 | |||
23 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | ||
24 | --- | ||
25 | Makefile | 2 +- | ||
26 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
27 | |||
28 | diff --git a/Makefile b/Makefile | ||
29 | index 0492f2b..97dec22 100644 | ||
30 | --- a/Makefile | ||
31 | +++ b/Makefile | ||
32 | @@ -1,6 +1,6 @@ | ||
33 | CC = gcc | ||
34 | CFLAGS = -O2 -Wall -W -Wno-long-long -pipe | ||
35 | -INCLUDES = -I/usr/src/linux/include -I/usr/src/linux-2.6/include | ||
36 | +INCLUDES = | ||
37 | |||
38 | all: sethdlc | ||
39 | |||
40 | -- | ||
41 | 1.7.9.5 | ||
42 | |||
diff --git a/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb b/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb new file mode 100644 index 000000000..5e8d9d9bf --- /dev/null +++ b/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | DESCRIPTION = "set Linux HDLC packet radio modem driver port information" | ||
2 | HOMEPAGE = "https://www.kernel.org/pub/linux/utils/net/hdlc" | ||
3 | LICENSE = "GPLv2 & GPLv2+ " | ||
4 | LIC_FILES_CHKSUM = "file://sethdlc.c;endline=10;md5=90f936879e9f8b755a138aeb348782eb" | ||
5 | |||
6 | |||
7 | SRC_URI = "https://www.kernel.org/pub/linux/utils/net/hdlc/${BPN}-1.18.tar.gz \ | ||
8 | file://sethdlc-fix-host-contamination.patch \ | ||
9 | " | ||
10 | SRC_URI[md5sum] = "9016878156a5eadb06c0bae71cc5c9ab" | ||
11 | SRC_URI[sha256sum] = "21b1e2e1cb0e288b0ec8fcfd9fed449914e0f8e6fc273706bd5b3d4f6ab6b04e" | ||
12 | |||
13 | |||
14 | S = "${WORKDIR}/${BPN}-1.18" | ||
15 | |||
16 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
17 | DEPENDS = "virtual/kernel" | ||
18 | |||
19 | EXTRA_OEMAKE="CROSS_COMPILE=${TARGET_PREFIX} CC='${CC} ${LDFLAGS}' \ | ||
20 | KERNEL_DIR=${STAGING_KERNEL_DIR} " | ||
21 | |||
22 | do_compile_prepend () { | ||
23 | oe_runmake clean | ||
24 | } | ||
25 | |||
26 | |||
27 | do_install() { | ||
28 | install -d ${D}/${bindir} | ||
29 | install sethdlc ${D}/${bindir}/ | ||
30 | } | ||
31 | |||
32 | FILES_${PN} += "${bindir}/sethdlc" | ||
diff --git a/meta-networking/recipes-connectivity/snort/snort/0001-libpcap-search-sysroot-for-headers.patch b/meta-networking/recipes-connectivity/snort/snort/0001-libpcap-search-sysroot-for-headers.patch new file mode 100644 index 000000000..54c2a9521 --- /dev/null +++ b/meta-networking/recipes-connectivity/snort/snort/0001-libpcap-search-sysroot-for-headers.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 4d7ebe3ed6cee72bc7db98bd408d22c10ef5dd82 Mon Sep 17 00:00:00 2001 | ||
2 | From: Joe MacDonald <joe@deserted.net> | ||
3 | Date: Wed, 20 Nov 2013 16:06:07 -0500 | ||
4 | Subject: [PATCH] libpcap: search sysroot for headers | ||
5 | |||
6 | Configure hard-coded host header paths when building with libpcap. Point | ||
7 | the search path at the sysroot instead. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Joe MacDonald <joe@deserted.net> | ||
12 | --- | ||
13 | configure.in | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/configure.in b/configure.in | ||
17 | index 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 | -- | ||
30 | 1.7.10.4 | ||
31 | |||
diff --git a/meta-networking/recipes-connectivity/snort/snort/disable-dap-address-space-id.patch b/meta-networking/recipes-connectivity/snort/snort/disable-dap-address-space-id.patch new file mode 100644 index 000000000..39e5c9c03 --- /dev/null +++ b/meta-networking/recipes-connectivity/snort/snort/disable-dap-address-space-id.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | Upstream-Status:Inappropriate [embedded specific] | ||
2 | |||
3 | fix the below error: | ||
4 | checking for dap address space id... configure: | ||
5 | configure: error: cannot run test program while cross compiling | ||
6 | |||
7 | |||
8 | Signed-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/snort/disable-inaddr-none.patch b/meta-networking/recipes-connectivity/snort/snort/disable-inaddr-none.patch new file mode 100644 index 000000000..9dafe6345 --- /dev/null +++ b/meta-networking/recipes-connectivity/snort/snort/disable-inaddr-none.patch | |||
@@ -0,0 +1,75 @@ | |||
1 | Upstream-Status: Inappropriate [embedded specific] | ||
2 | |||
3 | fix the below error: | ||
4 | checking for INADDR_NONE... configure: | ||
5 | configure: error: cannot run test program while cross compiling | ||
6 | |||
7 | Signed-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/snort/not-hardcoded-libdir.patch b/meta-networking/recipes-connectivity/snort/snort/not-hardcoded-libdir.patch new file mode 100644 index 000000000..075ec138b --- /dev/null +++ b/meta-networking/recipes-connectivity/snort/snort/not-hardcoded-libdir.patch | |||
@@ -0,0 +1,279 @@ | |||
1 | [PATCH] do not hardcoded libdir | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | libdir is hardcoded to ${exec_prefix}/lib, but we want it to support multilib | ||
6 | |||
7 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | ||
8 | --- | ||
9 | src/dynamic-examples/dynamic-preprocessor/Makefile.am | 2 +- | ||
10 | src/dynamic-examples/dynamic-rule/Makefile.am | 2 +- | ||
11 | src/dynamic-plugins/sf_engine/Makefile.am | 2 +- | ||
12 | src/dynamic-preprocessors/dcerpc2/Makefile.am | 2 +- | ||
13 | src/dynamic-preprocessors/dnp3/Makefile.am | 2 +- | ||
14 | src/dynamic-preprocessors/dns/Makefile.am | 2 +- | ||
15 | src/dynamic-preprocessors/file/Makefile.am | 2 +- | ||
16 | src/dynamic-preprocessors/ftptelnet/Makefile.am | 2 +- | ||
17 | src/dynamic-preprocessors/gtp/Makefile.am | 2 +- | ||
18 | src/dynamic-preprocessors/imap/Makefile.am | 2 +- | ||
19 | src/dynamic-preprocessors/modbus/Makefile.am | 2 +- | ||
20 | src/dynamic-preprocessors/pop/Makefile.am | 2 +- | ||
21 | src/dynamic-preprocessors/reputation/Makefile.am | 2 +- | ||
22 | src/dynamic-preprocessors/rzb_saac/Makefile.am | 2 +- | ||
23 | src/dynamic-preprocessors/sdf/Makefile.am | 2 +- | ||
24 | src/dynamic-preprocessors/sip/Makefile.am | 2 +- | ||
25 | src/dynamic-preprocessors/smtp/Makefile.am | 2 +- | ||
26 | src/dynamic-preprocessors/ssh/Makefile.am | 2 +- | ||
27 | src/dynamic-preprocessors/ssl/Makefile.am | 2 +- | ||
28 | 19 files changed, 19 insertions(+), 19 deletions(-) | ||
29 | |||
30 | diff --git a/src/dynamic-examples/dynamic-preprocessor/Makefile.am b/src/dynamic-examples/dynamic-preprocessor/Makefile.am | ||
31 | index 255755e..1cafead 100644 | ||
32 | --- a/src/dynamic-examples/dynamic-preprocessor/Makefile.am | ||
33 | +++ b/src/dynamic-examples/dynamic-preprocessor/Makefile.am | ||
34 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
35 | |||
36 | INCLUDES = -I../include | ||
37 | |||
38 | -noinst_libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
39 | +noinst_libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
40 | |||
41 | noinst_lib_LTLIBRARIES = lib_sfdynamic_preprocessor_example.la | ||
42 | |||
43 | diff --git a/src/dynamic-examples/dynamic-rule/Makefile.am b/src/dynamic-examples/dynamic-rule/Makefile.am | ||
44 | index e5338d2..82eb212 100644 | ||
45 | --- a/src/dynamic-examples/dynamic-rule/Makefile.am | ||
46 | +++ b/src/dynamic-examples/dynamic-rule/Makefile.am | ||
47 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
48 | |||
49 | INCLUDES = -I../include | ||
50 | |||
51 | -noinst_libdir = ${exec_prefix}/lib/snort_dynamicrules | ||
52 | +noinst_libdir = ${exec_prefix}${base_libdir}/snort_dynamicrules | ||
53 | |||
54 | noinst_lib_LTLIBRARIES = lib_sfdynamic_example_rule.la | ||
55 | |||
56 | diff --git a/src/dynamic-plugins/sf_engine/Makefile.am b/src/dynamic-plugins/sf_engine/Makefile.am | ||
57 | index d6a6200..3d270c3 100644 | ||
58 | --- a/src/dynamic-plugins/sf_engine/Makefile.am | ||
59 | +++ b/src/dynamic-plugins/sf_engine/Makefile.am | ||
60 | @@ -5,7 +5,7 @@ INCLUDES = @INCLUDES@ | ||
61 | |||
62 | lib_LTLIBRARIES = libsf_engine.la | ||
63 | |||
64 | -libdir = ${exec_prefix}/lib/snort_dynamicengine | ||
65 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicengine | ||
66 | |||
67 | libsf_engine_la_LDFLAGS = -export-dynamic -module @XCCFLAGS@ | ||
68 | |||
69 | diff --git a/src/dynamic-preprocessors/dcerpc2/Makefile.am b/src/dynamic-preprocessors/dcerpc2/Makefile.am | ||
70 | index 9843073..8a0caa5 100644 | ||
71 | --- a/src/dynamic-preprocessors/dcerpc2/Makefile.am | ||
72 | +++ b/src/dynamic-preprocessors/dcerpc2/Makefile.am | ||
73 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
74 | |||
75 | INCLUDES = -I../include -I${srcdir}/../libs -I$(srcdir)/includes | ||
76 | |||
77 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
78 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
79 | |||
80 | lib_LTLIBRARIES = libsf_dce2_preproc.la | ||
81 | |||
82 | diff --git a/src/dynamic-preprocessors/dnp3/Makefile.am b/src/dynamic-preprocessors/dnp3/Makefile.am | ||
83 | index 1358862..18e2178 100644 | ||
84 | --- a/src/dynamic-preprocessors/dnp3/Makefile.am | ||
85 | +++ b/src/dynamic-preprocessors/dnp3/Makefile.am | ||
86 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
87 | |||
88 | INCLUDES = -I../include -I${srcdir}/../libs | ||
89 | |||
90 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
91 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
92 | |||
93 | lib_LTLIBRARIES = libsf_dnp3_preproc.la | ||
94 | |||
95 | diff --git a/src/dynamic-preprocessors/dns/Makefile.am b/src/dynamic-preprocessors/dns/Makefile.am | ||
96 | index f22d90e..49d2f55 100644 | ||
97 | --- a/src/dynamic-preprocessors/dns/Makefile.am | ||
98 | +++ b/src/dynamic-preprocessors/dns/Makefile.am | ||
99 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
100 | |||
101 | INCLUDES = -I../include -I${srcdir}/../libs | ||
102 | |||
103 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
104 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
105 | |||
106 | lib_LTLIBRARIES = libsf_dns_preproc.la | ||
107 | |||
108 | diff --git a/src/dynamic-preprocessors/file/Makefile.am b/src/dynamic-preprocessors/file/Makefile.am | ||
109 | index d71c0fd..834f7ac 100644 | ||
110 | --- a/src/dynamic-preprocessors/file/Makefile.am | ||
111 | +++ b/src/dynamic-preprocessors/file/Makefile.am | ||
112 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
113 | |||
114 | INCLUDES = -I../include -I${srcdir}/../libs -I./include | ||
115 | |||
116 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
117 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
118 | |||
119 | lib_LTLIBRARIES = libsf_file_preproc.la | ||
120 | |||
121 | diff --git a/src/dynamic-preprocessors/ftptelnet/Makefile.am b/src/dynamic-preprocessors/ftptelnet/Makefile.am | ||
122 | index fe73835..3457231 100644 | ||
123 | --- a/src/dynamic-preprocessors/ftptelnet/Makefile.am | ||
124 | +++ b/src/dynamic-preprocessors/ftptelnet/Makefile.am | ||
125 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
126 | |||
127 | INCLUDES = -I../include -I${srcdir}/../libs -I$(srcdir)/includes | ||
128 | |||
129 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
130 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
131 | |||
132 | lib_LTLIBRARIES = libsf_ftptelnet_preproc.la | ||
133 | |||
134 | diff --git a/src/dynamic-preprocessors/gtp/Makefile.am b/src/dynamic-preprocessors/gtp/Makefile.am | ||
135 | index 51c961a..d7fb9b2 100644 | ||
136 | --- a/src/dynamic-preprocessors/gtp/Makefile.am | ||
137 | +++ b/src/dynamic-preprocessors/gtp/Makefile.am | ||
138 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
139 | |||
140 | INCLUDES = -I../include -I${srcdir}/../libs -I$(srcdir)/includes | ||
141 | |||
142 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
143 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
144 | |||
145 | lib_LTLIBRARIES = libsf_gtp_preproc.la | ||
146 | |||
147 | diff --git a/src/dynamic-preprocessors/imap/Makefile.am b/src/dynamic-preprocessors/imap/Makefile.am | ||
148 | index 533e43d..9efcbc4 100644 | ||
149 | --- a/src/dynamic-preprocessors/imap/Makefile.am | ||
150 | +++ b/src/dynamic-preprocessors/imap/Makefile.am | ||
151 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
152 | |||
153 | INCLUDES = -I../include -I${srcdir}/../libs | ||
154 | |||
155 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
156 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
157 | |||
158 | lib_LTLIBRARIES = libsf_imap_preproc.la | ||
159 | |||
160 | diff --git a/src/dynamic-preprocessors/modbus/Makefile.am b/src/dynamic-preprocessors/modbus/Makefile.am | ||
161 | index 05fc63e..e4f1415 100644 | ||
162 | --- a/src/dynamic-preprocessors/modbus/Makefile.am | ||
163 | +++ b/src/dynamic-preprocessors/modbus/Makefile.am | ||
164 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
165 | |||
166 | INCLUDES = -I../include -I${srcdir}/../libs | ||
167 | |||
168 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
169 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
170 | |||
171 | lib_LTLIBRARIES = libsf_modbus_preproc.la | ||
172 | |||
173 | diff --git a/src/dynamic-preprocessors/pop/Makefile.am b/src/dynamic-preprocessors/pop/Makefile.am | ||
174 | index d4b07b3..1345bc6 100644 | ||
175 | --- a/src/dynamic-preprocessors/pop/Makefile.am | ||
176 | +++ b/src/dynamic-preprocessors/pop/Makefile.am | ||
177 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
178 | |||
179 | INCLUDES = -I../include -I${srcdir}/../libs | ||
180 | |||
181 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
182 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
183 | |||
184 | lib_LTLIBRARIES = libsf_pop_preproc.la | ||
185 | |||
186 | diff --git a/src/dynamic-preprocessors/reputation/Makefile.am b/src/dynamic-preprocessors/reputation/Makefile.am | ||
187 | index 4e16142..14ba0cb 100644 | ||
188 | --- a/src/dynamic-preprocessors/reputation/Makefile.am | ||
189 | +++ b/src/dynamic-preprocessors/reputation/Makefile.am | ||
190 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
191 | |||
192 | INCLUDES = -I../include -I${srcdir}/../libs -I$(srcdir)/includes | ||
193 | |||
194 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
195 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
196 | |||
197 | lib_LTLIBRARIES = libsf_reputation_preproc.la | ||
198 | |||
199 | diff --git a/src/dynamic-preprocessors/rzb_saac/Makefile.am b/src/dynamic-preprocessors/rzb_saac/Makefile.am | ||
200 | index f0b0912..6ebe04e 100644 | ||
201 | --- a/src/dynamic-preprocessors/rzb_saac/Makefile.am | ||
202 | +++ b/src/dynamic-preprocessors/rzb_saac/Makefile.am | ||
203 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
204 | |||
205 | INCLUDES = -I../include -I${srcdir}/../libs | ||
206 | |||
207 | -pkglibdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
208 | +pkglibdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
209 | |||
210 | pkglib_LTLIBRARIES = sf_rzb_saac_preproc.la | ||
211 | |||
212 | diff --git a/src/dynamic-preprocessors/sdf/Makefile.am b/src/dynamic-preprocessors/sdf/Makefile.am | ||
213 | index 97b416e..04b5ce5 100644 | ||
214 | --- a/src/dynamic-preprocessors/sdf/Makefile.am | ||
215 | +++ b/src/dynamic-preprocessors/sdf/Makefile.am | ||
216 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
217 | |||
218 | INCLUDES = -I../include -I${srcdir}/../libs | ||
219 | |||
220 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
221 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
222 | |||
223 | lib_LTLIBRARIES = libsf_sdf_preproc.la | ||
224 | |||
225 | diff --git a/src/dynamic-preprocessors/sip/Makefile.am b/src/dynamic-preprocessors/sip/Makefile.am | ||
226 | index 67ac1e1..b4f360f 100644 | ||
227 | --- a/src/dynamic-preprocessors/sip/Makefile.am | ||
228 | +++ b/src/dynamic-preprocessors/sip/Makefile.am | ||
229 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
230 | |||
231 | INCLUDES = -I../include -I${srcdir}/../libs -I$(srcdir)/includes | ||
232 | |||
233 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
234 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
235 | |||
236 | lib_LTLIBRARIES = libsf_sip_preproc.la | ||
237 | |||
238 | diff --git a/src/dynamic-preprocessors/smtp/Makefile.am b/src/dynamic-preprocessors/smtp/Makefile.am | ||
239 | index 3b5893f..96750df 100644 | ||
240 | --- a/src/dynamic-preprocessors/smtp/Makefile.am | ||
241 | +++ b/src/dynamic-preprocessors/smtp/Makefile.am | ||
242 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
243 | |||
244 | INCLUDES = -I../include -I${srcdir}/../libs | ||
245 | |||
246 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
247 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
248 | |||
249 | lib_LTLIBRARIES = libsf_smtp_preproc.la | ||
250 | |||
251 | diff --git a/src/dynamic-preprocessors/ssh/Makefile.am b/src/dynamic-preprocessors/ssh/Makefile.am | ||
252 | index 0eab645..5ae9b80 100644 | ||
253 | --- a/src/dynamic-preprocessors/ssh/Makefile.am | ||
254 | +++ b/src/dynamic-preprocessors/ssh/Makefile.am | ||
255 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
256 | |||
257 | INCLUDES = -I../include -I${srcdir}/../libs | ||
258 | |||
259 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
260 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
261 | |||
262 | lib_LTLIBRARIES = libsf_ssh_preproc.la | ||
263 | |||
264 | diff --git a/src/dynamic-preprocessors/ssl/Makefile.am b/src/dynamic-preprocessors/ssl/Makefile.am | ||
265 | index 4ac2943..8d3abe3 100644 | ||
266 | --- a/src/dynamic-preprocessors/ssl/Makefile.am | ||
267 | +++ b/src/dynamic-preprocessors/ssl/Makefile.am | ||
268 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
269 | |||
270 | INCLUDES = -I../include -I${srcdir}/../libs | ||
271 | |||
272 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
273 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
274 | |||
275 | lib_LTLIBRARIES = libsf_ssl_preproc.la | ||
276 | |||
277 | -- | ||
278 | 1.9.1 | ||
279 | |||
diff --git a/meta-networking/recipes-connectivity/snort/snort/snort.init b/meta-networking/recipes-connectivity/snort/snort/snort.init new file mode 100644 index 000000000..d8a00c43f --- /dev/null +++ b/meta-networking/recipes-connectivity/snort/snort/snort.init | |||
@@ -0,0 +1,109 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # Snort Startup Script modified for OpenEmbedded | ||
4 | # | ||
5 | |||
6 | # Script variables | ||
7 | |||
8 | LAN_INTERFACE="$2" | ||
9 | RETURN_VAL=0 | ||
10 | BINARY=/usr/bin/snort | ||
11 | PATH=/bin:/usr/bin | ||
12 | PID=/var/run/snort_${LAN_INTERFACE}_ids.pid | ||
13 | DEL_PID=$PID | ||
14 | LOGDIR="/var/log/snort" | ||
15 | DATE=`/bin/date +%Y%m%d` | ||
16 | CONFIG_FILE=/etc/snort/snort.conf | ||
17 | PROG=snort | ||
18 | USER=root | ||
19 | GROUP=root | ||
20 | |||
21 | if [ ! -x "$BINARY" ]; then | ||
22 | echo "ERROR: $BINARY not found." | ||
23 | exit 1 | ||
24 | fi | ||
25 | |||
26 | if [ ! -r "$CONFIG_FILE" ]; then | ||
27 | echo "ERROR: $CONFIG_FILE not found." | ||
28 | exit 1 | ||
29 | fi | ||
30 | |||
31 | start() | ||
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 | |||
59 | stop() | ||
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 | |||
75 | status() { | ||
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 | |||
83 | restart() | ||
84 | { | ||
85 | stop | ||
86 | start | ||
87 | RETURN_VAL=$? | ||
88 | return $RETURN_VAL | ||
89 | } | ||
90 | |||
91 | case "$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 | ||
107 | esac | ||
108 | |||
109 | exit $RETURN_VAL | ||
diff --git a/meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb b/meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb new file mode 100644 index 000000000..8f5175e79 --- /dev/null +++ b/meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb | |||
@@ -0,0 +1,80 @@ | |||
1 | DESCRIPTION = "snort - a free lightweight network intrusion detection system for UNIX and Windows." | ||
2 | HOMEPAGE = "http://www.snort.org/" | ||
3 | LICENSE = "GPL-2.0" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=78fa8ef966b48fbf9095e13cc92377c5" | ||
5 | |||
6 | DEPENDS = "libpcap libpcre daq libdnet util-linux" | ||
7 | |||
8 | |||
9 | SRC_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 | file://not-hardcoded-libdir.patch \ | ||
15 | " | ||
16 | |||
17 | SRC_URI[tarball.md5sum] = "18111f6de3989ca89add36077a7c2659" | ||
18 | SRC_URI[tarball.sha256sum] = "3cc6c8a9b52f4c863a5736a73b4012aff340b50b5e002771b04d4877f47cd19e" | ||
19 | |||
20 | inherit autotools gettext update-rc.d pkgconfig | ||
21 | |||
22 | INITSCRIPT_NAME = "snort" | ||
23 | INITSCRIPT_PARAMS = "defaults" | ||
24 | |||
25 | EXTRA_OECONF = " \ | ||
26 | --enable-gre \ | ||
27 | --enable-linux-smp-stats \ | ||
28 | --enable-reload \ | ||
29 | --enable-reload-error-restart \ | ||
30 | --enable-targetbased \ | ||
31 | --disable-static-daq \ | ||
32 | --with-dnet-includes=${STAGING_INCDIR} \ | ||
33 | --with-dnet-libraries=${STAGING_LIBDIR} \ | ||
34 | " | ||
35 | |||
36 | # if you want to disable it, you need to patch configure.in first | ||
37 | # AC_CHECK_HEADERS([openssl/sha.h],, SHA_H="no") | ||
38 | # is called even with --without-openssl-includes | ||
39 | PACKAGECONFIG ?= "openssl" | ||
40 | PACKAGECONFIG[openssl] = "--with-openssl-includes=${STAGING_INCDIR} --with-openssl-libraries=${STAGING_LIBDIR}, --without-openssl-includes --without-openssl-libraries, openssl," | ||
41 | |||
42 | do_install_append() { | ||
43 | install -d ${D}/${sysconfdir}/snort/rules | ||
44 | install -d ${D}/${sysconfdir}/snort/preproc_rules | ||
45 | install -d ${D}${sysconfdir}/init.d | ||
46 | for i in map config conf dtd; do | ||
47 | cp ${S}/etc/*.$i ${D}/${sysconfdir}/snort/ | ||
48 | done | ||
49 | cp ${S}/preproc_rules/*.rules ${D}/${sysconfdir}/snort/preproc_rules/ | ||
50 | install -m 755 ${WORKDIR}/snort.init ${D}/${sysconfdir}/init.d/snort | ||
51 | mkdir -p ${D}/${localstatedir}/log/snort | ||
52 | install -d ${D}/var/log/snort | ||
53 | } | ||
54 | |||
55 | FILES_${PN} += " \ | ||
56 | ${libdir}/snort_dynamicengine/*.so.* \ | ||
57 | ${libdir}/snort_dynamicpreprocessor/*.so.* \ | ||
58 | ${libdir}/snort_dynamicrules/*.so.* \ | ||
59 | " | ||
60 | FILES_${PN}-dbg += " \ | ||
61 | ${libdir}/snort_dynamicengine/.debug \ | ||
62 | ${libdir}/snort_dynamicpreprocessor/.debug \ | ||
63 | ${libdir}/snort_dynamicrules/.debug \ | ||
64 | " | ||
65 | FILES_${PN}-staticdev += " \ | ||
66 | ${libdir}/snort_dynamicengine/*.a \ | ||
67 | ${libdir}/snort_dynamicpreprocessor/*.a \ | ||
68 | ${libdir}/snort_dynamicrules/*.a \ | ||
69 | ${libdir}/snort/dynamic_preproc/*.a \ | ||
70 | ${libdir}/snort/dynamic_output/*.a \ | ||
71 | " | ||
72 | FILES_${PN}-dev += " \ | ||
73 | ${libdir}/snort_dynamicengine/*.la \ | ||
74 | ${libdir}/snort_dynamicpreprocessor/*.la \ | ||
75 | ${libdir}/snort_dynamicrules/*.la \ | ||
76 | ${libdir}/snort_dynamicengine/*.so \ | ||
77 | ${libdir}/snort_dynamicpreprocessor/*.so \ | ||
78 | ${libdir}/snort_dynamicrules/*.so \ | ||
79 | ${prefix}/src/snort_dynamicsrc \ | ||
80 | " | ||
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 000000000..2c4f1577e --- /dev/null +++ b/meta-networking/recipes-connectivity/vlan/vlan_1.9.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | SUMMARY = "VLAN provides vconfig utility" | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://vconfig.c;md5=293ef69c4e88434d37a5ee577a5288cb" | ||
4 | |||
5 | SRC_URI = "http://${BPN}.sourcearchive.com/downloads/${PV}-3ubuntu9/${BPN}_${PV}.orig.tar.gz" | ||
6 | |||
7 | SRC_URI[md5sum] = "5f0c6060b33956fb16e11a15467dd394" | ||
8 | SRC_URI[sha256sum] = "3b8f0a1bf0d3642764e5f646e1f3bbc8b1eeec474a77392d9aeb4868842b4cca" | ||
9 | |||
10 | S = "${WORKDIR}/${BPN}" | ||
11 | |||
12 | # comment out MakeInclude in Makefile which sets build environment | ||
13 | do_configure_append () { | ||
14 | sed -i 's/^ include/#^include/' ${S}/Makefile | ||
15 | } | ||
16 | |||
17 | # ignore strip to avoid yocto errors in stripping | ||
18 | do_compile () { | ||
19 | oe_runmake PLATFORM=ARM 'STRIP=echo' all | ||
20 | } | ||
21 | |||
22 | do_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 000000000..48b15eca6 --- /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 000000000..fbec25414 --- /dev/null +++ b/meta-networking/recipes-connectivity/vpnc/vpnc/long-help | |||
@@ -0,0 +1,168 @@ | |||
1 | Usage: vpnc [--version] [--print-config] [--help] [--long-help] [options] [config files] | ||
2 | |||
3 | Options: | ||
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 | |||
168 | Report 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 000000000..f394e6abd --- /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 000000000..3de65ec35 --- /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 000000000..986416ade --- /dev/null +++ b/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | SUMMARY = "A client for the Cisco3000 VPN Concentrator" | ||
2 | HOMEPAGE = "http://www.unix-ag.uni-kl.de/~massar/vpnc/" | ||
3 | AUTHOR = "Maurice Massar vpnc@unix-ag.uni-kl.de" | ||
4 | SECTION = "console/network" | ||
5 | PRIORITY = "optional" | ||
6 | LICENSE = "GPL-2.0+" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=173b74cb8ac640a9992c03f3bce22a33" | ||
8 | DEPENDS = "libgcrypt" | ||
9 | |||
10 | CFLAGS_append = ' -DVERSION=\\"${PV}\\"' | ||
11 | LDFLAGS_append = " -lgcrypt -lgpg-error" | ||
12 | |||
13 | do_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 | |||
20 | CONFFILES_${PN} = "${sysconfdir}/vpnc/default.conf" | ||
21 | RDEPENDS_${PN} = "kernel-module-tun perl-module-io-file" | ||
22 | |||
23 | SRC_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 | |||
29 | SRC_URI[md5sum] = "4378f9551d5b077e1770bbe09995afb3" | ||
30 | SRC_URI[sha256sum] = "46cea3bd02f207c62c7c6f2f22133382602baeda1dc320747809e94881414884" | ||