2012-01-18 15:46:03 +01:00
|
|
|
# $NetBSD: Makefile,v 1.47 2012/01/18 14:46:03 adam Exp $
|
2000-10-21 20:41:54 +02:00
|
|
|
|
2004-01-12 05:31:09 +01:00
|
|
|
DISTNAME= Linux-PAM-0.77
|
|
|
|
PKGNAME= ${DISTNAME:S/Linux-//}
|
2012-01-18 15:46:03 +01:00
|
|
|
PKGREVISION= 6
|
2000-10-21 20:41:54 +02:00
|
|
|
CATEGORIES= security
|
2002-01-29 18:10:10 +01:00
|
|
|
MASTER_SITES= http://www.kernel.org/pub/linux/libs/pam/pre/library/ \
|
2003-05-22 16:36:06 +02:00
|
|
|
ftp://ftp.kernel.org/pub/linux/libs/pam/pre/library/ \
|
|
|
|
http://www.de.kernel.org/pub/linux/libs/pam/pre/library/ \
|
|
|
|
ftp://ftp.jp.kernel.org/pub/linux/libs/pam/pre/library/
|
2000-10-21 20:41:54 +02:00
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= rh@NetBSD.org
|
2000-10-21 20:41:54 +02:00
|
|
|
HOMEPAGE= http://www.kernel.org/pub/linux/libs/pam/
|
2003-05-22 16:36:06 +02:00
|
|
|
COMMENT= Pluggable Authentication Modules (PAM)
|
2000-10-21 20:41:54 +02:00
|
|
|
|
2008-08-23 02:48:12 +02:00
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
2005-01-13 22:52:26 +01:00
|
|
|
CONFLICTS+= openpam-[0-9]*
|
|
|
|
|
2004-01-08 01:07:26 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2011-03-20 07:29:52 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-01-08 01:07:26 +01:00
|
|
|
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2004-11-16 08:46:57 +01:00
|
|
|
USE_LIBTOOL= yes
|
2000-10-21 20:41:54 +02:00
|
|
|
|
2002-01-29 18:10:10 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2002-12-23 22:23:56 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-docdir=${PREFIX}/share/doc/PAM
|
2002-01-29 18:10:10 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-includedir=${PREFIX}/include
|
2005-10-04 20:27:00 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-mandir=${PREFIX}/${PKGMANDIR}
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-sconfigdir=${PKG_SYSCONFDIR:Q}
|
2002-01-29 18:10:10 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-static-libpam
|
2002-12-23 22:23:56 +01:00
|
|
|
CONFIGURE_ENV+= ac_cv_prog_HAVE_SGML2TXT=no
|
|
|
|
CONFIGURE_ENV+= ac_cv_prog_HAVE_SGML2HTML=no
|
|
|
|
CONFIGURE_ENV+= ac_cv_prog_HAVE_SGML2LATEX=no
|
|
|
|
CONFIGURE_ENV+= ac_cv_prog_HAVE_SGML2PS=no
|
|
|
|
CONFIGURE_ENV+= ac_cv_prog_HAVE_PS2PDF=no
|
2001-06-19 11:20:11 +02:00
|
|
|
|
2009-11-27 14:34:25 +01:00
|
|
|
MAKE_FLAGS+= CC=cc
|
2011-03-20 07:29:52 +01:00
|
|
|
INSTALL_MAKE_FLAGS+= FAKEROOT=${DESTDIR}
|
2009-11-27 14:34:25 +01:00
|
|
|
|
2004-01-08 01:07:26 +01:00
|
|
|
PAM_MODULEDIR= ${VIEWBASE}/lib/security
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= PAM_MODULEDIR=${PAM_MODULEDIR:Q}
|
2004-01-08 20:18:00 +01:00
|
|
|
MESSAGE_SUBST+= PAM_MODULEDIR=${PAM_MODULEDIR}
|
2004-01-08 01:07:26 +01:00
|
|
|
|
2002-12-23 22:23:56 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-07-30 23:05:41 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.PAM
|
|
|
|
PKG_SUPPORTED_OPTIONS= libcrack
|
2005-05-31 12:01:36 +02:00
|
|
|
|
2004-07-30 23:05:41 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2004-08-05 04:42:12 +02:00
|
|
|
###
|
|
|
|
### Support using libcrack to protect against weak passwords.
|
|
|
|
###
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= libcrack
|
2004-07-30 23:05:41 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mlibcrack)
|
2004-01-08 01:07:26 +01:00
|
|
|
. include "../../security/libcrack/buildlink3.mk"
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.libcrack= yes
|
2003-05-22 16:36:06 +02:00
|
|
|
.else
|
2006-10-10 05:20:48 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-crack
|
2003-05-22 16:36:06 +02:00
|
|
|
.endif
|
|
|
|
|
2002-12-23 22:23:56 +01:00
|
|
|
.if !empty(OPSYS:M*BSD)
|
2005-09-08 23:57:56 +02:00
|
|
|
CPPFLAGS+= -DUSE_GETLOGIN=1
|
2002-12-23 22:23:56 +01:00
|
|
|
.endif
|
2000-10-21 20:41:54 +02:00
|
|
|
|
2004-11-16 08:46:57 +01:00
|
|
|
# pam_userdb uses ndbm if it finds it, otherwise it will use Berkeley DB.
|
|
|
|
.if !exists(/usr/include/ndbm.h)
|
|
|
|
. include "../../mk/bdb.buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2002-01-29 18:10:10 +01:00
|
|
|
PKG_SYSCONFSUBDIR?= pam
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
2000-10-21 20:41:54 +02:00
|
|
|
|
2002-01-29 18:10:10 +01:00
|
|
|
CFILES= access.conf pam_env.conf group.conf time.conf
|
2003-05-22 16:36:06 +02:00
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= limits
|
2003-05-22 16:36:06 +02:00
|
|
|
.if ${OPSYS} == "Linux"
|
|
|
|
CFILES+= limits.conf
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.limits= yes
|
2003-05-22 16:36:06 +02:00
|
|
|
.endif
|
|
|
|
|
2004-01-08 01:07:26 +01:00
|
|
|
CONF_FILES= ${EGDIR}/pam.conf ${PKG_SYSCONFBASEDIR}/pam.conf
|
2002-01-29 18:10:10 +01:00
|
|
|
.for FILE in ${CFILES}
|
|
|
|
CONF_FILES+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE}
|
|
|
|
.endfor
|
2004-11-16 08:46:57 +01:00
|
|
|
SPECIAL_PERMS= ${PREFIX}/sbin/unix_chkpwd ${SETUID_ROOT_PERMS}
|
2004-07-30 23:05:41 +02:00
|
|
|
|
2004-01-12 05:31:09 +01:00
|
|
|
post-configure:
|
2004-11-16 08:46:57 +01:00
|
|
|
cd ${WRKSRC}; for file in Make.Rules; do \
|
|
|
|
${SED} -e "s|@LIBTOOL@|${LIBTOOL}|g" \
|
|
|
|
-e "s|@SHLIBTOOL@|${SHLIBTOOL}|g" \
|
|
|
|
$$file > $$file.new; \
|
|
|
|
${MV} -f $$file.new $$file; \
|
|
|
|
done
|
2004-01-12 05:31:09 +01:00
|
|
|
cd ${WRKSRC}; for file in libpam/pam_private.h; do \
|
|
|
|
${SED} -e "s|/etc/|${PKG_SYSCONFBASEDIR}/|g" \
|
|
|
|
$$file > $$file.new; \
|
|
|
|
${MV} -f $$file.new $$file; \
|
|
|
|
done
|
|
|
|
|
2003-05-22 16:36:06 +02:00
|
|
|
# this is so it won't try to interactively install any configs
|
|
|
|
pre-build:
|
2003-10-18 14:40:11 +02:00
|
|
|
${TOUCH} ${WRKSRC}/.quiet_install
|
2003-05-22 16:36:06 +02:00
|
|
|
|
2000-10-21 20:41:54 +02:00
|
|
|
post-install:
|
2011-03-20 07:29:52 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/pam.conf ${DESTDIR}${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/modules/pam_access/access.conf ${DESTDIR}${EGDIR}
|
2002-01-29 18:10:10 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/modules/pam_env/pam_env.conf-example \
|
2011-03-20 07:29:52 +01:00
|
|
|
${DESTDIR}${EGDIR}/pam_env.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/modules/pam_group/group.conf ${DESTDIR}${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/modules/pam_time/time.conf ${DESTDIR}${EGDIR}
|
2003-05-22 16:36:06 +02:00
|
|
|
.if ${OPSYS} == "Linux"
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/security/modules/pam_limits/limits.skel \
|
2011-03-20 07:29:52 +01:00
|
|
|
${DESTDIR}${EGDIR}/limits.conf
|
2003-05-22 16:36:06 +02:00
|
|
|
.endif
|
2000-10-21 20:41:54 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|