diff options
Diffstat (limited to 'recipes/netcat/netcat_0.7.1.bb')
-rw-r--r-- | recipes/netcat/netcat_0.7.1.bb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/recipes/netcat/netcat_0.7.1.bb b/recipes/netcat/netcat_0.7.1.bb index c7ceccddf2..cc5b9e2d6e 100644 --- a/recipes/netcat/netcat_0.7.1.bb +++ b/recipes/netcat/netcat_0.7.1.bb @@ -2,8 +2,20 @@ DESCRIPTION = "GNU Netcat" HOMEPAGE = "http://netcat.sourceforge.net" SECTION = "console/network" LICENSE = "GPLv2" -PR = "r1" +PR = "r2" SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2" inherit autotools + +do_install_append() { + mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN} +} + +pkg_postinst_${PN} () { + update-alternatives --install ${bindir}/nc nc nc.${PN} 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove nc nc.${PN} +} |