From owner-freebsd-ports@FreeBSD.ORG Wed Jan 11 16:11:00 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 24FBB1065673 for ; Wed, 11 Jan 2012 16:11:00 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 990EA8FC0A for ; Wed, 11 Jan 2012 16:10:59 +0000 (UTC) Received: by lahd3 with SMTP id d3so552589lah.13 for ; Wed, 11 Jan 2012 08:10:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=j5hy8XbiTta3N6MfwD9J6LwSFgtka3/uTjc3VW54F7s=; b=MhzF9qUOLQ/yGS1qc6Z+Ss52GVJuz2//7CJVI9WT5cS2tEdpH5v2EE1jV7/YCmWMQL 4rkPqWUotQYMUI1ulEbwvz2jVXxKBnys3h8oFJBTsSq9HZvv01GMdofBX1Ms1dy8BgaA hYFdAccsXsa9789N62W3klMZZF1W+jLglvxkw= Received: by 10.112.103.131 with SMTP id fw3mr5312312lbb.78.1326298258165; Wed, 11 Jan 2012 08:10:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.129.8 with HTTP; Wed, 11 Jan 2012 08:10:27 -0800 (PST) In-Reply-To: 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> From: Eitan Adler Date: Wed, 11 Jan 2012 11:10:27 -0500 Message-ID: To: Paul Schmehl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: 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 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:11:00 -0000 On Wed, Jan 11, 2012 at 10:37 AM, Paul Schmehl w= rote: > --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 quit= e >> figure what I've got wrong. The statement looks like this: >> >> post-extract: >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 .if defined(WITH= _PAM) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PL= IST_FILES+=3Dlib/security/pam_ldap.so >> >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 .else >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 @i= f [ -f ${WRKDIR}/lib/security/pam_ldap.so ]; then \ >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 ${RM} ${WRKDIR}/lib/security/pam_ldap.so >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 ${DIRRM} ${WRKDIR}/lib/; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fi > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^^^^= ^ > > This is what's wrong. =C2=A0In port Makefiles, it's .if, .else, .endif no= t fi. You need both: .endif and fi in this case (the 'fi' is part of the shell sc= ript) --=20 Eitan Adler