archivers/zip in 9.x:

Alex Kozlov spam at rm-rf.kiev.ua
Mon Jan 9 21:45:08 UTC 2012


On Tue, Jan 10, 2012 at 01:06:04AM +0400, Ruslan Mahmatkhanov wrote:
> Michael Scheidell wrote on 10.01.2012 00:30:
>> I think I saw something in the list that FreeBSD 9.x has zip already
>> built in? so, ports that need 'zip' won't need zip?
>>
>> for maintainers, they should use something like:
>>
>> USE_ZIP= yes
>>
>> to:
>>
>> if ${OSVERSION} <= 900000
>> USE_ZIP= yes
>> .endif
>>
>> and/or BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip
>>
>> (at what OSVERSION was zip included in the base?)
> unzip, not zip. I believe it should be handled in bsd.port.mk like it
> done for USE_XZ. Something like:
>
> .if defined(USE_ZIP) && ${OSVERSION} < 900000
> EXTRACT_DEPENDS+=       ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip
> .endif
>
> Correct OSVERSION should be used instead of 900000. There is also should
> be some logic for UNZIP_CMD.
A few things need to be done before it will be possible to use the
native unzip in CURRENT:
1) pr153429
2) mfv libarchive's seekable zip reader
3) patch to bsd.port.mk which implements USE_ZIP = yes|native|infozip
4) few tinderbox runs


--
Adios


More information about the freebsd-ports mailing list