diff options
author | jlam <jlam@pkgsrc.org> | 2001-05-26 07:26:51 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-05-26 07:26:51 +0000 |
commit | d85f82c11963e98903b1e18cc74280b89705b810 (patch) | |
tree | 2abeb7aae4caf3c929efdac4fcfcf482ba9e75a5 /security/PAM | |
parent | f077d7fbc0774c3fbfd4d26e049a7340d86d2837 (diff) | |
download | pkgsrc-d85f82c11963e98903b1e18cc74280b89705b810.tar.gz |
No functional change...just rework some code and re-sort some lines.
Diffstat (limited to 'security/PAM')
-rw-r--r-- | security/PAM/buildlink.mk | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/security/PAM/buildlink.mk b/security/PAM/buildlink.mk index 13aca88ae98..d03ff53ee7d 100644 --- a/security/PAM/buildlink.mk +++ b/security/PAM/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.2 2001/05/26 05:44:10 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.3 2001/05/26 07:26:51 jlam Exp $ # # This Makefile fragment is included by packages that use libpam. # @@ -17,16 +17,13 @@ PAM_BUILDLINK_MK= # defined PAM_REQD?= 0.72 - -PAM_INCDIR= ${LOCALBASE}/include/security -LIBPAM= ${LOCALBASE}/lib/libpam.a -LIBPAM+= ${LOCALBASE}/lib/libpam.so* -LIBPAMC= ${LOCALBASE}/lib/libpamc.a -LIBPAMC+= ${LOCALBASE}/lib/libpamc.so* -LIBPAMMISC= ${LOCALBASE}/lib/libpam_misc.a -LIBPAMMISC+= ${LOCALBASE}/lib/libpam_misc.so* DEPENDS+= PAM>=${PAM_REQD}:../../security/PAM +PAM_HEADERS= ${LOCALBASE}/include/security/* +PAM_LIBS= ${LOCALBASE}/lib/libpam.* +PAM_LIBS+= ${LOCALBASE}/lib/libpamc.* +PAM_LIBS+= ${LOCALBASE}/lib/libpam_misc.* + BUILDLINK_INCDIR?= ${WRKDIR}/include BUILDLINK_LIBDIR?= ${WRKDIR}/lib @@ -39,7 +36,8 @@ BUILDLINK_TARGETS+= link-pam-libs link-pam-headers: @${ECHO} "Linking pam headers into ${BUILDLINK_INCDIR}." @${MKDIR} ${BUILDLINK_INCDIR}/security - @for inc in ${PAM_INCDIR}/*; do \ + @${RM} -f ${BUILDLINK_INCDIR}/security/* + @for inc in ${PAM_HEADERS}; do \ dest=${BUILDLINK_INCDIR}/security/`${BASENAME} $${inc}`; \ if [ -f $${inc} ]; then \ ${RM} -f $${dest}; \ @@ -53,7 +51,7 @@ link-pam-headers: link-pam-libs: @${ECHO} "Linking pam libraries into ${BUILDLINK_LIBDIR}." @${MKDIR} ${BUILDLINK_LIBDIR} - @for lib in ${LIBPAM} ${LIBPAMC} ${LIBPAMMISC}; do \ + @for lib in ${PAM_LIBS}; do \ dest=${BUILDLINK_LIBDIR}/`${BASENAME} $${lib}`; \ if [ -f $${lib} ]; then \ ${RM} -f $${dest}; \ |