diff options
-rw-r--r-- | meta/recipes-extended/net-tools/net-tools_1.60-23.bb | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/meta/recipes-extended/net-tools/net-tools_1.60-23.bb b/meta/recipes-extended/net-tools/net-tools_1.60-23.bb index 764955e576..309363bb6b 100644 --- a/meta/recipes-extended/net-tools/net-tools_1.60-23.bb +++ b/meta/recipes-extended/net-tools/net-tools_1.60-23.bb | |||
@@ -5,7 +5,7 @@ BUGTRACKER = "http://bugs.debian.org/net-tools" | |||
5 | LICENSE = "GPLv2+" | 5 | LICENSE = "GPLv2+" |
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ |
7 | file://ifconfig.c;startline=11;endline=15;md5=da4c7bb79a5d0798faa99ef869721f4a" | 7 | file://ifconfig.c;startline=11;endline=15;md5=da4c7bb79a5d0798faa99ef869721f4a" |
8 | PR = "r1" | 8 | PR = "r2" |
9 | 9 | ||
10 | SRC_URI = "${DEBIAN_MIRROR}/main/n/net-tools/net-tools_1.60.orig.tar.gz;name=tarball \ | 10 | SRC_URI = "${DEBIAN_MIRROR}/main/n/net-tools/net-tools_1.60.orig.tar.gz;name=tarball \ |
11 | ${DEBIAN_MIRROR}/main/n/net-tools/${BPN}_${PV}.diff.gz;apply=no;name=patch \ | 11 | ${DEBIAN_MIRROR}/main/n/net-tools/${BPN}_${PV}.diff.gz;apply=no;name=patch \ |
@@ -67,16 +67,21 @@ do_compile() { | |||
67 | oe_runmake | 67 | oe_runmake |
68 | } | 68 | } |
69 | 69 | ||
70 | do_install() { | ||
71 | oe_runmake 'BASEDIR=${D}' install | ||
72 | } | ||
73 | |||
70 | inherit update-alternatives | 74 | inherit update-alternatives |
71 | 75 | ||
72 | base_sbindir_progs = "arp ifconfig ipmaddr iptunnel mii-tool nameif plipconfig rarp route slattach" | 76 | base_sbindir_progs = "arp ifconfig ipmaddr iptunnel mii-tool nameif plipconfig rarp route slattach" |
73 | ALTERNATIVE_LINKS += "${base_sbindir}/${@' ${base_sbindir}/'.join((d.getVar('base_sbindir_progs', True)).split())}" | ||
74 | |||
75 | base_bindir_progs = "dnsdomainname domainname hostname netstat nisdomainname ypdomainname" | 77 | base_bindir_progs = "dnsdomainname domainname hostname netstat nisdomainname ypdomainname" |
76 | ALTERNATIVE_LINKS += "${base_bindir}/${@' ${base_bindir}/'.join((d.getVar('base_bindir_progs', True)).split())}" | ||
77 | 78 | ||
79 | ALTERNATIVE_${PN} = "${base_sbindir_progs} ${base_bindir_progs}" | ||
80 | python __anonymous() { | ||
81 | for prog in d.getVar('base_sbindir_progs', True).split(): | ||
82 | d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('base_sbindir', True), prog)) | ||
83 | for prog in d.getVar('base_bindir_progs', True).split(): | ||
84 | d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('base_bindir', True), prog)) | ||
85 | } | ||
78 | ALTERNATIVE_PRIORITY = "100" | 86 | ALTERNATIVE_PRIORITY = "100" |
79 | 87 | ||
80 | do_install() { | ||
81 | oe_runmake 'BASEDIR=${D}' install | ||
82 | } | ||