1 # This package builds the 'upslug2' binary upload/flash tool
2 # for the NSLU2. It is not useful for anything else.
4 DESCRIPTION = "NSLU2 binary upload tool (version 2)"
5 HOMEPAGE = "http://www.nslu2-linux.org/wiki/Main/UpSlug2"
6 MAINTAINER = "NSLU2 Linux <nslu2-linux@yahoogroups.com>"
7 SECTION = "console/network"
11 # On Linux libpcap does not work. Using libpcap is sub-optimal - it
12 # is intended for packet capture not management of a new protocol
13 # stream - so you may want to try the linux options on other operating
15 LIBPCAP_OECONF = "--with-libpcap"
16 LIBPCAP_OECONF_linux = ""
17 LIBPCAP_OECONF_linux-uclibc = ""
18 LIBPCAP_RDEPENDS = "libpcap"
19 LIBPCAP_RDEPENDS_linux = ""
20 LIBPCAP_RDEPENDS_linux-uclibc = ""
22 RDEPENDS += "${LIBPCAP_RDEPENDS}"
24 SRC_URI = "${SOURCEFORGE_MIRROR}/nslu/upslug2-${PV}.tar.gz"
28 S = "${WORKDIR}/upslug2-${PV}"
31 EXTRA_OECONF += "${LIBPCAP_OECONF}"
34 # Don't build upslug2 unless we're targeting an nslu2
35 mach = bb.data.getVar("MACHINE", d, 1)
37 raise bb.parse.SkipPackage("upslug2 only builds for the Linksys NSLU2")