From owner-freebsd-ports@FreeBSD.ORG Wed Jan 11 04:14:40 2012 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 C76AE1065673; Wed, 11 Jan 2012 04:14:40 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 094038FC0A; Wed, 11 Jan 2012 04:14:40 +0000 (UTC) Received: from outgoing.leidinger.net (p4FC43AE0.dip.t-dialin.net [79.196.58.224]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 11406844017; Wed, 11 Jan 2012 05:14:25 +0100 (CET) Received: from unknown (IO.Leidinger.net [192.168.1.12]) by outgoing.leidinger.net (Postfix) with ESMTP id D66631B14; Wed, 11 Jan 2012 05:14:19 +0100 (CET) Date: Wed, 11 Jan 2012 05:14:19 +0100 From: Alexander Leidinger To: Paul Schmehl Message-ID: <20120111051419.00000fbb@unknown> In-Reply-To: <335FA2C29A6AD37CA8C7FE92@utd71538.utdallas.edu> References: <4F0446B7.4090703@herveybayaustralia.com.au> <20120104142757.1c77c347@ernst.jennejohn.org> <4F04E648.9090206@herveybayaustralia.com.au> <20120105121825.656677e4@ernst.jennejohn.org> <20120106221610.00005fbe@unknown> <20120108160316.00003d59@unknown> <4F0A8164.9090502@herveybayaustralia.com.au> <20120110221115.00007dc1@unknown> <335FA2C29A6AD37CA8C7FE92@utd71538.utdallas.edu> X-Mailer: Claws Mail 3.7.10cvs42 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 11406844017.A07C5 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1, required 6, autolearn=disabled, ALL_TRUSTED -1.00) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1326860066.23572@7H0Q4dH2m+FnnnB7OSe/vg X-EBL-Spam-Status: No Cc: Chris Rees , Da Rock , freebsd-ports@freebsd.org, gljennjohn@googlemail.com Subject: Re: linux-f10-nss_ldap: my first port - be gentle :) 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, 11 Jan 2012 04:14:41 -0000 On Tue, 10 Jan 2012 15:30:53 -0600 Paul Schmehl wrote: > --On January 10, 2012 10:11:15 PM +0100 Alexander Leidinger > wrote: > > I can't remember if we have the fedora archives in bsd.sites.mk (if > > not, it would be worth to add it), and I'm too lazy ATM to search > > for it. If we have them (and they are OK), it would be better to > > use the bsd.sites.mk shortcodes for them. This would change > > automatically the master sites for this port if they are > > changed/improved in bsd.sites.mk. > > Too lazy to do this? > > # grep FEDORA /usr/ports/Mk/bsd.* > /usr/ports/Mk/bsd.linux-rpm.mk:MASTER_SITES= > ${MASTER_SITE_FEDORA_LINUX} /usr/ports/Mk/bsd.sites.mk:.if !defined(IGNORE_MASTER_SITE_FEDORA_LINUX) > /usr/ports/Mk/bsd.sites.mk:MASTER_SITE_FEDORA_LINUX+= \ After a working day debugging an obscure performance issue, I was too lazy to login into a FreeBSD machine and to do something like the following in a linux-port directory: ---snip--- % for i in $(make -V MASTER_SITE_FEDORA_LINUX ); do; echo $i ; done | grep archives http://archives.fedoraproject.org/pub/archive/fedora/linux/core/%SUBDIR%/ ---snip--- So we have the fedora archives inside, but the path is different. This means either the MASTER_SITE stays at it is, or it can be changed to include MASTER_SITE_FEDORA_LINUX with a suitable setting for SUBDIR (SUBDIR=../releases/10/Everything/i386/os/Packages/). Setting SUBDIR means that all listed master sites need to have the distfile in the same location. As the pbone-one has a different path than the fedora archive one, this is either not possible, or one of them should be changed to point to the same subdir (in this case it only depends upon Da Rock's own mirror). > >> PKGNAMEPREFIX= linux-f10- > >> DISTNAME= ${PORTNAME}-${NSS_LDAP_VERSION}-${RPMVERSION} > >> > >> MAINTAINER= port_maintainer@herveybayaustralia.com.au > >> COMMENT= RFC 2307 NSS Module (Linux Fedora 10) > >> > >> LICENSE= GPLv2 > >> > >> NSS_LDAP_VERSION=264 > >> > >> USE_LINUX_RPM= yes > >> USE_LINUX_PREFIX=yes > > > > Hmmm... I would expect that USE_LINUX_RPM automatically sets > > USE_LINUX_PREFIX... to be verified. > > > > USE_LINUX_RPM implies the inclusion of bsd.linux-rpm.mk. > bsd.linux-rpm.mk includes USE_LINUX= yes and USE_LINUX_PREFIX= yes. > So putting USE_LINUX_PREFIX in the Makefile is redundant. Thanks for verifying. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137