2001-09-28 01:17:41 +02:00
|
|
|
# $NetBSD: Makefile,v 1.7 2001/09/27 23:18:37 jlam Exp $
|
2000-10-21 20:41:54 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= Linux-${PKGNAME}
|
|
|
|
PKGNAME= PAM-0.72
|
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= ftp://ftp.kernel.org/pub/linux/libs/pam/pre/library/
|
|
|
|
|
|
|
|
MAINTAINER= rh@netbsd.org
|
|
|
|
HOMEPAGE= http://www.kernel.org/pub/linux/libs/pam/
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= Pluggable Authentication Modules
|
2000-10-21 20:41:54 +02:00
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison
|
2000-10-21 20:41:54 +02:00
|
|
|
|
2001-06-19 11:20:11 +02:00
|
|
|
USE_GMAKE= YES
|
|
|
|
USE_BUILDLINK_ONLY= YES
|
|
|
|
|
|
|
|
.include "../../security/libcrack/buildlink.mk"
|
2000-10-21 20:41:54 +02:00
|
|
|
|
|
|
|
MAKE_ENV+= LOWER_OPSYS="${LOWER_OPSYS}"
|
|
|
|
MAKE_ENV+= MACHINE_GNU_ARCH="${MACHINE_GNU_ARCH}"
|
|
|
|
MAKE_ENV+= MKDIR="${MKDIR}"
|
|
|
|
MAKE_ENV+= ARPRG="${AR}"
|
|
|
|
MAKE_ENV+= RANLIB="${RANLIB}"
|
|
|
|
MAKE_ENV+= BSD_INSTALL="${INSTALL}"
|
|
|
|
MAKE_ENV+= CONFIGED="${PREFIX}/etc"
|
|
|
|
MAKE_ENV+= CONFD="${PREFIX}/etc"
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC} && ${TOUCH} .quiet_install && \
|
|
|
|
for i in `${FIND} . -type f` ; do \
|
|
|
|
if ${GREP} -q '\/etc\/' $$i ; then \
|
|
|
|
${CP} $$i $$i.old && \
|
|
|
|
${SED} < $$i.old > $$i \
|
|
|
|
-e 's:/etc/security:${PREFIX}/etc/pam:g' \
|
|
|
|
-e 's:/etc/pam:${PREFIX}/etc/pam:g' && \
|
|
|
|
${RM} $$i.old ; \
|
|
|
|
fi ; \
|
|
|
|
if ${GREP} -q 'bash' $$i ; then \
|
|
|
|
${CP} $$i $$i.old && \
|
|
|
|
${SED} < $$i.old > $$i \
|
|
|
|
-e 's:bash:sh:g' && \
|
|
|
|
${RM} $$i.old ; \
|
|
|
|
fi ; \
|
|
|
|
done
|
|
|
|
|
2001-02-08 23:01:31 +01:00
|
|
|
# for OBJECT_FMT
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2000-10-21 20:41:54 +02:00
|
|
|
post-install:
|
|
|
|
for doc in ${WRKSRC}/doc/man/*.3 ; do \
|
|
|
|
${INSTALL_MAN} $$doc ${PREFIX}/man/man3 ; \
|
|
|
|
done
|
|
|
|
for doc in ${WRKSRC}/doc/man/*.8 ; do \
|
|
|
|
${INSTALL_MAN} $$doc ${PREFIX}/man/man8 ; \
|
|
|
|
done
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/PAM/modules
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/PAM/sgml
|
|
|
|
for doc in ${WRKSRC}/doc/modules/* ; do \
|
|
|
|
${INSTALL_DATA} $$doc ${PREFIX}/share/doc/PAM/modules ; \
|
|
|
|
done
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/figs/pam_orient.txt \
|
|
|
|
${PREFIX}/share/doc/PAM
|
|
|
|
.for doc in draft-morgan-pam.raw rfc86.0.txt
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/specs/${doc} ${PREFIX}/share/doc/PAM
|
|
|
|
.endfor
|
|
|
|
.for doc in appl modules source
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/pam_${doc}.sgml \
|
|
|
|
${PREFIX}/share/doc/PAM/sgml
|
|
|
|
.endfor
|
2001-02-08 23:01:31 +01:00
|
|
|
.if (${OBJECT_FMT} == "ELF")
|
|
|
|
${LN} -fs ${PREFIX}/lib/libpam.so.0.72 ${PREFIX}/lib/libpam.so.0
|
|
|
|
${LN} -fs ${PREFIX}/lib/libpam_misc.so.0.72 ${PREFIX}/lib/libpam_misc.so.0
|
|
|
|
${LN} -fs ${PREFIX}/lib/libpamc.so.0.72 ${PREFIX}/lib/libpamc.so.0
|
|
|
|
.endif
|
2000-10-21 20:41:54 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|