Re: [ptxdist] Extract a list of all packages

2014-01-30 Thread Michael Olbrich
Hi,

On Thu, Jan 30, 2014 at 02:58:11PM +0100, Bernhard Bender wrote:
> Von: Juergen Beisert [mailto:j...@pengutronix.de]
> Gesendet: Donnerstag, 30. Januar 2014 12:41
> 
> > $ ptxdist print PACKAGES-y
> > For the corresponding URL I think you will need a script which queries each 
> > package's URL one by one.
> 
> That’s fine, thank you.

Actually, correct is:
$ ptxdist print PACKAGES

There are also HOST_PACKAGES, CROSS_PACKAGES and LAZY_PACKAGES

> Is it possible to run a script with all the make variable visible in the
> environment? Running ptxdist print again for each var ist extremely slow..

If its just a few, then you can print them all at once:

$ ptxdist print-PACKAGES print-HOST_PACKAGES print-CROSS_PACKAGES 
print-LAZY_PACKAGES

It's not nice, because you need to count the lines.

If you're working in a specific BSP, you can also define a custom make
target in BSP/rules/post/.make, do your stuff there and call it
with "ptxdist make "

Michael

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Extract a list of all packages

2014-01-30 Thread Bernhard Bender
Hi Juergen,


Von: Juergen Beisert [mailto:j...@pengutronix.de]
Gesendet: Donnerstag, 30. Januar 2014 12:41

> $ ptxdist print PACKAGES-y
> For the corresponding URL I think you will need a script which queries each 
> package's URL one by one.

That’s fine, thank you.

Is it possible to run a script with all the make variable visible in the 
environment? Running ptxdist print again for each var ist extremely slow..


Thx
Bernhard


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender unter i...@bytecmed.com und 
löschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe 
dieser Mail ist nicht gestattet.

This message may contain privileged and confidential information intended only 
for the use of the addressee named above. If you are not the intended recipient 
of this message you are hereby notified that any use, dissemination, 
distribution of reproduction of this message is prohibited. If you have 
received this message in error please notify i...@bytecmed.com  immediately.
-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Extract a list of all packages

2014-01-30 Thread Juergen Beisert
Hi Bernhard,

On Thursday 30 January 2014 12:24:09 Bernhard Bender wrote:
> I would like to extract a list of all packages configured for my project
> from ptxdist. How cam I do this? The list should include the package name,
> version and URL, if possible.

The list of all enabled packages:

$ ptxdist print PACKAGES-y

The required archives can be extracted:

$ ptxdist export_src 

For the corresponding URL I think you will need a script which queries each 
package's URL one by one.

jbe

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] Extract a list of all packages

2014-01-30 Thread Bernhard Bender
Hello all,

I would like to extract a list of all packages configured for my project from 
ptxdist. How cam I do this?
The list should include the package name, version and URL, if possible.

Thanks for any hinst.

Bernhard Bender
Entwicklung

Bytec Medizintechnik GmbH
Hermann-Hollerith-Str. 11
52249 Eschweiler, Germany
Tel. +49 (2403) 7829-943
www.bytecmed.com

Handelsregister Aachen: HRB 11222
Ust-ID: DE 121732719
Geschäftsführer: Dipl.-Ing. Paul Willi Coenen




Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender unter i...@bytecmed.com und 
löschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe 
dieser Mail ist nicht gestattet.

This message may contain privileged and confidential information intended only 
for the use of the addressee named above. If you are not the intended recipient 
of this message you are hereby notified that any use, dissemination, 
distribution of reproduction of this message is prohibited. If you have 
received this message in error please notify i...@bytecmed.com immediately.
-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH v2 3/3] iputils: add new package iputils

2014-01-30 Thread Alexander Aring
On Thu, Jan 30, 2014 at 09:48:13AM +0100, Michael Olbrich wrote:
> On Sun, Jan 26, 2014 at 10:41:24AM +0100, Alexander Aring wrote:
> > This patch adds another package for most common network binary tools
> > like ping, ping6, etc.
> > 
> > Signed-off-by: Alexander Aring 
> > ---
> > v2:
> >  - Add missing ALLYES
> > 
> 
> Thanks, all applied. I've cleaned up this patch a bit.
> 

saw this already and remember this for next time.

Thanks!

- Alex

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] libmodbus3: upgrade to v3.0.5 and adapt download URL

2014-01-30 Thread Michael Olbrich
On Mon, Jan 27, 2014 at 01:12:50PM +0100, Alexander Dahl wrote:
> 
> Signed-off-by: Alexander Dahl 

Thanks, applied.

Michael

> ---
>  rules/libmodbus3.make |6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/rules/libmodbus3.make b/rules/libmodbus3.make
> index d47cc16..ad1ed08 100644
> --- a/rules/libmodbus3.make
> +++ b/rules/libmodbus3.make
> @@ -16,11 +16,11 @@ PACKAGES-$(PTXCONF_LIBMODBUS3) += libmodbus3
>  #
>  # Paths and names
>  #
> -LIBMODBUS3_VERSION   := 3.0.3
> -LIBMODBUS3_MD5   := b5042d833c6c132e6fb2551af133a342
> +LIBMODBUS3_VERSION   := 3.0.5
> +LIBMODBUS3_MD5   := 18860375a7aa0ca9cba7d6ece54ab666
>  LIBMODBUS3   := libmodbus-$(LIBMODBUS3_VERSION)
>  LIBMODBUS3_SUFFIX:= tar.gz
> -LIBMODBUS3_URL   := 
> http://github.com/downloads/stephane/libmodbus/$(LIBMODBUS3).$(LIBMODBUS3_SUFFIX)
> +LIBMODBUS3_URL   := 
> http://libmodbus.org/site_media/build/$(LIBMODBUS3).$(LIBMODBUS3_SUFFIX)
>  LIBMODBUS3_SOURCE:= $(SRCDIR)/$(LIBMODBUS3).$(LIBMODBUS3_SUFFIX)
>  LIBMODBUS3_DIR   := $(BUILDDIR)/$(LIBMODBUS3)
>  LIBMODBUS3_LICENSE   := LGPLv3
> -- 
> 1.7.10.4
> 
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCHv2] monit: add new package

2014-01-30 Thread Michael Olbrich
On Mon, Jan 27, 2014 at 02:44:05PM +0100, Alexander Dahl wrote:
> This adds the system monitoring daemon 'monit'. An init script for
> busybox init method is included and a generic config file to start with.
> 
> Signed-off-by: Alexander Dahl 

Thanks, applied.

Michael

> ---
>  generic/etc/init.d/monit |  167 
> ++
>  generic/etc/monitrc  |8 +++
>  rules/monit-bbinit.in|9 +++
>  rules/monit.in   |   26 
>  rules/monit.make |   76 +
>  5 files changed, 286 insertions(+)
>  create mode 100644 generic/etc/init.d/monit
>  create mode 100644 generic/etc/monitrc
>  create mode 100644 rules/monit-bbinit.in
>  create mode 100644 rules/monit.in
>  create mode 100644 rules/monit.make
> 
> diff --git a/generic/etc/init.d/monit b/generic/etc/init.d/monit
> new file mode 100644
> index 000..96ec86a
> --- /dev/null
> +++ b/generic/etc/init.d/monit
> @@ -0,0 +1,167 @@
> +#!/bin/sh
> +
> +PATH=/sbin:/usr/sbin:/bin:/usr/bin
> +DESC="daemon monitor"
> +NAME=monit
> +DAEMON=/usr/bin/$NAME
> +CONFIG="/etc/monitrc"
> +PIDFILE=/var/run/$NAME.pid
> +SCRIPTNAME=/etc/init.d/$NAME
> +MONIT_OPTS=
> +
> +# exit if binary is missing
> +[ -x "$DAEMON" ] || exit 0
> +
> +monit_check_config() {
> +# Check for existing config file
> +if [ ! -f "$CONFIG" ]
> +then
> +echo " missing config, please edit $CONFIG."
> +exit 1
> +fi
> +
> +# Check for emtpy config
> +if [ $(grep -cv '^\s*$\|^\s*#' $CONFIG) -eq 0 ]
> +then
> +echo " empty config, please edit $CONFIG."
> +exit 2
> +fi
> +
> +# Let monit check syntax
> +if ! $DAEMON -c $CONFIG -t >/dev/null 2>&1
> +then
> +echo " syntax error in $CONFIG"
> +exit 3
> +fi
> +}
> +
> +is_running() {
> +start-stop-daemon -K --quiet --test --exec $DAEMON \
> +--pidfile $PIDFILE
> +}
> +
> +do_start() {
> +is_running && return 1
> +start-stop-daemon -S --quiet --pidfile $PIDFILE --exec $DAEMON -- \
> +$MONIT_OPTS || return 2
> +}
> +
> +do_stop() {
> +is_running || return 0
> +start-stop-daemon -K --quiet --pidfile $PIDFILE --exec $DAEMON
> +RETVAL="$?"
> +
> +# wait up to 30 seconds until daemon stopped
> +for i in $(seq 30)
> +do
> +sleep 1
> +echo -n '.'
> +if ! is_running
> +then
> +break
> +fi
> +done
> +
> +# see if it's still running
> +if is_running
> +then
> +start-stop-daemon -K --quiet --signal KILL --pidfile $PIDFILE \
> +--exec $DAEMON
> +
> +for i in $(seq 5)
> +do
> +sleep 1
> +echo -n '.'
> +if ! is_running
> +then
> +break
> +fi
> +done
> +
> +if is_running
> +then
> +return 2
> +fi
> +fi
> +
> +rm -f $PIDFILE
> +return "$RETVAL"
> +}
> +
> +do_reload() {
> +# monit has an own call for this, no need to send SIGHUP
> +$DAEMON reload
> +}
> +
> +monit_check_perms() {
> +  # Check the permission on configfile.
> +  # The permission must not have more than -rwx-- (0700) permissions.
> +
> +  # Skip checking, fix perms instead.
> +  /bin/chmod go-rwx $CONFIG
> +}
> +
> +monit_checks() {
> +  # Check for emtpy configfile
> +  monit_check_config
> +  # Check permissions of configfile
> +  monit_check_perms
> +}
> +
> +case "$1" in
> +start)
> +monit_checks
> +do_start
> +case "$?" in
> +0)  ;;
> +1)  echo "$DESC already running." ;;
> +*)  echo "Starting $DESC failed." ;;
> +esac
> +;;
> +stop)
> +echo -n "Stopping $DESC ."
> +do_stop
> +case "$?" in
> +0|1)echo " Done." ;;
> +*)  echo " Failed." ;;
> +esac
> +;;
> +reload)
> +do_reload
> +;;
> +restart|force-reload)
> +echo -n "Restarting $DESC .."
> +do_stop
> +case "$?" in
> +0|1)
> +echo ""
> +do_start
> +case "$?" in
> +0)  ;;
> +1)  echo " Failed." ;; # Old process still running
> +*)  echo " Failed." ;; # Failed to start
> +esac
> +;;
> +*)
> +echo " Failed." # Failed to stop
> +;;
> +esac
> +;;
> +status)
> +if is_running
> +then
> +echo "$NAME is running with PID $(cat $PIDFILE) ..."
> +else
> +echo "$NAME is not running"
> +fi
> +;;
> +syntax)
> +$DAEMON -c $CONFIG -t
> +;;
> +*)
> +echo "Usage: $SCRIPTNAME 
> {start|stop|restart|reload|force-reload|status}" >&2
> +exit 3
> +;;
> +esac
> +
> +:
> diff --git a/generic

Re: [ptxdist] [PATCH] libpcap: version bump to 1.4.0

2014-01-30 Thread Michael Olbrich
On Mon, Jan 27, 2014 at 08:41:48AM +0100, Alexander Aring wrote:
> On Mon, Jun 03, 2013 at 01:57:40PM +0200, Michael Olbrich wrote:
> > On Fri, May 31, 2013 at 06:18:21PM +0200, Alexander Aring wrote:
> > > Bump libpcap version to 1.4.0.
> > > 
> > > Changes:
> > >   - Add --enable-bluetooth configure parameter only if LIBPCAP_BLUETOOTH
> > > is set.
> > >   - Add --disable-universal to disable build for Mac OS.
> > >   - Add --enable-shared to build shared library.
> > > 
> > > Both are default parameter but we avoid a change of default behaviour
> > > here.
> > > 
> > > Remove patch 0001-add-CFLAGS-CPPFLAGS-and-LDFLAGS-to-Makefile.in.patch:
> > >   - This patch is already mainline see:
> > > 
> > > https://github.com/the-tcpdump-group/libpcap/commit/3a089e628c2ef39efdb64c53a7566052917ae974
> > > 
> > > Update other patches to current version and put a signed-off by me in
> > > the commit message.
> > > 
> > > Change 0002-pcap-config-add-SYSROOT-support.patch patch to add SYSROOT
> > > dir only in includedir and libdir variable, so it's easier to maintain.
> > > 
> > 
> > I think this patch can be avoided by setting
> > *_MAKE_OPT and *_INSTALL_OPT, right?
> > 
> > I'll test this after the release as well.
> > 
> 
> ping here too. Should test the avoid of this patch and resend this patch
> with wireshark on top?
> 
> With an old libpcap version, wireshark displays that I am using a known broken
> protocol and I don't know what happens there when I take a capture it.

Same as with wireshark. Please test.

Michael

> - Alex
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] wireshark: rework and update to wireshark 1.8.7

2014-01-30 Thread Michael Olbrich
On Mon, Jan 27, 2014 at 08:33:13AM +0100, Alexander Aring wrote:
> Hi Michael,
> 
> On Mon, Jun 03, 2013 at 01:53:25PM +0200, Michael Olbrich wrote:
> > On Mon, May 27, 2013 at 01:54:54PM +0200, Alexander Aring wrote:
> > > This patch removes the build of common gtk-interface wireshark.
> > > Instead of the gtk-interface you can use the cli-interface (tshark) to
> > > capture network traffic into 'capture files'.
> > > On the host side, the gtk-wireshark interface can open the capture files
> > > and show the captured packets.
> > > 
> > > I let the KConfig name to WIRESHARK, because it is a common name and all
> > > people who wants 'wireshark' on embedded targets mean 'tshark'.
> > 
> > That's ok. The package should be named after the source anyways.
> > I haven't tested it yet, but it looks ok so far. I'll come bake to this
> > after the release.
> > 
> ping :-)
> 
> what's about this? Was there some problems to bake this wireshark cake?
> 
> Should I resend and rebase this patches on current master?

It just got lost. I've applied this with a followup update to the latest
version.

Michael

> 
> - Alex
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH 1/2] libbsd: add new package

2014-01-30 Thread Michael Olbrich
On Sun, Jan 26, 2014 at 07:40:35PM +0100, Alexander Aring wrote:
> Signed-off-by: Alexander Aring 

I've applied this one.

Thanks,
Michael

> ---
>  rules/libbsd.in   | 11 ++
>  rules/libbsd.make | 63 
> +++
>  2 files changed, 74 insertions(+)
>  create mode 100644 rules/libbsd.in
>  create mode 100644 rules/libbsd.make
> 
> diff --git a/rules/libbsd.in b/rules/libbsd.in
> new file mode 100644
> index 000..6563753
> --- /dev/null
> +++ b/rules/libbsd.in
> @@ -0,0 +1,11 @@
> +## SECTION=system_libraries
> +
> +config LIBBSD
> + tristate
> + prompt "libbsd"
> + help
> +   This library provides useful functions commonly found on
> +   BSD systems, and lacking on others like GNU systems, thus
> +   making it easier to port projects with strong BSD origins,
> +   without needing to embed the same code over and over again
> +   on each project.
> diff --git a/rules/libbsd.make b/rules/libbsd.make
> new file mode 100644
> index 000..01b647e
> --- /dev/null
> +++ b/rules/libbsd.make
> @@ -0,0 +1,63 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2014 by Alexander Aring 
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_LIBBSD) += libbsd
> +
> +#
> +# Paths and names
> +#
> +LIBBSD_VERSION   := 0.6.0
> +LIBBSD_MD5   := f6c75f0a9818e323a589bcbd560a0eb4
> +LIBBSD   := libbsd-$(LIBBSD_VERSION)
> +LIBBSD_SUFFIX:= tar.xz
> +LIBBSD_URL   := 
> http://libbsd.freedesktop.org/releases/$(LIBBSD).$(LIBBSD_SUFFIX)
> +LIBBSD_SOURCE:= $(SRCDIR)/$(LIBBSD).$(LIBBSD_SUFFIX)
> +LIBBSD_DIR   := $(BUILDDIR)/$(LIBBSD)
> +LIBBSD_LICENSE   := BSD
> +
> +# 
> 
> +# Prepare
> +# 
> 
> +LIBBSD_CONF_ENV = \
> +$(CROSS_ENV)
> +
> +#
> +# autoconf
> +#
> +LIBSD_CONF_TOOL := autoconf
> +LIBSD_CONF_OPT   := \
> + $(GLOBAL_LARGE_FILE_OPTION) \
> + --enable-shared \
> + --disable-static \
> + --with-gnu-ld
> +
> +# 
> 
> +# Target-Install
> +# 
> 
> +
> +$(STATEDIR)/libbsd.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, libbsd)
> + @$(call install_fixup, libbsd,PRIORITY,optional)
> + @$(call install_fixup, libbsd,SECTION,base)
> + @$(call install_fixup, libbsd,AUTHOR,"Alexander Aring 
> ")
> + @$(call install_fixup, libbsd,DESCRIPTION,missing)
> +
> + @$(call install_lib, libbsd, 0, 0, 0644, libbsd)
> +
> + @$(call install_finish, libbsd)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> -- 
> 1.8.5.3
> 
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH 2/2] netcat: add choice for gnu or bsd version of nc

2014-01-30 Thread Michael Olbrich
On Sun, Jan 26, 2014 at 07:40:36PM +0100, Alexander Aring wrote:
> This patch adds splits netcat in gnu and bsd version.
> The bsd version of netcat has ipv6 support and lot of others
> improvements.
> 
> The patches for netcat-openbsd are taken from debian project.

Using a 'choice' here is not a good idea. Selecting something in a 'choice'
does not work properly.
Is there any good reason to keep the old version? If not, then just replace
it. Otherwise leave the old packages as is and add a new netcat-bsd
package. Just make things exclusive as we do with busybox tools.

[...]
> +
> + config NETCAT_BSD
> + bool
> + prompt "bsd"
> + depends on GLOBAL_IPV6

I don't think this is necessary. As far as I know, there are no
prerequisites. The packages should build anyways but using IPv6 may not
work during runtime.

Michael

> + select LIBBSD
> + select LIBC_RESOLV
> + help
> +   The nc (or netcat) utility is used for just about anything 
> under The
> +   sun involving TCP, UDP, or UNIX-domain sockets.  It can open 
> TCP
> +   connections, send UDP packets, listen on arbitrary TCP and 
> UDP ports
> +   do port scanning, and deal with both IPv4 and IPv6.
> +
> +endchoice
> +
> +if NETCAT_GNU
> +
> +config  NETCAT_GNU_OLD_HEXDUMP
>   bool
>   prompt "Use the old style hexdump format"
>   help
> Disabled by default - if unsure, say NO
>  
> -config  NETCAT_OLD_TELNET
> +config  NETCAT_GNU_OLD_TELNET
>   bool
>   prompt "Use old telnet codes parsing policy"
>   help
> Disabled by default - if unsure, say NO
> +endif
>  
>  endif
> diff --git a/rules/netcat.make b/rules/netcat.make
> deleted file mode 100644
> index 7b46576..000
> --- a/rules/netcat.make
> +++ /dev/null
> @@ -1,72 +0,0 @@
> -# -*-makefile-*-
> -#
> -# Copyright (C) 2005 by Bjoern Buerger 
> -#   2010 Michael Olbrich 
> -#  
> -# See CREDITS for details about who has contributed to this project.
> -#
> -# For further information about the PTXdist project and license conditions
> -# see the README file.
> -#
> -
> -#
> -# We provide this package
> -#
> -PACKAGES-$(PTXCONF_NETCAT) += netcat
> -
> -#
> -# Paths and names
> -#
> -NETCAT_VERSION   := 0.7.1
> -NETCAT_MD5   := 088def25efe04dcdd1f8369d8926ab34
> -NETCAT   := netcat-$(NETCAT_VERSION)
> -NETCAT_SUFFIX:= tar.gz
> -NETCAT_URL   := $(call ptx/mirror, SF, netcat/$(NETCAT).$(NETCAT_SUFFIX))
> -NETCAT_SOURCE:= $(SRCDIR)/$(NETCAT).$(NETCAT_SUFFIX)
> -NETCAT_DIR   := $(BUILDDIR)/$(NETCAT)
> -
> -# 
> 
> -# Prepare
> -# 
> 
> -
> -NETCAT_PATH  := PATH=$(CROSS_PATH)
> -NETCAT_ENV   := $(CROSS_ENV)
> -
> -#
> -# autoconf
> -#
> -NETCAT_AUTOCONF := $(CROSS_AUTOCONF_ROOT)
> -
> -ifdef PTXCONF_NETCAT_OLD_HEXDUMP
> -NETCAT_AUTOCONF += --enable-oldhexdump
> -else
> -NETCAT_AUTOCONF += --disable-oldhexdump
> -endif
> -
> -ifdef PTXCONF_NETCAT_OLD_TELNET
> -NETCAT_AUTOCONF += --enable-oldtelnet
> -else
> -NETCAT_AUTOCONF += --disable-oldtelnet
> -endif
> -
> -# 
> 
> -# Target-Install
> -# 
> 
> -
> -$(STATEDIR)/netcat.targetinstall:
> - @$(call targetinfo)
> -
> - @$(call install_init, netcat)
> - @$(call install_fixup, netcat,PRIORITY,optional)
> - @$(call install_fixup, netcat,SECTION,base)
> - @$(call install_fixup, netcat,AUTHOR,"Bjoern Buerger 
> ")
> - @$(call install_fixup, netcat,DESCRIPTION,missing)
> -
> - @$(call install_copy, netcat, 0, 0, 0755, -, /bin/netcat)
> - @$(call install_link, netcat, netcat, /bin/nc)
> -
> - @$(call install_finish, netcat)
> -
> - @$(call touch)
> -
> -# vim: syntax=make
> -- 
> 1.8.5.3
> 
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] wireshark: fix juergen beiserts mail address

2014-01-30 Thread Michael Olbrich
On Sun, Jan 26, 2014 at 11:25:12AM +0100, Alexander Aring wrote:
> Signed-off-by: Alexander Aring 
> ---
> detected while starring on ptxdist output :-)
> 

Thanks, applied.

Michael

>  rules/wireshark.make | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/rules/wireshark.make b/rules/wireshark.make
> index fbf666f..9f117f5 100644
> --- a/rules/wireshark.make
> +++ b/rules/wireshark.make
> @@ -74,7 +74,7 @@ $(STATEDIR)/wireshark.targetinstall:
>   @$(call install_init, wireshark)
>   @$(call install_fixup, wireshark,PRIORITY,optional)
>   @$(call install_fixup, wireshark,SECTION,base)
> - @$(call install_fixup, wireshark,AUTHOR,"Juergen Beisert 
> ")
> + @$(call install_fixup, wireshark,AUTHOR,"Juergen Beisert 
> ")
>   @$(call install_fixup, wireshark,DESCRIPTION,missing)
>  #
>  # executables
> -- 
> 1.8.5.3
> 
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH v2 3/3] iputils: add new package iputils

2014-01-30 Thread Michael Olbrich
On Sun, Jan 26, 2014 at 10:41:24AM +0100, Alexander Aring wrote:
> This patch adds another package for most common network binary tools
> like ping, ping6, etc.
> 
> Signed-off-by: Alexander Aring 
> ---
> v2:
>  - Add missing ALLYES
> 

Thanks, all applied. I've cleaned up this patch a bit.

Michael

>  rules/iputils.in   | 118 
>  rules/iputils.make | 141 
> +
>  2 files changed, 259 insertions(+)
>  create mode 100644 rules/iputils.in
>  create mode 100644 rules/iputils.make
> 
> diff --git a/rules/iputils.in b/rules/iputils.in
> new file mode 100644
> index 000..a83fa5a
> --- /dev/null
> +++ b/rules/iputils.in
> @@ -0,0 +1,118 @@
> +## SECTION=networking
> +
> +menuconfig IPUTILS
> + tristate
> + prompt "iputils   "
> + select LIBC_RESOLV  if IPUTILS_PING6
> + select LIBCAP   if IPUTILS_ARPING || IPUTILS_PING || 
> IPUTILS_PING6 || IPUTILS_TRACEROUTE6
> + select GNUTLS   if IPUTILS_PING6
> + select GNUTLS_OPENSSL   if IPUTILS_PING6
> + help
> +   The iputils package is set of small useful utilities for Linux
> +   networking.
> +
> +if IPUTILS
> +
> +config IPUTILS_ARPING
> + bool
> + depends on !BUSYBOX_ARPING || ALLYES
> + prompt "arping"
> + help
> +   Ping destination on device interface by ARP packets, using source
> +   address source.
> +
> +comment "BusyBox' arping is selected!"
> +depends on BUSYBOX_ARPING
> +
> +config IPUTILS_CLOCKDIFF
> + bool
> + prompt "clockdiff"
> + help
> +   Measures clock difference between us and destination with 1 msec
> +   resolution.
> +
> +config IPUTILS_PING
> + bool
> + depends on !INETUTILS_PING || ALLYES
> + prompt "ping"
> + help
> +   The ping command uses the ICMP protocol's mandatory ECHO_REQUEST 
> datagram
> +   to elicit an ICMP ECHO_RESPONSE from a host or gateway. ECHO_REQUEST
> +   datagrams pings have an IP and ICMP header, followed by a struct
> +   timeval and then an arbitrary number of pad bytes used to fill out
> +   the packet.
> +
> +comment "BusyBox' ping is selected!"
> +depends on BUSYBOX_PING
> +
> +comment "inetutils' ping is selected!"
> +depends on INETUTILS_PING
> +
> +config IPUTILS_PING6
> + bool
> + depends on !INETUTILS_PING6 || ALLYES
> + prompt "ping6"
> + depends on GLOBAL_IPV6
> + help
> +   The ping6 command is IPv6 version of ping, and can also send Node
> +   Information Queries (RFC4620). Intermediate hops may not be allowed,
> +   because IPv6 source routing was deprecated (RFC5095).
> +
> +comment "BusyBox' ping6 is selected!"
> +depends on BUSYBOX_PING6
> +
> +comment "inetutils' ping6 is selected!"
> +depends on INETUTILS_PING6
> +
> +config IPUTILS_RARPD
> + bool
> + prompt "rarpd"
> + help
> +   Listens RARP (http://tools.ietf.org/rfc/rfc903.txt) requests from
> +   clients. Provided MAC address of client is found in /etc/ethers
> +   database and obtained host name is resolvable to an IP address
> +   appropriate for attached network, rarpd answers to client with
> +   RARPD reply carrying an IP address.
> +
> +config IPUTILS_RDISC
> + bool
> + prompt "rdisc"
> + help
> +   The rdisc command implements client side of the ICMP router discover
> +   protocol. rdisc is invoked at boot time to populate the network
> +   routing tables with default routes.
> +
> +config IPUTILS_TFTPD
> + bool
> + depends on !INETUTILS_TFTPD || ALLYES
> + prompt "tftpd"
> + help
> +
> +comment "BusyBox' tftpd is selected!"
> +depends on BUSYBOX_TFTPD
> +
> +comment "inetutils' tftpd is selected!"
> +depends on INETUTILS_TFTPD
> +
> +config IPUTILS_TRACEPATH
> + bool
> + prompt "tracepath"
> + help
> +
> +config IPUTILS_TRACEPATH6
> + bool
> + prompt "tracepath6"
> + depends on GLOBAL_IPV6
> + help
> +
> +config IPUTILS_TRACEROUTE6
> + bool
> + depends on !BUSYBOX_TRACEROUTE6 || ALLYES
> + prompt "traceroute6"
> + depends on GLOBAL_IPV6
> + help
> +
> +comment "BusyBox' traceroute6 is selected!"
> +depends on BUSYBOX_TRACEROUTE6
> +
> +endif
> diff --git a/rules/iputils.make b/rules/iputils.make
> new file mode 100644
> index 000..9685370
> --- /dev/null
> +++ b/rules/iputils.make
> @@ -0,0 +1,141 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2014 by Alexander Aring 
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_IPUTILS) += iputils
> +
> +#
> +# Paths and names
> +#
> +IPUTILS_VERSION  := s20121221
> +IPUTILS_MD5  := 6072aef64205720dd1893b375e184171
> +IPUTIL