Le Mercredi 7 Mars 2007 09:39, Nick ! a icrit : > On 3/7/07, Peter <[EMAIL PROTECTED]> wrote: > > Hi everyone. > > > > I have a local FTP server that contains many packages. When doing an > > install I want my pc to first check this server before going onto the > > net. I have set up the following in a shell script on the pc being > > installed: > > > > LAN_FTP=192.168.3.11 > > OS_V0=$(uname -r) > > PKG_PATH=ftp://$LAN_FTP/OpenBSD/$OS_V0/packages/:ftp://ftp.openbsd.org/pu > >b/OpenBSD/$OS_V0/packages/i386/ > > > > export PKG_PATH > > pkg_add -v postfix > > > > The thing is that pkg_add wants to go directly to the internet site > > instead of the local one: > > > > Error from ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/: > > Unknown command. > > Ambiguous: postfix could be postfix-2.3.2 postfix-2.3.2-ldap > > postfix-2.3.2-mysql postfix-2.3.2-sasl2 postfix-2.4.20060727 > > postfix-2.4.20060727-ldap postfix-2.4.20060727-mysql > > postfix-2.4.20060727-sasl2 > > Hmm, odd. Try making it just > PKG_PATH=ftp://$LAN_FTP/OpenBSD/$OS_V0/packages/ and report what > happens.
Yes, that works. Except that I get the situation that I want to avoid: missing dependencies. That's why I want that 2nd FTP site in my PKG_PATH: parsing postfix-2.3.2 Dependencies for postfix-2.3.2 resolve to: pcre-6.4p1 (todo: pcre-6.4p1) Error from ftp://192.168.3.11/OpenBSD/4.0/packages/: 550 Failed to open file. postfix-2.3.2:Can't find pcre-6.4p1 /usr/sbin/pkg_add: pcre-6.4p1:Fatal error Thanks for any help. PM