From owner-freebsd-ports@FreeBSD.ORG Wed Jan 7 01:06:52 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E998D16A4D0; Wed, 7 Jan 2004 01:06:52 -0800 (PST) Received: from plouf.absolight.net (plouf.absolight.net [212.43.217.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3E3143D55; Wed, 7 Jan 2004 01:06:49 -0800 (PST) (envelope-from mat@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by plouf.absolight.net (Postfix) with ESMTP id 855454AA22F; Wed, 7 Jan 2004 10:06:48 +0100 (CET) Received: from pouet.in.mat.cc (l02v-11-220.d2.club-internet.fr [213.44.170.220]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by plouf.absolight.net (Postfix) with ESMTP id 9CDFB4AA204; Wed, 7 Jan 2004 10:06:47 +0100 (CET) Date: Wed, 07 Jan 2004 10:06:40 +0100 From: Mathieu Arnold To: =?ISO-8859-1?Q?Lars_K=F6ller?= , Doug Barton Message-ID: <1153421.1073470000@pouet.in.mat.cc> In-Reply-To: <200401070846.i078kppZ001556@odie.koellers.net> References: <200401070846.i078kppZ001556@odie.koellers.net> X-Mailer: Mulberry/3.1.0 (Win32) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="==========69CE86AC7CDED94559C0==========" X-Virus-Scanned: by amavisd 0.1 cc: ports@FreeBSD.org cc: lkoeller@freebsd.org Subject: Re: Please reserve UID/GID for bacula port X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2004 09:06:53 -0000 --==========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==========--