From 140b40ad9b62031246826413e37f0f22c69da909 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 31 Oct 2015 10:50:52 +0100 Subject: [PATCH] netcat: switch it to use alternatives for nc. --- srcpkgs/netcat/template | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/srcpkgs/netcat/template b/srcpkgs/netcat/template index 35b97a70e9..ef8f76d465 100644 --- a/srcpkgs/netcat/template +++ b/srcpkgs/netcat/template @@ -1,12 +1,20 @@ # Template file for 'netcat' pkgname=netcat version=0.7.1 -revision=4 +revision=5 build_style=gnu-configure +configure_args="--program-prefix=g" short_desc="The GNU netcat utility" -replaces="netcat>=0" maintainer="Juan RP " license="GPL-2" homepage="http://netcat.sourceforge.net/" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" checksum=30719c9a4ffbcf15676b8f528233ccc54ee6cba96cb4590975f5fd60c68a066f + +alternatives=" + nc:/usr/bin/nc:/usr/bin/gnetcat + nc:/usr/share/man/man1/nc.1:/usr/share/man/man1/gnetcat.1" + +post_install() { + rm ${DESTDIR}/usr/bin/nc +}