Problem with url2pkg

walt wa1ter at myrealbox.com
Tue Aug 15 16:58:15 PDT 2006


Saverio Iacovelli wrote:
>> The error is coming from this test in url2pkg:
>>
>> if [ ! -f ../../mk/bsd.pkg.mk ]; then
>>        echo "Run this in .../pkgsrc/foo/bar !"
>>        exit 1
>> fi
>>
>> So, what happens if you do this:
>> #cd /usr/pkgsrc/net/ucarp
>> #ls ../../mk/bsd.pkg.mk
> 
> So, I have test.txt in /usr/pkgsrc directory:
> 
> #cat test.txt
> !/bin/sh
> 
> if [ ! -f ../../mk/bsd.pkg.mk ]; then
>         echo "Run this in .../pkgsrc/foo/bar !"
>         exit 1
> fi
> 
> I follow these operations:
> #./test.txt
> Run this in .../pkgsrc/foo/bar !

I think you need to try something like this:
#cd /usr/pkgsrc
#mkdir saverio
#mv test.txt saverio
#cd saverio
#./test.txt

> #cd /usr/pkgsrc/net/ucarp
> #cd ../../mk/bsd.pkg.mk

Wait!  bsd.pkg.mk is a file, not a directory.  You can
not cd to a file, because a file is not a directory.





More information about the Users mailing list