blob: 0be0883cc96f3948424bfe95070bec8fb026b309 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# This package builds the 'upslug2' binary upload/flash tool
# for the NSLU2. It is not useful for anything else.
PR = "r0"
DESCRIPTION = "NSLU2 binary upload tool (version 2)"
HOMEPAGE = "http://www.nslu2-linux.org/wiki/Main/UpSlug2"
MAINTAINER = "NSLU2 Linux <nslu2-linux@yahoogroups.com>"
SECTION = "console/network"
PRIORITY = "optional"
LICENSE = "GPL-2"
# On Linux libpcap does not work. Using libpcap is sub-optimal - it
# is intended for packet capture not management of a new protocol
# stream - so you may want to try the linux options on other operating
# systems.
LIBPCAP_OECONF = "--with-libpcap"
LIBPCAP_OECONF_linux = ""
LIBPCAP_OECONF_linux-uclibc = ""
LIBPCAP_RDEPENDS = "libpcap"
LIBPCAP_RDEPENDS_linux = ""
LIBPCAP_RDEPENDS_linux-uclibc = ""
RDEPENDS += "${LIBPCAP_RDEPENDS}"
SRC_TAG = "upslug2_${@'_'.join(bb.data.getVar('PV',d,1).split('.'))}"
SRC_URI = "cvs://anonymous@cvs.sourceforge.net/cvsroot/nslu;method=pserver;module=upslug2;tag=${SRC_TAG}"
# For testing use this (tags and other changes take a day to
# propogate on sourceforge). Change 'jbowler' to your login name!
#SRC_URI = "cvs://jbowler@cvs.sourceforge.net/cvsroot/nslu;method=ext;rsh=ssh;module=upslug2;tag=${SRC_TAG}"
inherit autotools
S = "${WORKDIR}/upslug2"
PACKAGES = "${PN}"
EXTRA_OECONF += "${LIBPCAP_OECONF}"
python () {
# Don't build upslug2 unless we're targeting an nslu2
mach = bb.data.getVar("MACHINE", d, 1)
if mach != 'nslu2':
raise bb.parse.SkipPackage("upslug2 only builds for the Linksys NSLU2")
}
|