From owner-freebsd-ports@FreeBSD.ORG Sat Jan 7 14:52:06 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 180C8106566B for ; Sat, 7 Jan 2012 14:52:06 +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 976AC8FC12 for ; Sat, 7 Jan 2012 14:52:05 +0000 (UTC) Received: from outgoing.leidinger.net (p4FC43177.dip.t-dialin.net [79.196.49.119]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 93047844048; Sat, 7 Jan 2012 15:51:51 +0100 (CET) Received: from unknown (IO.Leidinger.net [192.168.1.12]) by outgoing.leidinger.net (Postfix) with ESMTP id DB5D117B9; Sat, 7 Jan 2012 15:51:48 +0100 (CET) Date: Sat, 7 Jan 2012 15:51:48 +0100 From: Alexander Leidinger To: Da Rock Message-ID: <20120107155148.0000361b@unknown> In-Reply-To: <4F07B21E.3070607@herveybayaustralia.com.au> References: <4F0446B7.4090703@herveybayaustralia.com.au> <20120104142757.1c77c347@ernst.jennejohn.org> <4F04E648.9090206@herveybayaustralia.com.au> <20120106224635.000034e3@unknown> <4F07B21E.3070607@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: 93047844048.AFDE4 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: 1326552712.48419@LjUWUL3UtTTRJ+H394YFOw 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: Sat, 07 Jan 2012 14:52:06 -0000 On Sat, 07 Jan 2012 12:46:54 +1000 Da Rock wrote: > Ok, clean slate. Lets start afresh :) > > First I need a way to test properly. Alex, you mention I need a ports > tree on the machine, and then you say to create a directory somewhere > and put Makefile in it and run make (as root). Does the directory > need to be in the ports tree then? The ports tree is needed to access bsd.*.mk and maybe some dependencies. The directory where you test the makefile does not need to be in the ports tree, but it can be in the ports tree. > The rpm files extracted: is there anyway to distinguish which files > are copied or is it simply put into LINUXBASE wholesale? I ask It is copied completely. But you can delete whatever you want in a post-extract target: ---snip--- post-extract: @${RM} ${WRKSRC}/subdir/file1 ${WRKSRC}/subdir/file2 ---snip--- > because the rpm in question contains pam libraries which are unneeded > obviously as authentication is done by the "host"? system. I believe > this could represent a bit of a security risk, but I suppose one > could setup an option if wanted. > And how does this affect PLIST? You should add all the files which get installed into the plist. > And by running make a port is normally built in the port's directory. > In the case of a linux port it is only downloaded into the > distfiles/. Is it extracted during make or make install though? I > couldn't quite determine that categorically. "make extract" will extract it. If you type make, "make extract" will be executed automatically if needed. > I've also changed the Makefile to use bsd.linux-rpm.mk instead of > bsd.port.mk. That's wrong. bsd.port.mk is needed and includes bsd.linux-rpm.mk if needed automatically. > I have setup a pkg-descr file to be put in the directory. > Hosting: I downloaded the rpm myself (including srpm), and I can host > them and maybe arrange for them to be hosted elsewhere as well. Can I > use MASTER_SITES to append/prepend? I also have to untangle the web > of how to determine which file to download - argh hem! Sorry, fetch ;) If they are not available from the default fedora 10 master site (and most likely this will be the case), just MASTER_SITES to whatever site contains the file. If it is only your site... maybe bad luck for your bandwith. If they are available somewhere else, use a sensible default. > if the linux-f10 base ports are obtained from the Fedora sites, then > what happens if f10 rpms are no longer available there? They aren't anymore, we already have them on FreeBSD servers ("CRITICAL" is a shortcut for a set of the FreeBSD servers). > And finally checksums: I create a checksum for the port, the linux > sites have checksums, and I was advised in passing to check the > checksums match. The checksums are going to differ aren't they? Linux > and BSD checksums wouldn't be the same, surely? The "make makesum" will generate the FreeBSD checksum, it is ok/recommended to create the FreeBSD checksums this way. The advise you got was to check if there is a checksum or cryptographic signature for packages available, and to check them by hand (to verify that what you got is really what it is supposed to be) before submitting a port. If the checksums are generated the same way on FreeBSD as for the upstream distfile, well, in this case the verification by hand is simple, you just compare if the checksums are the same. If it is a different checksum, you need to find a way to calculate the same checksum on FreeBSD (bu you don't include it in the port), and then you compare the checksums. That's all. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137