Date: Wed, 4 Jan 2012 14:27:57 +0100 From: Gary Jennejohn <gljennjohn@googlemail.com> To: Da Rock <freebsd-ports@herveybayaustralia.com.au> Cc: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: linux-f10-nss_ldap: my first port - be gentle :) Message-ID: <20120104142757.1c77c347@ernst.jennejohn.org> In-Reply-To: <4F0446B7.4090703@herveybayaustralia.com.au> References: <4F0446B7.4090703@herveybayaustralia.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 04 Jan 2012 22:31:51 +1000 Da Rock <freebsd-ports@herveybayaustralia.com.au> 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 <bsd.port.mk> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120104142757.1c77c347>