xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-connectivity/vlan/vlan_1.9.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "VLAN provides vconfig utility"
2*4882a593SmuzhiyunHOMEPAGE = "http://www.candelatech.com/~greear/vlan.html"
3*4882a593SmuzhiyunSECTION = "misc"
4*4882a593SmuzhiyunLICENSE = "GPL-2.0-only"
5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://vconfig.c;beginline=1;endline=19;md5=094ca47de36c20c598b15b32c270ce0a"
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunSRC_URI = "https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/vlan/1.9-3ubuntu10.6/${BPN}_${PV}.orig.tar.gz \
8*4882a593Smuzhiyun           file://no-HOME-includes.patch \
9*4882a593Smuzhiyun           file://0001-Add-printf-format-and-silence-format-security-warnin.patch \
10*4882a593Smuzhiyun"
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunSRC_URI[md5sum] = "5f0c6060b33956fb16e11a15467dd394"
13*4882a593SmuzhiyunSRC_URI[sha256sum] = "3b8f0a1bf0d3642764e5f646e1f3bbc8b1eeec474a77392d9aeb4868842b4cca"
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunUPSTREAM_CHECK_URI = "http://vlan.sourcearchive.com/"
16*4882a593SmuzhiyunUPSTREAM_CHECK_REGEX = "/(?P<pver>\d+(\.\d+)+)/"
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunS = "${WORKDIR}/${BPN}"
19*4882a593Smuzhiyun
20*4882a593Smuzhiyuninherit update-alternatives
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunEXTRA_OEMAKE = "-e MAKEFLAGS="
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun# comment out MakeInclude in Makefile which sets build environment
25*4882a593Smuzhiyundo_configure:append () {
26*4882a593Smuzhiyun    sed -i 's/^ include/#^include/' ${S}/Makefile
27*4882a593Smuzhiyun}
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun# ignore strip to avoid yocto errors in stripping
30*4882a593Smuzhiyundo_compile () {
31*4882a593Smuzhiyun    oe_runmake PLATFORM=ARM 'STRIP=echo' all
32*4882a593Smuzhiyun}
33*4882a593Smuzhiyun
34*4882a593Smuzhiyundo_install () {
35*4882a593Smuzhiyun    install -d ${D}/${base_sbindir}
36*4882a593Smuzhiyun    install -m 0755 ${S}/vconfig ${D}/${base_sbindir}/
37*4882a593Smuzhiyun}
38*4882a593Smuzhiyun
39*4882a593SmuzhiyunALTERNATIVE_PRIORITY = "100"
40*4882a593SmuzhiyunALTERNATIVE:${PN} = "vconfig"
41*4882a593SmuzhiyunALTERNATIVE_LINK_NAME[vconfig] = "${base_sbindir}/vconfig"
42