pkgsrc-wip/shadow/Makefile
Dieter Baron fdb4b70fff Rename option PAM to pam (so all options are lower case). Backwards
compatibility provided via PKG_OPTIONS_LEGACY_OPTS.
2005-05-31 11:25:25 +00:00

56 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2005/05/31 11:25:25 dillo Exp $
DISTNAME= shadow-4.0.4.1
CATEGORIES= sysutils devel
MASTER_SITES= ftp://ftp.pld.org.pl/software/shadow/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= reed@reedmedia.net
HOMEPAGE= http://shadow.pld.org.pl/
COMMENT= User administration and passwd database tools for Linux
ONLY_FOR_PLATFORM= Linux-*-* # Linux shadow format
GNU_CONFIGURE= YES
.include "../../mk/bsd.prefs.mk"
PKG_OPTIONS_VAR= PKG_OPTIONS.shadow
PKG_SUPPORTED_OPTIONS= pam libcrack
.include "../../mk/bsd.options.mk"
###
### PAM support.
###
.if !empty(PKG_OPTIONS:Mpam)
. include "../../security/PAM/buildlink3.mk"
CONFIGURE_ARGS+= --with-libpam
MESSAGE_SRC+= ${.CURDIR}/MESSAGE.pam
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
MESSAGE_SUBST+= EGDIR=${EGDIR}
PLIST_SUBST+= PAM=
.else
CONFIGURE_ARGS+= --without-libpam
PLIST_SUBST+= PAM="@comment"
.endif
###
### Support using libcrack to protect against weak passwords.
###
.if !empty(PKG_OPTIONS:Mlibcrack)
. include "../../security/libcrack/buildlink3.mk"
CONFIGURE_ARGS+= --with-libcrack
.else
CONFIGURE_ARGS+= --without-libcrack
.endif
.if !empty(PKG_OPTIONS:Mpam)
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${FILESDIR}/shadow.pam ${EGDIR}/
${INSTALL_DATA} ${FILESDIR}/useradd.pam ${EGDIR}/
.endif
.include "../../mk/bsd.pkg.mk"