Subject: Re: 2 pkgsrc questions
To: Georges Heinesch <geohei9@attglobal.net>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: tech-pkg
Date: 05/21/2001 22:17:29
On 21 May 2001, Georges Heinesch wrote:
> 1. I have NetBSD with pkgsrc installed on 2 computers ("amiga" and
> "dimension") on a LAN. One of them ("amiga") holds the distfiles. I
> don't want to download the distfiles twice. What must I enter in
> the /etc/mk.conf file of "dimension" in order to use the distfiles
> from the other computer
Depends if you want to share the distfiles via NFS or FTP. For a LAN, i
recommend NFS, and you don't need to setup anything in mk.conf for that.
Just make sure pkgsrc/distfiles points to the NFS distfiles dir.
If you want to share things via FTP (and take twice the space!), put
MASTER_SITE_BACKUP= ftp://amiga/pub/distfiles/
This assumes an anonFTP login at amiga, and the distfiles being at
~ftp/pub/distfiles. If you don't want that, you can do
MASTER_SITE_BACKUP= ftp://mylogin:mysecret@amiga:/usr/pkgsrc/distfiles
Make sure that /etc/mk.conf isn't world readable then, though, as it will
contain your password ("mysecret").
> 2. Suppose I would like to update a package, then the "old"
> distfiles remain in /etc/pkgsrc/distfiles. How can I (apart from
> doing it manually) delete these obsolete old archives when updating
> a package to a newer version?
lintpkgsrc -or
I recommend reading the lintpkgsrc before that!!!
(lintpkgsrc is part of the pkgsrc/pkgtools/pkglint package)
- Hubert
--
Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>