From owner-freebsd-ports@FreeBSD.ORG Wed Jan 11 04:29:48 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 E81E7106566B for ; Wed, 11 Jan 2012 04:29:47 +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 766ED8FC0C for ; Wed, 11 Jan 2012 04:29:47 +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 2B71A844017; Wed, 11 Jan 2012 05:29:32 +0100 (CET) Received: from unknown (IO.Leidinger.net [192.168.1.12]) by outgoing.leidinger.net (Postfix) with ESMTP id 629441B16; Wed, 11 Jan 2012 05:29:29 +0100 (CET) Date: Wed, 11 Jan 2012 05:29:29 +0100 From: Alexander Leidinger To: Da Rock Message-ID: <20120111052929.0000403a@unknown> In-Reply-To: <4F0CDB99.1010403@herveybayaustralia.com.au> 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> <4F0CDB99.1010403@herveybayaustralia.com.au> 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: 2B71A844017.ADB91 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: 1326860974.02139@+Jlm0UmS28vulNx9/L+FWw X-EBL-Spam-Status: No Cc: freebsd-ports@freebsd.org 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:29:48 -0000 On Wed, 11 Jan 2012 10:45:13 +1000 Da Rock wrote: > On 01/11/12 07:11, Alexander Leidinger wrote: > > On Mon, 09 Jan 2012 15:55:48 +1000 Da Rock > > wrote: > >> CATEGORIES= net linux > >> MASTER_SITES= > >> ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/testing/10/i386/ > >> \ > >> > >> http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/10/Everything/i386/os/Packages/ > >> \ > >> http://herveybayaustralia.com.au/ports/distfiles/ > > 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. > I'm not 100% sure about the fedora archives, but I don't think > they're exactly right. I keep getting (in most linux ports) a hunt > through the MASTER_SITES for the file, starting with the archives. > > The other pbone.net is definitely not in the sites list. I did check > that file thoroughly using grep and by manual sighting. If it is an official mirror, we should maybe add it to bsd.sites.mk. > One thing to note though is that when I tried with MASTER_SITES set > to the FEDORA_LINUX set it failed to find the files. Also the files I > need are only on pbone.net- they are more recent than the original. > Or can I set the rpm version to "float" a bit? If they are only available on pbone, there's no need to include the archives. Keep the rpm version stable. It's the right thing to do, and making it dynamic looks a little bit hard as a first port IMO. > >> LINUX_DIST_VER= 10 > >> RPMVERSION= 6.fc10 > >> USE_LDCONFIG= yes > >> > >> PLIST_FILES= usr/lib/libnss_ldap.so.2 usr/lib/libnss_ldap.so > >> usr/lib/libnss_ldap-264.so > >> DOCSDIR= > >> ${PREFIX}/usr/share/doc/${PKGNAMEPREFIX}-${PORTNAME}-${PORTVERSION} > >> PORTDOCS= COPYING NEWS README THANKS TODO > >> DESCR= ${.CURDIR}/../${PORTNAME}/pkg-descr > >> > >> post-extract: > >> .if !defined(WITH_PAM) The .if (and .else / .endif) needs to start at the first character of the line. As soon as you indent it, it will be executed as a shell command. > Only one more thing: do I need USE_LDCONFIG? Yes, for usr/lib/libnss_* it is needed. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137