Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jan 2004 10:06:40 +0100
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        =?ISO-8859-1?Q?Lars_K=F6ller?= <Lars@koellers.net>, Doug Barton <DougB@FreeBSD.org>
Cc:        lkoeller@freebsd.org
Subject:   Re: Please reserve UID/GID for bacula port 
Message-ID:  <1153421.1073470000@pouet.in.mat.cc>
In-Reply-To: <200401070846.i078kppZ001556@odie.koellers.net>
References:  <200401070846.i078kppZ001556@odie.koellers.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--==========69CE86AC7CDED94559C0==========
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

+-Le 07/01/2004 09:46 +0100, Lars K=F6ller =E9crivait :
|=20
| In reply to Doug Barton who wrote:
|=20
|> On Mon, 5 Jan 2004, Lars K=F6ller wrote:
|>=20
|>> 910 is chosen cause bacula uses the TCP ports 9101, 9102 and 9103
|>> (IANA registered). Perhaps they could be included into /etc/system:
|>=20
|> Since every line we add to /etc/services adds expense to the various
|> getportby*() functions, we only add new lines when it can be
|> demonstrated that it would benefit a large percentage of our userbase.
|> How many people do you think use this bacula port?
|=20
| Sorry, but I can't give you a number. But I think there is no
| "large percentage of our userbase" using it. Even some active FreeBSD=20
| user are on the bacula mailing list.
|=20
| It's nice to have the ports in /etc/services when using tolls like=20
| lsof.=20

Maybe a simple pkg-{,de}install like this :

pkg-install :
PATH=3D/bin:/usr/bin:/usr/sbin

case "$2" in
"POST-INSTALL")
        echo "# Bacula port start
bacula-dir      9101/tcp   #Bacula director daemon
bacula-fd       9102/tcp   #Bacula file daemon
bacula-sd       9103/tcp   #Bacula storage daemon
# Bacule port end" >> /etc/services

pkg-deinstall :
PATH=3D/bin:/usr/bin:/usr/sbin
TMPFILE=3D/tmp/services-$RANDOM-$$

case "$2" in
"DEINSTALL")
        sed -e '/# Bacula port start/,/# Bacule port end/{' \
            -e 'd' \
            -e '}' /etc/services > $TMPFILE
        mv -f $TMPFILE /etc/services
        ;;
esac

and add a :
post-install:
                @${SETENV} ${INSTALL_ENV} ${SH} ${PKGINSTALL} ${PKGNAME}
POST-INSTALL

to the Makefile.

--=20
Mathieu Arnold
--==========69CE86AC7CDED94559C0==========
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (MingW32)

iD8DBQE/+8wmqYYpzGz/vmcRAuaZAJ9BZndvcCl4AB+kbbSCVJCqgG1EVACgiqQP
kmbHCBNqSK1RkB0SxYvUHtY=
=5hqv
-----END PGP SIGNATURE-----

--==========69CE86AC7CDED94559C0==========--



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