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/pub/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.
But my server contains postfix-2.3.2.tgz:
$ lftp 192.168.3.11
Don't test with lftp, test with the built in ftp that pkg_add is using.
Thanks for any pointers.
PM
-Nick