diff options
author | Koen Kooi <koen@openembedded.org> | 2008-11-20 12:20:54 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-11-20 12:20:54 +0100 |
commit | 315716b29d1bc3193cd66648d7e58efb2145862a (patch) | |
tree | 481c0e0df182e473a35e1515fafbfb9e6fd8c8bd /packages/net-tools/net-tools_1.60.bb | |
parent | f82e6c54c2fe0c63ff7d63265b3cb02650f565ea (diff) |
net-tools: use u-a for tools
Diffstat (limited to 'packages/net-tools/net-tools_1.60.bb')
-rw-r--r-- | packages/net-tools/net-tools_1.60.bb | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/packages/net-tools/net-tools_1.60.bb b/packages/net-tools/net-tools_1.60.bb index dddcedf00a..2ef5d1967e 100644 --- a/packages/net-tools/net-tools_1.60.bb +++ b/packages/net-tools/net-tools_1.60.bb @@ -1,6 +1,6 @@ SUMMARY="Basic networking tools" LICENSE="GPL" -PR = "r1" +PR = "r2" # # NOTE: @@ -86,4 +86,27 @@ do_compile() { do_install() { oe_runmake 'BASEDIR=${D}' -n install oe_runmake 'BASEDIR=${D}' install + + for app in ${D}/${base_sbindir}/* ${D}/${base_bindir}/*; do + mv $app $app.net-tools + done +} + +pkg_postinst_${PN} () { +#!/bin/sh +for app in arp ifconfig ipmaddr iptunnel mii-tool nameif plipconfig rarp route slattach ; do + update-alternatives --install ${base_sbindir}/$app $app $app.${PN} 100 +done + +for app in dnsdomainname domainname hostname netstat nisdomainname ypdomainname ; do + update-alternatives --install ${base_bindir}/$app $app $app.${PN} 100 +done +} + +pkg_prerm_${PN} () { + #!/bin/sh + +for app in arp ifconfig ipmaddr iptunnel mii-tool nameif plipconfig rarp route slattach dnsdomainname domainname hostname netstat nisdomainname ypdomainname ; do + update-alternatives --remove $app $app.${PN} +done } |