diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-networking/recipes-support | |
download | meta-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-support')
93 files changed, 3569 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/aoetools/aoetools_34.bb b/meta-networking/recipes-support/aoetools/aoetools_34.bb new file mode 100644 index 0000000000..1557de96fb --- /dev/null +++ b/meta-networking/recipes-support/aoetools/aoetools_34.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | SUMMARY = "ATA over Ethernet Tools" | ||
2 | DESCRIPTION = " \ | ||
3 | The aoetools are programs for users of the ATA over Ethernet (AoE)network \ | ||
4 | storage protocol, a simple protocol for using storage over anethernet LAN. \ | ||
5 | The vblade program (storage target) exports a blockdevice using AoE. \ | ||
6 | " | ||
7 | HOMEPAGE = "http://sourceforge.net/projects/${BPN}" | ||
8 | SECTION = "console/network" | ||
9 | LICENSE = "GPLv2" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
11 | RRECOMMENDS_${PN} = "kernel-module-aoe" | ||
12 | |||
13 | |||
14 | SRC_URI = "http://sourceforge.net/projects/${BPN}/files/${BPN}/${PV}/${BPN}-${PV}.tar.gz" | ||
15 | SRC_URI[md5sum] = "cde7f7cedc7cd9938a5ebfd009dd3ec0" | ||
16 | SRC_URI[sha256sum] = "fd6c57244e9458d7cbe7a0171295ddee4d8cdcae291e40d6acbc641df7296d85" | ||
17 | |||
18 | # EXTRA_OEMAKE is typically: -e MAKEFLAGS= | ||
19 | # the -e causes problems as CFLAGS is modified in the Makefile. | ||
20 | EXTRA_OEMAKE = "" | ||
21 | |||
22 | do_install() { | ||
23 | oe_runmake DESTDIR=${D} install | ||
24 | } | ||
diff --git a/meta-networking/recipes-support/arptables/arptables-0.0.3-4/arptables-arpt-get-target-fix.patch b/meta-networking/recipes-support/arptables/arptables-0.0.3-4/arptables-arpt-get-target-fix.patch new file mode 100644 index 0000000000..0875344feb --- /dev/null +++ b/meta-networking/recipes-support/arptables/arptables-0.0.3-4/arptables-arpt-get-target-fix.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | arptables: fix the redefinition of 'arpt_get_target' | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | This function is already defined as a static inline function in | ||
6 | include/linux/netfilter_arp/arp_tables.h, once GCC uses -O0, the | ||
7 | inline will not work, and the redefinition error will happen | ||
8 | |||
9 | Signed-off-by: Aws Ismail <aws.ismail@windriver.com> | ||
10 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | ||
11 | |||
12 | diff --git a/libarptc/libarptc_incl.c b/libarptc/libarptc_incl.c | ||
13 | index 35736db..addd3f9 100644 | ||
14 | --- a/libarptc/libarptc_incl.c | ||
15 | +++ b/libarptc/libarptc_incl.c | ||
16 | @@ -11,14 +11,6 @@ | ||
17 | /* (C)1999 Paul ``Rusty'' Russell - Placed under the GNU GPL (See | ||
18 | COPYING for details). */ | ||
19 | |||
20 | -#ifndef __OPTIMIZE__ | ||
21 | -STRUCT_ENTRY_TARGET * | ||
22 | -GET_TARGET(STRUCT_ENTRY *e) | ||
23 | -{ | ||
24 | - return (void *)e + e->target_offset; | ||
25 | -} | ||
26 | -#endif | ||
27 | - | ||
28 | static int sockfd = -1; | ||
29 | static void *arptc_fn = NULL; | ||
30 | |||
diff --git a/meta-networking/recipes-support/arptables/arptables-0.0.3-4/arptables-compile-install.patch b/meta-networking/recipes-support/arptables/arptables-0.0.3-4/arptables-compile-install.patch new file mode 100644 index 0000000000..80e9804724 --- /dev/null +++ b/meta-networking/recipes-support/arptables/arptables-0.0.3-4/arptables-compile-install.patch | |||
@@ -0,0 +1,61 @@ | |||
1 | Index: arptables-v0.0.3-4/Makefile | ||
2 | =================================================================== | ||
3 | --- arptables-v0.0.3-4.orig/Makefile 2010-03-08 18:49:28.000000000 +0300 | ||
4 | +++ arptables-v0.0.3-4/Makefile 2010-03-22 15:52:56.000000000 +0300 | ||
5 | @@ -6,12 +6,11 @@ | ||
6 | LIBDIR:=$(PREFIX)/lib | ||
7 | BINDIR:=$(PREFIX)/sbin | ||
8 | MANDIR:=$(PREFIX)/man | ||
9 | -INITDIR:=/etc/rc.d/init.d | ||
10 | +INITDIR:=/etc/init.d | ||
11 | SYSCONFIGDIR:=/etc/sysconfig | ||
12 | DESTDIR:= | ||
13 | |||
14 | -COPT_FLAGS:=-O2 | ||
15 | -CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include/ -Iinclude/ -DARPTABLES_VERSION=\"$(ARPTABLES_VERSION)\" #-g -DDEBUG #-pg # -DARPTC_DEBUG | ||
16 | +ARPCFLAGS:=-Wall -Wunused -I$(KERNEL_DIR)/include/ -Iinclude/ -DARPTABLES_VERSION=\"$(ARPTABLES_VERSION)\" | ||
17 | |||
18 | ifndef ARPT_LIBDIR | ||
19 | ARPT_LIBDIR:=$(LIBDIR)/arptables | ||
20 | @@ -22,16 +21,16 @@ | ||
21 | all: arptables | ||
22 | |||
23 | arptables.o: arptables.c | ||
24 | - $(CC) $(CFLAGS) -c -o $@ $< | ||
25 | + $(CC) $(CFLAGS) $(ARPCFLAGS) -c -o $@ $< | ||
26 | |||
27 | arptables-standalone.o: arptables-standalone.c | ||
28 | - $(CC) $(CFLAGS) -c -o $@ $< | ||
29 | + $(CC) $(CFLAGS) $(ARPCFLAGS) -c -o $@ $< | ||
30 | |||
31 | libarptc/libarptc.o: libarptc/libarptc.c libarptc/libarptc_incl.c | ||
32 | - $(CC) $(CFLAGS) -c -o $@ $< | ||
33 | + $(CC) $(CFLAGS) $(ARPCFLAGS) -c -o $@ $< | ||
34 | |||
35 | arptables: arptables-standalone.o arptables.o libarptc/libarptc.o $(EXT_OBJS) | ||
36 | - $(CC) $(CFLAGS) -o $@ $^ | ||
37 | + $(CC) $(LDFLAGS) $(CFLAGS) $(ARPCFLAGS) -o $@ $^ | ||
38 | |||
39 | $(DESTDIR)$(MANDIR)/man8/arptables.8: arptables.8 | ||
40 | mkdir -p $(@D) | ||
41 | @@ -50,6 +49,7 @@ | ||
42 | cat arptables-restore | sed 's/__EXEC_PATH__/$(tmp1)/g' > arptables-restore_ | ||
43 | install -m 0755 -o root -g root arptables-restore_ $(DESTDIR)$(BINDIR)/arptables-restore | ||
44 | cat arptables.sysv | sed 's/__EXEC_PATH__/$(tmp1)/g' | sed 's/__SYSCONFIG__/$(tmp2)/g' > arptables.sysv_ | ||
45 | + install -d $(DESTDIR)$(INITDIR) | ||
46 | if test -d $(DESTDIR)$(INITDIR); then install -m 0755 -o root -g root arptables.sysv_ $(DESTDIR)$(INITDIR)/arptables; fi | ||
47 | rm -f arptables-save_ arptables-restore_ arptables.sysv_ | ||
48 | |||
49 | Index: arptables-v0.0.3-4/extensions/Makefile | ||
50 | =================================================================== | ||
51 | --- arptables-v0.0.3-4.orig/extensions/Makefile 2010-03-08 18:49:28.000000000 +0300 | ||
52 | +++ arptables-v0.0.3-4/extensions/Makefile 2010-03-22 15:52:38.000000000 +0300 | ||
53 | @@ -4,4 +4,7 @@ | ||
54 | EXT_OBJS+=$(foreach T,$(EXT_FUNC), extensions/arpt_$(T).o) | ||
55 | |||
56 | extensions/ebt_%.o: extensions/arpt_%.c include/arptables.h include/arptables_common.h | ||
57 | - $(CC) $(CFLAGS) $(PROGSPECS) -c -o $@ $< | ||
58 | + $(CC) $(CFLAGS) $(ARPCFLAGS) $(PROGSPECS) -c -o $@ $< | ||
59 | + | ||
60 | +extensions/arpt_%.o: extensions/arpt_%.c include/arptables.h include/arptables_common.h | ||
61 | + $(CC) $(CFLAGS) $(ARPCFLAGS) $(PROGSPECS) -c -o $@ $< | ||
diff --git a/meta-networking/recipes-support/arptables/arptables-0.0.3-4/arptables-init-busybox.patch b/meta-networking/recipes-support/arptables/arptables-0.0.3-4/arptables-init-busybox.patch new file mode 100644 index 0000000000..24956c4ca9 --- /dev/null +++ b/meta-networking/recipes-support/arptables/arptables-0.0.3-4/arptables-init-busybox.patch | |||
@@ -0,0 +1,77 @@ | |||
1 | Index: arptables-v0.0.3-4/arptables.sysv | ||
2 | =================================================================== | ||
3 | --- arptables-v0.0.3-4.orig/arptables.sysv 2010-03-22 16:28:03.000000000 +0300 | ||
4 | +++ arptables-v0.0.3-4/arptables.sysv 2010-03-22 16:27:51.000000000 +0300 | ||
5 | @@ -12,10 +12,10 @@ | ||
6 | # config: __SYSCONFIG__/arptables | ||
7 | |||
8 | source /etc/init.d/functions | ||
9 | -source /etc/sysconfig/network | ||
10 | +# source /etc/sysconfig/network | ||
11 | |||
12 | # Check that networking is up. | ||
13 | -[ ${NETWORKING} = "no" ] && exit 0 | ||
14 | +# [ ${NETWORKING} = "no" ] && exit 0 | ||
15 | |||
16 | [ -x __EXEC_PATH__/arptables ] || exit 1 | ||
17 | [ -x __EXEC_PATH__/arptables-save ] || exit 1 | ||
18 | @@ -28,32 +28,30 @@ | ||
19 | desc="Arp filtering" | ||
20 | |||
21 | start() { | ||
22 | - echo -n $"Starting $desc ($prog): " | ||
23 | + echo -n "Starting $desc ($prog): " | ||
24 | __EXEC_PATH__/arptables-restore < __SYSCONFIG__/arptables || RETVAL=1 | ||
25 | |||
26 | if [ $RETVAL -eq 0 ]; then | ||
27 | - success "$prog startup" | ||
28 | - rm -f /var/lock/subsys/$prog | ||
29 | + echo "$prog ok" | ||
30 | + touch /var/lock/subsys/$prog | ||
31 | else | ||
32 | - failure "$prog startup" | ||
33 | + echo "$prog failed" | ||
34 | fi | ||
35 | |||
36 | - echo | ||
37 | return $RETVAL | ||
38 | } | ||
39 | |||
40 | stop() { | ||
41 | - echo -n $"Stopping $desc ($prog): " | ||
42 | + echo -n "Stopping $desc ($prog): " | ||
43 | __EXEC_PATH__/arptables-restore < /dev/null || RETVAL=1 | ||
44 | |||
45 | if [ $RETVAL -eq 0 ]; then | ||
46 | - success "$prog shutdown" | ||
47 | - rm -f %{_localstatedir}/lock/subsys/$prog | ||
48 | + echo "$prog stopped" | ||
49 | + rm -f /var/lock/subsys/$prog | ||
50 | else | ||
51 | - failure "$prog shutdown" | ||
52 | + echo "$prog failed to stop" | ||
53 | fi | ||
54 | |||
55 | - echo | ||
56 | return $RETVAL | ||
57 | } | ||
58 | |||
59 | @@ -63,15 +61,14 @@ | ||
60 | } | ||
61 | |||
62 | save() { | ||
63 | - echo -n $"Saving $desc ($prog): " | ||
64 | + echo -n "Saving $desc ($prog): " | ||
65 | __EXEC_PATH__/arptables-save > __SYSCONFIG__/arptables || RETVAL=1 | ||
66 | |||
67 | if [ $RETVAL -eq 0 ]; then | ||
68 | - success "$prog saved" | ||
69 | + echo "$prog saved" | ||
70 | else | ||
71 | - failure "$prog saved" | ||
72 | + echo "$prog is not saved" | ||
73 | fi | ||
74 | - echo | ||
75 | } | ||
76 | |||
77 | case "$1" in | ||
diff --git a/meta-networking/recipes-support/arptables/arptables_0.0.3-4.bb b/meta-networking/recipes-support/arptables/arptables_0.0.3-4.bb new file mode 100644 index 0000000000..74f81b554a --- /dev/null +++ b/meta-networking/recipes-support/arptables/arptables_0.0.3-4.bb | |||
@@ -0,0 +1,33 @@ | |||
1 | SUMMARY = "Administration tool for arp packet filtering" | ||
2 | PRIORITY = "optional" | ||
3 | LICENSE = "GPL-2.0" | ||
4 | SECTION = "console/network" | ||
5 | |||
6 | PR = "r2" | ||
7 | |||
8 | RDEPENDS_${PN} += "perl" | ||
9 | |||
10 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" | ||
11 | SRC_URI = " \ | ||
12 | ${SOURCEFORGE_MIRROR}/ebtables/arptables-v${PV}.tar.gz;name=arptables \ | ||
13 | file://arptables-compile-install.patch \ | ||
14 | file://arptables-init-busybox.patch \ | ||
15 | file://arptables-arpt-get-target-fix.patch \ | ||
16 | " | ||
17 | SRC_URI[arptables.md5sum] = "1d4ab05761f063b0751645d8f2b8f8e5" | ||
18 | SRC_URI[arptables.sha256sum] = "e529fd465c67d69ad335299a043516e6b38cdcd337a5ed21718413e96073f928" | ||
19 | |||
20 | S = "${WORKDIR}/arptables-v${PV}" | ||
21 | |||
22 | do_compile () { | ||
23 | oe_runmake | ||
24 | } | ||
25 | |||
26 | # the install target is not multi-job safe, but it doesn't do much | ||
27 | # so we just install serially | ||
28 | # | ||
29 | PARALLEL_MAKEINST = "-j1" | ||
30 | |||
31 | fakeroot do_install () { | ||
32 | oe_runmake 'BINDIR=${sbindir}' 'MANDIR=${mandir}/' 'DESTDIR=${D}' install | ||
33 | } | ||
diff --git a/meta-networking/recipes-support/bridge-utils/bridge-utils.inc b/meta-networking/recipes-support/bridge-utils/bridge-utils.inc new file mode 100644 index 0000000000..feeba74350 --- /dev/null +++ b/meta-networking/recipes-support/bridge-utils/bridge-utils.inc | |||
@@ -0,0 +1,28 @@ | |||
1 | SUMMARY = "Tools for ethernet bridging" | ||
2 | HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge" | ||
3 | SECTION = "console/network" | ||
4 | LICENSE = "GPLv2" | ||
5 | |||
6 | DEPENDS = "sysfsutils" | ||
7 | |||
8 | SRC_URI = "${SOURCEFORGE_MIRROR}/bridge/bridge-utils-${PV}.tar.gz \ | ||
9 | file://bridge-utils-1.5-check-error-returns-from-write-to-sysfs.patch \ | ||
10 | file://bridge-utils-1.5-fix-error-message-for-incorrect-command.patch \ | ||
11 | file://bridge-utils-1.5-fix-incorrect-command-in-manual.patch \ | ||
12 | " | ||
13 | |||
14 | inherit autotools-brokensep update-alternatives | ||
15 | |||
16 | ALTERNATIVE_${PN} = "brctl" | ||
17 | ALTERNATIVE_PRIORITY[brctl] = "100" | ||
18 | ALTERNATIVE_LINK_NAME[brctl] = "${sbindir}/brctl" | ||
19 | |||
20 | EXTRA_OECONF = "--with-linux-headers=${STAGING_INCDIR}" | ||
21 | |||
22 | do_install_append () { | ||
23 | install -d ${D}/${datadir}/bridge-utils | ||
24 | install -d ${D}/${sysconfdir}/network/if-pre-up.d | ||
25 | install -d ${D}/${sysconfdir}/network/if-post-down.d | ||
26 | } | ||
27 | |||
28 | RRECOMMENDS_${PN} = "kernel-module-bridge" | ||
diff --git a/meta-networking/recipes-support/bridge-utils/bridge-utils/bridge-utils-1.5-check-error-returns-from-write-to-sysfs.patch b/meta-networking/recipes-support/bridge-utils/bridge-utils/bridge-utils-1.5-check-error-returns-from-write-to-sysfs.patch new file mode 100644 index 0000000000..d00af9c159 --- /dev/null +++ b/meta-networking/recipes-support/bridge-utils/bridge-utils/bridge-utils-1.5-check-error-returns-from-write-to-sysfs.patch | |||
@@ -0,0 +1,87 @@ | |||
1 | Upstream-status: BackPort [http://pkgs.fedoraproject.org/cgit/bridge-utils.git/diff/bridge-utils-1.5-check-error-returns-from-write-to-sysfs.patch?id=b0d10717fd7cebf5d85eed3f941b409fa0384f08] | ||
2 | |||
3 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | ||
4 | |||
5 | From bb9970a9df95837e39d680021b1f73d231e85406 Mon Sep 17 00:00:00 2001 | ||
6 | From: Stephen Hemminger <shemminger@vyatta.com> | ||
7 | Date: Tue, 3 May 2011 09:52:43 -0700 | ||
8 | Subject: [PATCH 3/3] Check error returns from write to sysfs | ||
9 | |||
10 | Add helper function to check write to sysfs files. | ||
11 | |||
12 | Signed-off-by: Petr Sabata <contyk@redhat.com> | ||
13 | --- | ||
14 | libbridge/libbridge_devif.c | 37 +++++++++++++++++++++++-------------- | ||
15 | 1 files changed, 23 insertions(+), 14 deletions(-) | ||
16 | |||
17 | diff --git a/libbridge/libbridge_devif.c b/libbridge/libbridge_devif.c | ||
18 | index aa8bc36..1e83925 100644 | ||
19 | --- a/libbridge/libbridge_devif.c | ||
20 | +++ b/libbridge/libbridge_devif.c | ||
21 | @@ -280,25 +280,38 @@ fallback: | ||
22 | return old_get_port_info(brname, port, info); | ||
23 | } | ||
24 | |||
25 | +static int set_sysfs(const char *path, unsigned long value) | ||
26 | +{ | ||
27 | + int fd, ret = 0, cc; | ||
28 | + char buf[32]; | ||
29 | + | ||
30 | + fd = open(path, O_WRONLY); | ||
31 | + if (fd < 0) | ||
32 | + return -1; | ||
33 | + | ||
34 | + cc = snprintf(buf, sizeof(buf), "%lu\n", value); | ||
35 | + if (write(fd, buf, cc) < 0) | ||
36 | + ret = -1; | ||
37 | + close(fd); | ||
38 | + | ||
39 | + return ret; | ||
40 | +} | ||
41 | + | ||
42 | |||
43 | static int br_set(const char *bridge, const char *name, | ||
44 | unsigned long value, unsigned long oldcode) | ||
45 | { | ||
46 | int ret; | ||
47 | char path[SYSFS_PATH_MAX]; | ||
48 | - FILE *f; | ||
49 | |||
50 | - snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/%s", bridge, name); | ||
51 | + snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/bridge/%s", | ||
52 | + bridge, name); | ||
53 | |||
54 | - f = fopen(path, "w"); | ||
55 | - if (f) { | ||
56 | - ret = fprintf(f, "%ld\n", value); | ||
57 | - fclose(f); | ||
58 | - } else { | ||
59 | + if ((ret = set_sysfs(path, value)) < 0) { | ||
60 | /* fallback to old ioctl */ | ||
61 | struct ifreq ifr; | ||
62 | unsigned long args[4] = { oldcode, value, 0, 0 }; | ||
63 | - | ||
64 | + | ||
65 | strncpy(ifr.ifr_name, bridge, IFNAMSIZ); | ||
66 | ifr.ifr_data = (char *) &args; | ||
67 | ret = ioctl(br_socket_fd, SIOCDEVPRIVATE, &ifr); | ||
68 | @@ -348,14 +361,10 @@ static int port_set(const char *bridge, const char *ifname, | ||
69 | { | ||
70 | int ret; | ||
71 | char path[SYSFS_PATH_MAX]; | ||
72 | - FILE *f; | ||
73 | |||
74 | snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/brport/%s", ifname, name); | ||
75 | - f = fopen(path, "w"); | ||
76 | - if (f) { | ||
77 | - ret = fprintf(f, "%ld\n", value); | ||
78 | - fclose(f); | ||
79 | - } else { | ||
80 | + | ||
81 | + if ((ret = set_sysfs(path, value)) < 0) { | ||
82 | int index = get_portno(bridge, ifname); | ||
83 | |||
84 | if (index < 0) | ||
85 | -- | ||
86 | 1.7.5.2 | ||
87 | |||
diff --git a/meta-networking/recipes-support/bridge-utils/bridge-utils/bridge-utils-1.5-fix-error-message-for-incorrect-command.patch b/meta-networking/recipes-support/bridge-utils/bridge-utils/bridge-utils-1.5-fix-error-message-for-incorrect-command.patch new file mode 100644 index 0000000000..2d0494e533 --- /dev/null +++ b/meta-networking/recipes-support/bridge-utils/bridge-utils/bridge-utils-1.5-fix-error-message-for-incorrect-command.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | Upstream-status: BackPort [http://pkgs.fedoraproject.org/cgit/bridge-utils.git/diff/bridge-utils-1.5-fix-error-message-for-incorrect-command.patch?id=b0d10717fd7cebf5d85eed3f941b409fa0384f08] | ||
2 | |||
3 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | ||
4 | |||
5 | From c7ed0996ef58b497d3d30be802ab5ae6c37099b5 Mon Sep 17 00:00:00 2001 | ||
6 | From: Stephen Hemminger <shemminger@vyatta.com> | ||
7 | Date: Tue, 3 May 2011 09:49:57 -0700 | ||
8 | Subject: [PATCH 2/3] Fix error message for incorrect command | ||
9 | |||
10 | Debian bug 406907 | ||
11 | Error message was refering to incorrect command argument. | ||
12 | |||
13 | Signed-off-by: Petr Sabata <contyk@redhat.com> | ||
14 | --- | ||
15 | brctl/brctl.c | 2 +- | ||
16 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
17 | |||
18 | diff --git a/brctl/brctl.c b/brctl/brctl.c | ||
19 | index 454b8dd..46ca352 100644 | ||
20 | --- a/brctl/brctl.c | ||
21 | +++ b/brctl/brctl.c | ||
22 | @@ -69,7 +69,7 @@ int main(int argc, char *const* argv) | ||
23 | argc -= optind; | ||
24 | argv += optind; | ||
25 | if ((cmd = command_lookup(*argv)) == NULL) { | ||
26 | - fprintf(stderr, "never heard of command [%s]\n", argv[1]); | ||
27 | + fprintf(stderr, "never heard of command [%s]\n", *argv); | ||
28 | goto help; | ||
29 | } | ||
30 | |||
31 | -- | ||
32 | 1.7.5.2 | ||
33 | |||
diff --git a/meta-networking/recipes-support/bridge-utils/bridge-utils/bridge-utils-1.5-fix-incorrect-command-in-manual.patch b/meta-networking/recipes-support/bridge-utils/bridge-utils/bridge-utils-1.5-fix-incorrect-command-in-manual.patch new file mode 100644 index 0000000000..6f6d6d4235 --- /dev/null +++ b/meta-networking/recipes-support/bridge-utils/bridge-utils/bridge-utils-1.5-fix-incorrect-command-in-manual.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | Upstream-status: BackPort [http://pkgs.fedoraproject.org/cgit/bridge-utils.git/diff/bridge-utils-1.5-fix-incorrect-command-in-manual.patch?id=b0d10717fd7cebf5d85eed3f941b409fa0384f08] | ||
2 | |||
3 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | ||
4 | |||
5 | From 8ef7b77562b636efcbd8b759eb324d6c069200f2 Mon Sep 17 00:00:00 2001 | ||
6 | From: Stephen Hemminger <shemminger@vyatta.com> | ||
7 | Date: Tue, 3 May 2011 09:48:40 -0700 | ||
8 | Subject: [PATCH 1/3] Fix incorrect command in manual | ||
9 | |||
10 | Command is "setageing" not "setageingtime"; fix man page. | ||
11 | Debian bug report. | ||
12 | |||
13 | Signed-off-by: Petr Sabata <contyk@redhat.com> | ||
14 | --- | ||
15 | doc/brctl.8 | 2 +- | ||
16 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
17 | |||
18 | diff --git a/doc/brctl.8 b/doc/brctl.8 | ||
19 | index d904047..771f323 100644 | ||
20 | --- a/doc/brctl.8 | ||
21 | +++ b/doc/brctl.8 | ||
22 | @@ -89,7 +89,7 @@ data. Machines can move to other ports, network cards can be replaced | ||
23 | .B brctl showmacs <brname> | ||
24 | shows a list of learned MAC addresses for this bridge. | ||
25 | |||
26 | -.B brctl setageingtime <brname> <time> | ||
27 | +.B brctl setageing <brname> <time> | ||
28 | sets the ethernet (MAC) address ageing time, in seconds. After <time> | ||
29 | seconds of not having seen a frame coming from a certain address, the | ||
30 | bridge will time out (delete) that address from the Forwarding | ||
31 | -- | ||
32 | 1.7.5.2 | ||
33 | |||
diff --git a/meta-networking/recipes-support/bridge-utils/bridge-utils/kernel-headers.patch b/meta-networking/recipes-support/bridge-utils/bridge-utils/kernel-headers.patch new file mode 100644 index 0000000000..de36f0598b --- /dev/null +++ b/meta-networking/recipes-support/bridge-utils/bridge-utils/kernel-headers.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | include missing kernel header | ||
2 | |||
3 | Fixes errors like | ||
4 | |||
5 | | /b/kraj/jlinux-next/poky/build/tmp-eglibc/sysroots/re-64b/usr/include/linux/if_bridge.h:172:20: error: field 'ip6' has incomplete type | ||
6 | | In file included from ../libbridge/libbridge.h:24:0, | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Index: bridge-utils-1.5/libbridge/libbridge.h | ||
12 | =================================================================== | ||
13 | --- bridge-utils-1.5.orig/libbridge/libbridge.h 2011-03-28 17:52:54.000000000 -0700 | ||
14 | +++ bridge-utils-1.5/libbridge/libbridge.h 2013-03-04 21:16:25.781188309 -0800 | ||
15 | @@ -20,6 +20,7 @@ | ||
16 | #define _LIBBRIDGE_H | ||
17 | |||
18 | #include <sys/socket.h> | ||
19 | +#include <linux/in6.h> | ||
20 | #include <linux/if.h> | ||
21 | #include <linux/if_bridge.h> | ||
22 | |||
diff --git a/meta-networking/recipes-support/bridge-utils/bridge-utils_1.5.bb b/meta-networking/recipes-support/bridge-utils/bridge-utils_1.5.bb new file mode 100644 index 0000000000..04f863b223 --- /dev/null +++ b/meta-networking/recipes-support/bridge-utils/bridge-utils_1.5.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require bridge-utils.inc | ||
2 | |||
3 | SRC_URI += "file://kernel-headers.patch" | ||
4 | |||
5 | PARALLEL_MAKE = "" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=f9d20a453221a1b7e32ae84694da2c37" | ||
8 | |||
9 | SRC_URI[md5sum] = "ec7b381160b340648dede58c31bb2238" | ||
10 | SRC_URI[sha256sum] = "42f9e5fb8f6c52e63a98a43b81bd281c227c529f194913e1c51ec48a393b6688" | ||
11 | |||
diff --git a/meta-networking/recipes-support/cifs/cifs-utils_git.bb b/meta-networking/recipes-support/cifs/cifs-utils_git.bb new file mode 100644 index 0000000000..2b7a0dd66c --- /dev/null +++ b/meta-networking/recipes-support/cifs/cifs-utils_git.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | DESCRIPTION = "A a package of utilities for doing and managing mounts of the Linux CIFS filesystem." | ||
2 | HOMEPAGE = "http://wiki.samba.org/index.php/LinuxCIFS_utils" | ||
3 | |||
4 | LICENSE = "GPLv3 & LGPLv3" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
6 | |||
7 | PV = "5.9" | ||
8 | PR = "r1" | ||
9 | |||
10 | SRCREV = "353d491dcb5d69d31434abeb962c8e9a49c36867" | ||
11 | SRC_URI = "git://git.samba.org/cifs-utils.git" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | PACKAGECONFIG ??= "" | ||
16 | PACKAGECONFIG[cap] = "--with-libcap,--without-libcap,libcap" | ||
17 | # when enabled, it creates ${bindir}/cifscreds and --ignore-fail-on-non-empty in do_install_append is needed | ||
18 | PACKAGECONFIG[cifscreds] = "--enable-cifscreds,--disable-cifscreds,keyutils" | ||
19 | # when enabled, it creates ${sbindir}/cifs.upcall and --ignore-fail-on-non-empty in do_install_append is needed | ||
20 | PACKAGECONFIG[cifsupcall] = "--enable-cifsupcall,--disable-cifsupcall,krb5 talloc keyutils" | ||
21 | |||
22 | inherit autotools pkgconfig | ||
23 | |||
24 | do_install_append() { | ||
25 | # Remove empty /usr/bin and /usr/sbin directories since the mount helper | ||
26 | # is installed to /sbin | ||
27 | rmdir --ignore-fail-on-non-empty ${D}${bindir} ${D}${sbindir} | ||
28 | } | ||
29 | |||
30 | RRECOMMENDS_${PN} = "kernel-module-cifs" | ||
diff --git a/meta-networking/recipes-support/curlpp/curlpp/pkgconfig_fix.patch b/meta-networking/recipes-support/curlpp/curlpp/pkgconfig_fix.patch new file mode 100644 index 0000000000..ad73c00885 --- /dev/null +++ b/meta-networking/recipes-support/curlpp/curlpp/pkgconfig_fix.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | Upstream-Status: Inappropriate [packaging] | ||
2 | |||
3 | |||
4 | Index: curl-7.20.0/libcurl.pc.in | ||
5 | =================================================================== | ||
6 | --- curl-7.20.0.orig/libcurl.pc.in 2009-11-17 18:11:07.000000000 +0000 | ||
7 | +++ curl-7.20.0/libcurl.pc.in 2010-03-25 12:13:26.814051066 +0000 | ||
8 | @@ -35,6 +35,7 @@ | ||
9 | URL: http://curl.haxx.se/ | ||
10 | Description: Library to transfer files with ftp, http, etc. | ||
11 | Version: @CURLVERSION@ | ||
12 | -Libs: -L${libdir} -lcurl @LIBS@ | ||
13 | -Libs.private: @LIBCURL_LIBS@ @LIBS@ | ||
14 | +Requires.private: @GNUTLS_REQUIRED@ | ||
15 | +Libs: -L${libdir} -lcurl | ||
16 | +Libs.private: -ldl -lz | ||
17 | Cflags: -I${includedir} | ||
18 | Index: curl-7.20.0/configure.ac | ||
19 | =================================================================== | ||
20 | --- curl-7.20.0.orig/configure.ac 2010-02-04 21:41:46.000000000 +0000 | ||
21 | +++ curl-7.20.0/configure.ac 2010-03-25 12:12:18.673129001 +0000 | ||
22 | @@ -1668,6 +1668,7 @@ | ||
23 | AC_SUBST(USE_GNUTLS, [1]) | ||
24 | GNUTLS_ENABLED=1 | ||
25 | USE_GNUTLS="yes" | ||
26 | + GNUTLS_REQUIRED="gnutls" | ||
27 | curl_ssl_msg="enabled (GnuTLS)" | ||
28 | ], | ||
29 | [ | ||
30 | @@ -1696,6 +1697,8 @@ | ||
31 | |||
32 | fi dnl OPENSSL != 1 | ||
33 | |||
34 | +AC_SUBST(GNUTLS_REQUIRED) | ||
35 | + | ||
36 | dnl ---------------------------------------------------- | ||
37 | dnl NSS. Only check if GnuTLS and OpenSSL are not enabled | ||
38 | dnl ---------------------------------------------------- | ||
diff --git a/meta-networking/recipes-support/curlpp/curlpp_0.7.3.bb b/meta-networking/recipes-support/curlpp/curlpp_0.7.3.bb new file mode 100644 index 0000000000..c21734377d --- /dev/null +++ b/meta-networking/recipes-support/curlpp/curlpp_0.7.3.bb | |||
@@ -0,0 +1,87 @@ | |||
1 | SUMMARY = "C++ library for client-side URL transfers" | ||
2 | HOMEPAGE = "http://code.google.com/p/curlpp/" | ||
3 | SECTION = "console/network" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
6 | |||
7 | DEPENDS = "curl boost" | ||
8 | DEPENDS_class-native = "curl-native" | ||
9 | |||
10 | SRC_URI = "http://curlpp.googlecode.com/files/curlpp-${PV}.tar.gz \ | ||
11 | " | ||
12 | |||
13 | SRC_URI[md5sum] = "ccc3d30d4b3b5d2cdbed635898c29485" | ||
14 | SRC_URI[sha256sum] = "e3f9427b27c5bddf898d383d45c0d3d5397e2056ff935d9a5cdaef6a9a653bd5" | ||
15 | |||
16 | inherit autotools pkgconfig binconfig | ||
17 | |||
18 | EXTRA_OECONF = "--prefix=${STAGING_DIR} \ | ||
19 | --with-boost=${STAGING_DIR} \ | ||
20 | " | ||
21 | |||
22 | do_install() { | ||
23 | install -d ${D}/${includedir}/curlpp | ||
24 | cp -r include/curlpp/* ${D}${includedir}/curlpp | ||
25 | |||
26 | install -d ${D}${includedir}/utilspp | ||
27 | cp -r include/utilspp/* ${D}${includedir}/utilspp | ||
28 | |||
29 | install -d ${D}/${libdir} | ||
30 | install -m 664 src/curlpp/.libs/libcurlpp.a ${D}/${libdir} | ||
31 | install -m 664 src/curlpp/.libs/libcurlpp.lai ${D}/${libdir}/libcurlpp.la | ||
32 | |||
33 | install -m 775 src/curlpp/.libs/libcurlpp.so.0.0.2 ${D}/${libdir} | ||
34 | |||
35 | install -m 664 src/utilspp/.libs/libutilspp.a ${D}/${libdir} | ||
36 | install -m 664 src/utilspp/.libs/libutilspp.lai ${D}/${libdir}/libutilspp.la | ||
37 | |||
38 | install -m 664 src/utilspp/.libs/libutilspp.so.0.0.0 ${D}/${libdir} | ||
39 | |||
40 | install -d ${D}/${libdir}/pkgconfig | ||
41 | install -m 664 curlpp.pc ${D}/${libdir}/pkgconfig | ||
42 | |||
43 | install -d ${D}/${bindir} | ||
44 | install -m 755 curlpp-config ${D}/${bindir} | ||
45 | |||
46 | install -d ${D}/${includedir}/curlpp | ||
47 | install -d ${D}/${includedir}/curlpp/internal | ||
48 | install -d ${D}/${includedir}/utilspp | ||
49 | install -d ${D}/${includedir}/utilspp/functor | ||
50 | install -d ${D}/${includedir}/utilspp/singleton | ||
51 | |||
52 | install -m 664 include/curlpp/config* ${D}/${includedir}/curlpp | ||
53 | install -m 664 include/curlpp/*.h* ${D}/${includedir}/curlpp | ||
54 | install -m 664 include/curlpp/*.inl ${D}/${includedir}/curlpp | ||
55 | |||
56 | install -m 664 include/curlpp/internal/*.h* ${D}/${includedir}/curlpp/internal | ||
57 | install -m 664 include/curlpp/internal/*.inl ${D}/${includedir}/curlpp/internal | ||
58 | |||
59 | install -m 664 include/utilspp/*.h* ${D}/${includedir}/utilspp | ||
60 | install -m 664 include/utilspp/*.inl ${D}/${includedir}/utilspp | ||
61 | |||
62 | install -m 664 include/utilspp/functor/*.h* ${D}/${includedir}/utilspp/functor | ||
63 | install -m 664 include/utilspp/singleton/*.h* ${D}/${includedir}/utilspp/singleton | ||
64 | install -m 664 include/utilspp/singleton/*.inl ${D}/${includedir}/utilspp/singleton | ||
65 | install -m 755 curlpp-config ${D}/${bindir} | ||
66 | } | ||
67 | |||
68 | pkg_postinst_${PN}() { | ||
69 | ln -sf libcurlpp.so.0.0.2 /usr/lib/libcurlpp.so.0 | ||
70 | ln -sf libcurlpp.so.0.0.2 /usr/lib/libcurlpp.so | ||
71 | ln -sf libutilspp.so.0.0.0 /usr/lib/libutilspp.so.0 | ||
72 | ln -sf libutilspp.so.0.0.0 /usr/lib/libutilspp.so | ||
73 | } | ||
74 | |||
75 | PACKAGES =+ "libcurlpp libcurlpp-dev libcurlpp-staticdev" | ||
76 | |||
77 | FILES_lib${BPN} = "${libdir}/lib*.so.* \ | ||
78 | " | ||
79 | |||
80 | FILES_lib${BPN}-dev = "${includedir} \ | ||
81 | ${libdir}/lib*.la \ | ||
82 | ${libdir}/pkgconfig \ | ||
83 | ${bindir}/*-config" | ||
84 | |||
85 | FILES_lib${BPN}-staticdev = "${libdir}/lib*.a" | ||
86 | |||
87 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc new file mode 100644 index 0000000000..e57ab727eb --- /dev/null +++ b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc | |||
@@ -0,0 +1,56 @@ | |||
1 | SUMMARY = "Lightweight, easy to configure DNS forwarder and DHCP server" | ||
2 | HOMEPAGE = "http://www.thekelleys.org.uk/dnsmasq/doc.html" | ||
3 | SECTION = "console/network" | ||
4 | # GPLv3 was added in version 2.41 as license option | ||
5 | LICENSE = "GPLv2 | GPLv3" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ | ||
7 | file://COPYING-v3;md5=d32239bcb673463ab874e80d47fae504" | ||
8 | |||
9 | #at least versions 2.15 and prior are moved to the archive folder on the server | ||
10 | SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/${@['archive/', ''][float(d.getVar('PV',1).split('.')[1]) > 15]}dnsmasq-${PV}.tar.gz;name=dnsmasq-${PV} \ | ||
11 | file://init \ | ||
12 | file://dnsmasq.conf \ | ||
13 | file://dnsmasq.service \ | ||
14 | " | ||
15 | |||
16 | inherit update-rc.d systemd | ||
17 | |||
18 | INITSCRIPT_NAME = "dnsmasq" | ||
19 | INITSCRIPT_PARAMS = "defaults" | ||
20 | |||
21 | PACKAGECONFIG ??= "" | ||
22 | PACKAGECONFIG[dbus] = "COPTS=-DHAVE_DBUS,,dbus" | ||
23 | EXTRA_OEMAKE = "${EXTRA_OECONF}" | ||
24 | |||
25 | do_compile_append() { | ||
26 | # build dhcp_release | ||
27 | cd ${S}/contrib/wrt | ||
28 | oe_runmake | ||
29 | } | ||
30 | |||
31 | do_install () { | ||
32 | oe_runmake "PREFIX=${D}${prefix}" \ | ||
33 | "BINDIR=${D}${bindir}" \ | ||
34 | "MANDIR=${D}${mandir}" \ | ||
35 | install | ||
36 | install -d ${D}${sysconfdir}/ ${D}${sysconfdir}/init.d ${D}${sysconfdir}/dnsmasq.d | ||
37 | install -m 644 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/ | ||
38 | install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq | ||
39 | |||
40 | install -d ${D}${systemd_unitdir}/system | ||
41 | install -m 0644 ${WORKDIR}/dnsmasq.service ${D}${systemd_unitdir}/system | ||
42 | |||
43 | install -m 0755 ${S}/contrib/wrt/dhcp_release ${D}${bindir} | ||
44 | |||
45 | if [ "${@base_contains('PACKAGECONFIG', 'dbus', 'dbus', '', d)}" != "" ]; then | ||
46 | install -d ${D}${sysconfdir}/dbus-1/system.d | ||
47 | install -m 644 dbus/dnsmasq.conf ${D}${sysconfdir}/dbus-1/system.d/ | ||
48 | fi | ||
49 | } | ||
50 | |||
51 | CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf" | ||
52 | |||
53 | RPROVIDES_${PN} += "${PN}-systemd" | ||
54 | RREPLACES_${PN} += "${PN}-systemd" | ||
55 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
56 | SYSTEMD_SERVICE_${PN} = "dnsmasq.service" | ||
diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq_2.68.bb b/meta-networking/recipes-support/dnsmasq/dnsmasq_2.68.bb new file mode 100644 index 0000000000..b1bef7a161 --- /dev/null +++ b/meta-networking/recipes-support/dnsmasq/dnsmasq_2.68.bb | |||
@@ -0,0 +1,4 @@ | |||
1 | require dnsmasq.inc | ||
2 | |||
3 | SRC_URI[dnsmasq-2.68.md5sum] = "6f8351ca0901f248efdb81532778d2ef" | ||
4 | SRC_URI[dnsmasq-2.68.sha256sum] = "402019d61f53f1ccc04cc6218719fd3b158ea3fca9a83ab55471f981a2097c2f" | ||
diff --git a/meta-networking/recipes-support/dnsmasq/files/dnsmasq.conf b/meta-networking/recipes-support/dnsmasq/files/dnsmasq.conf new file mode 100755 index 0000000000..1a198a3791 --- /dev/null +++ b/meta-networking/recipes-support/dnsmasq/files/dnsmasq.conf | |||
@@ -0,0 +1,293 @@ | |||
1 | # Configuration file for dnsmasq. | ||
2 | # | ||
3 | # Format is one option per line, legal options are the same | ||
4 | # as the long options legal on the command line. See | ||
5 | # "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details. | ||
6 | |||
7 | # Change these lines if you want dnsmasq to serve MX records. | ||
8 | # Only one of mx-host and mx-target need be set, the other defaults | ||
9 | # to the name of the host running dnsmasq. | ||
10 | #mx-host= | ||
11 | #mx-target= | ||
12 | #selfmx | ||
13 | #localmx | ||
14 | |||
15 | # The following two options make you a better netizen, since they | ||
16 | # tell dnsmasq to filter out queries which the public DNS cannot | ||
17 | # answer, and which load the servers (especially the root servers) | ||
18 | # uneccessarily. If you have a dial-on-demand link they also stop | ||
19 | # these requests from bringing up the link uneccessarily. | ||
20 | |||
21 | # Never forward plain names (with a dot or domain part) | ||
22 | domain-needed | ||
23 | # Never forward addresses in the non-routed address spaces. | ||
24 | bogus-priv | ||
25 | |||
26 | |||
27 | # Uncomment this to filter useless windows-originated DNS requests | ||
28 | # which can trigger dial-on-demand links needlessly. | ||
29 | # Note that (amongst other things) this blocks all SRV requests, | ||
30 | # so don't use it if you use eg Kerberos. | ||
31 | #filterwin2k | ||
32 | |||
33 | # Change this line if you want dns to get its upstream servers from | ||
34 | # somewhere other that /etc/resolv.conf | ||
35 | #resolv-file= | ||
36 | |||
37 | # By default, dnsmasq will send queries to any of the upstream | ||
38 | # servers it knows about and tries to favour servers to are known | ||
39 | # to be up. Uncommenting this forces dnsmasq to try each query | ||
40 | # with each server strictly in the order they appear in | ||
41 | # /etc/resolv.conf | ||
42 | #strict-order | ||
43 | |||
44 | # If you don't want dnsmasq to read /etc/resolv.conf or any other | ||
45 | # file, getting its servers for this file instead (see below), then | ||
46 | # uncomment this | ||
47 | #no-resolv | ||
48 | |||
49 | # If you don't want dnsmasq to poll /etc/resolv.conf or other resolv | ||
50 | # files for changes and re-read them then uncomment this. | ||
51 | #no-poll | ||
52 | |||
53 | # Add other name servers here, with domain specs if they are for | ||
54 | # non-public domains. | ||
55 | #server=/localnet/192.168.0.1 | ||
56 | |||
57 | # Add local-only domains here, queries in these domains are answered | ||
58 | # from /etc/hosts or DHCP only. | ||
59 | #local=/localnet/ | ||
60 | |||
61 | # Add domains which you want to force to an IP address here. | ||
62 | # The example below send any host in doubleclick.net to a local | ||
63 | # webserver. | ||
64 | #address=/doubleclick.net/127.0.0.1 | ||
65 | |||
66 | # You no longer (as of version 1.7) need to set these to enable | ||
67 | # dnsmasq to read /etc/ppp/resolv.conf since dnsmasq now uses the | ||
68 | # "dip" group to achieve this. | ||
69 | #user= | ||
70 | #group= | ||
71 | |||
72 | # If you want dnsmasq to listen for requests only on specified interfaces | ||
73 | # (and the loopback) give the name of the interface (eg eth0) here. | ||
74 | # Repeat the line for more than one interface. | ||
75 | #interface= | ||
76 | # Or you can specify which interface _not_ to listen on | ||
77 | #except-interface= | ||
78 | # Or which to listen on by address (remember to include 127.0.0.1 if | ||
79 | # you use this.) | ||
80 | #listen-address= | ||
81 | |||
82 | # On systems which support it, dnsmasq binds the wildcard address, | ||
83 | # even when it is listening on only some interfaces. It then discards | ||
84 | # requests that it shouldn't reply to. This has the advantage of | ||
85 | # working even when interfaces come and go and change address. If you | ||
86 | # want dnsmasq to really bind only the interfaces it is listening on, | ||
87 | # uncomment this option. About the only time you may need this is when | ||
88 | # running another nameserver on the same machine. | ||
89 | #bind-interfaces | ||
90 | |||
91 | # If you don't want dnsmasq to read /etc/hosts, uncomment the | ||
92 | # following line. | ||
93 | #no-hosts | ||
94 | # or if you want it to read another file, as well as /etc/hosts, use | ||
95 | # this. | ||
96 | #addn-hosts=/etc/banner_add_hosts | ||
97 | |||
98 | # Set this (and domain: see below) if you want to have a domain | ||
99 | # automatically added to simple names in a hosts-file. | ||
100 | #expand-hosts | ||
101 | |||
102 | # Set the domain for dnsmasq. this is optional, but if it is set, it | ||
103 | # does the following things. | ||
104 | # 1) Allows DHCP hosts to have fully qualified domain names, as long | ||
105 | # as the domain part matches this setting. | ||
106 | # 2) Sets the "domain" DHCP option thereby potentially setting the | ||
107 | # domain of all systems configured by DHCP | ||
108 | # 3) Provides the domain part for "expand-hosts" | ||
109 | #domain=thekelleys.org.uk | ||
110 | |||
111 | # Uncomment this to enable the integrated DHCP server, you need | ||
112 | # to supply the range of addresses available for lease and optionally | ||
113 | # a lease time. If you have more than one network, you will need to | ||
114 | # repeat this for each network on which you want to supply DHCP | ||
115 | # service. | ||
116 | #dhcp-range=192.168.0.50,192.168.0.150,12h | ||
117 | dhcp-range=10.0.0.10,10.0.0.200,2h | ||
118 | |||
119 | # This is an example of a DHCP range where the netmask is given. This | ||
120 | # is needed for networks we reach the dnsmasq DHCP server via a relay | ||
121 | # agent. If you don't know what a DHCP relay agent is, you probably | ||
122 | # don't need to worry about this. | ||
123 | #dhcp-range=192.168.0.50,192.168.0.150,255.255.255.0,12h | ||
124 | |||
125 | # This is an example of a DHCP range with a network-id, so that | ||
126 | # some DHCP options may be set only for this network. | ||
127 | #dhcp-range=red,192.168.0.50,192.168.0.150 | ||
128 | |||
129 | # Supply parameters for specified hosts using DHCP. There are lots | ||
130 | # of valid alternatives, so we will give examples of each. Note that | ||
131 | # IP addresses DO NOT have to be in the range given above, they just | ||
132 | # need to be on the same network. The order of the parameters in these | ||
133 | # do not matter, it's permissble to give name,adddress and MAC in any order | ||
134 | |||
135 | # Always allocate the host with ethernet address 11:22:33:44:55:66 | ||
136 | # The IP address 192.168.0.60 | ||
137 | #dhcp-host=11:22:33:44:55:66,192.168.0.60 | ||
138 | |||
139 | # Always set the name of the host with hardware address | ||
140 | # 11:22:33:44:55:66 to be "fred" | ||
141 | #dhcp-host=11:22:33:44:55:66,fred | ||
142 | |||
143 | # Always give the host with ethernet address 11:22:33:44:55:66 | ||
144 | # the name fred and IP address 192.168.0.60 and lease time 45 minutes | ||
145 | #dhcp-host=11:22:33:44:55:66,fred,192.168.0.60,45m | ||
146 | |||
147 | # Give the machine which says it's name is "bert" IP address | ||
148 | # 192.168.0.70 and an infinite lease | ||
149 | #dhcp-host=bert,192.168.0.70,infinite | ||
150 | |||
151 | # Always give the host with client identifier 01:02:02:04 | ||
152 | # the IP address 192.168.0.60 | ||
153 | #dhcp-host=id:01:02:02:04,192.168.0.60 | ||
154 | |||
155 | # Always give the host with client identifier "marjorie" | ||
156 | # the IP address 192.168.0.60 | ||
157 | #dhcp-host=id:marjorie,192.168.0.60 | ||
158 | |||
159 | # Enable the address given for "judge" in /etc/hosts | ||
160 | # to be given to a machine presenting the name "judge" when | ||
161 | # it asks for a DHCP lease. | ||
162 | #dhcp-host=judge | ||
163 | |||
164 | # Never offer DHCP service to a machine whose ethernet | ||
165 | # address is 11:22:33:44:55:66 | ||
166 | #dhcp-host=11:22:33:44:55:66,ignore | ||
167 | |||
168 | # Ignore any client-id presented by the machine with ethernet | ||
169 | # address 11:22:33:44:55:66. This is useful to prevent a machine | ||
170 | # being treated differently when running under different OS's or | ||
171 | # between PXE boot and OS boot. | ||
172 | #dhcp-host=11:22:33:44:55:66,id:* | ||
173 | |||
174 | # Send extra options which are tagged as "red" to | ||
175 | # the machine with ethernet address 11:22:33:44:55:66 | ||
176 | #dhcp-host=11:22:33:44:55:66,net:red | ||
177 | |||
178 | # Send extra options which are tagged as "red" to any machine whose | ||
179 | # DHCP vendorclass string includes the substring "Linux" | ||
180 | #dhcp-vendorclass=red,Linux | ||
181 | |||
182 | # Send extra options which are tagged as "red" to any machine one | ||
183 | # of whose DHCP userclass strings includes the substring "accounts" | ||
184 | #dhcp-userclass=red,accounts | ||
185 | |||
186 | # If this line is uncommented, dnsmasq will read /etc/ethers and act | ||
187 | # on the ethernet-address/IP pairs found there just as if they had | ||
188 | # been given as --dhcp-host options. Useful if you keep | ||
189 | # MAC-address/host mappings there for other purposes. | ||
190 | #read-ethers | ||
191 | |||
192 | # Send options to hosts which ask for a DHCP lease. | ||
193 | # See RFC 2132 for details of available options. | ||
194 | # Note that all the common settings, such as netmask and | ||
195 | # broadcast address, DNS server and default route, are given | ||
196 | # sane defaults by dnsmasq. You very likely will not need any | ||
197 | # any dhcp-options. If you use Windows clients and Samba, there | ||
198 | # are some options which are recommended, they are detailed at the | ||
199 | # end of this section. | ||
200 | # For reference, the common options are: | ||
201 | # subnet mask - 1 | ||
202 | # default router - 3 | ||
203 | # DNS server - 6 | ||
204 | # broadcast address - 28 | ||
205 | |||
206 | # Set the NTP time server addresses to 192.168.0.4 and 10.10.0.5 | ||
207 | #dhcp-option=42,192.168.0.4,10.10.0.5 | ||
208 | |||
209 | # Set the NTP time server address to be the same machine as | ||
210 | # is running dnsmasq | ||
211 | #dhcp-option=42,0.0.0.0 | ||
212 | |||
213 | # Set the NIS domain name to "welly" | ||
214 | #dhcp-option=40,welly | ||
215 | |||
216 | # Set the default time-to-live to 50 | ||
217 | #dhcp-option=23,50 | ||
218 | |||
219 | # Set the "all subnets are local" flag | ||
220 | #dhcp-option=27,1 | ||
221 | |||
222 | # Send the etherboot magic flag and then etherboot options (a string). | ||
223 | #dhcp-option=128,e4:45:74:68:00:00 | ||
224 | #dhcp-option=129,NIC=eepro100 | ||
225 | |||
226 | # Specify an option which will only be sent to the "red" network | ||
227 | # (see dhcp-range for the declaration of the "red" network) | ||
228 | #dhcp-option=red,42,192.168.1.1 | ||
229 | |||
230 | # The following DHCP options set up dnsmasq in the same way as is specified | ||
231 | # for the ISC dhcpcd in | ||
232 | # http://www.samba.org/samba/ftp/docs/textdocs/DHCP-Server-Configuration.txt | ||
233 | # adapted for a typical dnsmasq installation where the host running | ||
234 | # dnsmasq is also the host running samba. | ||
235 | # you may want to uncomment them if you use Windows clients and Samba. | ||
236 | #dhcp-option=19,0 # option ip-forwarding off | ||
237 | #dhcp-option=44,0.0.0.0 # set netbios-over-TCP/IP nameserver(s) aka WINS server(s) | ||
238 | #dhcp-option=45,0.0.0.0 # netbios datagram distribution server | ||
239 | #dhcp-option=46,8 # netbios node type | ||
240 | #dhcp-option=47 # empty netbios scope. | ||
241 | |||
242 | |||
243 | # Set the boot filename and tftpd server name and address | ||
244 | # for BOOTP. You will only need this is you want to | ||
245 | # boot machines over the network. | ||
246 | #dhcp-boot=/var/ftpd/pxelinux.0,boothost,192.168.0.3 | ||
247 | |||
248 | # Set the limit on DHCP leases, the default is 150 | ||
249 | #dhcp-lease-max=150 | ||
250 | |||
251 | # The DHCP server needs somewhere on disk to keep its lease database. | ||
252 | # This defaults to a sane location, but if you want to change it, use | ||
253 | # the line below. | ||
254 | #dhcp-leasefile=/var/lib/misc/dnsmasq.leases | ||
255 | |||
256 | # Set the cachesize here. | ||
257 | #cache-size=150 | ||
258 | |||
259 | # If you want to disable negative caching, uncomment this. | ||
260 | #no-negcache | ||
261 | |||
262 | # Normally responses which come form /etc/hosts and the DHCP lease | ||
263 | # file have Time-To-Live set as zero, which conventionally means | ||
264 | # do not cache further. If you are happy to trade lower load on the | ||
265 | # server for potentially stale date, you can set a time-to-live (in | ||
266 | # seconds) here. | ||
267 | #local-ttl= | ||
268 | |||
269 | # If you want dnsmasq to detect attempts by Verisign to send queries | ||
270 | # to unregistered .com and .net hosts to its sitefinder service and | ||
271 | # have dnsmasq instead return the correct NXDOMAIN response, uncomment | ||
272 | # this line. You can add similar lines to do the same for other | ||
273 | # registries which have implemented wildcard A records. | ||
274 | #bogus-nxdomain=64.94.110.11 | ||
275 | |||
276 | # If you want to fix up DNS results from upstream servers, use the | ||
277 | # alias option. This only works for IPv4. | ||
278 | # This alias makes a result of 1.2.3.4 appear as 5.6.7.8 | ||
279 | #alias=1.2.3.4,5.6.7.8 | ||
280 | # and this maps 1.2.3.x to 5.6.7.x | ||
281 | #alias=1.2.3.0,5.6.7.0,255.255.255.0 | ||
282 | |||
283 | # For debugging purposes, log each DNS query as it passes through | ||
284 | # dnsmasq. | ||
285 | #log-queries | ||
286 | |||
287 | # Include a another lot of configuration options. | ||
288 | #conf-file=/etc/dnsmasq.more.conf | ||
289 | |||
290 | |||
291 | |||
292 | |||
293 | |||
diff --git a/meta-networking/recipes-support/dnsmasq/files/dnsmasq.service b/meta-networking/recipes-support/dnsmasq/files/dnsmasq.service new file mode 100644 index 0000000000..549e15e2b2 --- /dev/null +++ b/meta-networking/recipes-support/dnsmasq/files/dnsmasq.service | |||
@@ -0,0 +1,13 @@ | |||
1 | [Unit] | ||
2 | Description=DNS forwarder and DHCP server | ||
3 | After=network.target | ||
4 | |||
5 | [Service] | ||
6 | Type=forking | ||
7 | PIDFile=/run/dnsmasq.pid | ||
8 | ExecStart=/usr/bin/dnsmasq -x /run/dnsmasq.pid | ||
9 | ExecReload=/bin/kill -HUP $(/bin/cat /run/dnsmasq.pid) | ||
10 | |||
11 | [Install] | ||
12 | WantedBy=multi-user.target | ||
13 | |||
diff --git a/meta-networking/recipes-support/dnsmasq/files/init b/meta-networking/recipes-support/dnsmasq/files/init new file mode 100644 index 0000000000..d1aa9e517d --- /dev/null +++ b/meta-networking/recipes-support/dnsmasq/files/init | |||
@@ -0,0 +1,52 @@ | |||
1 | #!/bin/sh | ||
2 | DAEMON=/usr/bin/dnsmasq | ||
3 | NAME=dnsmasq | ||
4 | DESC="DNS forwarder and DHCP server" | ||
5 | ARGS="-7 /etc/dnsmasq.d" | ||
6 | |||
7 | test -f $DAEMON || exit 0 | ||
8 | |||
9 | set -e | ||
10 | |||
11 | case "$1" in | ||
12 | start) | ||
13 | echo -n "starting $DESC: $NAME... " | ||
14 | test -d /var/lib/misc/ || mkdir /var/lib/misc/ | ||
15 | start-stop-daemon -S -x $DAEMON -- $ARGS | ||
16 | echo "done." | ||
17 | ;; | ||
18 | stop) | ||
19 | echo -n "stopping $DESC: $NAME... " | ||
20 | start-stop-daemon -K -x $DAEMON | ||
21 | echo "done." | ||
22 | ;; | ||
23 | status) | ||
24 | echo -n "dnsmasq " | ||
25 | start-stop-daemon -q -K -t -x $DAEMON | ||
26 | RET=$? | ||
27 | if [ "$RET" = "0" ]; then | ||
28 | PID=`cat /var/run/dnsmasq.pid` | ||
29 | echo "($PID) is running" | ||
30 | else | ||
31 | echo "is not running" | ||
32 | exit $RET | ||
33 | fi | ||
34 | ;; | ||
35 | restart) | ||
36 | echo "restarting $DESC: $NAME... " | ||
37 | $0 stop | ||
38 | $0 start | ||
39 | echo "done." | ||
40 | ;; | ||
41 | reload) | ||
42 | echo -n "reloading $DESC: $NAME... " | ||
43 | killall -HUP $(basename ${DAEMON}) | ||
44 | echo "done." | ||
45 | ;; | ||
46 | *) | ||
47 | echo "Usage: $0 {start|stop|status|restart|reload}" | ||
48 | exit 1 | ||
49 | ;; | ||
50 | esac | ||
51 | |||
52 | exit 0 | ||
diff --git a/meta-networking/recipes-support/dovecot/dovecot/0001-configure.ac-convert-AC_TRY_RUN-to-AC_TRY_LINK-state.patch b/meta-networking/recipes-support/dovecot/dovecot/0001-configure.ac-convert-AC_TRY_RUN-to-AC_TRY_LINK-state.patch new file mode 100644 index 0000000000..6f5c279be2 --- /dev/null +++ b/meta-networking/recipes-support/dovecot/dovecot/0001-configure.ac-convert-AC_TRY_RUN-to-AC_TRY_LINK-state.patch | |||
@@ -0,0 +1,91 @@ | |||
1 | From 483f120603ada8db680085e3f462396da937e036 Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Wed, 8 Jan 2014 09:30:36 +0100 | ||
4 | Subject: [PATCH] configure.ac: convert AC_TRY_RUN to AC_TRY_LINK statements | ||
5 | |||
6 | This is not completely safe, but it's the least invasive fix. | ||
7 | |||
8 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
9 | Upstream-status: Inappropriate | ||
10 | --- | ||
11 | configure.ac | 23 +++++++---------------- | ||
12 | 1 file changed, 7 insertions(+), 16 deletions(-) | ||
13 | |||
14 | diff --git a/configure.ac b/configure.ac | ||
15 | index 95984bb..dff1f87 100644 | ||
16 | --- a/configure.ac | ||
17 | +++ b/configure.ac | ||
18 | @@ -499,13 +499,10 @@ have_ioloop=no | ||
19 | |||
20 | if test "$ioloop" = "best" || test "$ioloop" = "epoll"; then | ||
21 | AC_CACHE_CHECK([whether we can use epoll],i_cv_epoll_works,[ | ||
22 | - AC_TRY_RUN([ | ||
23 | + AC_TRY_LINK([ | ||
24 | #include <sys/epoll.h> | ||
25 | - | ||
26 | - int main() | ||
27 | - { | ||
28 | - return epoll_create(5) < 1; | ||
29 | - } | ||
30 | + ], [ | ||
31 | + epoll_create(5) < 1; | ||
32 | ], [ | ||
33 | i_cv_epoll_works=yes | ||
34 | ], [ | ||
35 | @@ -551,15 +548,13 @@ have_notify=none | ||
36 | if test "$notify" = "" || test "$notify" = "inotify" ; then | ||
37 | dnl * inotify? | ||
38 | AC_CACHE_CHECK([whether we can use inotify],i_cv_inotify_works,[ | ||
39 | - AC_TRY_RUN([ | ||
40 | + AC_TRY_LINK([ | ||
41 | #define _GNU_SOURCE | ||
42 | #include <sys/ioctl.h> | ||
43 | #include <fcntl.h> | ||
44 | #include <sys/inotify.h> | ||
45 | #include <stdio.h> | ||
46 | - | ||
47 | - int main() | ||
48 | - { | ||
49 | + ], [ | ||
50 | int wd, fd; | ||
51 | char * fn = "/tmp"; | ||
52 | |||
53 | @@ -581,8 +576,6 @@ if test "$notify" = "" || test "$notify" = "inotify" ; then | ||
54 | inotify_rm_watch (fd, wd); | ||
55 | |||
56 | close (fd); | ||
57 | - return 0; | ||
58 | - } | ||
59 | ], [ | ||
60 | i_cv_inotify_works=yes | ||
61 | ], [ | ||
62 | @@ -670,7 +663,7 @@ fi | ||
63 | dnl * Old glibcs have broken posix_fallocate(). Make sure not to use it. | ||
64 | dnl * It may also be broken in AIX. | ||
65 | AC_CACHE_CHECK([whether posix_fallocate() works],i_cv_posix_fallocate_works,[ | ||
66 | - AC_TRY_RUN([ | ||
67 | + AC_TRY_LINK([ | ||
68 | #define _XOPEN_SOURCE 600 | ||
69 | #include <stdio.h> | ||
70 | #include <stdlib.h> | ||
71 | @@ -679,7 +672,7 @@ AC_CACHE_CHECK([whether posix_fallocate() works],i_cv_posix_fallocate_works,[ | ||
72 | #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7) | ||
73 | possibly broken posix_fallocate | ||
74 | #endif | ||
75 | - int main() { | ||
76 | + ], [ | ||
77 | int fd = creat("conftest.temp", 0600); | ||
78 | int ret; | ||
79 | if (fd == -1) { | ||
80 | @@ -688,8 +681,6 @@ AC_CACHE_CHECK([whether posix_fallocate() works],i_cv_posix_fallocate_works,[ | ||
81 | } | ||
82 | ret = posix_fallocate(fd, 1024, 1024) < 0 ? 1 : 0; | ||
83 | unlink("conftest.temp"); | ||
84 | - return ret; | ||
85 | - } | ||
86 | ], [ | ||
87 | i_cv_posix_fallocate_works=yes | ||
88 | ], [ | ||
89 | -- | ||
90 | 1.8.4.2 | ||
91 | |||
diff --git a/meta-networking/recipes-support/dovecot/dovecot_2.2.10.bb b/meta-networking/recipes-support/dovecot/dovecot_2.2.10.bb new file mode 100644 index 0000000000..8528536511 --- /dev/null +++ b/meta-networking/recipes-support/dovecot/dovecot_2.2.10.bb | |||
@@ -0,0 +1,44 @@ | |||
1 | SUMMARY = "Dovecot is an open source IMAP and POP3 email server" | ||
2 | DESCRIPTION = "Dovecot is an open source IMAP and POP3 email server for Linux/UNIX-like systems, written with security primarily in mind. Dovecot is an excellent choice for both small and large installations. It's fast, simple to set up, requires no special administration and it uses very little memory." | ||
3 | |||
4 | LICENSE = "LGPLv2.1 & MIT" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=a981379bd0f1c362f8d1d21515e5b30b" | ||
6 | |||
7 | SRC_URI = "http://dovecot.org/releases/2.2/dovecot-${PV}.tar.gz \ | ||
8 | file://0001-configure.ac-convert-AC_TRY_RUN-to-AC_TRY_LINK-state.patch \ | ||
9 | " | ||
10 | SRC_URI[md5sum] = "037e9c9e07d9dbff54dcff09f280fc8c" | ||
11 | SRC_URI[sha256sum] = "75592483d40dc4f76cc3b41af40caa4be80478946a699d46846d5d03e4d2e09b" | ||
12 | |||
13 | DEPENDS = "openssl xz zlib bzip2 libcap" | ||
14 | |||
15 | inherit autotools | ||
16 | |||
17 | PACKAGECONFIG ??= " \ | ||
18 | ${@base_contains('DISTRO_FEATURES', 'ldap', 'ldap', '', d)} \ | ||
19 | ${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)} \ | ||
20 | " | ||
21 | |||
22 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam," | ||
23 | PACKAGECONFIG[ldap] = "--with-ldap=plugin,--without-ldap,openldap," | ||
24 | |||
25 | # From native build in armv7a-hf/eglibc | ||
26 | CACHED_CONFIGUREVARS += "i_cv_signed_size_t=no \ | ||
27 | i_cv_gmtime_max_time_t=32 \ | ||
28 | i_cv_signed_time_t=yes \ | ||
29 | i_cv_mmap_plays_with_write=yes \ | ||
30 | i_cv_fd_passing=yes \ | ||
31 | i_cv_c99_vsnprintf=yes \ | ||
32 | lib_cv___va_copy=yes \ | ||
33 | lib_cv_va_copy=yes \ | ||
34 | lib_cv_va_val_copy=yes \ | ||
35 | " | ||
36 | |||
37 | # hardcode epoll() to avoid running unsafe tests | ||
38 | # BSD needs kqueue and uclibc poll() | ||
39 | EXTRA_OECONF = " --with-ioloop=epoll" | ||
40 | |||
41 | FILES_${PN}-staticdev += "${libdir}/dovecot/*/*.a" | ||
42 | FILES_${PN}-dev += "${libdir}/dovecot/*.so" | ||
43 | FILES_${PN}-dbg += "${libdir}/dovecot/*/.debug" | ||
44 | |||
diff --git a/meta-networking/recipes-support/fetchmail/fetchmail_6.3.26.bb b/meta-networking/recipes-support/fetchmail/fetchmail_6.3.26.bb new file mode 100644 index 0000000000..a45f74699e --- /dev/null +++ b/meta-networking/recipes-support/fetchmail/fetchmail_6.3.26.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | SUMMARY = "Fetchmail retrieves mail from remote mail servers and forwards it via SMTP" | ||
2 | DESCRIPTION = "Fetchmail is a full-featured, robust, well-documented remote-mail retrieval and forwarding utility intended to be used over on-demand TCP/IP links (such as SLIP or PPP connections). It supports every remote-mail protocol now in use on the Internet: POP2, POP3, RPOP, APOP, KPOP, all flavors of IMAP, ETRN, and ODMR. It can even support IPv6 and IPSEC." | ||
3 | |||
4 | LICENSE = "GPLv2 & MIT" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=fbb509e0303f5ded1cbfc0cc8705f28c" | ||
6 | |||
7 | DEPENDS = "openssl" | ||
8 | |||
9 | SRC_URI = "http://download.berlios.de/fetchmail/fetchmail-${PV}.tar.xz" | ||
10 | SRC_URI[md5sum] = "61b66faad044afa26e142bb1791aa2b3" | ||
11 | SRC_URI[sha256sum] = "79b4c54cdbaf02c1a9a691d9948fcb1a77a1591a813e904283a8b614b757e850" | ||
12 | |||
13 | inherit autotools gettext python-dir pythonnative | ||
14 | |||
15 | EXTRA_OECONF = "--with-ssl=${STAGING_DIR_HOST}${prefix}" | ||
16 | |||
17 | PACKAGES =+ "fetchmail-python" | ||
18 | FILES_fetchmail-python = "${libdir}/${PYTHON_DIR}/*" | ||
diff --git a/meta-networking/recipes-support/fping/fping_3.5.bb b/meta-networking/recipes-support/fping/fping_3.5.bb new file mode 100644 index 0000000000..fe8893405e --- /dev/null +++ b/meta-networking/recipes-support/fping/fping_3.5.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | SUMMARY = "sends ICMP ECHO_REQUEST packets to network hosts" | ||
2 | DESCRIPTION = "fping is a ping like program which uses the Internet Control \ | ||
3 | Message Protocol (ICMP) echo request to determine if a target host is \ | ||
4 | responding. fping differs from ping in that you can specify any number of \ | ||
5 | targets on the command line, or specify a file containing the lists of \ | ||
6 | targets to ping. Instead of sending to one target until it times out or \ | ||
7 | replies, fping will send out a ping packet and move on to the next target \ | ||
8 | in a round-robin fashion." | ||
9 | HOMEPAGE = "http://www.fping.org/" | ||
10 | SECTION = "console/tools" | ||
11 | LICENSE = "BSD" | ||
12 | LIC_FILES_CHKSUM = "file://COPYING;md5=09d77789fe32be35acde9637a5ee39b1" | ||
13 | |||
14 | SRC_URI = "http://www.fping.org/dist/fping-${PV}.tar.gz" | ||
15 | SRC_URI[md5sum] = "2e17cb655aa4eb59b5a4a38a89e746ed" | ||
16 | SRC_URI[sha256sum] = "09b8960e235341bae6000085d38106357eae656a79e0119bd27e816c9003656a" | ||
17 | |||
18 | S = "${WORKDIR}/fping-${PV}" | ||
19 | |||
20 | inherit autotools | ||
21 | |||
22 | EXTRA_OECONF = "--enable-ipv4" | ||
23 | |||
24 | PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}" | ||
25 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | ||
diff --git a/meta-networking/recipes-support/iftop/iftop_1.0pre2.bb b/meta-networking/recipes-support/iftop/iftop_1.0pre2.bb new file mode 100644 index 0000000000..73f2d85a22 --- /dev/null +++ b/meta-networking/recipes-support/iftop/iftop_1.0pre2.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | SUMMARY = "iftop does for network usage what top(1) does for CPU usage" | ||
2 | HOMEPAGE = "http://www.ex-parrot.com/pdw/iftop/" | ||
3 | |||
4 | DEPENDS = "libpcap ncurses" | ||
5 | |||
6 | LICENSE = "GPLv2" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
8 | |||
9 | SRC_URI = "http://www.ex-parrot.com/pdw/iftop/download/iftop-${PV}.tar.gz" | ||
10 | SRC_URI[md5sum] = "fef521a49ec0122458d02c64212af3c5" | ||
11 | SRC_URI[sha256sum] = "1b193037bb3019afae88cd94c87468aac4b045d81ab816ed8d2f489716b14027" | ||
12 | |||
13 | inherit autotools | ||
14 | |||
diff --git a/meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-with-gcc-4.8.patch b/meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-with-gcc-4.8.patch new file mode 100644 index 0000000000..61f39d1961 --- /dev/null +++ b/meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-with-gcc-4.8.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From fc230d5ded73fe4049aa586eacbe4098aeff912f Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Barker <paul@paulbarker.me.uk> | ||
3 | Date: Wed, 12 Jun 2013 17:39:06 +0100 | ||
4 | Subject: [PATCH] Fix warning with gcc 4.8. | ||
5 | |||
6 | The line "memset(pair, 0, sizeof(pair));" was causing the following warning: | ||
7 | |||
8 | error: argument to 'sizeof' in 'memset' call is the same expression as | ||
9 | the destination; did you mean to dereference | ||
10 | |||
11 | Compiling with -Werror (as specified in configure.ac) was causing this warning | ||
12 | to become an error. The line itself is not needed as memory is allocated via | ||
13 | calloc which performs zero initialization. Therefore, the line is removed to fix | ||
14 | the warning and does not need replacing anything. | ||
15 | --- | ||
16 | src/racoon/ipsec_doi.c | 1 - | ||
17 | 1 file changed, 1 deletion(-) | ||
18 | |||
19 | Upstream-Status: Accepted | ||
20 | (in CVS HEAD and 0_8-stable, expected to be present in next release) | ||
21 | |||
22 | diff --git a/src/racoon/ipsec_doi.c b/src/racoon/ipsec_doi.c | ||
23 | index 2b48d49..4e9d3a8 100644 | ||
24 | --- a/src/racoon/ipsec_doi.c | ||
25 | +++ b/src/racoon/ipsec_doi.c | ||
26 | @@ -1183,7 +1183,6 @@ get_proppair_and_doi_sit(sa, mode, doitype, sittype) | ||
27 | "failed to get buffer.\n"); | ||
28 | goto bad; | ||
29 | } | ||
30 | - memset(pair, 0, sizeof(pair)); | ||
31 | |||
32 | bp = (caddr_t)(sab + 1); | ||
33 | tlen = sa->l - sizeof(*sab); | ||
34 | -- | ||
35 | 1.8.3 | ||
36 | |||
diff --git a/meta-networking/recipes-support/ipsec-tools/ipsec-tools/0002-Don-t-link-against-libfl.patch b/meta-networking/recipes-support/ipsec-tools/ipsec-tools/0002-Don-t-link-against-libfl.patch new file mode 100644 index 0000000000..13e9d73fc4 --- /dev/null +++ b/meta-networking/recipes-support/ipsec-tools/ipsec-tools/0002-Don-t-link-against-libfl.patch | |||
@@ -0,0 +1,87 @@ | |||
1 | From e48b9097dce7bc2bfbb9e9c542124d3b5cebab39 Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Barker <paul@paulbarker.me.uk> | ||
3 | Date: Wed, 5 Mar 2014 13:39:14 +0000 | ||
4 | Subject: [PATCH] Don't link against libfl | ||
5 | |||
6 | We can remove all references to yywrap by adding "%option noyywrap" statements | ||
7 | to each flex source file that doesn't override yywrap. After this, we no longer | ||
8 | need to link against libfl and so no longer get errors about undefined | ||
9 | references to yylex. | ||
10 | |||
11 | Signed-off-by: Paul Barker <paul@paulbarker.me.uk> | ||
12 | Upstream-status: Submitted 2014-03-11 | ||
13 | see http://sourceforge.net/p/ipsec-tools/mailman/ipsec-tools-devel/thread/CANyK_8ewmxGA3vBVJW6s1APXPmxPR%2BDFWZ61EL8pCt288aKQ6w%40mail.gmail.com/#msg32088797 | ||
14 | --- | ||
15 | src/libipsec/Makefile.am | 1 - | ||
16 | src/racoon/Makefile.am | 2 +- | ||
17 | src/racoon/cftoken.l | 2 ++ | ||
18 | src/setkey/Makefile.am | 1 - | ||
19 | src/setkey/token.l | 2 ++ | ||
20 | 5 files changed, 5 insertions(+), 3 deletions(-) | ||
21 | |||
22 | diff --git a/src/libipsec/Makefile.am b/src/libipsec/Makefile.am | ||
23 | index 6a4e3b3..df1e106 100644 | ||
24 | --- a/src/libipsec/Makefile.am | ||
25 | +++ b/src/libipsec/Makefile.am | ||
26 | @@ -26,7 +26,6 @@ libipsec_la_SOURCES = \ | ||
27 | # version is current:revision:age. | ||
28 | # See: http://www.gnu.org/manual/libtool-1.4.2/html_chapter/libtool_6.html#SEC32 | ||
29 | libipsec_la_LDFLAGS = -version-info 0:1:0 | ||
30 | -libipsec_la_LIBADD = $(LEXLIB) | ||
31 | |||
32 | noinst_HEADERS = ipsec_strerror.h | ||
33 | |||
34 | diff --git a/src/racoon/Makefile.am b/src/racoon/Makefile.am | ||
35 | index dbaded9..0662957 100644 | ||
36 | --- a/src/racoon/Makefile.am | ||
37 | +++ b/src/racoon/Makefile.am | ||
38 | @@ -38,7 +38,7 @@ racoon_SOURCES = \ | ||
39 | cftoken.l cfparse.y prsa_tok.l prsa_par.y | ||
40 | EXTRA_racoon_SOURCES = isakmp_xauth.c isakmp_cfg.c isakmp_unity.c throttle.c \ | ||
41 | isakmp_frag.c nattraversal.c security.c $(MISSING_ALGOS) | ||
42 | -racoon_LDADD = $(CRYPTOBJS) $(HYBRID_OBJS) $(NATT_OBJS) $(FRAG_OBJS) $(LEXLIB) \ | ||
43 | +racoon_LDADD = $(CRYPTOBJS) $(HYBRID_OBJS) $(NATT_OBJS) $(FRAG_OBJS) \ | ||
44 | $(SECCTX_OBJS) vmbuf.o sockmisc.o misc.o ../libipsec/libipsec.la | ||
45 | racoon_DEPENDENCIES = \ | ||
46 | $(CRYPTOBJS) $(HYBRID_OBJS) $(NATT_OBJS) $(FRAG_OBJS) $(SECCTX_OBJS) \ | ||
47 | diff --git a/src/racoon/cftoken.l b/src/racoon/cftoken.l | ||
48 | index 490242c..1701922 100644 | ||
49 | --- a/src/racoon/cftoken.l | ||
50 | +++ b/src/racoon/cftoken.l | ||
51 | @@ -106,6 +106,8 @@ static int incstackp = 0; | ||
52 | static int yy_first_time = 1; | ||
53 | %} | ||
54 | |||
55 | +%option noyywrap | ||
56 | + | ||
57 | /* common seciton */ | ||
58 | nl \n | ||
59 | ws [ \t]+ | ||
60 | diff --git a/src/setkey/Makefile.am b/src/setkey/Makefile.am | ||
61 | index 746c1f1..389e6cf 100644 | ||
62 | --- a/src/setkey/Makefile.am | ||
63 | +++ b/src/setkey/Makefile.am | ||
64 | @@ -13,7 +13,6 @@ setkey_SOURCES = \ | ||
65 | |||
66 | setkey_LDFLAGS = ../libipsec/libipsec.la | ||
67 | setkey_DEPENDENCIES = ../libipsec/libipsec.la | ||
68 | -setkey_LDADD = $(LEXLIB) | ||
69 | |||
70 | noinst_HEADERS = vchar.h extern.h | ||
71 | man8_MANS = setkey.8 | ||
72 | diff --git a/src/setkey/token.l b/src/setkey/token.l | ||
73 | index ad3d843..eb23b76 100644 | ||
74 | --- a/src/setkey/token.l | ||
75 | +++ b/src/setkey/token.l | ||
76 | @@ -88,6 +88,8 @@ | ||
77 | #endif | ||
78 | %} | ||
79 | |||
80 | +%option noyywrap | ||
81 | + | ||
82 | /* common section */ | ||
83 | nl \n | ||
84 | ws [ \t]+ | ||
85 | -- | ||
86 | 1.9.0 | ||
87 | |||
diff --git a/meta-networking/recipes-support/ipsec-tools/ipsec-tools/racoonctl-build-fix.patch b/meta-networking/recipes-support/ipsec-tools/ipsec-tools/racoonctl-build-fix.patch new file mode 100644 index 0000000000..eb8fa3e160 --- /dev/null +++ b/meta-networking/recipes-support/ipsec-tools/ipsec-tools/racoonctl-build-fix.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | diff -rupN ipsec-tools-0.8.1.old/src/racoon/Makefile.am ipsec-tools-0.8.1/src/racoon/Makefile.am | ||
2 | --- ipsec-tools-0.8.1.old/src/racoon/Makefile.am 2014-03-05 12:16:52.907101044 +0100 | ||
3 | +++ ipsec-tools-0.8.1/src/racoon/Makefile.am 2014-03-05 12:17:10.946320064 +0100 | ||
4 | @@ -44,7 +44,17 @@ racoon_DEPENDENCIES = \ | ||
5 | $(CRYPTOBJS) $(HYBRID_OBJS) $(NATT_OBJS) $(FRAG_OBJS) $(SECCTX_OBJS) \ | ||
6 | vmbuf.o sockmisc.o misc.o | ||
7 | |||
8 | -racoonctl_SOURCES = racoonctl.c str2val.c | ||
9 | +racoonctl_SOURCES = \ | ||
10 | + session.c isakmp.c handler.c \ | ||
11 | + isakmp_ident.c isakmp_agg.c isakmp_base.c \ | ||
12 | + isakmp_quick.c isakmp_inf.c isakmp_newg.c \ | ||
13 | + gssapi.c dnssec.c getcertsbyname.c privsep.c \ | ||
14 | + pfkey.c admin.c evt.c ipsec_doi.c oakley.c grabmyaddr.c vendorid.c \ | ||
15 | + policy.c localconf.c remoteconf.c crypto_openssl.c algorithm.c \ | ||
16 | + proposal.c sainfo.c strnames.c \ | ||
17 | + plog.c logger.c schedule.c str2val.c \ | ||
18 | + safefile.c backupsa.c genlist.c rsalist.c \ | ||
19 | + cftoken.l cfparse.y prsa_tok.l prsa_par.y racoonctl.c | ||
20 | racoonctl_LDADD = libracoon.la ../libipsec/libipsec.la | ||
21 | |||
22 | libracoon_la_SOURCES = kmpstat.c vmbuf.c sockmisc.c misc.c | ||
23 | diff -rupN ipsec-tools-0.8.1.old/src/racoon/racoonctl.c ipsec-tools-0.8.1/src/racoon/racoonctl.c | ||
24 | --- ipsec-tools-0.8.1.old/src/racoon/racoonctl.c 2014-03-05 12:16:52.915100698 +0100 | ||
25 | +++ ipsec-tools-0.8.1/src/racoon/racoonctl.c 2014-03-05 12:17:17.906018754 +0100 | ||
26 | @@ -247,6 +247,9 @@ usage() | ||
27 | #error "Incompatible racoonctl interface" | ||
28 | #endif | ||
29 | |||
30 | +int f_local = 0; /* local test mode. behave like a wall. */ | ||
31 | +int dump_config =0; | ||
32 | + | ||
33 | int | ||
34 | main(ac, av) | ||
35 | int ac; | ||
diff --git a/meta-networking/recipes-support/ipsec-tools/ipsec-tools/with-flexdir.patch b/meta-networking/recipes-support/ipsec-tools/ipsec-tools/with-flexdir.patch new file mode 100644 index 0000000000..da1169218a --- /dev/null +++ b/meta-networking/recipes-support/ipsec-tools/ipsec-tools/with-flexdir.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | --- ipsec-tools-0.8.1.old/configure.ac 2014-03-04 16:24:57.431207664 +0100 | ||
2 | +++ ipsec-tools-0.8.1/configure.ac 2014-03-04 16:26:00.372461304 +0100 | ||
3 | @@ -171,9 +171,9 @@ if test $with_readline != "no"; then | ||
4 | fi | ||
5 | |||
6 | |||
7 | -AC_MSG_CHECKING(if --with-flex option is specified) | ||
8 | +AC_MSG_CHECKING(if --with-flexdir option is specified) | ||
9 | AC_ARG_WITH(flexdir, | ||
10 | - [AC_HELP_STRING([--with-flex], [use directiory (default: no)])], | ||
11 | + [AC_HELP_STRING([--with-flexdir], [use directory (default: no)])], | ||
12 | [flexdir="$withval"]) | ||
13 | AC_MSG_RESULT(${flexdir-dirdefault}) | ||
14 | |||
diff --git a/meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb b/meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb new file mode 100644 index 0000000000..b94404122d --- /dev/null +++ b/meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb | |||
@@ -0,0 +1,57 @@ | |||
1 | DESCRIPTION = "IPsec-Tools is a port of KAME's IPsec utilities to the \ | ||
2 | Linux-2.6 IPsec implementation." | ||
3 | HOMEPAGE = "http://ipsec-tools.sourceforge.net/" | ||
4 | SECTION = "console/network" | ||
5 | LICENSE = "BSD" | ||
6 | LIC_FILES_CHKSUM = "file://src/libipsec/pfkey.c;beginline=6;endline=31;md5=bc9b7ff40beff19fe6bc6aef26bd2b24" | ||
7 | |||
8 | DEPENDS = "virtual/kernel openssl readline flex-native bison-native" | ||
9 | |||
10 | SRC_URI = "ftp://ftp.netbsd.org/pub/NetBSD/misc/ipsec-tools/0.8/ipsec-tools-${PV}.tar.bz2 \ | ||
11 | file://0001-Fix-warning-with-gcc-4.8.patch \ | ||
12 | file://0002-Don-t-link-against-libfl.patch \ | ||
13 | file://racoonctl-build-fix.patch \ | ||
14 | file://with-flexdir.patch \ | ||
15 | " | ||
16 | SRC_URI[md5sum] = "d38b39f291ba2962387c3232e7335dd8" | ||
17 | SRC_URI[sha256sum] = "fa4a95bb36842f001b84c4e7a1bb727e3ee06147edbc830a881d63abe8153dd4" | ||
18 | |||
19 | inherit autotools | ||
20 | |||
21 | # Options: | ||
22 | # --enable-adminport enable admin port | ||
23 | # --enable-rc5 enable RC5 encryption (patented) | ||
24 | # --enable-idea enable IDEA encryption (patented) | ||
25 | # --enable-gssapi enable GSS-API authentication | ||
26 | # --enable-hybrid enable hybrid, both mode-cfg and xauth support | ||
27 | # --enable-frag enable IKE fragmentation payload support | ||
28 | # --enable-stats enable statistics logging function | ||
29 | # --enable-dpd enable dead peer detection | ||
30 | # --enable-samode-unspec enable to use unspecified a mode of SA | ||
31 | # --disable-ipv6 disable ipv6 support | ||
32 | # --enable-natt enable NAT-Traversal (yes/no/kernel) | ||
33 | # --enable-natt-versions=list list of supported NAT-T versions delimited by coma. | ||
34 | # --with-kernel-headers=/lib/modules/<uname>/build/include | ||
35 | # where your Linux Kernel headers are installed | ||
36 | # --with-readline support readline input (yes by default) | ||
37 | # --with-flex use directiory (default: no) | ||
38 | # --with-flexlib=<LIB> specify flex library. | ||
39 | # --with-openssl=DIR specify OpenSSL directory | ||
40 | # --with-libradius=DIR specify libradius path (like/usr/pkg) | ||
41 | # --with-libpam=DIR specify libpam path (like/usr/pkg) | ||
42 | # | ||
43 | # Note: if you give it the actual kernel headers it won't build, it actually | ||
44 | # needs to point at the linux-libc-headers version of the kernel headers. | ||
45 | # | ||
46 | EXTRA_OECONF = "--with-kernel-headers=${STAGING_INCDIR} \ | ||
47 | --with-readline \ | ||
48 | --with-openssl=${STAGING_LIBDIR}/.. \ | ||
49 | --without-libradius \ | ||
50 | --without-libpam \ | ||
51 | --disable-security-context \ | ||
52 | --enable-shared \ | ||
53 | ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6=yes', '', d)}" | ||
54 | |||
55 | # See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530527 | ||
56 | CFLAGS += "-fno-strict-aliasing" | ||
57 | |||
diff --git a/meta-networking/recipes-support/libmemcached/files/crosscompile.patch b/meta-networking/recipes-support/libmemcached/files/crosscompile.patch new file mode 100644 index 0000000000..63511bff5f --- /dev/null +++ b/meta-networking/recipes-support/libmemcached/files/crosscompile.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | libmemcached/backtrace.cc | 3 ++- | ||
2 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
3 | |||
4 | --- libmemcached-1.0.15.orig/libmemcached/backtrace.cc | ||
5 | +++ libmemcached-1.0.15/libmemcached/backtrace.cc | ||
6 | @@ -75,10 +75,11 @@ void custom_backtrace(void) | ||
7 | { | ||
8 | for (int x= 0; x < stack_frames; x++) | ||
9 | { | ||
10 | bool was_demangled= false; | ||
11 | |||
12 | +#if USE_DEMANGLE == 1 | ||
13 | if (USE_DEMANGLE) | ||
14 | { | ||
15 | #ifdef HAVE_DLFCN_H | ||
16 | Dl_info dlinfo; | ||
17 | if (dladdr(backtrace_buffer[x], &dlinfo)) | ||
18 | @@ -107,11 +108,11 @@ void custom_backtrace(void) | ||
19 | dlinfo.dli_fname); | ||
20 | } | ||
21 | } | ||
22 | #endif | ||
23 | } | ||
24 | - | ||
25 | +#endif | ||
26 | if (was_demangled == false) | ||
27 | { | ||
28 | fprintf(stderr, "?%d %p in %s\n", x, backtrace_buffer[x], symbollist[x]); | ||
29 | } | ||
30 | } | ||
diff --git a/meta-networking/recipes-support/libmemcached/libmemcached.inc b/meta-networking/recipes-support/libmemcached/libmemcached.inc new file mode 100644 index 0000000000..50ef4d6062 --- /dev/null +++ b/meta-networking/recipes-support/libmemcached/libmemcached.inc | |||
@@ -0,0 +1,13 @@ | |||
1 | DESCRIPTION = "open source C/C++ client library and tools for the memcached server" | ||
2 | DEPENDS = "libevent util-linux" | ||
3 | LICENSE = "BSD" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=865490941c91ba790f0ea78dec93bd60" | ||
5 | |||
6 | SRC_URI = "http://launchpad.net/libmemcached/1.0/${PV}/+download/libmemcached-${PV}.tar.gz" | ||
7 | |||
8 | TARGET_LDFLAGS += "-luuid" | ||
9 | |||
10 | PACKAGECONFIG ??= "" | ||
11 | PACKAGECONFIG[sasl] = "--enable-sasl,--disable-sasl,cyrus-sasl" | ||
12 | |||
13 | inherit autotools gettext pkgconfig | ||
diff --git a/meta-networking/recipes-support/libmemcached/libmemcached_1.0.15.bb b/meta-networking/recipes-support/libmemcached/libmemcached_1.0.15.bb new file mode 100644 index 0000000000..18232b4ceb --- /dev/null +++ b/meta-networking/recipes-support/libmemcached/libmemcached_1.0.15.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | require libmemcached.inc | ||
2 | |||
3 | SRC_URI += "file://crosscompile.patch" | ||
4 | |||
5 | SRC_URI[md5sum] = "616297a1aedefc52b3f6922eda5d559a" | ||
6 | SRC_URI[sha256sum] = "dd7e9560029835bddf761a5b4c2339d9e5c7374558659b6c11b2c95e7d3a4325" | ||
diff --git a/meta-networking/recipes-support/libmemcached/libmemcached_1.0.7.bb b/meta-networking/recipes-support/libmemcached/libmemcached_1.0.7.bb new file mode 100644 index 0000000000..cdf8415ff7 --- /dev/null +++ b/meta-networking/recipes-support/libmemcached/libmemcached_1.0.7.bb | |||
@@ -0,0 +1,4 @@ | |||
1 | require libmemcached.inc | ||
2 | |||
3 | SRC_URI[md5sum] = "d59a462a92d296f76bff2d9bc72b2516" | ||
4 | SRC_URI[sha256sum] = "3efa86c9733eaad55d7119cb16769424e2aa6c22b3392e8f973946fce6678d81" | ||
diff --git a/meta-networking/recipes-support/lowpan-tools/lowpan-tools/no-help2man.patch b/meta-networking/recipes-support/lowpan-tools/lowpan-tools/no-help2man.patch new file mode 100644 index 0000000000..9ecd707b41 --- /dev/null +++ b/meta-networking/recipes-support/lowpan-tools/lowpan-tools/no-help2man.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | Disable building manpages so that make install doesn't fail due to lack of help2man | ||
2 | |||
3 | Upstream-Status: Inappropriate [config] | ||
4 | |||
5 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
6 | |||
7 | diff --git a/src/Makefile.am b/src/Makefile.am | ||
8 | index 46c4017..d6ed312 100644 | ||
9 | --- a/src/Makefile.am | ||
10 | +++ b/src/Makefile.am | ||
11 | @@ -9,11 +9,6 @@ izcoordinator_DESC = "simple coordinator for IEEE 802.15.4 network" | ||
12 | iz_DESC = "configure an IEEE 802.15.4 interface" | ||
13 | izchat_DESC = "simple chat program using IEEE 802.15.4" | ||
14 | |||
15 | -if MANPAGES | ||
16 | -dist_man_MANS = $(manpages) | ||
17 | -endif | ||
18 | -EXTRA_DIST = $(manpages) | ||
19 | - | ||
20 | izattach_SOURCES = serial.c | ||
21 | |||
22 | iz_SOURCES = iz.c iz-common.c iz-mac.c iz-phy.c | ||
23 | @@ -27,18 +22,6 @@ izcoordinator_LDADD = ../addrdb/libaddrdb.la $(LDADD) $(NL_LIBS) $(LEXLIB) | ||
24 | iz_CFLAGS = $(AM_CFLAGS) $(NL_CFLAGS) -D_GNU_SOURCE | ||
25 | iz_LDADD = $(LDADD) $(NL_LIBS) | ||
26 | |||
27 | -izattach.8: $(izattach_SOURCES) $(top_srcdir)/configure.ac | ||
28 | - -$(HELP2MAN) -o $@ -s 8 -N -n $(izattach_DESC) $(builddir)/izattach | ||
29 | - | ||
30 | -izcoordinator.8: $(izcoordinator_SOURCES) $(top_srcdir)/configure.ac | ||
31 | - -$(HELP2MAN) -o $@ -s 8 -N -n $(izcoordinator_DESC) $(builddir)/izcoordinator | ||
32 | - | ||
33 | -iz.8: $(iz_SOURCES) $(top_srcdir)/configure.ac | ||
34 | - -$(HELP2MAN) -o $@ -s 8 -N -n $(iz_DESC) $(builddir)/iz | ||
35 | - | ||
36 | -izchat.1: $(izchat_SOURCES) $(top_srcdir)/configure.ac | ||
37 | - -$(HELP2MAN) -o $@ -s 1 -N -n $(izchat_DESC) $(builddir)/izchat | ||
38 | - | ||
39 | install-data-hook: | ||
40 | $(mkinstalldirs) $(DESTDIR)`dirname $(leasefile)` | ||
41 | $(mkinstalldirs) $(DESTDIR)`dirname $(pidfile)` | ||
diff --git a/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb b/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb new file mode 100644 index 0000000000..5fc0de3151 --- /dev/null +++ b/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb | |||
@@ -0,0 +1,28 @@ | |||
1 | SUMMARY = "Utilities for managing the Linux LoWPAN stack" | ||
2 | DESCRIPTION = "This is a set of utils to manage the Linux LoWPAN stack. \ | ||
3 | The LoWPAN stack aims for IEEE 802.15.4-2003 (and for lesser extent IEEE 802.15.4-2006) compatibility." | ||
4 | |||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
7 | |||
8 | DEPENDS = "libnl python" | ||
9 | |||
10 | PV = "0.3+git${SRCPV}" | ||
11 | SRC_URI = "git://linux-zigbee.git.sourceforge.net/gitroot/linux-zigbee/linux-zigbee \ | ||
12 | file://no-help2man.patch" | ||
13 | SRCREV = "a1d9615adde6d1a568813c24a128273ed755af04" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | inherit autotools python-dir | ||
18 | |||
19 | CACHED_CONFIGUREVARS += "am_cv_python_pythondir=${PYTHON_SITEPACKAGES_DIR}/lowpan-tools" | ||
20 | |||
21 | do_install_append() { | ||
22 | rmdir ${D}${localstatedir}/run | ||
23 | } | ||
24 | |||
25 | FILES_${PN}-dbg += "${libexecdir}/lowpan-tools/.debug/" | ||
26 | |||
27 | PACKAGES =+ "${PN}-python" | ||
28 | FILES_${PN}-python = "${libdir}/python*" | ||
diff --git a/meta-networking/recipes-support/macchanger/macchanger_1.5.0.bb b/meta-networking/recipes-support/macchanger/macchanger_1.5.0.bb new file mode 100644 index 0000000000..b97e9d1fc5 --- /dev/null +++ b/meta-networking/recipes-support/macchanger/macchanger_1.5.0.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | SUMMARY = "Tool to view/change network interface MAC addresses" | ||
2 | DESCRIPTION = "A GNU/Linux utility for viewing/manipulating the MAC address of network interfaces." | ||
3 | HOMEPAGE = "http://www.alobbs.com/macchanger" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
6 | |||
7 | |||
8 | SRC_URI = "${GNU_MIRROR}/macchanger/${BPN}-${PV}.tar.gz" | ||
9 | |||
10 | SRC_URI[md5sum] = "79b7cdaeca3d8ebafa764c4b0dd03ab7" | ||
11 | SRC_URI[sha256sum] = "d44bfa27cb29c5a718627cb3ef3aa42eb5130426545eb2031120826cd73fa8fe" | ||
12 | |||
13 | FILES_${PN} = " \ | ||
14 | ${bindir}/${BPN} \ | ||
15 | ${datadir}/${BPN}/wireless.list \ | ||
16 | ${datadir}/${BPN}/OUI.list \ | ||
17 | " | ||
18 | |||
19 | FILES_${PN}-doc = " \ | ||
20 | ${datadir}/info \ | ||
21 | ${datadir}/man \ | ||
22 | " | ||
23 | |||
24 | inherit autotools | ||
diff --git a/meta-networking/recipes-support/memcached/memcached_1.4.15.bb b/meta-networking/recipes-support/memcached/memcached_1.4.15.bb new file mode 100644 index 0000000000..016eaeb6e5 --- /dev/null +++ b/meta-networking/recipes-support/memcached/memcached_1.4.15.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | DESCRIPTION = "Free & open source, high-performance, distributed memory object \ | ||
2 | caching system, generic in nature, but intended for use in speeding up dynamic \ | ||
3 | web applications by alleviating database load." | ||
4 | HOMEPAGE = "http://memcached.org/" | ||
5 | LICENSE = "BSD" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=7e5ded7363d335e1bb18013ca08046ff" | ||
7 | |||
8 | SRC_URI = "http://memcached.googlecode.com/files/memcached-${PV}.tar.gz" | ||
9 | |||
10 | SRC_URI[md5sum] = "36ea966f5a29655be1746bf4949f7f69" | ||
11 | SRC_URI[sha256sum] = "169721ab7a7531add6ae9f6b14b6b5641725fe0b1f0bdf5c3a4327725901e2b4" | ||
12 | |||
13 | DEPENDS = "libevent" | ||
14 | |||
15 | inherit autotools | ||
diff --git a/meta-networking/recipes-support/mtr/files/no-gtk.patch b/meta-networking/recipes-support/mtr/files/no-gtk.patch new file mode 100644 index 0000000000..0dbeb7a297 --- /dev/null +++ b/meta-networking/recipes-support/mtr/files/no-gtk.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | Disable gtk check that breaks with current autotools | ||
2 | |||
3 | Ideally we would have a proper fix for this and send that upstream instead. | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
8 | |||
9 | diff --git a/configure.in b/configure.in | ||
10 | index 8474543..5118565 100644 | ||
11 | --- a/configure.in | ||
12 | +++ b/configure.in | ||
13 | @@ -48,16 +48,8 @@ AC_ARG_ENABLE(ipv6, | ||
14 | [ --disable-ipv6 Do not enable IPv6], | ||
15 | WANTS_IPV6=$enableval, WANTS_IPV6=yes) | ||
16 | |||
17 | -if test "x$WANTS_GTK" = "xyes"; then | ||
18 | - AM_PATH_GTK_2_0(2.6.0, CFLAGS="$CFLAGS $GTK_CFLAGS" | ||
19 | - LIBS="$LIBS $GTK_LIBS -lm", | ||
20 | - AC_MSG_WARN(Building without GTK2 display support) | ||
21 | - AC_DEFINE(NO_GTK, 1, [Define if you don't have the GTK+ libraries available.]) | ||
22 | - GTK_OBJ="") | ||
23 | -else | ||
24 | - AC_DEFINE(NO_GTK) | ||
25 | - GTK_OBJ="" | ||
26 | -fi | ||
27 | +AC_DEFINE(NO_GTK, 1, [Define if you don't have the GTK+ libraries available.]) | ||
28 | +GTK_OBJ="" | ||
29 | |||
30 | AC_CHECK_FUNC(socket, , | ||
31 | AC_CHECK_LIB(socket, socket, , AC_MSG_ERROR(No socket library found))) | ||
diff --git a/meta-networking/recipes-support/mtr/mtr_0.82.bb b/meta-networking/recipes-support/mtr/mtr_0.82.bb new file mode 100644 index 0000000000..3a9394874e --- /dev/null +++ b/meta-networking/recipes-support/mtr/mtr_0.82.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | SUMMARY = "Combined traceroute and ping utility" | ||
2 | DESCRIPTION = "mtr combines the functionality of the 'traceroute' and 'ping' programs in a single network diagnostic tool." | ||
3 | HOMEPAGE = "http://www.bitwizard.nl/mtr/" | ||
4 | DEPENDS = "ncurses" | ||
5 | |||
6 | LICENSE = "GPLv2" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ | ||
8 | file://mtr.c;beginline=5;endline=16;md5=56e390ced194aff352eefab404883057" | ||
9 | |||
10 | SRC_URI = "ftp://ftp.bitwizard.nl/mtr/mtr-${PV}.tar.gz \ | ||
11 | file://no-gtk.patch" | ||
12 | |||
13 | SRC_URI[md5sum] = "10601ea543fda3e51545c4bce195b64c" | ||
14 | SRC_URI[sha256sum] = "f3b457c9623ae03565688a7ffd49d4843a5e2505ccaf3ba8d9fbd86e3ce9b6a0" | ||
15 | |||
16 | inherit autotools | ||
17 | |||
18 | EXTRA_OECONF = "--without-gtk" | ||
19 | |||
diff --git a/meta-networking/recipes-support/ndisc6/ndisc6_1.0.2.bb b/meta-networking/recipes-support/ndisc6/ndisc6_1.0.2.bb new file mode 100644 index 0000000000..066aac2c0b --- /dev/null +++ b/meta-networking/recipes-support/ndisc6/ndisc6_1.0.2.bb | |||
@@ -0,0 +1,58 @@ | |||
1 | SECTION = "console/network" | ||
2 | DESCRIPTION = "This package includes some useful diagnostics tools for \ | ||
3 | IPv6 networks, including ndisc6, rdisc6, tcptraceroute6 and traceroute6." | ||
4 | SECTION = "console/network" | ||
5 | HOMEPAGE = "http://www.remlab.net/ndisc6/" | ||
6 | LICENSE = "GPL-2.0" | ||
7 | |||
8 | # The tcptraceroute6 and tracert6 commands depend on rltraceroute6 to | ||
9 | # perform the actual trace operation. | ||
10 | RDEPENDS_${PN}-tcptraceroute6 = "${PN}-rltraceroute6" | ||
11 | RDEPENDS_${PN}-tracert6 = "${PN}-rltraceroute6" | ||
12 | |||
13 | SRC_URI = "http://www.remlab.net/files/ndisc6/ndisc6-${PV}.tar.bz2 \ | ||
14 | " | ||
15 | SRC_URI[md5sum] = "50cb4c19606cf6ff2b7388e71832f579" | ||
16 | SRC_URI[sha256sum] = "6acec8a0cb9efa3ac98456f46c3016aeec0598b0c7557c95242b5228ad62ca7a" | ||
17 | |||
18 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
19 | |||
20 | inherit autotools gettext | ||
21 | |||
22 | ALLOW_EMPTY_${PN} = "1" | ||
23 | |||
24 | # Split into seperate packages since we normal don't want them all | ||
25 | # The main package is left empty and therefore not created. | ||
26 | PACKAGES += "${PN}-ndisc6 ${PN}-tcpspray6 ${PN}-rdisc6 \ | ||
27 | ${PN}-tcptraceroute6 ${PN}-rltraceroute6 \ | ||
28 | ${PN}-tracert6 ${PN}-rdnssd ${PN}-misc" | ||
29 | FILES_${PN} = "" | ||
30 | FILES_${PN}-ndisc6 = "${bindir}/ndisc6" | ||
31 | FILES_${PN}-tcpspray6 = "${bindir}/tcpspray6" | ||
32 | FILES_${PN}-rdisc6 = "${bindir}/rdisc6" | ||
33 | FILES_${PN}-tcptraceroute6 = "${bindir}/tcptraceroute6" | ||
34 | FILES_${PN}-rltraceroute6 = "${bindir}/rltraceroute6" | ||
35 | FILES_${PN}-tracert6 = "${bindir}/tracert6" | ||
36 | FILES_${PN}-rdnssd = "${sbindir}/rdnssd ${sysconfdir}/rdnssd" | ||
37 | FILES_${PN}-misc = "${bindir}/dnssort ${bindir}/name2addr ${bindir}/tcpspray ${bindir}/addr2name" | ||
38 | |||
39 | DESCRIPTION_${PN}-ndisc6 = "ICMPv6 Neighbor Discovery tool. \ | ||
40 | Performs IPv6 neighbor discovery in userland. Replaces arping from the \ | ||
41 | IPv4 world." | ||
42 | DESCRIPTION_${PN}-rdisc6 = "ICMPv6 Router Discovery tool. \ | ||
43 | Queries IPv6 routers on the network for advertised prefixes. Can be used \ | ||
44 | to detect rogue IPv6 routers, monitor legitimate IPv6 routers." | ||
45 | DESCRITPION_${PN}-tcpspray6 = "Performs bandwidth measurements of TCP \ | ||
46 | sessions between the local system and a remote echo server in either IPv6 \ | ||
47 | or IPv4." | ||
48 | |||
49 | DESCRITPION_${PN}-rdnssd = "Daemon to autoconfigure the list of DNS \ | ||
50 | servers through slateless IPv6 autoconfiguration." | ||
51 | |||
52 | do_install_append () { | ||
53 | rm -rf ${D}${localstatedir} | ||
54 | # Enable SUID bit for applications that need it | ||
55 | chmod 4555 ${D}${bindir}/rltraceroute6 | ||
56 | chmod 4555 ${D}${bindir}/ndisc6 | ||
57 | chmod 4555 ${D}${bindir}/rdisc6 | ||
58 | } | ||
diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd_1.105.bb b/meta-networking/recipes-support/netcat/netcat-openbsd_1.105.bb new file mode 100644 index 0000000000..4474e1d093 --- /dev/null +++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.105.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | require netcat.inc | ||
2 | SUMMARY = "OpenBSD Netcat" | ||
3 | HOMEPAGE = "http://ftp.debian.org" | ||
4 | LICENSE = "BSD-3-Clause" | ||
5 | |||
6 | DEPENDS += "glib-2.0 libbsd" | ||
7 | |||
8 | SRC_URI = "${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_${PV}.orig.tar.gz;name=netcat \ | ||
9 | ${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_${PV}-7.debian.tar.gz;name=netcat-patch" | ||
10 | |||
11 | SRC_URI[netcat.md5sum] = "7e67b22f1ad41a1b7effbb59ff28fca1" | ||
12 | SRC_URI[netcat.sha256sum] = "40653fe66c1516876b61b07e093d826e2a5463c5d994f1b7e6ce328f3edb211e" | ||
13 | SRC_URI[netcat-patch.md5sum] = "e914f8eb7eda5c75c679dd77787ac76b" | ||
14 | SRC_URI[netcat-patch.sha256sum] = "eee759327ffea293e81d0dde67921b7fcfcad279ffd7a2c9d037bbc8f882b363" | ||
15 | |||
16 | S = "${WORKDIR}/${BPN}-${PV}" | ||
17 | |||
18 | do_configure[noexec] = "1" | ||
19 | |||
20 | do_compile() { | ||
21 | cd ${S} | ||
22 | while read line; do patch -p1 < ${WORKDIR}/debian/patches/$line; done < ${WORKDIR}/debian/patches/series | ||
23 | pkgrel=4 | ||
24 | oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\"" | ||
25 | } | ||
26 | |||
27 | do_install() { | ||
28 | install -d ${D}${bindir} | ||
29 | install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN} | ||
30 | } | ||
31 | ALTERNATIVE_PRIORITY = "50" | ||
diff --git a/meta-networking/recipes-support/netcat/netcat.inc b/meta-networking/recipes-support/netcat/netcat.inc new file mode 100644 index 0000000000..6c815d97e6 --- /dev/null +++ b/meta-networking/recipes-support/netcat/netcat.inc | |||
@@ -0,0 +1,5 @@ | |||
1 | SECTION = "console/network" | ||
2 | inherit update-alternatives gettext | ||
3 | |||
4 | ALTERNATIVE_${PN} = "nc" | ||
5 | |||
diff --git a/meta-networking/recipes-support/netcat/netcat/make-netcat_flag_count_work.patch b/meta-networking/recipes-support/netcat/netcat/make-netcat_flag_count_work.patch new file mode 100644 index 0000000000..dd1938a991 --- /dev/null +++ b/meta-networking/recipes-support/netcat/netcat/make-netcat_flag_count_work.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | Make netcat_flag_count() return positive value | ||
2 | |||
3 | C language has 3 distinct char types: | ||
4 | char | ||
5 | unsigned char | ||
6 | signed char | ||
7 | A char has the same range of values as signed char on X86, | ||
8 | but same as unsigned char on PPC which made netcat_flag_count | ||
9 | return a negative value, now we force variable c as signed char | ||
10 | to make netcat_flag_count return positive value. | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | |||
14 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | ||
15 | --- | ||
16 | src/flagset.c | 2 +- | ||
17 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
18 | |||
19 | diff --git a/src/flagset.c b/src/flagset.c | ||
20 | index 442b634..54ac898 100644 | ||
21 | --- a/src/flagset.c | ||
22 | +++ b/src/flagset.c | ||
23 | @@ -134,7 +134,7 @@ unsigned short netcat_flag_next(unsigned short port) | ||
24 | |||
25 | int netcat_flag_count(void) | ||
26 | { | ||
27 | - register char c; | ||
28 | + register signed char c; | ||
29 | register int i; | ||
30 | int ret = 0; | ||
31 | |||
32 | -- | ||
33 | 1.7.5.4 | ||
34 | |||
diff --git a/meta-networking/recipes-support/netcat/netcat/netcat-locale_h.patch b/meta-networking/recipes-support/netcat/netcat/netcat-locale_h.patch new file mode 100644 index 0000000000..5cbcb08e8a --- /dev/null +++ b/meta-networking/recipes-support/netcat/netcat/netcat-locale_h.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | Apparently somewhere along the line HAVE_LOCALE_H was changed to | ||
2 | HAVE_LC_MESSAGES. Adjust netcat to match. | ||
3 | |||
4 | Upstream-Status: Pending | ||
5 | |||
6 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
7 | |||
8 | Index: netcat-0.7.1/src/intl.h | ||
9 | =================================================================== | ||
10 | --- netcat-0.7.1.orig/src/intl.h | ||
11 | +++ netcat-0.7.1/src/intl.h | ||
12 | @@ -25,11 +25,11 @@ | ||
13 | #ifdef ENABLE_NLS | ||
14 | #include <libintl.h> | ||
15 | |||
16 | -#ifdef HAVE_LOCALE_H | ||
17 | +#if defined(HAVE_LC_MESSAGES) || defined(HAVE_LOCALE_H) | ||
18 | #include <locale.h> | ||
19 | #else | ||
20 | #error You must have locale.h in your system | ||
21 | -#endif /* HAVE_LOCALE_H */ | ||
22 | +#endif /* HAVE_LC_MESSAGES || HAVE_LOCALE_H */ | ||
23 | |||
24 | /* Our dear (and very common) gettext macros */ | ||
25 | #define _(String) gettext(String) | ||
diff --git a/meta-networking/recipes-support/netcat/netcat/obsolete_autoconf_macros.patch b/meta-networking/recipes-support/netcat/netcat/obsolete_autoconf_macros.patch new file mode 100644 index 0000000000..9b0ed58d66 --- /dev/null +++ b/meta-networking/recipes-support/netcat/netcat/obsolete_autoconf_macros.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | Replace obsoleted AM_CONFIG_HEADER flagged by autoconf 2.69 | ||
2 | locale.h check was picked from old gettext macros but with new aclocal | ||
3 | it picks the right 0.18 gettext.m4 and does not get the check | ||
4 | therefore we explicitly add it to configure.ac | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | |||
10 | Index: netcat-0.7.1/configure.ac | ||
11 | =================================================================== | ||
12 | --- netcat-0.7.1.orig/configure.ac 2013-01-18 01:30:01.928069739 -0800 | ||
13 | +++ netcat-0.7.1/configure.ac 2013-01-18 01:32:50.568073009 -0800 | ||
14 | @@ -26,8 +26,7 @@ | ||
15 | AC_PREREQ(2.53) | ||
16 | |||
17 | dnl without this order in this file, automake will be confused! | ||
18 | -AM_CONFIG_HEADER(config.h) | ||
19 | - | ||
20 | +AC_CONFIG_HEADERS(config.h) | ||
21 | dnl check for programs. first the c compiler. | ||
22 | AC_PROG_CC | ||
23 | AC_PROG_CPP | ||
24 | @@ -56,7 +55,7 @@ | ||
25 | AC_LBL_LIBRARY_NET | ||
26 | |||
27 | dnl Fortunately we have Solaris... | ||
28 | -AC_CHECK_HEADERS(sys/sockio.h) | ||
29 | +AC_CHECK_HEADERS(sys/sockio.h locale.h) | ||
30 | |||
31 | AC_CHECK_FUNCS(srandom random) | ||
32 | if test $ac_cv_func_srandom = no; then | ||
diff --git a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb new file mode 100644 index 0000000000..8710c36462 --- /dev/null +++ b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | require netcat.inc | ||
2 | SUMMARY = "GNU Netcat" | ||
3 | HOMEPAGE = "http://netcat.sourceforge.net" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
6 | |||
7 | PR = "r3" | ||
8 | |||
9 | SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2 \ | ||
10 | file://obsolete_autoconf_macros.patch \ | ||
11 | file://netcat-locale_h.patch \ | ||
12 | file://make-netcat_flag_count_work.patch \ | ||
13 | " | ||
14 | |||
15 | SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef" | ||
16 | SRC_URI[sha256sum] = "b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb" | ||
17 | |||
18 | inherit autotools | ||
19 | |||
20 | do_install_append() { | ||
21 | install -d ${D}${bindir} | ||
22 | mv ${D}${bindir}/nc ${D}${bindir}/nc.${BPN} | ||
23 | } | ||
24 | ALTERNATIVE_PRIORITY = "100" | ||
diff --git a/meta-networking/recipes-support/netcf/gnulib_git.bb b/meta-networking/recipes-support/netcf/gnulib_git.bb new file mode 100644 index 0000000000..1da6c83ede --- /dev/null +++ b/meta-networking/recipes-support/netcf/gnulib_git.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | SUMMARY = "The GNU portability library" | ||
2 | DESCRIPTION = "A collection of software subroutines which are designed to \ | ||
3 | be usable on many operating systems. The goal of the project \ | ||
4 | is to make it easy for free software authors to make their \ | ||
5 | software run on many operating systems. Since source is designed \ | ||
6 | to be copied from gnulib, it is not a library per-se, as much \ | ||
7 | as a collection of portable idioms to be used in other projects." | ||
8 | |||
9 | HOMEPAGE = "http://www.gnu.org/software/gnulib/" | ||
10 | SECTION = "libs" | ||
11 | LICENSE = "LGPLv2+" | ||
12 | |||
13 | LIC_FILES_CHKSUM = "file://COPYING;md5=e4cf3810f33a067ea7ccd2cd889fed21" | ||
14 | SRCREV = "24379a9217fa4bd62685795aaaa010fd90ced9e3" | ||
15 | SRC_URI = "git://git.sv.gnu.org/gnulib;protocol=git \ | ||
16 | " | ||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | do_install () { | ||
20 | cd ${S} | ||
21 | git checkout master | ||
22 | git clone ${S} ${D}/${datadir}/gnulib | ||
23 | } | ||
24 | |||
25 | do_patch[noexec] = "1" | ||
26 | do_configure[noexec] = "1" | ||
27 | do_compile[noexec] = "1" | ||
28 | do_package[noexec] = "1" | ||
29 | do_packagedata[noexec] = "1" | ||
30 | do_package_write_ipk[noexec] = "1" | ||
31 | do_package_write_deb[noexec] = "1" | ||
32 | do_package_write_rpm[noexec] = "1" | ||
diff --git a/meta-networking/recipes-support/netcf/netcf_git.bb b/meta-networking/recipes-support/netcf/netcf_git.bb new file mode 100644 index 0000000000..6c36ce8482 --- /dev/null +++ b/meta-networking/recipes-support/netcf/netcf_git.bb | |||
@@ -0,0 +1,27 @@ | |||
1 | SUMMARY = "netcf" | ||
2 | DESCRIPTION = "netcf is a cross-platform network configuration library." | ||
3 | HOMEPAGE = "https://fedorahosted.org/netcf/" | ||
4 | SECTION = "console/tools" | ||
5 | LICENSE = "LGPLv2.1" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbb461211a33b134d42ed5ee802b37ff" | ||
8 | |||
9 | SRCREV = "b8a19dc860b38c97c42115d8a559b78853452a4b" | ||
10 | PV = "0.2.3+git${SRCPV}" | ||
11 | |||
12 | SRC_URI = "git://git.fedorahosted.org/netcf.git;protocol=git \ | ||
13 | " | ||
14 | |||
15 | DEPENDS += "augeas libnl libxslt libxml2 gnulib" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | inherit gettext autotools | ||
20 | |||
21 | EXTRA_OECONF_append_class-target = " --with-driver=redhat" | ||
22 | do_configure_prepend() { | ||
23 | cd ${S} | ||
24 | rm -f .gitmodules | ||
25 | ./bootstrap --gnulib-srcdir=${STAGING_DATADIR}/gnulib | ||
26 | } | ||
27 | |||
diff --git a/meta-networking/recipes-support/netperf/files/cpu_set.patch b/meta-networking/recipes-support/netperf/files/cpu_set.patch new file mode 100644 index 0000000000..434b790499 --- /dev/null +++ b/meta-networking/recipes-support/netperf/files/cpu_set.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | Subject: [PATCH] netperf: fix CPU_SETSIZE to build with eglibc | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
6 | --- | ||
7 | src/netlib.c | 7 ++++++- | ||
8 | 1 files changed, 6 insertions(+), 1 deletions(-) | ||
9 | |||
10 | diff --git a/src/netlib.c b/src/netlib.c | ||
11 | index 206e002..e33aae6 100644 | ||
12 | --- a/src/netlib.c | ||
13 | +++ b/src/netlib.c | ||
14 | @@ -2265,7 +2265,12 @@ bind_to_specific_processor(int processor_affinity, int use_cpu_map) | ||
15 | fall-back on what we had before, which is to use just the size of | ||
16 | an unsigned long. raj 2006-09-14 */ | ||
17 | |||
18 | -#if defined(__CPU_SETSIZE) | ||
19 | +#if defined(CPU_SETSIZE) | ||
20 | +#define NETPERF_CPU_SETSIZE CPU_SETSIZE | ||
21 | +#define NETPERF_CPU_SET(cpu, cpusetp) CPU_SET(cpu, cpusetp) | ||
22 | +#define NETPERF_CPU_ZERO(cpusetp) CPU_ZERO (cpusetp) | ||
23 | + typedef cpu_set_t netperf_cpu_set_t; | ||
24 | +#elif defined(__CPU_SETSIZE) | ||
25 | #define NETPERF_CPU_SETSIZE __CPU_SETSIZE | ||
26 | #if defined(__CPU_SET_S) | ||
27 | #define NETPERF_CPU_SET(cpu, cpusetp) __CPU_SET_S(cpu, sizeof (cpu_set_t), cpusetp) | ||
28 | -- | ||
29 | 1.7.1.1 | ||
30 | |||
diff --git a/meta-networking/recipes-support/netperf/files/init b/meta-networking/recipes-support/netperf/files/init new file mode 100644 index 0000000000..8ba2a63731 --- /dev/null +++ b/meta-networking/recipes-support/netperf/files/init | |||
@@ -0,0 +1,62 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # | ||
4 | # Written by Miquel van Smoorenburg <miquels@cistron.nl>. | ||
5 | # Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.org>. | ||
6 | # Modified for Debian by Christoph Lameter <clameter@debian.org> | ||
7 | # Modified for openembedded by Bruno Randolf <bruno.randolf@4g-systems.biz> | ||
8 | |||
9 | ### BEGIN INIT INFO | ||
10 | # Provides: netperf | ||
11 | # Required-Start: $remote_fs $local_fs $time | ||
12 | # Required-Stop: $remote_fs $local_fs $time | ||
13 | # Should-Start: $network $named | ||
14 | # Should-Stop: $network $named | ||
15 | # Default-Start: 2 3 4 5 | ||
16 | # Default-Stop: 0 1 6 | ||
17 | # Short-Description: network benchmark | ||
18 | ### END INIT INFO | ||
19 | |||
20 | PATH=/bin:/usr/bin:/sbin:/usr/sbin | ||
21 | DAEMON=/usr/sbin/netserver | ||
22 | |||
23 | test -f $DAEMON || exit 0 | ||
24 | |||
25 | case "$1" in | ||
26 | start) | ||
27 | echo -n "Starting network benchmark server: netserver" | ||
28 | start-stop-daemon -S -x $DAEMON > /dev/null 2>&1 | ||
29 | echo "." | ||
30 | ;; | ||
31 | stop) | ||
32 | echo -n "Stopping network benchmark server: netserver" | ||
33 | start-stop-daemon -K -x $DAEMON | ||
34 | echo "." | ||
35 | ;; | ||
36 | #reload) | ||
37 | # | ||
38 | # If the daemon can reload its config files on the fly | ||
39 | # for example by sending it SIGHUP, do it here. | ||
40 | # | ||
41 | # If the daemon responds to changes in its config file | ||
42 | # directly anyway, make this a do-nothing entry. | ||
43 | # | ||
44 | # start-stop-daemon --stop --signal 1 --verbose --exec $DAEMON | ||
45 | # ;; | ||
46 | restart|force-reload) | ||
47 | # | ||
48 | # If the "reload" option is implemented, move the "force-reload" | ||
49 | # option to the "reload" entry above. If not, "force-reload" is | ||
50 | # just the same as "restart". | ||
51 | # | ||
52 | start-stop-daemon -K -x $DAEMON | ||
53 | sleep 1 | ||
54 | start-stop-daemon -S -x $DAEMON | ||
55 | ;; | ||
56 | *) | ||
57 | echo "Usage: /etc/init.d/netperf {start|stop|restart|force-reload}" | ||
58 | exit 1 | ||
59 | ;; | ||
60 | esac | ||
61 | |||
62 | exit 0 | ||
diff --git a/meta-networking/recipes-support/netperf/files/vfork.patch b/meta-networking/recipes-support/netperf/files/vfork.patch new file mode 100644 index 0000000000..eff98bfdee --- /dev/null +++ b/meta-networking/recipes-support/netperf/files/vfork.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | Subject: [PATCH] netperf: fix vfork/fork | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
6 | --- | ||
7 | src/netserver.c | 12 ++++++++++-- | ||
8 | 1 files changed, 10 insertions(+), 2 deletions(-) | ||
9 | |||
10 | diff --git a/src/netserver.c b/src/netserver.c | ||
11 | index 379a106..f6a8b09 100644 | ||
12 | --- a/src/netserver.c | ||
13 | +++ b/src/netserver.c | ||
14 | @@ -1020,7 +1020,7 @@ process_requests() | ||
15 | void | ||
16 | spawn_child() { | ||
17 | |||
18 | -#if defined(HAVE_FORK) | ||
19 | +#if defined(HAVE_FORK) || defined(HAVE_VFORK) | ||
20 | |||
21 | if (debug) { | ||
22 | fprintf(where, | ||
23 | @@ -1038,7 +1038,11 @@ spawn_child() { | ||
24 | |||
25 | signal(SIGCLD,SIG_IGN); | ||
26 | |||
27 | +#if defined(HAVE_FORK) | ||
28 | switch (fork()) { | ||
29 | +#else | ||
30 | + switch (vfork()) { | ||
31 | +#endif | ||
32 | case -1: | ||
33 | fprintf(where, | ||
34 | "%s: fork() error %s (errno %d)\n", | ||
35 | @@ -1405,7 +1409,7 @@ scan_netserver_args(int argc, char *argv[]) { | ||
36 | |||
37 | void | ||
38 | daemonize() { | ||
39 | -#if defined(HAVE_FORK) | ||
40 | +#if defined(HAVE_FORK) || defined(HAVE_VFORK) | ||
41 | |||
42 | if (debug) { | ||
43 | fprintf(where, | ||
44 | @@ -1419,7 +1423,11 @@ daemonize() { | ||
45 | fflush(stdout); | ||
46 | fflush(stderr); | ||
47 | |||
48 | +#if defined(HAVE_FORK) | ||
49 | switch (fork()) { | ||
50 | +#else | ||
51 | + switch (vfork()) { | ||
52 | +#endif | ||
53 | case -1: | ||
54 | fprintf(stderr, | ||
55 | "%s: fork() error %s (errno %d)\n", | ||
56 | -- | ||
57 | 1.7.1.1 | ||
58 | |||
diff --git a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb new file mode 100644 index 0000000000..7124b02e3f --- /dev/null +++ b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb | |||
@@ -0,0 +1,61 @@ | |||
1 | SUMMARY = "A networking benchmarking tool" | ||
2 | DESCRIPTION = "Network performance benchmark including tests for TCP, UDP, sockets, ATM and more." | ||
3 | SECTION = "console/network" | ||
4 | HOMEPAGE = "http://www.netperf.org/" | ||
5 | LICENSE = "netperf" | ||
6 | LICENSE_FLAGS = "non-commercial" | ||
7 | |||
8 | |||
9 | SRC_URI="ftp://ftp.netperf.org/netperf/netperf-${PV}.tar.bz2 \ | ||
10 | file://cpu_set.patch \ | ||
11 | file://vfork.patch \ | ||
12 | file://init" | ||
13 | SRC_URI[md5sum] = "9654ffdfd4c4f2c93ce3733cd9ed9236" | ||
14 | SRC_URI[sha256sum] = "cd8dac710d4273d29f70e8dbd09353a6362ac58a11926e0822233c0cb230323a" | ||
15 | |||
16 | LIC_FILES_CHKSUM = "file://COPYING;md5=a0ab17253e7a3f318da85382c7d5d5d6" | ||
17 | |||
18 | inherit update-rc.d autotools | ||
19 | |||
20 | S = "${WORKDIR}/netperf-${PV}" | ||
21 | |||
22 | # cpu_set.patch plus _GNU_SOURCE makes src/netlib.c compile with CPU_ macros | ||
23 | CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE" | ||
24 | |||
25 | # set the "_FILE_OFFSET_BITS" preprocessor symbol to 64 to support files | ||
26 | # larger than 2GB | ||
27 | CFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'largefile', \ | ||
28 | ' -D_FILE_OFFSET_BITS=64', '', d)}" | ||
29 | |||
30 | # autotools.bbclass attends to include m4 files with path depth <= 2 by | ||
31 | # "find ${S} -maxdepth 2 -name \*.m4", so move m4 files from m4/m4. | ||
32 | do_configure_prepend() { | ||
33 | test -d ${S}/m4/m4 && mv -f ${S}/m4/m4 ${S}/m4-files | ||
34 | } | ||
35 | |||
36 | do_install() { | ||
37 | sed -e 's#/usr/sbin/#${sbindir}/#g' -i ${WORKDIR}/init | ||
38 | |||
39 | install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d | ||
40 | install -m 4755 src/netperf ${D}${bindir} | ||
41 | install -m 4755 src/netserver ${D}${sbindir} | ||
42 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/netperf | ||
43 | |||
44 | # man | ||
45 | install -d ${D}${mandir}/man1/ | ||
46 | install -m 0644 ${S}/doc/netserver.man ${D}${mandir}/man1/netserver.1 | ||
47 | install -m 0644 ${S}/doc/netperf.man ${D}${mandir}/man1/netperf.1 | ||
48 | |||
49 | # move scripts to examples directory | ||
50 | install -d ${D}${docdir}/netperf/examples | ||
51 | install -m 0644 ${S}/doc/examples/*_script ${D}${docdir}/netperf/examples/ | ||
52 | |||
53 | # docs .. | ||
54 | install -m 0644 ${S}/COPYING ${D}${docdir}/netperf | ||
55 | install -m 0644 ${S}/Release_Notes ${D}${docdir}/netperf | ||
56 | install -m 0644 ${S}/README ${D}${docdir}/netperf | ||
57 | install -m 0644 ${S}/doc/netperf_old.ps ${D}${docdir}/netperf | ||
58 | } | ||
59 | |||
60 | INITSCRIPT_NAME="netperf" | ||
61 | INITSCRIPT_PARAMS="defaults" | ||
diff --git a/meta-networking/recipes-support/nis/files/libdl.patch b/meta-networking/recipes-support/nis/files/libdl.patch new file mode 100644 index 0000000000..605af319f9 --- /dev/null +++ b/meta-networking/recipes-support/nis/files/libdl.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | --- pwdutils-2.6/configure.in.orig 2005-04-19 20:22:36.603052192 -0700 | ||
2 | +++ pwdutils-2.6/configure.in 2005-04-19 21:09:45.308023672 -0700 | ||
3 | @@ -178,6 +178,9 @@ | ||
4 | AC_CHECK_LIB(ldap, main, LDAP_LIBS="-lldap $LDAP_LIBS" found_ldap_lib=yes,,$LDAP_LIBS) | ||
5 | fi | ||
6 | |||
7 | + dnl this always needs dl | ||
8 | + AC_CHECK_LIB(dl, dlopen, LDAP_LIBS="$LDAP_LIBS -ldl") | ||
9 | + | ||
10 | if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = netscape5 \); then | ||
11 | AC_CHECK_LIB(ldap50, main, LDAP_LIBS="-lldap50 -lssldap50 -lssl3 -lnss3 -lnspr4 -lprldap50 -lplc4 -lplds4" found_ldap_lib=yes need_pthread=true,, -lpthread) | ||
12 | fi | ||
diff --git a/meta-networking/recipes-support/nis/files/no-selinux.patch b/meta-networking/recipes-support/nis/files/no-selinux.patch new file mode 100644 index 0000000000..71da3e3931 --- /dev/null +++ b/meta-networking/recipes-support/nis/files/no-selinux.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | --- pwdutils-2.6/lib/copy_xattr.c.orig 2005-04-16 17:15:52.916660880 -0700 | ||
2 | +++ pwdutils-2.6/lib/copy_xattr.c 2005-04-16 17:18:10.345768480 -0700 | ||
3 | @@ -127,8 +127,11 @@ | ||
4 | |||
5 | if (lsetxattr (to, name, value, size, 0) != 0) | ||
6 | { | ||
7 | - if (strcmp (name, "security.selinux") == 0 && | ||
8 | - is_selinux_enabled() == 0) | ||
9 | + if (strcmp (name, "security.selinux") == 0 | ||
10 | +#if defined(WITH_SELINUX) | ||
11 | + && is_selinux_enabled() == 0 | ||
12 | +#endif | ||
13 | + ) | ||
14 | fprintf (stderr, | ||
15 | _("SELinux not enabled, ignore attribute %s for `%s'.\n"), | ||
16 | name, to); | ||
diff --git a/meta-networking/recipes-support/nis/files/ypbind-yocto.init b/meta-networking/recipes-support/nis/files/ypbind-yocto.init new file mode 100644 index 0000000000..5f50a530e7 --- /dev/null +++ b/meta-networking/recipes-support/nis/files/ypbind-yocto.init | |||
@@ -0,0 +1,99 @@ | |||
1 | #! /bin/sh | ||
2 | # Copyright (c) 2004 Author: Thorsten Kukuk <kukuk@suse.de> | ||
3 | # | ||
4 | # /etc/init.d/ypbind | ||
5 | # | ||
6 | # and symbolic its link | ||
7 | # | ||
8 | # /usr/sbin/rcypbind | ||
9 | # | ||
10 | # System startup script for the ypbind daemon | ||
11 | # | ||
12 | ### BEGIN INIT INFO | ||
13 | # Provides: ypbind | ||
14 | # Required-Start: $remote_fs $portmap | ||
15 | # Should-Start: ypserv slpd | ||
16 | # Required-Stop: portmap | ||
17 | # Default-Start: 3 5 | ||
18 | # Default-Stop: 0 1 2 6 | ||
19 | # Short-Description: Start ypbind (necessary for a NIS client) | ||
20 | # Description: ypbind finds the server for NIS domains and maintains | ||
21 | # the NIS binding information. | ||
22 | ### END INIT INFO | ||
23 | |||
24 | YPBIND_BIN=/usr/sbin/ypbind | ||
25 | pidfile=/var/run/ypbind.pid | ||
26 | |||
27 | [ -f /etc/default/ypbind ] && . /etc/default/ypbind | ||
28 | |||
29 | case "$1" in | ||
30 | start) | ||
31 | echo -n "Starting ypbind" | ||
32 | ## If the domainname is not set, skip starting of ypbind | ||
33 | ## and return with "program not configured" | ||
34 | /bin/ypdomainname &> /dev/null | ||
35 | if [ $? -ne 0 -o -z "`/bin/ypdomainname 2>/dev/null`" ]; then | ||
36 | if [ -f /etc/defaultdomain ]; then | ||
37 | XDOMAINNAME=`cat /etc/defaultdomain` | ||
38 | /bin/ypdomainname "$XDOMAINNAME" | ||
39 | fi | ||
40 | /bin/ypdomainname &> /dev/null | ||
41 | if [ $? -ne 0 -o -z "`/bin/ypdomainname 2>/dev/null`" ]; then | ||
42 | # Tell the user this has skipped | ||
43 | echo -n " . . . . . . . . . . No domainname set" | ||
44 | # service is not configured | ||
45 | exit 1 | ||
46 | fi | ||
47 | fi | ||
48 | |||
49 | ## If we don't have a /etc/yp.conf file, skip starting of | ||
50 | ## ypbind and return with "program not configured" | ||
51 | ## if you add the -broadcast Option later, comment this out. | ||
52 | if [ ! -f /etc/yp.conf -a "$YPBIND_BROADCAST" != "yes" ] ; then | ||
53 | # Tell the user this has skipped | ||
54 | echo -n " . . . . . . . . . . ${attn}/etc/yp.conf not found${norm}" | ||
55 | # service is not configured | ||
56 | exit 1 | ||
57 | fi | ||
58 | |||
59 | # evaluate the OPTIONS for ypbind-mt | ||
60 | OPTIONS="" | ||
61 | test "$YPBIND_LOCAL_ONLY" = "yes" && OPTIONS="-local-only $OPTIONS" | ||
62 | test "$YPBIND_BROADCAST" = "yes" && OPTIONS="-broadcast $OPTIONS" | ||
63 | test "$YPBIND_BROKEN_SERVER" = "yes" && OPTIONS="-broken-server $OPTIONS" | ||
64 | |||
65 | start-stop-daemon --start --quiet --pidfile $pidfile --exec $YPBIND_BIN -- $YPBIND_OPTIONS $OPTIONS | ||
66 | if [ $? -eq 0 ]; then | ||
67 | notfound=1 | ||
68 | for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do | ||
69 | ypwhich &>/dev/null && { notfound=0 ; break; }; | ||
70 | echo -n " ." | ||
71 | sleep 1; | ||
72 | done | ||
73 | if [ $notfound -eq 1 ]; then | ||
74 | echo -n " ${warn}No NIS server found${norm}"; | ||
75 | fi | ||
76 | else | ||
77 | exit 1 | ||
78 | fi | ||
79 | ;; | ||
80 | stop) | ||
81 | echo -n "Shutting down ypbind" | ||
82 | start-stop-daemon --stop --quiet --pidfile $pidfile | ||
83 | # Remove static data, else glibc will continue to use NIS | ||
84 | rm -f /var/yp/binding/* /var/run/ypbind.pid | ||
85 | ;; | ||
86 | restart) | ||
87 | $0 stop | ||
88 | sleep 1 | ||
89 | $0 start | ||
90 | ;; | ||
91 | reload | force-reload) | ||
92 | echo -n "Reload service ypbind" | ||
93 | start-stop-daemon --stop --quiet --signal 1 --pidfile $pidfile | ||
94 | ;; | ||
95 | *) | ||
96 | echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}" | ||
97 | exit 1 | ||
98 | ;; | ||
99 | esac | ||
diff --git a/meta-networking/recipes-support/nis/nis.inc b/meta-networking/recipes-support/nis/nis.inc new file mode 100644 index 0000000000..075d2756d9 --- /dev/null +++ b/meta-networking/recipes-support/nis/nis.inc | |||
@@ -0,0 +1,31 @@ | |||
1 | # This include file contains global definitions for the | ||
2 | # various NIS packages. | ||
3 | # | ||
4 | # These packages will only function correctly with glibc - | ||
5 | # the rpcsvc functionality is not present in uclibc | ||
6 | DESCRIPTION = "NIS Server and Tools" | ||
7 | HOMEPAGE = "http://www.linux-nis.org/nis/" | ||
8 | SECTION = "console/network" | ||
9 | LICENSE = "GPL-2.0" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
11 | |||
12 | inherit autotools gettext pkgconfig | ||
13 | |||
14 | # install is broken because src/Makefile heroically adds '-s' | ||
15 | # to the install flags - passing -s to the build /usr/bin/install! | ||
16 | # install-strip gets it right but installs ypbind -m <default>, | ||
17 | # not -m 555. In an OE build this is not, so far as I can see, | ||
18 | # a security problem (and this fix to the build problem is *much* | ||
19 | # easier and more maintainable.) | ||
20 | do_install() { | ||
21 | oe_runmake 'DESTDIR=${D}' install-strip | ||
22 | } | ||
23 | |||
24 | # An attempt to build on uclibc will fail, causing annoyance, | ||
25 | # so force the package to be skipped here (this will cause a | ||
26 | # 'nothing provides' error) | ||
27 | python () { | ||
28 | os = bb.data.getVar("TARGET_OS", d, 1) | ||
29 | if os == "linux-uclibc": | ||
30 | raise bb.parse.SkipPackage("NIS functionality requires rpcsvc/yp.h, uClibC does not provide this") | ||
31 | } | ||
diff --git a/meta-networking/recipes-support/nis/yp-tools/domainname.service b/meta-networking/recipes-support/nis/yp-tools/domainname.service new file mode 100644 index 0000000000..21aa92cb36 --- /dev/null +++ b/meta-networking/recipes-support/nis/yp-tools/domainname.service | |||
@@ -0,0 +1,12 @@ | |||
1 | [Unit] | ||
2 | Description=NIS Domainname | ||
3 | |||
4 | [Service] | ||
5 | Type=oneshot | ||
6 | EnvironmentFile=/etc/nisdomainname | ||
7 | ExecStart=/usr/bin/domainname $NISDOMAINNAME | ||
8 | RemainAfterExit=true | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=multi-user.target | ||
12 | |||
diff --git a/meta-networking/recipes-support/nis/yp-tools_2.12.bb b/meta-networking/recipes-support/nis/yp-tools_2.12.bb new file mode 100644 index 0000000000..0017845508 --- /dev/null +++ b/meta-networking/recipes-support/nis/yp-tools_2.12.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | # This package builds tools to manage NIS | ||
2 | # The source package is utils/net/NIS/yp-tools | ||
3 | # | ||
4 | PR = "r3" | ||
5 | DESCRIPTION="\ | ||
6 | Network Information Service tools. \ | ||
7 | This package contains ypcat, ypmatch, ypset, \ | ||
8 | ypwhich, yppasswd, domainname, nisdomainname \ | ||
9 | and ypdomainname." | ||
10 | |||
11 | require nis.inc | ||
12 | SRC_URI = "http://www.linux-nis.org/download/yp-tools/${BP}.tar.bz2 \ | ||
13 | file://domainname.service \ | ||
14 | " | ||
15 | |||
16 | SRC_URI[md5sum] = "ce1e06d86caa285fa8cd76fdf103f51e" | ||
17 | SRC_URI[sha256sum] = "6ae8321666eea7837da343eea90ea30273fb74943ad111d5a4befd2afb252063" | ||
18 | |||
19 | CACHED_CONFIGUREVARS += "ac_cv_prog_STRIP=/bin/true" | ||
20 | |||
21 | inherit systemd | ||
22 | |||
23 | RPROVIDES_${PN} += "${PN}-systemd" | ||
24 | RREPLACES_${PN} += "${PN}-systemd" | ||
25 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
26 | SYSTEMD_SERVICE_${PN} = "domainname.service" | ||
27 | |||
28 | do_install_append() { | ||
29 | install -d ${D}${systemd_unitdir}/system | ||
30 | install -m 0644 ${WORKDIR}/domainname.service ${D}${systemd_unitdir}/system | ||
31 | } | ||
diff --git a/meta-networking/recipes-support/nis/ypbind-mt/ypbind.service b/meta-networking/recipes-support/nis/ypbind-mt/ypbind.service new file mode 100644 index 0000000000..1f8df42af5 --- /dev/null +++ b/meta-networking/recipes-support/nis/ypbind-mt/ypbind.service | |||
@@ -0,0 +1,14 @@ | |||
1 | [Unit] | ||
2 | Description=YP Bind | ||
3 | Requires=domainname.service | ||
4 | After=domainname.service network.target | ||
5 | Before=systemd-user-sessions.service | ||
6 | |||
7 | [Service] | ||
8 | Type=forking | ||
9 | PIDFile=/var/run/ypbind.pid | ||
10 | ExecStart=/usr/sbin/ypbind | ||
11 | |||
12 | [Install] | ||
13 | WantedBy=multi-user.target | ||
14 | |||
diff --git a/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb b/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb new file mode 100644 index 0000000000..35ef16a89a --- /dev/null +++ b/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb | |||
@@ -0,0 +1,52 @@ | |||
1 | # This package builds the NIS ypbind daemon | ||
2 | # The source package is utils/net/NIS/ypbind-mt | ||
3 | # | ||
4 | PR = "r3" | ||
5 | DESCRIPTION="\ | ||
6 | Multithreaded NIS bind service (ypbind-mt). \ | ||
7 | ypbind-mt is a complete new implementation of a NIS \ | ||
8 | binding daemon for Linux. It has the following \ | ||
9 | features. Supports ypbind protocol V1 and V2. \ | ||
10 | Uses threads for better response. Supports multiple \ | ||
11 | domain bindings. Supports /var/yp/binding/* file \ | ||
12 | for Linux libc 4/5 and glibc 2.x. Supports a list \ | ||
13 | of known secure NIS server (/etc/yp.conf) Binds to \ | ||
14 | the server which answered as first." | ||
15 | HOMEPAGE="http://www.linux-nis.org/nis/ypbind-mt/index.html" | ||
16 | |||
17 | require nis.inc | ||
18 | |||
19 | LIC_FILES_CHKSUM = "file://COPYING;md5=082c9a0886c7c3db1bc862b5b62ffe08" | ||
20 | |||
21 | SRC_URI = "http://www.linux-nis.org/download/ypbind-mt/${BP}.tar.bz2 \ | ||
22 | file://ypbind-yocto.init \ | ||
23 | file://ypbind.service \ | ||
24 | " | ||
25 | SRC_URI[md5sum] = "135834db97d78ff6d79fdee2810b4056" | ||
26 | SRC_URI[sha256sum] = "0eff76c1849f4b38ea1a60280d8397c4240369c641fe5402ce57edf1a90958c7" | ||
27 | |||
28 | # ypbind-mt now provides all the functionality of ypbind | ||
29 | # and is used in place of it. | ||
30 | PROVIDES += "ypbind" | ||
31 | |||
32 | CACHED_CONFIGUREVARS = "ac_cv_prog_STRIP=/bin/true" | ||
33 | |||
34 | do_install_append () { | ||
35 | install -d ${D}${sysconfdir}/init.d | ||
36 | install -d ${D}${sysconfdir}/rcS.d | ||
37 | |||
38 | install -m 0755 ${WORKDIR}/ypbind-yocto.init ${D}${sysconfdir}/init.d/ypbind | ||
39 | |||
40 | # TODO, use update-rc.d | ||
41 | ln -s ../init.d/ypbind ${D}${sysconfdir}/rcS.d/S44ypbind | ||
42 | |||
43 | install -d ${D}${systemd_unitdir}/system | ||
44 | install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system | ||
45 | } | ||
46 | |||
47 | inherit systemd | ||
48 | |||
49 | RPROVIDES_${PN} += "${PN}-systemd" | ||
50 | RREPLACES_${PN} += "${PN}-systemd" | ||
51 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
52 | SYSTEMD_SERVICE_${PN} = "ypbind.service" | ||
diff --git a/meta-networking/recipes-support/ntp/files/ntp-4.2.4_p6-nano.patch b/meta-networking/recipes-support/ntp/files/ntp-4.2.4_p6-nano.patch new file mode 100644 index 0000000000..cb1e2f7341 --- /dev/null +++ b/meta-networking/recipes-support/ntp/files/ntp-4.2.4_p6-nano.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | --- a/include/ntp_syscall.h.orig 2009-05-19 16:44:55.048156467 -0400 | ||
2 | +++ b/include/ntp_syscall.h 2009-05-19 16:46:19.293323686 -0400 | ||
3 | @@ -14,6 +14,14 @@ | ||
4 | # include <sys/timex.h> | ||
5 | #endif | ||
6 | |||
7 | +#if defined(ADJ_NANO) && !defined(MOD_NANO) | ||
8 | +#define MOD_NANO ADJ_NANO | ||
9 | +#endif | ||
10 | + | ||
11 | +#if defined(ADJ_TAI) && !defined(MOD_TAI) | ||
12 | +#define MOD_TAI ADJ_TAI | ||
13 | +#endif | ||
14 | + | ||
15 | #ifndef NTP_SYSCALLS_LIBC | ||
16 | #ifdef NTP_SYSCALLS_STD | ||
17 | # define ntp_adjtime(t) syscall(SYS_ntp_adjtime, (t)) | ||
diff --git a/meta-networking/recipes-support/ntp/files/ntp.conf b/meta-networking/recipes-support/ntp/files/ntp.conf new file mode 100644 index 0000000000..875b7ebc1d --- /dev/null +++ b/meta-networking/recipes-support/ntp/files/ntp.conf | |||
@@ -0,0 +1,17 @@ | |||
1 | # This is the most basic ntp configuration file | ||
2 | # The driftfile must remain in a place specific to this | ||
3 | # machine - it records the machine specific clock error | ||
4 | driftfile /etc/ntp.drift | ||
5 | # This should be a server that is close (in IP terms) | ||
6 | # to the machine. Add other servers as required. | ||
7 | # Unless you un-comment the line below ntpd will sync | ||
8 | # only against the local system clock. | ||
9 | # | ||
10 | # server time.server.example.com | ||
11 | # | ||
12 | # Using local hardware clock as fallback | ||
13 | # Disable this when using ntpd -q -g -x as ntpdate or it will sync to itself | ||
14 | server 127.127.1.0 | ||
15 | fudge 127.127.1.0 stratum 14 | ||
16 | # Defining a default security setting | ||
17 | restrict default | ||
diff --git a/meta-networking/recipes-support/ntp/files/ntpd b/meta-networking/recipes-support/ntp/files/ntpd new file mode 100755 index 0000000000..a62b8ce691 --- /dev/null +++ b/meta-networking/recipes-support/ntp/files/ntpd | |||
@@ -0,0 +1,64 @@ | |||
1 | #! /bin/sh | ||
2 | # | ||
3 | PATH=/sbin:/bin:/usr/bin:/usr/sbin | ||
4 | |||
5 | # ntpd init.d script for ntpdc from ntp.isc.org | ||
6 | test -x /usr/sbin/ntpd -a -r /etc/ntp.conf || exit 0 | ||
7 | # rcS contains TICKADJ | ||
8 | test -r /etc/default/rcS && . /etc/default/rcS | ||
9 | |||
10 | # Functions to do individual actions | ||
11 | settick(){ | ||
12 | # If TICKADJ is set we *must* adjust it before we start, because the | ||
13 | # driftfile relies on the correct setting | ||
14 | test -n "$TICKADJ" -a -x /usr/sbin/tickadj && { | ||
15 | echo -n "Setting tick to $TICKADJ: " | ||
16 | /usr/sbin/tickadj "$TICKADJ" | ||
17 | echo "done" | ||
18 | } | ||
19 | } | ||
20 | startdaemon(){ | ||
21 | # The -g option allows ntpd to step the time to correct it just | ||
22 | # once. The daemon will exit if the clock drifts too much after | ||
23 | # this. If ntpd seems to disappear after a while assume TICKADJ | ||
24 | # above is set to a totally incorrect value. | ||
25 | echo -n "Starting ntpd: " | ||
26 | start-stop-daemon --start -x /usr/sbin/ntpd -- -u ntp:ntp -p /var/run/ntp.pid "$@" | ||
27 | echo "done" | ||
28 | } | ||
29 | stopdaemon(){ | ||
30 | echo -n "Stopping ntpd: " | ||
31 | start-stop-daemon --stop -p /var/run/ntp.pid | ||
32 | echo "done" | ||
33 | } | ||
34 | |||
35 | case "$1" in | ||
36 | start) | ||
37 | settick | ||
38 | startdaemon -g | ||
39 | ;; | ||
40 | stop) | ||
41 | stopdaemon | ||
42 | ;; | ||
43 | force-reload) | ||
44 | stopdaemon | ||
45 | settick | ||
46 | startdaemon -g | ||
47 | ;; | ||
48 | restart) | ||
49 | # Don't reset the tick here | ||
50 | stopdaemon | ||
51 | startdaemon -g | ||
52 | ;; | ||
53 | reload) | ||
54 | # Must do this by hand, but don't do -g | ||
55 | stopdaemon | ||
56 | startdaemon | ||
57 | ;; | ||
58 | *) | ||
59 | echo "Usage: ntpd { start | stop | restart | reload }" >&2 | ||
60 | exit 1 | ||
61 | ;; | ||
62 | esac | ||
63 | |||
64 | exit 0 | ||
diff --git a/meta-networking/recipes-support/ntp/files/ntpdate b/meta-networking/recipes-support/ntp/files/ntpdate new file mode 100755 index 0000000000..17b64d1335 --- /dev/null +++ b/meta-networking/recipes-support/ntp/files/ntpdate | |||
@@ -0,0 +1,54 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | PATH=/sbin:/bin:/usr/bin:/usr/sbin | ||
4 | |||
5 | test -x /usr/sbin/ntpdate || exit 0 | ||
6 | |||
7 | if test -f /etc/default/ntpdate ; then | ||
8 | . /etc/default/ntpdate | ||
9 | fi | ||
10 | |||
11 | if [ "$NTPSERVERS" = "" ] ; then | ||
12 | if [ "$METHOD" = "" -a "$1" != "silent" ] ; then | ||
13 | echo "Please set NTPSERVERS in /etc/default/ntpdate" | ||
14 | exit 1 | ||
15 | else | ||
16 | exit 0 | ||
17 | fi | ||
18 | fi | ||
19 | |||
20 | # This is a heuristic: The idea is that if a static interface is brought | ||
21 | # up, that is a major event, and we can put in some extra effort to fix | ||
22 | # the system time. Feel free to change this, especially if you regularly | ||
23 | # bring up new network interfaces. | ||
24 | if [ "$METHOD" = static ]; then | ||
25 | OPTS="-b" | ||
26 | fi | ||
27 | |||
28 | if [ "$METHOD" = loopback ]; then | ||
29 | exit 0 | ||
30 | fi | ||
31 | |||
32 | ( | ||
33 | |||
34 | LOCKFILE=/var/lock/ntpdate | ||
35 | |||
36 | # Avoid running more than one at a time | ||
37 | if [ -x /usr/bin/lockfile-create ]; then | ||
38 | lockfile-create $LOCKFILE | ||
39 | lockfile-touch $LOCKFILE & | ||
40 | LOCKTOUCHPID="$!" | ||
41 | fi | ||
42 | |||
43 | if /usr/sbin/ntpdate -s $OPTS $NTPSERVERS 2>/dev/null; then | ||
44 | if [ "$UPDATE_HWCLOCK" = "yes" ]; then | ||
45 | hwclock --systohc || : | ||
46 | fi | ||
47 | fi | ||
48 | |||
49 | if [ -x /usr/bin/lockfile-create ] ; then | ||
50 | kill $LOCKTOUCHPID | ||
51 | lockfile-remove $LOCKFILE | ||
52 | fi | ||
53 | |||
54 | ) & | ||
diff --git a/meta-networking/recipes-support/ntp/files/ntpdate.default b/meta-networking/recipes-support/ntp/files/ntpdate.default new file mode 100644 index 0000000000..486b6e07d3 --- /dev/null +++ b/meta-networking/recipes-support/ntp/files/ntpdate.default | |||
@@ -0,0 +1,7 @@ | |||
1 | # Configuration script used by ntpdate-sync script | ||
2 | |||
3 | NTPSERVERS="" | ||
4 | |||
5 | # Set to "yes" to write time to hardware clock on success | ||
6 | UPDATE_HWCLOCK="no" | ||
7 | |||
diff --git a/meta-networking/recipes-support/ntp/files/openssl-check.patch b/meta-networking/recipes-support/ntp/files/openssl-check.patch new file mode 100644 index 0000000000..8b4a6733cd --- /dev/null +++ b/meta-networking/recipes-support/ntp/files/openssl-check.patch | |||
@@ -0,0 +1,59 @@ | |||
1 | Hack OpenSSL check to work when libssl and libcrypto aren't in same dir | ||
2 | |||
3 | Upstream-Status: Inappropriate [config] | ||
4 | |||
5 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
6 | --- | ||
7 | configure | 4 ++-- | ||
8 | m4/ntp_openssl.m4 | 4 ++-- | ||
9 | sntp/configure | 4 ++-- | ||
10 | 3 files changed, 6 insertions(+), 6 deletions(-) | ||
11 | |||
12 | diff --git a/configure b/configure | ||
13 | index aae2c01..6a3c15e 100755 | ||
14 | --- a/configure | ||
15 | +++ b/configure | ||
16 | @@ -22868,8 +22868,8 @@ case "$ans" in | ||
17 | test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break | ||
18 | ;; | ||
19 | *) | ||
20 | - test -f $i/libcrypto.so -a -f $i/libssl.so && break | ||
21 | - test -f $i/libcrypto.a -a -f $i/libssl.a && break | ||
22 | + test -f $i/libssl.so && break | ||
23 | + test -f $i/libssl.a && break | ||
24 | ;; | ||
25 | esac | ||
26 | done | ||
27 | diff --git a/m4/ntp_openssl.m4 b/m4/ntp_openssl.m4 | ||
28 | index 7d9f477..67bdd55 100644 | ||
29 | --- a/m4/ntp_openssl.m4 | ||
30 | +++ b/m4/ntp_openssl.m4 | ||
31 | @@ -41,8 +41,8 @@ case "$ans" in | ||
32 | test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break | ||
33 | ;; | ||
34 | *) | ||
35 | - test -f $i/libcrypto.so -a -f $i/libssl.so && break | ||
36 | - test -f $i/libcrypto.a -a -f $i/libssl.a && break | ||
37 | + test -f $i/libssl.so && break | ||
38 | + test -f $i/libssl.a && break | ||
39 | ;; | ||
40 | esac | ||
41 | done | ||
42 | diff --git a/sntp/configure b/sntp/configure | ||
43 | index 7782c29..55e82d9 100755 | ||
44 | --- a/sntp/configure | ||
45 | +++ b/sntp/configure | ||
46 | @@ -14810,8 +14810,8 @@ case "$ans" in | ||
47 | test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break | ||
48 | ;; | ||
49 | *) | ||
50 | - test -f $i/libcrypto.so -a -f $i/libssl.so && break | ||
51 | - test -f $i/libcrypto.a -a -f $i/libssl.a && break | ||
52 | + test -f $i/libssl.so && break | ||
53 | + test -f $i/libssl.a && break | ||
54 | ;; | ||
55 | esac | ||
56 | done | ||
57 | -- | ||
58 | 1.7.1 | ||
59 | |||
diff --git a/meta-networking/recipes-support/ntp/files/tickadj.c.patch b/meta-networking/recipes-support/ntp/files/tickadj.c.patch new file mode 100644 index 0000000000..9ef9de9e1f --- /dev/null +++ b/meta-networking/recipes-support/ntp/files/tickadj.c.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | Index: ntp-4.2.2p3-r0/ntp-4.2.2p3/util/tickadj.c | ||
2 | =================================================================== | ||
3 | --- ntp-4.2.2p3/util/tickadj.c 2004-02-25 06:58:33.000000000 +0100 | ||
4 | +++ ntp-4.2.2p3/util/tickadj.c 2007-07-07 01:00:54.000000000 +0200 | ||
5 | @@ -21,7 +21,8 @@ | ||
6 | # include <unistd.h> | ||
7 | #endif /* HAVE_UNISTD_H */ | ||
8 | |||
9 | -#ifdef HAVE___ADJTIMEX /* Linux */ | ||
10 | +/* proper handling here has been moved to upstream ntp bugzilla */ | ||
11 | +#ifdef linux | ||
12 | |||
13 | #include <sys/timex.h> | ||
14 | struct timex txc; | ||
15 | @@ -91,7 +92,7 @@ | ||
16 | } | ||
17 | |||
18 | if (!errflg) { | ||
19 | - if (__adjtimex(&txc) < 0) | ||
20 | + if (adjtimex(&txc) < 0) | ||
21 | perror("adjtimex"); | ||
22 | else if (!quiet) | ||
23 | printf("tick = %ld\ntick_adj = %d\n", | ||
24 | @@ -146,7 +147,7 @@ | ||
25 | #endif | ||
26 | } | ||
27 | |||
28 | - if (__adjtimex(&txc) < 0) | ||
29 | + if (adjtimex(&txc) < 0) | ||
30 | { | ||
31 | perror("adjtimex"); | ||
32 | } | ||
diff --git a/meta-networking/recipes-support/ntp/ntp.inc b/meta-networking/recipes-support/ntp/ntp.inc new file mode 100644 index 0000000000..49f9901e1e --- /dev/null +++ b/meta-networking/recipes-support/ntp/ntp.inc | |||
@@ -0,0 +1,137 @@ | |||
1 | SUMMARY = "Network Time Protocol daemon and utilities" | ||
2 | DESCRIPTION = "The Network Time Protocol (NTP) is used to \ | ||
3 | synchronize the time of a computer client or server to \ | ||
4 | another server or reference time source, such as a radio \ | ||
5 | or satellite receiver or modem." | ||
6 | HOMEPAGE = "http://support.ntp.org" | ||
7 | SECTION = "console/network" | ||
8 | LICENSE = "NTP" | ||
9 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fea4b50c33b18c2194b4b1c9ca512670" | ||
10 | |||
11 | INC_PR = "r6" | ||
12 | |||
13 | SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.gz \ | ||
14 | file://tickadj.c.patch \ | ||
15 | file://ntp-4.2.4_p6-nano.patch \ | ||
16 | file://openssl-check.patch \ | ||
17 | file://ntpd \ | ||
18 | file://ntp.conf \ | ||
19 | file://ntpdate \ | ||
20 | file://ntpdate.default \ | ||
21 | file://ntpdate.service \ | ||
22 | file://ntpd.service \ | ||
23 | file://sntp.service \ | ||
24 | file://sntp \ | ||
25 | file://ntpd.list \ | ||
26 | " | ||
27 | |||
28 | inherit autotools update-rc.d useradd systemd | ||
29 | |||
30 | # The ac_cv_header_readline_history is to stop ntpdc depending on either | ||
31 | # readline or curses | ||
32 | EXTRA_OECONF += "--with-net-snmp-config=no --without-ntpsnmpd ac_cv_header_readline_history_h=no --with-binsubdir=sbin" | ||
33 | CFLAGS_append = " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED" | ||
34 | |||
35 | USERADD_PACKAGES = "${PN}" | ||
36 | USERADD_PARAM_${PN} = "--system --home-dir /var/lib/ntp \ | ||
37 | --shell /bin/false --user-group ntp" | ||
38 | |||
39 | PACKAGECONFIG ??= "cap" | ||
40 | PACKAGECONFIG[openssl] = "--with-openssl-libdir=${STAGING_LIBDIR} \ | ||
41 | --with-openssl-incdir=${STAGING_INCDIR} \ | ||
42 | --with-crypto, \ | ||
43 | --without-openssl --without-crypto, \ | ||
44 | openssl" | ||
45 | PACKAGECONFIG[cap] = "--enable-linuxcaps,--disable-linuxcaps,libcap" | ||
46 | PACKAGECONFIG[readline] = "--with-lineeditlibs,--without-lineeditlibs,readline" | ||
47 | |||
48 | do_install_append() { | ||
49 | install -d ${D}${sysconfdir}/init.d | ||
50 | install -m 644 ${WORKDIR}/ntp.conf ${D}${sysconfdir} | ||
51 | install -m 755 ${WORKDIR}/ntpd ${D}${sysconfdir}/init.d | ||
52 | install -d ${D}${bindir} | ||
53 | install -m 755 ${WORKDIR}/ntpdate ${D}${bindir}/ntpdate-sync | ||
54 | |||
55 | # Fix hardcoded paths in scripts | ||
56 | sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/ntpd ${D}${bindir}/ntpdate-sync | ||
57 | sed -i 's!/usr/bin/!${bindir}/!g' ${D}${sysconfdir}/init.d/ntpd ${D}${bindir}/ntpdate-sync | ||
58 | sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/ntpd ${D}${bindir}/ntpdate-sync | ||
59 | sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/ntpd ${D}${bindir}/ntpdate-sync | ||
60 | sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${bindir}/ntpdate-sync | ||
61 | sed -i '1s,#!.*perl -w,#! ${bindir}/env perl,' ${D}${sbindir}/ntptrace | ||
62 | sed -i '/use/i use warnings;' ${D}${sbindir}/ntptrace | ||
63 | sed -i '1s,#!.*perl -w,#! ${bindir}/env perl,' ${D}${sbindir}/ntp-wait | ||
64 | sed -i '/use/i use warnings;' ${D}${sbindir}/ntp-wait | ||
65 | |||
66 | install -d ${D}/${sysconfdir}/default | ||
67 | install -m 644 ${WORKDIR}/ntpdate.default ${D}${sysconfdir}/default/ntpdate | ||
68 | install -m 0644 ${WORKDIR}/sntp ${D}${sysconfdir}/default/ | ||
69 | |||
70 | install -d ${D}/${sysconfdir}/network/if-up.d | ||
71 | ln -s ${bindir}/ntpdate-sync ${D}/${sysconfdir}/network/if-up.d | ||
72 | |||
73 | install -d ${D}${systemd_unitdir}/system | ||
74 | install -m 0644 ${WORKDIR}/ntpdate.service ${D}${systemd_unitdir}/system/ | ||
75 | install -m 0644 ${WORKDIR}/ntpd.service ${D}${systemd_unitdir}/system/ | ||
76 | install -m 0644 ${WORKDIR}/sntp.service ${D}${systemd_unitdir}/system/ | ||
77 | |||
78 | install -d ${D}${systemd_unitdir}/ntp-units.d | ||
79 | install -m 0644 ${WORKDIR}/ntpd.list ${D}${systemd_unitdir}/ntp-units.d/60-ntpd.list | ||
80 | } | ||
81 | |||
82 | PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils" | ||
83 | # NOTE: you don't need ntpdate, use "ntpd -q -g -x" | ||
84 | |||
85 | # ntp originally includes tickadj. It's split off for inclusion in small firmware images on platforms | ||
86 | # with wonky clocks (e.g. OpenSlug) | ||
87 | RDEPENDS_${PN} = "${PN}-tickadj" | ||
88 | # Handle move from bin to utils package | ||
89 | RPROVIDES_${PN}-utils = "${PN}-bin" | ||
90 | RREPLACES_${PN}-utils = "${PN}-bin" | ||
91 | RCONFLICTS_${PN}-utils = "${PN}-bin" | ||
92 | |||
93 | SYSTEMD_PACKAGES = "${PN} ntpdate sntp" | ||
94 | SYSTEMD_SERVICE_${PN} = "ntpd.service" | ||
95 | SYSTEMD_SERVICE_ntpdate = "ntpdate.service" | ||
96 | SYSTEMD_SERVICE_sntp = "sntp.service" | ||
97 | |||
98 | RPROVIDES_${PN} += "${PN}-systemd" | ||
99 | RREPLACES_${PN} += "${PN}-systemd" | ||
100 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
101 | |||
102 | RPROVIDES_ntpdate += "ntpdate-systemd" | ||
103 | RREPLACES_ntpdate += "ntpdate-systemd" | ||
104 | RCONFLICTS_ntpdate += "ntpdate-systemd" | ||
105 | |||
106 | RSUGGESTS_${PN} = "iana-etc" | ||
107 | |||
108 | FILES_${PN} = "${sbindir}/ntpd ${sysconfdir}/ntp.conf ${sysconfdir}/init.d/ntpd ${libdir} \ | ||
109 | ${systemd_unitdir}/ntp-units.d/60-ntpd.list \ | ||
110 | " | ||
111 | FILES_${PN}-tickadj = "${sbindir}/tickadj" | ||
112 | FILES_${PN}-utils = "${sbindir}" | ||
113 | FILES_ntpdate = "${sbindir}/ntpdate \ | ||
114 | ${sysconfdir}/network/if-up.d/ntpdate-sync \ | ||
115 | ${bindir}/ntpdate-sync \ | ||
116 | ${sysconfdir}/default/ntpdate \ | ||
117 | ${systemd_unitdir}/system/ntpdate.service \ | ||
118 | " | ||
119 | FILES_sntp = "${sbindir}/sntp \ | ||
120 | ${sysconfdir}/default/sntp \ | ||
121 | " | ||
122 | |||
123 | CONFFILES_${PN} = "${sysconfdir}/ntp.conf" | ||
124 | CONFFILES_ntpdate = "${sysconfdir}/default/ntpdate" | ||
125 | |||
126 | INITSCRIPT_NAME = "ntpd" | ||
127 | # No dependencies, so just go in at the standard level (20) | ||
128 | INITSCRIPT_PARAMS = "defaults" | ||
129 | |||
130 | pkg_postinst_ntpdate() { | ||
131 | if ! grep -q -s ntpdate $D/var/spool/cron/root; then | ||
132 | echo "adding crontab" | ||
133 | test -d $D/var/spool/cron || mkdir -p $D/var/spool/cron | ||
134 | echo "30 * * * * ${bindir}/ntpdate-sync silent" >> $D/var/spool/cron/root | ||
135 | fi | ||
136 | } | ||
137 | |||
diff --git a/meta-networking/recipes-support/ntp/ntp/ntpd.list b/meta-networking/recipes-support/ntp/ntp/ntpd.list new file mode 100644 index 0000000000..d1fe6b7e28 --- /dev/null +++ b/meta-networking/recipes-support/ntp/ntp/ntpd.list | |||
@@ -0,0 +1 @@ | |||
ntpd.service | |||
diff --git a/meta-networking/recipes-support/ntp/ntp/ntpd.service b/meta-networking/recipes-support/ntp/ntp/ntpd.service new file mode 100644 index 0000000000..b7c4268646 --- /dev/null +++ b/meta-networking/recipes-support/ntp/ntp/ntpd.service | |||
@@ -0,0 +1,11 @@ | |||
1 | [Unit] | ||
2 | Description=Network Time Service | ||
3 | After=network.target | ||
4 | |||
5 | [Service] | ||
6 | Type=forking | ||
7 | PIDFile=/run/ntpd.pid | ||
8 | ExecStart=/usr/sbin/ntpd -p /run/ntpd.pid -g | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=multi-user.target | ||
diff --git a/meta-networking/recipes-support/ntp/ntp/ntpdate.service b/meta-networking/recipes-support/ntp/ntp/ntpdate.service new file mode 100644 index 0000000000..10cbd70f99 --- /dev/null +++ b/meta-networking/recipes-support/ntp/ntp/ntpdate.service | |||
@@ -0,0 +1,11 @@ | |||
1 | [Unit] | ||
2 | Description=Network Time Service (one-shot ntpdate mode) | ||
3 | Before=ntpd.service | ||
4 | |||
5 | [Service] | ||
6 | Type=oneshot | ||
7 | ExecStart=/usr/bin/ntpdate-sync silent | ||
8 | RemainAfterExit=yes | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=multi-user.target | ||
diff --git a/meta-networking/recipes-support/ntp/ntp/sntp b/meta-networking/recipes-support/ntp/ntp/sntp new file mode 100644 index 0000000000..f8c5895b74 --- /dev/null +++ b/meta-networking/recipes-support/ntp/ntp/sntp | |||
@@ -0,0 +1 @@ | |||
NTPSERVER="ntpserver.example.org" | |||
diff --git a/meta-networking/recipes-support/ntp/ntp/sntp.service b/meta-networking/recipes-support/ntp/ntp/sntp.service new file mode 100644 index 0000000000..4898b8a709 --- /dev/null +++ b/meta-networking/recipes-support/ntp/ntp/sntp.service | |||
@@ -0,0 +1,11 @@ | |||
1 | [Unit] | ||
2 | Description=Simple Network Time Service Client | ||
3 | After=network.target | ||
4 | |||
5 | [Service] | ||
6 | Type=oneshot | ||
7 | EnvironmentFile=-/etc/default/sntp | ||
8 | ExecStart=/usr/sbin/sntp -s $NTPSERVER | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=multi-user.target | ||
diff --git a/meta-networking/recipes-support/ntp/ntp_4.2.6p5.bb b/meta-networking/recipes-support/ntp/ntp_4.2.6p5.bb new file mode 100644 index 0000000000..588a1b03c9 --- /dev/null +++ b/meta-networking/recipes-support/ntp/ntp_4.2.6p5.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | require ntp.inc | ||
2 | |||
3 | PR = "${INC_PR}.0" | ||
4 | |||
5 | SRC_URI[md5sum] = "00df80a84ec9528fcfb09498075525bc" | ||
6 | SRC_URI[sha256sum] = "d6ab8371f9d31e594eb6922823d5ccd03dcc4e9d84b0e23ea25ac1405432f91c" | ||
diff --git a/meta-networking/recipes-support/nuttcp/nuttcp_7.2.1.bb b/meta-networking/recipes-support/nuttcp/nuttcp_7.2.1.bb new file mode 100644 index 0000000000..b931d04702 --- /dev/null +++ b/meta-networking/recipes-support/nuttcp/nuttcp_7.2.1.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | # Copyright (C) 2013 Khem Raj <raj.khem@gmail.com> | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | SUMMARY = "network performance measurement tool" | ||
5 | DESCRIPTION = "nuttcp is a network performance measurement tool intended for use by network \ | ||
6 | and system managers. Its most basic usage is to determine the raw TCP (or UDP) \ | ||
7 | network layer throughput by transferring memory buffers from a source system \ | ||
8 | across an interconnecting network to a destination system, either transferring \ | ||
9 | data for a specified time interval, or alternatively transferring a specified \ | ||
10 | number of bytes." | ||
11 | HOMEPAGE = "http://www.nuttcp.net/nuttcp/Welcome%20Page.html" | ||
12 | LICENSE = "GPL-2.0" | ||
13 | SECTION = "net" | ||
14 | LIC_FILES_CHKSUM = "file://nuttcp-${PV}.c;beginline=4;endline=30;md5=ae7045c3c3616092e07d87f04ba0d960" | ||
15 | |||
16 | SRC_URI = "http://lcp.nrl.navy.mil/nuttcp/beta/nuttcp-${PV}.c" | ||
17 | SRC_URI[md5sum] = "1ebf4a08bad2a295a8155f02995e8754" | ||
18 | SRC_URI[sha256sum] = "c6e33810ccce67260f8d5d627f60e429d44f532365c58ed5673d035e2a59c4db" | ||
19 | |||
20 | S = "${WORKDIR}" | ||
21 | |||
22 | do_compile () { | ||
23 | ${CC} ${CFLAGS} -o nuttcp nuttcp-${PV}.c | ||
24 | } | ||
25 | |||
26 | do_install () { | ||
27 | install -d ${D}${bindir} | ||
28 | install -m 0755 nuttcp ${D}${bindir} | ||
29 | } | ||
diff --git a/meta-networking/recipes-support/openvpn/openvpn/openvpn b/meta-networking/recipes-support/openvpn/openvpn/openvpn new file mode 100755 index 0000000000..a3cd6a2f49 --- /dev/null +++ b/meta-networking/recipes-support/openvpn/openvpn/openvpn | |||
@@ -0,0 +1,104 @@ | |||
1 | #!/bin/sh -e | ||
2 | # | ||
3 | # Original version by Robert Leslie | ||
4 | # <rob@mars.org>, edited by iwj and cs | ||
5 | # Modified for openvpn by Alberto Gonzalez Iniesta <agi@agi.as> | ||
6 | # Modified for restarting / starting / stopping single tunnels by Richard Mueller <mueller@teamix.net> | ||
7 | |||
8 | test $DEBIAN_SCRIPT_DEBUG && set -v -x | ||
9 | |||
10 | DAEMON=/usr/sbin/openvpn | ||
11 | CONFIG_DIR=/etc/openvpn | ||
12 | test -x $DAEMON || exit 0 | ||
13 | test -d $CONFIG_DIR || exit 0 | ||
14 | |||
15 | start_vpn () { | ||
16 | modprobe tun >/dev/null 2>&1 || true | ||
17 | $DAEMON --daemon --writepid /var/run/openvpn.$NAME.pid \ | ||
18 | --config $CONFIG_DIR/$NAME.conf --cd $CONFIG_DIR || echo -n " FAILED->" | ||
19 | echo -n " $NAME" | ||
20 | } | ||
21 | stop_vpn () { | ||
22 | kill `cat $PIDFILE` || true | ||
23 | rm $PIDFILE | ||
24 | } | ||
25 | |||
26 | case "$1" in | ||
27 | start) | ||
28 | echo -n "Starting openvpn:" | ||
29 | |||
30 | if test -z $2 ; then | ||
31 | for CONFIG in `cd $CONFIG_DIR; ls *.conf 2> /dev/null`; do | ||
32 | NAME=${CONFIG%%.conf} | ||
33 | start_vpn | ||
34 | done | ||
35 | else | ||
36 | if test -e $CONFIG_DIR/$2.conf ; then | ||
37 | NAME=$2 | ||
38 | start_vpn | ||
39 | else | ||
40 | echo -n " No such VPN: $2" | ||
41 | fi | ||
42 | fi | ||
43 | echo "." | ||
44 | |||
45 | ;; | ||
46 | stop) | ||
47 | echo -n "Stopping openvpn:" | ||
48 | |||
49 | if test -z $2 ; then | ||
50 | for PIDFILE in `ls /var/run/openvpn.*.pid 2> /dev/null`; do | ||
51 | NAME=`echo $PIDFILE | cut -c18-` | ||
52 | NAME=${NAME%%.pid} | ||
53 | stop_vpn | ||
54 | echo -n " $NAME" | ||
55 | done | ||
56 | else | ||
57 | if test -e /var/run/openvpn.$2.pid ; then | ||
58 | PIDFILE=`ls /var/run/openvpn.$2.pid 2> /dev/null` | ||
59 | NAME=`echo $PIDFILE | cut -c18-` | ||
60 | NAME=${NAME%%.pid} | ||
61 | stop_vpn | ||
62 | echo -n " $NAME" | ||
63 | else | ||
64 | echo -n " No such VPN: $2" | ||
65 | fi | ||
66 | fi | ||
67 | echo "." | ||
68 | ;; | ||
69 | # We only 'reload' for running VPNs. New ones will only start with 'start' or 'restart'. | ||
70 | reload|force-reload) | ||
71 | echo -n "Reloading openvpn:" | ||
72 | for PIDFILE in `ls /var/run/openvpn.*.pid 2> /dev/null`; do | ||
73 | NAME=`echo $PIDFILE | cut -c18-` | ||
74 | NAME=${NAME%%.pid} | ||
75 | # If openvpn if running under a different user than root we'll need to restart | ||
76 | if egrep '^( |\t)*user' $CONFIG_DIR/$NAME.conf > /dev/null 2>&1 ; then | ||
77 | stop_vpn | ||
78 | sleep 1 | ||
79 | start_vpn | ||
80 | echo -n "(restarted)" | ||
81 | else | ||
82 | kill -HUP `cat $PIDFILE` || true | ||
83 | # start-stop-daemon --stop --signal HUP --quiet --oknodo \ | ||
84 | # --exec $DAEMON --pidfile $PIDFILE | ||
85 | echo -n " $NAME" | ||
86 | fi | ||
87 | done | ||
88 | echo "." | ||
89 | ;; | ||
90 | |||
91 | restart) | ||
92 | $0 stop $2 | ||
93 | sleep 1 | ||
94 | $0 start $2 | ||
95 | ;; | ||
96 | *) | ||
97 | echo "Usage: $0 {start|stop|reload|restart|force-reload}" >&2 | ||
98 | exit 1 | ||
99 | ;; | ||
100 | esac | ||
101 | |||
102 | exit 0 | ||
103 | |||
104 | # vim:set ai et sts=2 sw=2 tw=0: | ||
diff --git a/meta-networking/recipes-support/openvpn/openvpn_2.1.3.bb b/meta-networking/recipes-support/openvpn/openvpn_2.1.3.bb new file mode 100644 index 0000000000..9ef0fbf0b5 --- /dev/null +++ b/meta-networking/recipes-support/openvpn/openvpn_2.1.3.bb | |||
@@ -0,0 +1,27 @@ | |||
1 | SUMMARY = "A full-featured SSL VPN solution via tun device" | ||
2 | HOMEPAGE = "http://openvpn.sourceforge.net" | ||
3 | SECTION = "console/network" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=5aac200199fde47501876cba7263cb0c" | ||
6 | DEPENDS = "lzo openssl" | ||
7 | |||
8 | inherit autotools | ||
9 | |||
10 | SRC_URI = "http://openvpn.net/release/openvpn-${PV}.tar.gz \ | ||
11 | file://openvpn" | ||
12 | |||
13 | SRC_URI[md5sum] = "7486d3e270ba4b033e311d3e022a0ad7" | ||
14 | SRC_URI[sha256sum] = "5185181df2e6043bd667377bc92e36ea5a5bd7600af209654f109b6403ca5b36" | ||
15 | |||
16 | CFLAGS += "-fno-inline" | ||
17 | |||
18 | # I want openvpn to be able to read password from file (hrw) | ||
19 | EXTRA_OECONF += "--enable-password-save" | ||
20 | |||
21 | do_install_append() { | ||
22 | install -d ${D}/${sysconfdir}/init.d | ||
23 | install -d ${D}/${sysconfdir}/openvpn | ||
24 | install -m 755 ${WORKDIR}/openvpn ${D}/${sysconfdir}/init.d | ||
25 | } | ||
26 | |||
27 | RRECOMMENDS_${PN} = "kernel-module-tun" | ||
diff --git a/meta-networking/recipes-support/strongswan/files/fix-funtion-parameter.patch b/meta-networking/recipes-support/strongswan/files/fix-funtion-parameter.patch new file mode 100644 index 0000000000..da96983e6d --- /dev/null +++ b/meta-networking/recipes-support/strongswan/files/fix-funtion-parameter.patch | |||
@@ -0,0 +1,98 @@ | |||
1 | fix the function parameter | ||
2 | |||
3 | Upstream-Status: pending | ||
4 | |||
5 | Original openssl_diffie_hellman_create has three parameters, but | ||
6 | it is reassigned a function pointer which has one parameter, and | ||
7 | is called with one parameter, which will lead to segment fault | ||
8 | on PPC, Now we simply correct the number of parameters. | ||
9 | |||
10 | #0 0x484d4aa0 in __GI_raise (sig=6) | ||
11 | at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 | ||
12 | #1 0x484d9930 in __GI_abort () at abort.c:91 | ||
13 | #2 0x10002064 in segv_handler (signal=11) at charon.c:224 | ||
14 | #3 <signal handler called> | ||
15 | #4 0x48d89630 in openssl_diffie_hellman_create (group=MODP_1024_BIT, g=..., | ||
16 | p=<error reading variable: Cannot access memory at address 0x0>) | ||
17 | at openssl_diffie_hellman.c:143 | ||
18 | #5 0x482c54f8 in create_dh (this=0x11ac6e68, group=MODP_1024_BIT) | ||
19 | at crypto/crypto_factory.c:358 | ||
20 | #6 0x48375884 in create_dh (this=<optimized out>, group=<optimized out>) | ||
21 | at sa/keymat.c:132 | ||
22 | #7 0x483843b8 in process_payloads (this=0x51400a78, message=<optimized | ||
23 | out>) | ||
24 | at sa/tasks/ike_init.c:200 | ||
25 | #8 0x483844d0 in process_r (this=0x51400a78, message=0x51500778) | ||
26 | at sa/tasks/ike_init.c:319 | ||
27 | #9 0x48374c9c in process_request (message=0x51500778, this=0x51400d20) | ||
28 | at sa/task_manager.c:870 | ||
29 | #10 process_message (this=0x51400d20, msg=0x51500778) at | ||
30 | sa/task_manager.c:925 | ||
31 | #11 0x4836c378 in process_message (this=0x514005f0, message=0x51500778) | ||
32 | at sa/ike_sa.c:1317 | ||
33 | #12 0x48362270 in execute (this=0x515008d0) | ||
34 | at processing/jobs/process_message_job.c:74 | ||
35 | |||
36 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | ||
37 | --- | ||
38 | src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c | 8 +++++++- | ||
39 | src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h | 4 +++- | ||
40 | src/libstrongswan/plugins/openssl/openssl_plugin.c | 1 + | ||
41 | 3 files changed, 11 insertions(+), 2 deletions(-) | ||
42 | |||
43 | diff --git a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c | ||
44 | index ff33824..bd21446 100644 | ||
45 | --- a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c | ||
46 | +++ b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c | ||
47 | @@ -142,7 +142,7 @@ METHOD(diffie_hellman_t, destroy, void, | ||
48 | /* | ||
49 | * Described in header. | ||
50 | */ | ||
51 | -openssl_diffie_hellman_t *openssl_diffie_hellman_create( | ||
52 | +openssl_diffie_hellman_t *openssl_diffie_hellman_create_custom( | ||
53 | diffie_hellman_group_t group, chunk_t g, chunk_t p) | ||
54 | { | ||
55 | private_openssl_diffie_hellman_t *this; | ||
56 | @@ -197,5 +197,11 @@ openssl_diffie_hellman_t *openssl_diffie_hellman_create( | ||
57 | |||
58 | return &this->public; | ||
59 | } | ||
60 | +openssl_diffie_hellman_t *openssl_diffie_hellman_create( diffie_hellman_group_t group) | ||
61 | +{ | ||
62 | + chunk_t g; | ||
63 | + chunk_t p; | ||
64 | + openssl_diffie_hellman_create_custom(group, g, p); | ||
65 | +} | ||
66 | |||
67 | #endif /* OPENSSL_NO_DH */ | ||
68 | diff --git a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h | ||
69 | index 53dc59c..eb69eaa 100644 | ||
70 | --- a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h | ||
71 | +++ b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h | ||
72 | @@ -44,8 +44,10 @@ struct openssl_diffie_hellman_t { | ||
73 | * @param p custom prime, if MODP_CUSTOM | ||
74 | * @return openssl_diffie_hellman_t object, NULL if not supported | ||
75 | */ | ||
76 | -openssl_diffie_hellman_t *openssl_diffie_hellman_create( | ||
77 | +openssl_diffie_hellman_t *openssl_diffie_hellman_create_custom( | ||
78 | diffie_hellman_group_t group, chunk_t g, chunk_t p); | ||
79 | +openssl_diffie_hellman_t *openssl_diffie_hellman_create( | ||
80 | + diffie_hellman_group_t group); | ||
81 | |||
82 | #endif /** OPENSSL_DIFFIE_HELLMAN_H_ @}*/ | ||
83 | |||
84 | diff --git a/src/libstrongswan/plugins/openssl/openssl_plugin.c b/src/libstrongswan/plugins/openssl/openssl_plugin.c | ||
85 | index ff25086..c76873d 100644 | ||
86 | --- a/src/libstrongswan/plugins/openssl/openssl_plugin.c | ||
87 | +++ b/src/libstrongswan/plugins/openssl/openssl_plugin.c | ||
88 | @@ -388,6 +388,7 @@ METHOD(plugin_t, get_features, int, | ||
89 | PLUGIN_PROVIDE(DH, MODP_1024_BIT), | ||
90 | PLUGIN_PROVIDE(DH, MODP_1024_160), | ||
91 | PLUGIN_PROVIDE(DH, MODP_768_BIT), | ||
92 | + PLUGIN_REGISTER(DH, openssl_diffie_hellman_create_custom), | ||
93 | PLUGIN_PROVIDE(DH, MODP_CUSTOM), | ||
94 | #endif | ||
95 | #ifndef OPENSSL_NO_RSA | ||
96 | -- | ||
97 | 1.8.3 | ||
98 | |||
diff --git a/meta-networking/recipes-support/strongswan/strongswan_5.1.1.bb b/meta-networking/recipes-support/strongswan/strongswan_5.1.1.bb new file mode 100644 index 0000000000..a2a2333d63 --- /dev/null +++ b/meta-networking/recipes-support/strongswan/strongswan_5.1.1.bb | |||
@@ -0,0 +1,45 @@ | |||
1 | DESCRIPTION = "strongSwan is an OpenSource IPsec implementation for the \ | ||
2 | Linux operating system." | ||
3 | SUMMARY = "strongSwan is an OpenSource IPsec implementation" | ||
4 | HOMEPAGE = "http://www.strongswan.org" | ||
5 | SECTION = "console/network" | ||
6 | LICENSE = "GPLv2" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
8 | DEPENDS = "gmp openssl flex-native flex bison-native" | ||
9 | |||
10 | SRC_URI = "http://download.strongswan.org/strongswan-${PV}.tar.bz2 \ | ||
11 | file://fix-funtion-parameter.patch \ | ||
12 | " | ||
13 | |||
14 | SRC_URI[md5sum] = "e3af3d493d22286be3cd794533a8966a" | ||
15 | SRC_URI[sha256sum] = "fbf2a668221fc4a36a34bdeac2dfeda25b96f572d551df022585177953622406" | ||
16 | |||
17 | EXTRA_OECONF = "--enable-gmp \ | ||
18 | --enable-openssl \ | ||
19 | --without-lib-prefix \ | ||
20 | " | ||
21 | |||
22 | EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}" | ||
23 | |||
24 | PACKAGECONFIG ??= "sqlite3 curl \ | ||
25 | ${@base_contains('DISTRO_FEATURES', 'ldap', 'ldap', '', d)} \ | ||
26 | " | ||
27 | PACKAGECONFIG[sqlite3] = "--enable-sqlite,--disable-sqlite,sqlite3," | ||
28 | PACKAGECONFIG[ldap] = "--enable-ldap,--disable-ldap,openldap," | ||
29 | PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl," | ||
30 | PACKAGECONFIG[soup] = "--enable-soup,--disable-soup,libsoup-2.4," | ||
31 | PACKAGECONFIG[mysql] = "--enable-mysql,--disable-mysql,mysql5," | ||
32 | |||
33 | inherit autotools systemd | ||
34 | |||
35 | RRECOMMENDS_${PN} = "kernel-module-ipsec" | ||
36 | |||
37 | FILES_${PN} += "${libdir}/ipsec/lib*${SOLIBS} ${libdir}/ipsec/plugins/*.so" | ||
38 | FILES_${PN}-dbg += "${libdir}/ipsec/.debug ${libdir}/ipsec/plugins/.debug ${libexecdir}/ipsec/.debug" | ||
39 | FILES_${PN}-dev += "${libdir}/ipsec/lib*${SOLIBSDEV} ${libdir}/ipsec/*.la ${libdir}/ipsec/plugins/*.la" | ||
40 | FILES_${PN}-staticdev += "${libdir}/ipsec/*.a ${libdir}/ipsec/plugins/*.a" | ||
41 | |||
42 | RPROVIDES_${PN} += "${PN}-systemd" | ||
43 | RREPLACES_${PN} += "${PN}-systemd" | ||
44 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
45 | SYSTEMD_SERVICE_${PN} = "${BPN}.service" | ||
diff --git a/meta-networking/recipes-support/stunnel/stunnel_4.56.bb b/meta-networking/recipes-support/stunnel/stunnel_4.56.bb new file mode 100644 index 0000000000..938f043a9d --- /dev/null +++ b/meta-networking/recipes-support/stunnel/stunnel_4.56.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | SUMMARY = "Program for providing universal TLS/SSL tunneling service" | ||
2 | DESCRIPTION = "SSL encryption wrapper between remote client and local (inetd-startable) or remote server." | ||
3 | SECTION = "net" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=f41ebed8571077706fee0b860c4d6666" | ||
6 | DEPENDS = "openssl" | ||
7 | |||
8 | SRC_URI = "https://www.stunnel.org/downloads/archive/4.x/${BP}.tar.gz" | ||
9 | |||
10 | SRC_URI[md5sum] = "ac4c4a30bd7a55b6687cbd62d864054c" | ||
11 | SRC_URI[sha256sum] = "9cae2cfbe26d87443398ce50d7d5db54e5ea363889d5d2ec8d2778a01c871293" | ||
12 | |||
13 | inherit autotools | ||
14 | |||
15 | EXTRA_OECONF += "--with-ssl='${STAGING_EXECPREFIXDIR}' --disable-fips" | ||
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.3.0/0001-minimal-IEEE802.15.4-allowed.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.3.0/0001-minimal-IEEE802.15.4-allowed.patch new file mode 100644 index 0000000000..9d3d60d4d7 --- /dev/null +++ b/meta-networking/recipes-support/tcpdump/tcpdump-4.3.0/0001-minimal-IEEE802.15.4-allowed.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | From: Sergey Lapin <slapin@slind.org> | ||
2 | Date: Wed, 28 Jan 2009 16:34:15 +0300 | ||
3 | Subject: [PATCH] minimal IEEE802.15.4 allowed | ||
4 | |||
5 | --- | ||
6 | tcpdump.c | 3 +++ | ||
7 | 1 files changed, 3 insertions(+), 0 deletions(-) | ||
8 | |||
9 | diff --git a/tcpdump.c b/tcpdump.c | ||
10 | index 06683af..fbc944c 100644 | ||
11 | --- a/tcpdump.c | ||
12 | +++ b/tcpdump.c | ||
13 | @@ -282,6 +282,9 @@ static struct printer printers[] = { | ||
14 | #ifdef DLT_MFR | ||
15 | { mfr_if_print, DLT_MFR }, | ||
16 | #endif | ||
17 | +#ifdef DLT_IEEE802_15_4 | ||
18 | + { raw_if_print, DLT_IEEE802_15_4 }, | ||
19 | +#endif | ||
20 | #if defined(DLT_BLUETOOTH_HCI_H4_WITH_PHDR) && defined(HAVE_PCAP_BLUETOOTH_H) | ||
21 | { bt_if_print, DLT_BLUETOOTH_HCI_H4_WITH_PHDR}, | ||
22 | #endif | ||
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.3.0/configure.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.3.0/configure.patch new file mode 100644 index 0000000000..3697420fd3 --- /dev/null +++ b/meta-networking/recipes-support/tcpdump/tcpdump-4.3.0/configure.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | --- | ||
2 | aclocal.m4 | 1 - | ||
3 | configure.in | 1 + | ||
4 | 2 files changed, 1 insertions(+), 1 deletions(-) | ||
5 | |||
6 | diff --git a/aclocal.m4 b/aclocal.m4 | ||
7 | index 40b5866..0c662b0 100644 | ||
8 | --- a/aclocal.m4 | ||
9 | +++ b/aclocal.m4 | ||
10 | @@ -40,7 +40,6 @@ dnl | ||
11 | AC_DEFUN(AC_LBL_C_INIT_BEFORE_CC, | ||
12 | [AC_PREREQ(2.50) | ||
13 | AC_BEFORE([$0], [AC_LBL_C_INIT]) | ||
14 | - AC_BEFORE([$0], [AC_PROG_CC]) | ||
15 | AC_BEFORE([$0], [AC_LBL_FIXINCLUDES]) | ||
16 | AC_BEFORE([$0], [AC_LBL_DEVEL]) | ||
17 | AC_ARG_WITH(gcc, [ --without-gcc don't use gcc]) | ||
18 | diff --git a/configure.in b/configure.in | ||
19 | index 11257c9..7f9591c 100644 | ||
20 | --- a/configure.in | ||
21 | +++ b/configure.in | ||
22 | @@ -19,6 +19,7 @@ AC_REVISION($Revision: 1.204 $) | ||
23 | AC_PREREQ(2.50) | ||
24 | AC_INIT(tcpdump.c) | ||
25 | |||
26 | +AC_PROG_CC | ||
27 | AC_CANONICAL_HOST | ||
28 | |||
29 | AC_LBL_C_INIT_BEFORE_CC(V_CCOPT, V_INCLS) | ||
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.3.0/ipv6-cross.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.3.0/ipv6-cross.patch new file mode 100644 index 0000000000..7eba2c5a6d --- /dev/null +++ b/meta-networking/recipes-support/tcpdump/tcpdump-4.3.0/ipv6-cross.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | --- | ||
2 | configure.in | 12 ++++++++---- | ||
3 | 1 files changed, 8 insertions(+), 4 deletions(-) | ||
4 | |||
5 | diff --git a/configure.in b/configure.in | ||
6 | index eb3e5e8..11257c9 100644 | ||
7 | --- a/configure.in | ||
8 | +++ b/configure.in | ||
9 | @@ -181,8 +181,9 @@ yes) AC_MSG_RESULT(yes) | ||
10 | ipv6=no | ||
11 | ;; | ||
12 | esac ], | ||
13 | - | ||
14 | - AC_TRY_RUN([ /* AF_INET6 available check */ | ||
15 | +[ | ||
16 | + if test x"$cross_compiling" != "xyes"; then | ||
17 | + AC_TRY_RUN([ /* AF_INET6 avalable check */ | ||
18 | #include <sys/types.h> | ||
19 | #include <sys/socket.h> | ||
20 | main() | ||
21 | @@ -201,7 +202,10 @@ main() | ||
22 | ipv6=no], | ||
23 | [ AC_MSG_RESULT(no) | ||
24 | ipv6=no] | ||
25 | -)) | ||
26 | + ) | ||
27 | +else | ||
28 | + AC_MSG_FAILURE([Unable to check for ipv6 when crosscompiling, please specify.]) | ||
29 | +fi]) | ||
30 | |||
31 | ipv6type=unknown | ||
32 | ipv6lib=none | ||
33 | @@ -316,7 +320,7 @@ if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | ||
34 | fi | ||
35 | |||
36 | |||
37 | -if test "$ipv6" = "yes"; then | ||
38 | +if test x"$cross_compiling" != "xyes" -a "$ipv6" = "yes"; then | ||
39 | # | ||
40 | # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()" | ||
41 | # function in libc; there are "ngetaddrinfo()" and | ||
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump-4.3.0/tcpdump_configure_no_-O2.patch b/meta-networking/recipes-support/tcpdump/tcpdump-4.3.0/tcpdump_configure_no_-O2.patch new file mode 100644 index 0000000000..7929da5b1f --- /dev/null +++ b/meta-networking/recipes-support/tcpdump/tcpdump-4.3.0/tcpdump_configure_no_-O2.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | --- | ||
2 | configure | 8 ++++---- | ||
3 | 1 files changed, 4 insertions(+), 4 deletions(-) | ||
4 | |||
5 | diff --git a/configure b/configure | ||
6 | index cb51d19..73d51af 100755 | ||
7 | --- a/configure | ||
8 | +++ b/configure | ||
9 | @@ -2691,13 +2691,13 @@ if test "$ac_test_CFLAGS" = set; then | ||
10 | CFLAGS=$ac_save_CFLAGS | ||
11 | elif test $ac_cv_prog_cc_g = yes; then | ||
12 | if test "$GCC" = yes; then | ||
13 | - CFLAGS="-g -O2" | ||
14 | + CFLAGS="-g" | ||
15 | else | ||
16 | CFLAGS="-g" | ||
17 | fi | ||
18 | else | ||
19 | if test "$GCC" = yes; then | ||
20 | - CFLAGS="-O2" | ||
21 | + CFLAGS="" | ||
22 | else | ||
23 | CFLAGS= | ||
24 | fi | ||
25 | @@ -2830,7 +2830,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
26 | if test "$GCC" = yes ; then | ||
27 | if test "$SHLICC2" = yes ; then | ||
28 | ac_cv_lbl_gcc_vers=2 | ||
29 | - V_CCOPT="-O2" | ||
30 | + V_CCOPT="" | ||
31 | else | ||
32 | { echo "$as_me:$LINENO: checking gcc version" >&5 | ||
33 | echo $ECHO_N "checking gcc version... $ECHO_C" >&6; } | ||
34 | @@ -2847,7 +2847,7 @@ fi | ||
35 | { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5 | ||
36 | echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; } | ||
37 | if test $ac_cv_lbl_gcc_vers -gt 1 ; then | ||
38 | - V_CCOPT="-O2" | ||
39 | + V_CCOPT="" | ||
40 | fi | ||
41 | fi | ||
42 | else | ||
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump_4.3.0.bb b/meta-networking/recipes-support/tcpdump/tcpdump_4.3.0.bb new file mode 100644 index 0000000000..0d88990abf --- /dev/null +++ b/meta-networking/recipes-support/tcpdump/tcpdump_4.3.0.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | SUMMARY = "A sophisticated network protocol analyzer" | ||
2 | HOMEPAGE = "http://www.tcpdump.org/" | ||
3 | LICENSE = "BSD" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867" | ||
5 | SECTION = "console/network" | ||
6 | DEPENDS = "libpcap" | ||
7 | |||
8 | SRC_URI = " \ | ||
9 | http://www.tcpdump.org/release/tcpdump-${PV}.tar.gz \ | ||
10 | file://tcpdump_configure_no_-O2.patch \ | ||
11 | file://0001-minimal-IEEE802.15.4-allowed.patch \ | ||
12 | file://ipv6-cross.patch \ | ||
13 | file://configure.patch \ | ||
14 | " | ||
15 | SRC_URI[md5sum] = "a3fe4d30ac85ff5467c889ff46b7e1e8" | ||
16 | SRC_URI[sha256sum] = "efd08b610210d39977ec3175fa82dad9fbd33587930081be2a905a712dba4286" | ||
17 | |||
18 | inherit autotools-brokensep | ||
19 | CACHED_CONFIGUREVARS = "ac_cv_linux_vers=${ac_cv_linux_vers=2}" | ||
20 | |||
21 | EXTRA_OECONF = "--without-crypto \ | ||
22 | ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6', '--disable-ipv6', d)}" | ||
23 | |||
24 | EXTRA_AUTORECONF += " -I m4" | ||
25 | |||
26 | do_configure_prepend() { | ||
27 | mkdir -p ${S}/m4 | ||
28 | if [ -f aclocal.m4 ]; then | ||
29 | mv aclocal.m4 ${S}/m4 | ||
30 | fi | ||
31 | # AC_CHECK_LIB(dlpi.. was looking to host /lib | ||
32 | sed -i 's:-L/lib::g' ./configure.in | ||
33 | } | ||
34 | do_configure_append() { | ||
35 | sed -i 's:-L/usr/lib::' ./Makefile | ||
36 | sed -i 's:-Wl,-rpath,${STAGING_LIBDIR}::' ./Makefile | ||
37 | sed -i 's:-I/usr/include::' ./Makefile | ||
38 | } | ||
39 | |||
40 | do_install_append() { | ||
41 | # tcpdump 4.0.0 installs a copy to /usr/sbin/tcpdump.4.0.0 | ||
42 | rm -f ${D}${sbindir}/tcpdump.${PV} | ||
43 | } | ||
diff --git a/meta-networking/recipes-support/tcpreplay/files/tcpreplay-3.4.4-cross-compile.patch b/meta-networking/recipes-support/tcpreplay/files/tcpreplay-3.4.4-cross-compile.patch new file mode 100755 index 0000000000..a856b1809a --- /dev/null +++ b/meta-networking/recipes-support/tcpreplay/files/tcpreplay-3.4.4-cross-compile.patch | |||
@@ -0,0 +1,92 @@ | |||
1 | Uptream-Status: Pending | ||
2 | |||
3 | Signed-off-by: Zongchun Yu <Zongchun.Yu@freescale.com> | ||
4 | |||
5 | --- a/configure.ac | ||
6 | +++ b/configure.ac | ||
7 | @@ -402,7 +402,6 @@ | ||
8 | |||
9 | dnl 0.9.6 (which is still thinks it is 0.9.5 due to a bug) introduces an important | ||
10 | dnl fix for OSX. See: http://tcpreplay.synfin.net/trac/ticket/167 | ||
11 | -libpcap_version_096=no | ||
12 | AC_RUN_IFELSE(AC_LANG_PROGRAM([[ | ||
13 | #include <string.h> | ||
14 | #include <stdlib.h> | ||
15 | @@ -419,11 +418,12 @@ | ||
16 | exit(0); | ||
17 | |||
18 | exit(1); | ||
19 | -]]), [ | ||
20 | - libpcap_version_096=yes | ||
21 | -]) | ||
22 | +]]), | ||
23 | + [libpcap_version_096=yes], | ||
24 | + [libpcap_version_096=no], | ||
25 | + [libpcap_version_096=yes] | ||
26 | +) | ||
27 | |||
28 | -libpcap_ver8=no | ||
29 | AC_RUN_IFELSE(AC_LANG_PROGRAM([[ | ||
30 | #include <string.h> | ||
31 | #include <stdlib.h> | ||
32 | @@ -444,13 +444,12 @@ | ||
33 | exit(0); | ||
34 | |||
35 | exit(1); | ||
36 | -]]), [ | ||
37 | - libpcap_ver8=yes | ||
38 | -], [ | ||
39 | - libpcap_ver8=no | ||
40 | -]) | ||
41 | +]]), | ||
42 | + [libpcap_ver8=yes], | ||
43 | + [libpcap_ver8=no], | ||
44 | + [libpcap_ver8=yes] | ||
45 | +) | ||
46 | |||
47 | -libpcap_ver7=no | ||
48 | AC_RUN_IFELSE(AC_LANG_PROGRAM([[ | ||
49 | #include <string.h> | ||
50 | #include <stdlib.h> | ||
51 | @@ -469,11 +468,11 @@ | ||
52 | exit(0); | ||
53 | |||
54 | exit(1); | ||
55 | -]]), [ | ||
56 | - libpcap_ver7=yes | ||
57 | -], [ | ||
58 | - libpcap_ver7=no | ||
59 | -]) | ||
60 | +]]), | ||
61 | + [libpcap_ver7=yes], | ||
62 | + [libpcap_ver7=no], | ||
63 | + [libpcap_ver7=yes] | ||
64 | +) | ||
65 | |||
66 | if test x$libpcap_ver8 = xyes ; then | ||
67 | AC_MSG_RESULT(>= 0.8.0) | ||
68 | @@ -761,8 +760,8 @@ | ||
69 | |||
70 | have_bpf=no | ||
71 | dnl Check for BSD's BPF | ||
72 | -AC_MSG_CHECKING(for BPF device sending support) | ||
73 | -AC_TRY_RUN([ | ||
74 | +AC_CACHE_CHECK([for BPF device sending support], ac_cv_have_bpf, | ||
75 | +[AC_TRY_RUN([ | ||
76 | #include <stdio.h> | ||
77 | #include <stdlib.h> | ||
78 | #include <sys/types.h> | ||
79 | @@ -796,8 +795,11 @@ | ||
80 | [Do we have BPF device support?]) | ||
81 | AC_MSG_RESULT(yes) | ||
82 | have_bpf=yes | ||
83 | -],[ | ||
84 | - AC_MSG_RESULT(no) | ||
85 | +], | ||
86 | +[AC_MSG_RESULT(no)], | ||
87 | +[AC_MSG_ERROR([cross-compiling, | ||
88 | + presetting ac_cv_have_bpf=(yes|no) will help])] | ||
89 | +) | ||
90 | ]) | ||
91 | |||
92 | |||
diff --git a/meta-networking/recipes-support/tcpreplay/files/tcpreplay-3.4.4-fix-unable-to-link-libpcap-issue.patch b/meta-networking/recipes-support/tcpreplay/files/tcpreplay-3.4.4-fix-unable-to-link-libpcap-issue.patch new file mode 100644 index 0000000000..5f36c68c9b --- /dev/null +++ b/meta-networking/recipes-support/tcpreplay/files/tcpreplay-3.4.4-fix-unable-to-link-libpcap-issue.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Uptream-Status: Pending | ||
2 | |||
3 | Signed-off-by: Zongchun Yu <Zongchun.Yu@freescale.com> | ||
4 | |||
5 | Index: tcpreplay-3.4.4/configure.ac | ||
6 | =================================================================== | ||
7 | --- tcpreplay-3.4.4.orig/configure.ac | ||
8 | +++ tcpreplay-3.4.4/configure.ac | ||
9 | @@ -389,7 +389,7 @@ CFLAGS="$CFLAGS -I$LPCAPINCDIR" | ||
10 | AC_SEARCH_LIBS([pcap_close], [pcap], | ||
11 | LPCAPLIB="$LIBS", | ||
12 | AC_ERROR([Unable to link libpcap in ${foundpcap}]), | ||
13 | - -lnl) | ||
14 | + -lnl-3) | ||
15 | |||
16 | AC_SUBST(LPCAPINC) | ||
17 | AC_SUBST(LPCAPLIB) | ||
diff --git a/meta-networking/recipes-support/tcpreplay/files/tcpreplay-3.4.4-no-bfp-support.patch b/meta-networking/recipes-support/tcpreplay/files/tcpreplay-3.4.4-no-bfp-support.patch new file mode 100644 index 0000000000..3c11c922bd --- /dev/null +++ b/meta-networking/recipes-support/tcpreplay/files/tcpreplay-3.4.4-no-bfp-support.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | Uptream-Status: Pending | ||
2 | |||
3 | Signed-off-by: Zongchun Yu <Zongchun.Yu@freescale.com> | ||
4 | |||
5 | --- a/configure.ac | ||
6 | +++ b/configure.ac | ||
7 | @@ -758,6 +758,8 @@ | ||
8 | AC_MSG_RESULT(no) | ||
9 | ]) | ||
10 | |||
11 | +ac_cv_have_bpf=no | ||
12 | + | ||
13 | have_bpf=no | ||
14 | dnl Check for BSD's BPF | ||
15 | AC_CACHE_CHECK([for BPF device sending support], ac_cv_have_bpf, | ||
diff --git a/meta-networking/recipes-support/tcpreplay/tcpreplay_3.4.4.bb b/meta-networking/recipes-support/tcpreplay/tcpreplay_3.4.4.bb new file mode 100644 index 0000000000..d211888826 --- /dev/null +++ b/meta-networking/recipes-support/tcpreplay/tcpreplay_3.4.4.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | SUMMARY = "Use previously captured traffic to test network devices" | ||
2 | |||
3 | HOMEPAGE = "http://tcpreplay.synfin.net/" | ||
4 | SECTION = "console/network" | ||
5 | |||
6 | LICENSE = "GPLv3" | ||
7 | LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=c33cccf72cc1603e8a72a84811ae3ac8" | ||
8 | |||
9 | SRC_URI = "http://prdownloads.sourceforge.net/tcpreplay/${PV}/tcpreplay-${PV}.tar.gz \ | ||
10 | file://tcpreplay-3.4.4-cross-compile.patch \ | ||
11 | file://tcpreplay-3.4.4-no-bfp-support.patch \ | ||
12 | file://tcpreplay-3.4.4-fix-unable-to-link-libpcap-issue.patch \ | ||
13 | " | ||
14 | SRC_URI[md5sum] = "22725feb9b2590809f9350308ec65180" | ||
15 | SRC_URI[sha256sum] = "7a809c58ddec86407fd6e5597ac883d7874a19bea81d716bb2b1c6e3b0e7b58f" | ||
16 | |||
17 | DEPENDS = "libpcap" | ||
18 | |||
19 | EXTRA_OECONF += "--with-libpcap=${STAGING_DIR_HOST}/usr" | ||
20 | |||
21 | inherit siteinfo autotools | ||
22 | |||
diff --git a/meta-networking/recipes-support/traceroute/traceroute/filter-out-the-patches-from-subdirs.patch b/meta-networking/recipes-support/traceroute/traceroute/filter-out-the-patches-from-subdirs.patch new file mode 100644 index 0000000000..2c030b55dd --- /dev/null +++ b/meta-networking/recipes-support/traceroute/traceroute/filter-out-the-patches-from-subdirs.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From e273e0ebc753645555909bcc4874c72458b17891 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
3 | Date: Fri, 17 Jan 2014 03:17:44 -0500 | ||
4 | Subject: [PATCH] Make.rules: filter-out the patches from subdirs | ||
5 | |||
6 | The $(subdirs) contains all the dirs under the ${B}, and this one: | ||
7 | |||
8 | do_unpack[cleandirs] = "${S}/patches" | ||
9 | |||
10 | will create a "patches" dir, then there will be compile errors, filter | ||
11 | out the patches will fix the problem. | ||
12 | |||
13 | Note: poky doesn't have this problem since it separates the ${S} and | ||
14 | ${B} | ||
15 | |||
16 | Upstream-Status: Inappropriate [OE specific] | ||
17 | |||
18 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
19 | --- | ||
20 | Make.rules | 4 ++-- | ||
21 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
22 | |||
23 | diff --git a/Make.rules b/Make.rules | ||
24 | index b077cd5..0bfce2d 100644 | ||
25 | --- a/Make.rules | ||
26 | +++ b/Make.rules | ||
27 | @@ -97,7 +97,7 @@ endif | ||
28 | subdirs := $(filter-out $(SKIPDIRS), $(subdirs)) | ||
29 | endif | ||
30 | |||
31 | -install install-%: subdirs := $(filter-out $(SKIPINSTALL), $(subdirs)) | ||
32 | +install install-%: subdirs := $(filter-out $(SKIPINSTALL) patches, $(subdirs)) | ||
33 | |||
34 | |||
35 | override MAKE += srcdir=$(srcdir) subdirs="$(subdirs)" shared=$(shared) | ||
36 | @@ -106,7 +106,7 @@ override MAKE += srcdir=$(srcdir) subdirs="$(subdirs)" shared=$(shared) | ||
37 | INCLUDEDIRS := $(filter $(INCLUDEDIRS), $(subdirs)) | ||
38 | LIBDIRS := $(filter $(LIBDIRS), $(subdirs)) | ||
39 | MODDIRS := $(filter $(MODDIRS), $(subdirs)) | ||
40 | -EXEDIRS := $(filter-out $(INCLUDEDIRS) $(LIBDIRS) $(MODDIRS), $(subdirs)) | ||
41 | +EXEDIRS := $(filter-out $(INCLUDEDIRS) $(LIBDIRS) $(MODDIRS) patches, $(subdirs)) | ||
42 | MODUSERS := $(filter $(MODUSERS), $(subdirs)) | ||
43 | SBINUSERS := $(filter $(SBINUSERS), $(subdirs)) | ||
44 | |||
45 | -- | ||
46 | 1.7.10.4 | ||
47 | |||
diff --git a/meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb b/meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb new file mode 100644 index 0000000000..236bd12c30 --- /dev/null +++ b/meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb | |||
@@ -0,0 +1,44 @@ | |||
1 | SUMMARY = "A new modern implementation of traceroute(8) utility for Linux systems" | ||
2 | DESCRIPTION = "The traceroute utility displays the route used by IP packets on \ | ||
3 | their way to a specified network (or Internet) host. Traceroute displays \ | ||
4 | the IP number and host name (if possible) of the machines along the \ | ||
5 | route taken by the packets. Traceroute is used as a network debugging \ | ||
6 | tool. If you're having network connectivity problems, traceroute will \ | ||
7 | show you where the trouble is coming from along the route." | ||
8 | SECTION = "console/network" | ||
9 | HOMEPAGE = "http://traceroute.sourceforge.net/" | ||
10 | LICENSE = "GPL-2.0 LGPL-2.1" | ||
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
12 | file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff" | ||
13 | |||
14 | PR = "r1" | ||
15 | |||
16 | inherit update-alternatives | ||
17 | |||
18 | SRC_URI = "${SOURCEFORGE_MIRROR}/traceroute/traceroute/traceroute-2.0.18/traceroute-2.0.18.tar.gz \ | ||
19 | file://filter-out-the-patches-from-subdirs.patch \ | ||
20 | " | ||
21 | |||
22 | SRC_URI[md5sum] = "b7254149b7f081cce07f4b9e065ba5ef" | ||
23 | SRC_URI[sha256sum] = "5994a88520927fefe3c9754aaf1e02b4d0f3f8fb1f521a68fa86215c3fcab9ef" | ||
24 | |||
25 | do_compile() { | ||
26 | export LDFLAGS="${TARGET_LDFLAGS} -L${S}/libsupp" | ||
27 | oe_runmake "env=yes" | ||
28 | } | ||
29 | |||
30 | do_install() { | ||
31 | install -d ${D}${bindir} | ||
32 | install -m755 ${BPN}/${BPN} ${D}${bindir} | ||
33 | |||
34 | install -m755 wrappers/tcptraceroute ${D}${bindir} | ||
35 | |||
36 | install -d ${D}${mandir} | ||
37 | install -p -m644 ${BPN}/${BPN}.8 ${D}${mandir} | ||
38 | ln -s ${BPN}.8 ${D}${mandir}/${BPN}6.8 | ||
39 | ln -s ${BPN}.8 ${D}${mandir}/tcptraceroute.8 | ||
40 | |||
41 | } | ||
42 | |||
43 | ALTERNATIVE_${PN} = "traceroute" | ||
44 | ALTERNATIVE_LINK_NAME[traceroute] = "${bindir}/traceroute" | ||
diff --git a/meta-networking/recipes-support/tunctl/tunctl.inc b/meta-networking/recipes-support/tunctl/tunctl.inc new file mode 100644 index 0000000000..e95cfa523d --- /dev/null +++ b/meta-networking/recipes-support/tunctl/tunctl.inc | |||
@@ -0,0 +1,15 @@ | |||
1 | SUMMARY = "Tool for controlling the Linux TUN/TAP driver" | ||
2 | SECTION = "net" | ||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://tunctl.c;beginline=1;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999" | ||
5 | |||
6 | SRC_URI = "${SOURCEFORGE_MIRROR}/tunctl/tunctl-${PV}.tar.gz" | ||
7 | |||
8 | do_compile() { | ||
9 | oe_runmake tunctl | ||
10 | } | ||
11 | |||
12 | do_install() { | ||
13 | install -d ${D}/${sbindir} | ||
14 | install -m 755 tunctl ${D}/${sbindir} | ||
15 | } | ||
diff --git a/meta-networking/recipes-support/tunctl/tunctl_1.5.bb b/meta-networking/recipes-support/tunctl/tunctl_1.5.bb new file mode 100644 index 0000000000..dd265612f3 --- /dev/null +++ b/meta-networking/recipes-support/tunctl/tunctl_1.5.bb | |||
@@ -0,0 +1,4 @@ | |||
1 | require tunctl.inc | ||
2 | |||
3 | SRC_URI[md5sum] = "fdbedc263b3e85bb0e087cd567414607" | ||
4 | SRC_URI[sha256sum] = "aa2a6c4cc6bfacb11e0d9f62334a6638a0d435475c61230116f00b6af8b14fff" | ||