From owner-freebsd-ports@FreeBSD.ORG Wed Jan 4 13:28:02 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 393661065670 for ; Wed, 4 Jan 2012 13:28:02 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id BD9CC8FC12 for ; Wed, 4 Jan 2012 13:28:01 +0000 (UTC) Received: by eekc50 with SMTP id c50so19806824eek.13 for ; Wed, 04 Jan 2012 05:28:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; bh=jO+bBkUXzi+oTOcsAVwv8sCPkGk+p58u89yLDjV2sBI=; b=ZbPC81WtgQ1S0vXGuV4jjf0VCiqUGJeRDMipfWgoZIHLdyQ74FI6tIWvjcO9Xj0ZkK MUL7ypRbhv4fVEhsvxMzXyAfOSLVNJl0xHlLCUcvxpoQFPxj/ph2LCf7BDed2fneOQij /7u0b23PcPWM4/No4225EJ0QZ+j4pxc571Qno= Received: by 10.213.16.81 with SMTP id n17mr11714666eba.106.1325683680613; Wed, 04 Jan 2012 05:28:00 -0800 (PST) Received: from ernst.jennejohn.org (p578E1ECF.dip.t-dialin.net. [87.142.30.207]) by mx.google.com with ESMTPS id a60sm219558386eeb.4.2012.01.04.05.27.58 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Jan 2012 05:27:59 -0800 (PST) Date: Wed, 4 Jan 2012 14:27:57 +0100 From: Gary Jennejohn To: Da Rock Message-ID: <20120104142757.1c77c347@ernst.jennejohn.org> In-Reply-To: <4F0446B7.4090703@herveybayaustralia.com.au> References: <4F0446B7.4090703@herveybayaustralia.com.au> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Reply-To: gljennjohn@googlemail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2012 13:28:02 -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 > 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. -- Gary Jennejohn