Date: Tue, 14 Oct 2003 09:58:37 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: "Kevin D. Kinsey, DaleCo, S.P." <kdk@daleco.biz> Cc: freebsd-questions@freebsd.org Subject: Re: installing amanda from ports Message-ID: <20031014085837.GA69957@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <3F8B6987.8020307@daleco.biz> References: <4AA69343-FDE0-11D7-A990-000393843210@mindspring.com> <3F8B6987.8020307@daleco.biz>
next in thread | previous in thread | raw e-mail | index | archive | help
--EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 13, 2003 at 10:12:07PM -0500, Kevin D. Kinsey, DaleCo, S.P. wro= te: > Michelle wrote: >=20 > >I'm trying to install amanda from the ports collection. Before=20 > >running make, the amanda instructions state to run ./configure=20 > >--with-user=3Damanda --with-group=3Dbackup to change the default=20 > >configuration. How do you do this with FreeBSD? I've tried running=20 > >./configure from the /usr/ports/misc/amanda-server directory which=20 > >does not work. Do I need to be in a different directory or is there=20 > >another way to change the options before running make? > You may have a "work" dir underneath the > path you stated above. Check in this dir, and > probably one under it named "amanda-version.number.here" > for a script entitled "configure." You should be able to > run it from there. However, you run some risk of > breaking the installation (of Amanda, not FBSD itself...) >=20 > Another alternative *might* be to hack the Makefile > (in /usr/ports/misc/amanda-server) to reflect the > config options you want. Unless you're real > good at shell scripts, you should make a copy > first. Nope, on second thought, make a copy > first regardless of your 'shellability.' >=20 > All that said, it's likely that the version in > the ports tree will run best if you leave it > alone and let it configure itself --- the port > maintainer should have already read all the > instructions you've read (and probably some > others, too...) and has already figured out > the best way to run it on FBSD, and that info > should be in the Makefile. It certainly is in the Makefile for the misc/amander-server port (and also in the misc/amanda-client port for that matter, because it is a just slave port of amanda-server): % cd /usr/ports/misc/amanda-server % make pre-fetch =20 You may use the following build options: =20 -DWITH_PLOT to enable ploting, requires X11 libraries -DWITH_SAMBA to enable the use of smbclient -DWITH_MTX to enable the use of mtx changer scripts AMANDA_SERVER=3Dserver to specify a server name The default is happy-idiot-talk.infracaninophile.co.uk AMANDA_TAPE=3Dtape to specify the default tape device The default is /dev/nrsa0 AMANDA_CONFIG=3Dconfig to specify the default configuration The default is user AMANDA_USER=3Duser to specify the default user The default is operator AMANDA_GROUP=3Dgroup to specify the default group The default is operator AMANDA_PORTRANGE=3Dlow,high to restrict Amanda to TCP ports between low and high when connecting from the server to the client for data, messages, and indexing. The default is no restriction on TCP ports. AMANDA_UDPPORTRANGE=3Dlow,high to restrict Amanda to UDP ports between low and high when connecting from the client to the server. Use ports below 1024. The default is no restriction on UDP ports. =20 Thus the OP should be able to achieve what she wants by: # cd /usr/ports/misc/amanda-server # make install AMANDA_USER=3Damanda AMANDA_GROUP=3Dbackup (and the same for amanda-client if required) or, if she has been swayed by the blandishments of portupgrade(1) # portinstall -m 'AMANDA_USER=3Damanda AMANDA_GROUP=3Dbackup' misc/aman= da-server misc/amanda-client although it's generally better to edit the make options into the /usr/local/etc/pkgtools.conf MAKE_ARGS hash so that those arguments are always applied when you use portupgrade(1) to keep your ports up to date. Most ports will supply make time options to let you choose amongst the most popular variations. Many of those will print out a short summary of the options available as part of the pre-fetch target. However, the usage is not consistent across all 10,000 odd ports in the tree and the most effective way to work out what options are available is simply to read the ports Makefile. Also, any port that uses GNU autoconf (ie. it has USE_AUTOCONF in the Makefile) can pass extra arguments to the 'configure' script by appending to the CONFIGURE_ARGS or CONFIGURE_ENV make flags: # make CONFIGURE_ARGS+=3D'--enable-foo --disable-bar' CONFIGURE_ENV+=3D= 'CC=3Dgcc' Nb. It's generally better to use '+=3D' rather than completely overriding any value the port Makefile sets already. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/i7q9dtESqEQa7a0RAtI0AJ0R6kZ7MuxcrFSAQQzD7ZXMQ41zBwCgm/dj 4/2M1HxAV6IFXxoh+xosT/A= =1xjt -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031014085837.GA69957>