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

Paul Schmehl pschmehl_lists at tx.rr.com
Wed Jan 11 16:05:29 UTC 2012


--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.

-- 
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



More information about the freebsd-ports mailing list