Re: fetch extension - use local filename from content-disposition header



On Fri, Dec 30, 2005 at 09:36:50AM +0000, Matthew Seaman wrote:
> Not if you, as a naive user, take a freshly installed system and an
> unmodified environment. You'll need to make a bunch of changes
> before everything will run smoothly:
>
> * Make /usr/ports/distfiles writable by user or set $DISTDIR to
> a writable directory

Right...

> * Make /var/db/ports writable by user or set $PORT_DBDIR to a
> writable location

Eww...

> * Make each port directory writable -- so the the 'work' directories
> can be created -- or set $WRKDIRPREFIX to a writable location.

Right...

> And in fact, if you go on to do the same deal with $PKG_DBDIR and $PREFIX
> plus set $INSTALL_AS_USER then you can install most ports entirely as a
> mortal user -- the exceptions being ports that want to run mtree(8) or that
> need to install programs with specific UID or GIDs.

Well, this MIGHT work for a single user system, but it's hackish and really
dangerous...

> Not setting $INSTALL_AS_USER means you'll be prompted to supply the root
> password where needed at install time.

Not if you use sudo. The ports mk have a know to specify what to use in
place of su, and it works nicely. Now you get prompter only when the (user
configurable) timeout expires. Much, much better.

I'd even go so far as suggesting sudo in the base system, since it's the
first thing many people install from ports AND it's such a pain to upgrade
using portupgrade...

Bye,
Andrea

--
Press every key to continue.
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: subversion on FreeBSD 4.10
    ... I've upgraded all the ports including perl. ... # CFLAGS controls the compiler settings used when compiling C code. ... # or supported for compiling the world or the kernel - please revert any ... # To avoid running MAKEDEV all on /dev during install: ...
    (freebsd-questions)
  • Re: newest PHP port upgrade broke php5-mbstring-5.0.1 ?
    ... # CFLAGS controls the compiler settings used when compiling C code. ... # or supported for compiling the world or the kernel - please revert any ... # certain ports. ... # To avoid running MAKEDEV all on /dev during install: ...
    (freebsd-questions)
  • Re: mfi freebsd7
    ... i did update my ports and install the 1.01.40 version... ... A RAID1 config shoudl suit a busy webserver well. ... To unsubscribe, send any mail to ...
    (freebsd-questions)
  • Re: what do you think of these instructions for install & hardening?
    ... > adding some ports. ... % the core install. ... % between FreeBSD 5.4 and FreeBSD 6.0. ... interface addresses that match a network where I have absolutely no ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Newbie help!
    ... At some point does this automatically get run after ports are ... command ... install emacs on your own. ... more comfortable with lynx than links, so I'll show you how to get ...
    (freebsd-questions)