From owner-freebsd-ports@FreeBSD.ORG Wed Jan 4 21:10:36 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 0F8CC106574D for ; Wed, 4 Jan 2012 21:10:36 +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 7B6F48FC24 for ; Wed, 4 Jan 2012 21:10:22 +0000 (UTC) Received: from outgoing.leidinger.net (p4FC41BAE.dip.t-dialin.net [79.196.27.174]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id BB27684400D; Wed, 4 Jan 2012 22:10:07 +0100 (CET) Received: from unknown (IO.Leidinger.net [192.168.1.12]) by outgoing.leidinger.net (Postfix) with ESMTP id 0A61D150E; Wed, 4 Jan 2012 22:10:05 +0100 (CET) Date: Wed, 4 Jan 2012 22:10:04 +0100 From: Alexander Leidinger To: Da Rock Message-ID: <20120104221004.00002685@unknown> In-Reply-To: <4F0446B7.4090703@herveybayaustralia.com.au> References: <4F0446B7.4090703@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: BB27684400D.AF69F 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: 1326316209.90085@UhnJ0RQEfvsHWAKK3f21dA X-EBL-Spam-Status: No Cc: FreeBSD Ports 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, 04 Jan 2012 21:10:36 -0000 On Wed, 04 Jan 2012 22:31:51 +1000 Da Rock wrote: > I've been advised I should attempt to port this for general use to > FreeBSD. I've been operating it manually very successfully now in a > number of operations. This is, however, my first attempt at a port > and I would like some guidance to see if I've done this right. > > I was advised to copy the essential parts from a similar port, so > I've used archivers/linux-f10-ucl. This is my Makefile: > > # New ports collection makefile for: archivers/linux-f10-nss_ldap > # Date created: 2012-01-04 > # Whom: rskinner > # > # $FreeBSD$ > # > > PORTNAME= nss_ldap > PORTVERSION= 1.03 > CATEGORIES= security linux > MASTER_SITES= CRITICAL/rpm/${LINUX_RPM_ARCH}/fedora/${LINUX_DIST_VER} > PKGNAMEPREFIX= linux-f10- > DISTNAME= ${PORTNAME}-${PORTVERSION}-${RPMVERSION} > > MAINTAINER= emulation@FreeBSD.org This should be you (if you're willing to maintain the port). > COMMENT= nss_ldap library (Linux Fedora 10) > > CONFLICTS= > > USE_LINUX_RPM= yes > LINUX_DIST_VER= 10 > RPMVERSION= 8.fc9 This does not sound like you took a Fedora 10 RPM here, but you specified in LINUX_DIST_VER that you use Fedora 10. > 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/${PORTNAME}-${PORTVERSION} > PORTDOCS= COPYING NEWS README THANKS TODO > DESCR= ${.CURDIR}/../${PORTNAME}/pkg-descr You don't need DESCR this way, it looks like this sets it to the same file (but in a different way) than the default value of DESCR. > .include > > And I have a pkg-descr file. > > Am I on the right track? I'm following the porters handbook as well. When doing the "make makesum", please use "make -DPACKAGE_BUILDING makesum" to get the checkums of the SRPMs recorded too. We are obliged to provide the GNU sources the same way like the binaries, and IIRC we have some logic which fetches the SRPMs on tha packaga bulding cluster. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137