Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Aug 2014 02:02:44 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Dan Langille <dan@langille.org>
Cc:        olli hauer <ohauer@gmx.de>, FreeBSD Ports <ports@freebsd.org>
Subject:   Re: vendir distfile has no top level directory
Message-ID:  <CACdU%2Bf_ZxaAAN70T4X6Uy_t0x6L4LvwexTcAMeEjm2t0M5K8Vg@mail.gmail.com>
In-Reply-To: <1150A687-CDFA-44DD-925D-A01C690C4C6A@langille.org>
References:  <F301A2D5-B2C8-430C-A142-9B16CD20EA58@langille.org> <53E309E7.6050505@gmx.de> <1150A687-CDFA-44DD-925D-A01C690C4C6A@langille.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 7, 2014 at 11:06 AM, Dan Langille <dan@langille.org> wrote:
>
> On Aug 7, 2014, at 1:08 AM, olli hauer <ohauer@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@testing ~/tmp/distfiles]# tar -xf /var/ports/distfiles/bacula-web-6.0.1.tgz
>>> [root@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@testing ~/tmp/distfiles]#
>>>
>>> Compare that to bacula, where I get:
>>>
>>> [root@testing ~/tmp/distfiles]# tar -xf /var/ports/distfiles/bacula-7.0.4.tar.gz
>>> [root@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACdU%2Bf_ZxaAAN70T4X6Uy_t0x6L4LvwexTcAMeEjm2t0M5K8Vg>