2010/5/5 David DEMELIER <[email protected]>:
> Hi,
>
> I noticed that unzip came into basesystem in src/usr.bin/unzip/. To
> prevent port installing the ports/archivers/unzip one, I propose to
> add this in bsd.port.mk
>
> .if defined(USE_ZIP) && !exists(/usr/bin/unzip)
> EXTRACT_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip
> .endif
>
> Is that right ?
>
Sorry I gone too fast, I would add this in bsd.commands.mk too :
.if exists(/usr/bin/unzip)
UNZIP_CMD=/usr/bin/unzip
.else
UNZIP_CMD?= ${LOCALBASE}/bin/unzip
.endif
--
Demelier David
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[email protected]"