From owner-freebsd-ports@FreeBSD.ORG Wed Feb 13 18:09:43 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD53A16A417; Wed, 13 Feb 2008 18:09:43 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 096E813C44B; Wed, 13 Feb 2008 18:09:42 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m1DI9c48028658; Wed, 13 Feb 2008 18:09:39 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.4.4 smtp.infracaninophile.co.uk m1DI9c48028658 Authentication-Results: smtp.infracaninophile.co.uk; dkim=hardfail (SSP) header.i=unknown Message-ID: <47B33262.9010809@infracaninophile.co.uk> Date: Wed, 13 Feb 2008 18:09:38 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.9 (X11/20080210) MIME-Version: 1.0 To: Scot Hetzel References: <200802131850.45757.qpadla@gmail.com> <790a9fff0802130931u59b7c332m8bcc1a76e1a6bccd@mail.gmail.com> In-Reply-To: <790a9fff0802130931u59b7c332m8bcc1a76e1a6bccd@mail.gmail.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Wed, 13 Feb 2008 18:09:39 +0000 (GMT) X-Virus-Scanned: ClamAV 0.92/5799/Wed Feb 13 15:15:22 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on happy-idiot-talk.infracaninophile.co.uk Cc: qpadla@gmail.com, roam@freebsd.org, freebsd-ports@freebsd.org Subject: Re: net-im/openfire port related question. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2008 18:09:43 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Scot Hetzel wrote: > On 2/13/08, Nikolay Pavlov wrote: >> Hello all. I am a maintainer of the net-im/openfire port. I have a report >> from Dmitri Frolov that openfire uses the same uid >> as security/stunnel port. Could someone please suggest me as how i can >> resolve this situation? >> > If you look at security/cyrus-sasl2/pkg-install, it checks to see if > the username exists, if it doesn't exist, then it checks if the uid is > available, if it is not available, it increments the uid until it > finds an available uid. > > Both ports should be using a similar routine to check if the uid/gid > they are requesting is available. Actually, that's old hat. The current standard is that you should pick an otherwise unused UID (and/or GID) from /usr/ports/UIDs and register that as belonging to your port. Submit a maintainer update with patches to UIDs and GIDs plus modifications to the way the port is installed so that it uses the allocated numbers, and you're golden. If another port has a UID clash with yours and you have established rights by registering the uid in this way, then you can insist that the other port is changed to not clash with yours. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHszJi8Mjk52CukIwRCEuQAJ0aFoas/I1LVqZ9Nen7f+pv9rPB7wCfZmMS c717kxRoTQeRWfVdccCwqPc= =KFDI -----END PGP SIGNATURE-----