linux-f10-nss_ldap: my first port - be gentle :)

Greg Larkin glarkin at FreeBSD.org
Wed Jan 11 16:40:50 UTC 2012


-----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 at tx.rr.com> wrote:
>> --On January 11, 2012 10:44:11 AM +1000 Da Rock
>> <freebsd-ports at 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-----


More information about the freebsd-ports mailing list