vendir distfile has no top level directory

Scot Hetzel swhetzel at gmail.com
Sat Aug 9 07:02:45 UTC 2014


On Thu, Aug 7, 2014 at 11:06 AM, Dan Langille <dan at langille.org> wrote:
>
> On Aug 7, 2014, at 1:08 AM, olli hauer <ohauer at gmx.de> wrote:
>
>> On 2014-08-07 05:18, Dan Langille wrote:
>>> I'm having a problem upgrading www/bacula-web to the latest version (see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191583).
>>>
>>> The problem: the vendor tarball has no top level directory.
>>>
>>> e.g.
>>>
>>> [root at testing ~/tmp/distfiles]# tar -xf /var/ports/distfiles/bacula-web-6.0.1.tgz
>>> [root at testing ~/tmp/distfiles]# ls
>>> DOCS                 application             core                    joblogs.php             pools.php
>>> README                       backupjob-report.php    client-report.php       index.php               jobs.php                test.php
>>> [root at testing ~/tmp/distfiles]#
>>>
>>> Compare that to bacula, where I get:
>>>
>>> [root at testing ~/tmp/distfiles]# tar -xf /var/ports/distfiles/bacula-7.0.4.tar.gz
>>> [root at testing ~/tmp/distfiles]# ls
>>> bacula-7.0.4
>>>
>>> Is there an optimal way to cater for this without pushing the issue upstream?
>>>
>>> --
>>
>> Hi Dan,
>>
>> you can specify NO_WRKSUBDIR=yes or overwrite the do-extract target.
>
> do-extract is what I will use, thank you.
>

Instead of overriding the do-extract target, you could use:

EXTRACT_AFTER_ARGS=    -C ${WRKSRC}

I had done this for the net/wizd port.

Note: if tar doesn't create the ${WRKSRC} directory, you may need to
specify a pre-extract target that will create the directory for you.

-- 
DISCLAIMER:

No electrons were maimed while sending this message. Only slightly bruised.


More information about the freebsd-ports mailing list