PortSnap problems & relocating ports



I've been using portsnap on 6.x systems for some time now with no problems. I decided to move /usr/ports and /usr/src to their own filesystem, /build, to make it easier to backup the important system stuff. I also relocated /var/db/portsnap to /build/db/portsnap.

I thought I could edit /etc/portsnap.conf to reflect the new location, and do things as before. I edited WORKDIR and PORTSDIR, and set PORTSDIR (env var) but now I get:

# portsnap fetch
portsnap: Directory does not exist or is not writable: /var/db/portsnap

Looks like it's ignoring portsnap.conf. So I explicitly name it:

# portsnap -f /etc/portsnap.conf fetch
portsnap: Directory does not exist or is not writable: /var/db/portsnap

Same thing. What's up? So instead I specify both on the command line:

# portsnap -d /build/db/portsnap -p /build/ports fetch

Ahh.... now it works. Bug? Or am I doing something wrong.

Which brings up the next question: What's the best way to relocate the source and ports? I could grab the dull hatchet and sym-link all the defaults to the new locations. But what's the correct method?

-Thanks, Wayne
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: portsnap failing
    ... Fetching 3 metadata patches.. ... Why are you deleting the portsnap files. ... run 'portsnap fetch update', you'll get plenty of action from that. ...
    (freebsd-questions)
  • Re: FreeBSD-8 and portsnap
    ... portsnap fetch, then portsnap extract, ... If you remove those files and run portsnap fetch update again, ... does 'portsnap fetch update -I' restore INDEX-8? ...
    (freebsd-current)
  • Re: portsnap and portupgrade
    ... a portsnap fetch has to be done, ... initial known-state by replacing all port directories and other ... that first portsnap fetch, since fetch will only get compressed .gz ... You could use extract instead of update all the time, ...
    (freebsd-questions)
  • Re: Portsnap gets ports that claim to be out of date
    ... update" will update your tree from an already-fetched update, ... Nope, I do portsnap fetch, it's OK for a day or two, then I update ... force a complete new snapshot download. ...
    (comp.unix.bsd.freebsd.misc)
  • portsnap proxy
    ... I try to instal an apache proxy for portsnap under FreeBSD ... on the serveur portsnap fetch update is ok ... but on the client i obtain this ... chora# portsnap fetch ...
    (freebsd-questions)