From owner-freebsd-ports@FreeBSD.ORG Wed Jan 11 16:05:29 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 314B3106566B for ; Wed, 11 Jan 2012 16:05:29 +0000 (UTC) (envelope-from prvs=350d600a6=pschmehl_lists@tx.rr.com) Received: from ip-002.utdallas.edu (ip-002.utdallas.edu [129.110.20.108]) by mx1.freebsd.org (Postfix) with ESMTP id 8FA718FC0A for ; Wed, 11 Jan 2012 16:05:28 +0000 (UTC) X-Group: None X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhEFAOmsDU+BbgogXGdsb2JhbABCrQMiAhAUJYFyAQEFOAJPCw4KLkMUBgG/c4s6YwSIOpVxiTw X-IronPort-AV: E=Sophos;i="4.71,493,1320645600"; d="scan'208";a="84103181" Received: from zxtm01.utdallas.edu (HELO utd71538.utdallas.edu) ([129.110.10.32]) by ip-002.utdallas.edu with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Jan 2012 09:37:21 -0600 Date: Wed, 11 Jan 2012 09:37:17 -0600 From: Paul Schmehl To: Da Rock , freebsd-ports@freebsd.org Message-ID: In-Reply-To: <4F0CDB5B.9030402@herveybayaustralia.com.au> 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> X-Mailer: Mulberry/4.1.0a1 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline; size=1196 Cc: 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: Paul Schmehl 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:05:29 -0000 --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. -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson "There are some ideas so wrong that only a very intelligent person could believe in them." George Orwell