1eb8dc403SDave CobbleySUMMARY = "VLAN provides vconfig utility" 2eb8dc403SDave CobbleyHOMEPAGE = "http://www.candelatech.com/~greear/vlan.html" 3eb8dc403SDave CobbleySECTION = "misc" 49aee5003SAndrew GeisslerLICENSE = "GPL-2.0-only" 5eb8dc403SDave CobbleyLIC_FILES_CHKSUM = "file://vconfig.c;beginline=1;endline=19;md5=094ca47de36c20c598b15b32c270ce0a" 6eb8dc403SDave Cobbley 71a4b7ee2SBrad BishopSRC_URI = "https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/vlan/1.9-3ubuntu10.6/${BPN}_${PV}.orig.tar.gz \ 8eb8dc403SDave Cobbley file://no-HOME-includes.patch \ 9eb8dc403SDave Cobbley file://0001-Add-printf-format-and-silence-format-security-warnin.patch \ 10eb8dc403SDave Cobbley" 11eb8dc403SDave Cobbley 12eb8dc403SDave CobbleySRC_URI[md5sum] = "5f0c6060b33956fb16e11a15467dd394" 13eb8dc403SDave CobbleySRC_URI[sha256sum] = "3b8f0a1bf0d3642764e5f646e1f3bbc8b1eeec474a77392d9aeb4868842b4cca" 14eb8dc403SDave Cobbley 151a4b7ee2SBrad BishopUPSTREAM_CHECK_URI = "http://vlan.sourcearchive.com/" 161a4b7ee2SBrad BishopUPSTREAM_CHECK_REGEX = "/(?P<pver>\d+(\.\d+)+)/" 171a4b7ee2SBrad Bishop 18eb8dc403SDave CobbleyS = "${WORKDIR}/${BPN}" 19eb8dc403SDave Cobbley 20eb8dc403SDave Cobbleyinherit update-alternatives 21eb8dc403SDave Cobbley 22eb8dc403SDave CobbleyEXTRA_OEMAKE = "-e MAKEFLAGS=" 23eb8dc403SDave Cobbley 24eb8dc403SDave Cobbley# comment out MakeInclude in Makefile which sets build environment 25213cb269SPatrick Williamsdo_configure:append () { 26eb8dc403SDave Cobbley sed -i 's/^ include/#^include/' ${S}/Makefile 27eb8dc403SDave Cobbley} 28eb8dc403SDave Cobbley 29eb8dc403SDave Cobbley# ignore strip to avoid yocto errors in stripping 30eb8dc403SDave Cobbleydo_compile () { 31*e760df85SPatrick Williams oe_runmake PLATFORM=ARM 'STRIP=echo' CCFLAGS="${CFLAGS}" all 32eb8dc403SDave Cobbley} 33eb8dc403SDave Cobbley 34eb8dc403SDave Cobbleydo_install () { 35eb8dc403SDave Cobbley install -d ${D}/${base_sbindir} 36eb8dc403SDave Cobbley install -m 0755 ${S}/vconfig ${D}/${base_sbindir}/ 37eb8dc403SDave Cobbley} 38eb8dc403SDave Cobbley 39eb8dc403SDave CobbleyALTERNATIVE_PRIORITY = "100" 40213cb269SPatrick WilliamsALTERNATIVE:${PN} = "vconfig" 41eb8dc403SDave CobbleyALTERNATIVE_LINK_NAME[vconfig] = "${base_sbindir}/vconfig" 42