From owner-freebsd-ports@FreeBSD.ORG Wed Jan 4 23:56:08 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 1D39C106566B for ; Wed, 4 Jan 2012 23:56:08 +0000 (UTC) (envelope-from freebsd-ports@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id C4F478FC17 for ; Wed, 4 Jan 2012 23:56:07 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.179]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id 0D7D45C21 for ; Thu, 5 Jan 2012 10:08:34 +1000 (EST) Message-ID: <4F04E648.9090206@herveybayaustralia.com.au> Date: Thu, 05 Jan 2012 09:52:40 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <4F0446B7.4090703@herveybayaustralia.com.au> <20120104142757.1c77c347@ernst.jennejohn.org> In-Reply-To: <20120104142757.1c77c347@ernst.jennejohn.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 23:56:08 -0000 On 01/04/12 23:27, Gary Jennejohn wrote: > 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 >> COMMENT= nss_ldap library (Linux Fedora 10) >> >> CONFLICTS= >> >> USE_LINUX_RPM= yes >> LINUX_DIST_VER= 10 >> RPMVERSION= 8.fc9 >> 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 >> >> .include >> >> And I have a pkg-descr file. >> >> Am I on the right track? I'm following the porters handbook as well. >> > Doesn't pass portlint. > > Can't fetch the RPM file. > > Otherwise, a pretty good start. Ok, thats good so far then. Thanks for the assessment. Now, what's portlint? And I have a question or two about the rpm. Do I need to script something to just extract the files needed, or is it already in the mk files already somewhere? And how do I work out the url for fetching the rpm? This particular one is a moving target as the distro is already eol. Is it stored on the FreeBSD servers? Or what do I do here? In the porters handbook it mentions checksums and "make makesum" - does that mean I have to put it in the ports tree to try it? And is pkg-message scripted or do I just create it? Thanks again.