From owner-freebsd-ports@FreeBSD.ORG Wed Jan 11 16:40:50 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 38E4A1065670 for ; Wed, 11 Jan 2012 16:40:50 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (mail1.sourcehosting.net [74.205.51.45]) by mx1.freebsd.org (Postfix) with ESMTP id 0551C8FC0A for ; Wed, 11 Jan 2012 16:40:49 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=imac.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.73 (FreeBSD)) (envelope-from ) id 1Rl1E4-000Cm8-Uo; Wed, 11 Jan 2012 11:40:43 -0500 Received: from imac.entropy.prv (localhost [127.0.0.1]) by imac.entropy.prv (Postfix) with ESMTP id EEDBDD6C5F0; Wed, 11 Jan 2012 11:17:44 -0500 (EST) Message-ID: <4F0DB628.9010506@FreeBSD.org> Date: Wed, 11 Jan 2012 11:17:44 -0500 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.25) Gecko/20111213 Lightning/1.0b2 Thunderbird/3.1.17 MIME-Version: 1.0 To: Eitan Adler References: <4F0446B7.4090703@herveybayaustralia.com.au> <20120104142757.1c77c347@ernst.jennejohn.org> <4F04E648.9090206@herveybayaustralia.com.au> <20120105121825.656677e4@ernst.jennejohn.org> <20120106221610.00005fbe@unknown> <20120108160316.00003d59@unknown> <4F0A8164.9090502@herveybayaustralia.com.au> <20120110221115.00007dc1@unknown> <4F0CDB5B.9030402@herveybayaustralia.com.au> In-Reply-To: X-Enigmail-Version: 1.1.1 OpenPGP: id=1C940290 X-SA-Exim-Connect-IP: 68.189.245.235 X-SA-Exim-Mail-From: glarkin@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.sourcehosting.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC,TVD_RCVD_IP autolearn=no version=3.3.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail1.sourcehosting.net) Cc: Paul Schmehl , Da Rock , 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 Reply-To: glarkin@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 16:40:50 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 1/11/12 11:10 AM, Eitan Adler wrote: > On Wed, Jan 11, 2012 at 10:37 AM, Paul Schmehl wrote: >> --On January 11, 2012 10:44:11 AM +1000 Da Rock >> wrote: >>> >>> >>> My last problem is with the define knobs. I have an .if defined(WITH_PAM) >>> .else ... .endif statement, but it keeps giving me trouble. I can't quite >>> figure what I've got wrong. The statement looks like this: >>> >>> post-extract: >>> .if defined(WITH_PAM) >>> PLIST_FILES+=lib/security/pam_ldap.so >>> >>> >>> .else >>> @if [ -f ${WRKDIR}/lib/security/pam_ldap.so ]; then \ >>> ${RM} ${WRKDIR}/lib/security/pam_ldap.so >>> ${DIRRM} ${WRKDIR}/lib/; >>> fi >> >> ^^^^^ >> >> This is what's wrong. In port Makefiles, it's .if, .else, .endif not fi. > > You need both: .endif and fi in this case (the 'fi' is part of the shell script) > > You'll also need to insert line continuations and command delimiters in the shell script portion, in addition to Eitan's change. Cheers, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8NtigACgkQ0sRouByUApBnQwCfZGapwauaK4QtNGOwDd3V3mZZ YiwAn2iIERynVsf2nNlkZpZniF5snJCf =6aKi -----END PGP SIGNATURE-----