Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 May 2005 11:58:11 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        clive@delback.co.uk
Cc:        ports@FreeBSD.org
Subject:   Re: FreeBSD Port: slimserver-6.0.2
Message-ID:  <20050502185811.GB10804@odin.ac.hmc.edu>
In-Reply-To: <000301c54f2e$d982e010$6401a8c0@clive>
References:  <000301c54f2e$d982e010$6401a8c0@clive>

next in thread | previous in thread | raw e-mail | index | archive | help

--1LKvkjL3sHcu1TtY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 02, 2005 at 04:51:48PM +0100, clive@delback.co.uk wrote:
> Dear Brooks,
>=20
> I understand that you are the maintainer of the FreeBSD port of Slimserve=
r.
> I wonder if I could impose on your time for a little advice?

I'll try.

> I should point out that I'm new to FreeBSD, but decided to try it since it
> has a reputation of being very stable and able to run on quite modest
> hardware. (The machine I have available is a 400MHz AMD K6-2, currently w=
ith
> just 128MB of RAM, although I can increase that if necessary). I have got
> some way, but am now stuck, and to be frank I'm not even confident that I=
'm
> doing the right things. So I wondered if I could ask you whether the
> sequence of operations I've tried is actually correct. Here's what I've
> done:
>=20
> 1. Downloaded and installed the minimal install of FreeBSD 5.3 production
> release onto a completely empty hard disk - no other operating systems are
> lying around to confuse things. This appears to be working fine - it beha=
ves
> very much like System V Unixes that I've worked on many years ago.
>=20
> 2. I read that Slimserver needs Perl 5.8.6, so I downloaded the package
> (perl-5.8.6_2.tbz) and installed that. It reported that it had installed
> correctly.

This is fine, though as you supect, the port would install it for you.

> 3. I next downloaded slimserver.tar.gz (for version 6.0.2). As far as I c=
an
> tell, this should be expanded out into /usr/ports/audio/slimserver. After
> installing FreeBSD, there was already a /usr/ports/audio/slimserver, but =
it
> was for version 5.3.0. So I renamed that directory and created a new
> /usr/ports/audio/slimserver, into which I placed all the files from
> slimserver.tar.gz. I made sure the permissions on the directory were the
> same as they were on the previous one that I'd renamed.

This is your problem, see below.

> 4. Running "make install" for slimserver automatically downloaded and
> installed two other components: "mDNSResponderPosix" and "expat.5". I get
> the impression that had I not already installed Perl 5.8.6, then the
> slimserver install would have also downloaded and installed that.

That sound fine.

> So far so good. Can I just ask whether I've done the right things up to t=
his
> point?
>=20
> After the slimserver installation had successfully installed these other
> components, it tried to proceed with its own installation, and at this po=
int
> my problems began.....
>=20
> It attempted to run "pkg-install" from the subdirectory "work", but this
> file was not present. I saw that there was a file called "pkg-install.in"=
 in
> the "files" subdirectory, so I copied over to the "work"directory and
> renamed it to drop the ".in" suffix. Was it correct to do this?

This isn't correct.  You need to update your whole ports collection
using cvsup as documented in the FreeBSD handbook or use the portsnap
tool (I haven't used it, but I believe it's more efficent than cvsup.)

> Re-running "make install", it got a bit further, then tried to run
> "work/slimserver.sh", which again was missing. Looking in the "files"
> directory, I saw "slimserver.sh.in", and also "softsqueeze.sh.in". Figuri=
ng
> that perhaps both of these ought to be in "work", I copied them both over
> and dropped the ".in" suffixes.
>=20
> This time "make install" complained that the file
> /usr/local/slimserver/Cache already existed. I surmised that
> /usr/local/slimserver had been created during the previous pkg-install run
> and had been left behind, presumably in a partially completed state, so I
> deleted that directory and tried again.
>=20
> Now, running "make install" starts doing something and appears to get
> further, but fails with these errors:
>=20
>   cp %%PREFIX%%/%%SLIMDIR%%/%%CONFFILES%%.sample: no such file or directo=
ry
>   chmod %%PREFIX%%/%%SLIMDIR%%/%%CONFFILES%%: no such file or directory
>=20
> I cannot find either of these commands in any of the script files inside =
the
> /usr/ports/audio/slimserver directory hierarchy. I would imagine that ite=
ms
> such as %%PREFIX%%, %%SLIMDIR%%, etc. are some sort of variable that shou=
ld
> be automatically replaced during script executing, but I have no idea what
> with.

The %%VAR%% bits are supposed to be automaticly replaced with approprate
paths by make, but becuse your /usr/ports/Mk directory was out of date,
that didn't happen.  Just update your whole ports collection and
everything should be fine.

-- Brooks

--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4


--1LKvkjL3sHcu1TtY
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFCdnhCXY6L6fI4GtQRAimdAKDC2aPHYMliEwAiBqvwsppvO91CXgCdFq8U
k6dK8kzsk2wfuF1YUVzUP2U=
=Z+j1
-----END PGP SIGNATURE-----

--1LKvkjL3sHcu1TtY--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050502185811.GB10804>