blob: 7eea5d135b23fbe67bf835b4fe5296988ba0a08d [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "VLAN provides vconfig utility"
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002HOMEPAGE = "http://www.candelatech.com/~greear/vlan.html"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05003SECTION = "misc"
4LICENSE = "GPLv2"
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005LIC_FILES_CHKSUM = "file://vconfig.c;beginline=1;endline=19;md5=094ca47de36c20c598b15b32c270ce0a"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05006
7SRC_URI = "http://${BPN}.sourcearchive.com/downloads/${PV}-3ubuntu9/${BPN}_${PV}.orig.tar.gz \
Brad Bishop6e60e8b2018-02-01 10:27:11 -05008 file://no-HOME-includes.patch \
9 file://0001-Add-printf-format-and-silence-format-security-warnin.patch \
10"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050011
12SRC_URI[md5sum] = "5f0c6060b33956fb16e11a15467dd394"
13SRC_URI[sha256sum] = "3b8f0a1bf0d3642764e5f646e1f3bbc8b1eeec474a77392d9aeb4868842b4cca"
14
15S = "${WORKDIR}/${BPN}"
16
Brad Bishop316dfdd2018-06-25 12:45:53 -040017inherit update-alternatives
18
Patrick Williamsb48b7b42016-08-17 15:04:38 -050019EXTRA_OEMAKE = "-e MAKEFLAGS="
20
21# comment out MakeInclude in Makefile which sets build environment
22do_configure_append () {
23 sed -i 's/^ include/#^include/' ${S}/Makefile
24}
25
26# ignore strip to avoid yocto errors in stripping
27do_compile () {
28 oe_runmake PLATFORM=ARM 'STRIP=echo' all
29}
30
31do_install () {
32 install -d ${D}/${base_sbindir}
33 install -m 0755 ${S}/vconfig ${D}/${base_sbindir}/
34}
Brad Bishop316dfdd2018-06-25 12:45:53 -040035
36ALTERNATIVE_PRIORITY = "100"
37ALTERNATIVE_${PN} = "vconfig"
38ALTERNATIVE_LINK_NAME[vconfig] = "${base_sbindir}/vconfig"