Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2012 11:17:44 -0500
From:      Greg Larkin <glarkin@FreeBSD.org>
To:        Eitan Adler <lists@eitanadler.com>
Cc:        Paul Schmehl <pschmehl_lists@tx.rr.com>, Da Rock <freebsd-ports@herveybayaustralia.com.au>, freebsd-ports@freebsd.org
Subject:   Re: linux-f10-nss_ldap: my first port - be gentle :)
Message-ID:  <4F0DB628.9010506@FreeBSD.org>
In-Reply-To: <CAF6rxgmYfKm=qYJXJfAJniyuxA1jm6zX=m9KP9YBqCmmse8ykQ@mail.gmail.com>
References:  <4F0446B7.4090703@herveybayaustralia.com.au>	<20120104142757.1c77c347@ernst.jennejohn.org>	<4F04E648.9090206@herveybayaustralia.com.au>	<20120105121825.656677e4@ernst.jennejohn.org>	<20120106221610.00005fbe@unknown>	<CADLo83-YUtUgAw_r2QNpB2mPxbvPfV0vCRMih-ncAQBCWj73LQ@mail.gmail.com>	<20120108160316.00003d59@unknown>	<4F0A8164.9090502@herveybayaustralia.com.au>	<20120110221115.00007dc1@unknown>	<4F0CDB5B.9030402@herveybayaustralia.com.au>	<EBA4CEA9D06CDF6C3E6F5095@utd71538.utdallas.edu> <CAF6rxgmYfKm=qYJXJfAJniyuxA1jm6zX=m9KP9YBqCmmse8ykQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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 <pschmehl_lists@tx.rr.com> wrote:
>> --On January 11, 2012 10:44:11 AM +1000 Da Rock
>> <freebsd-ports@herveybayaustralia.com.au> 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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F0DB628.9010506>