File:  [cvs.NetBSD.org] / pkgsrc / security / pam-pwauth_suid / Makefile
Revision 1.6: download - view: text, annotated - select for diffs
Thu Apr 9 00:48:15 2009 UTC (15 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, HEAD
Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions.

# $NetBSD: Makefile,v 1.6 2009/04/09 00:48:15 joerg Exp $

DISTNAME=	pam-pwauth_suid-1.2
CATEGORIES=	security
DISTFILES=	# empty

MAINTAINER=	drochner@NetBSD.org
COMMENT=	PAM authentication module for unprivileged users

WRKSRC=		${WRKDIR}

PAMDEF+= -DPATH_HELPER=\"${PREFIX}/libexec/pwauth_suid_helper\"
PAMDEF+= -DNO_STATIC_MODULES

PKG_DESTDIR_SUPPORT=	user-destdir

INSTALLATION_DIRS=	lib/security libexec share/examples/pam-pwauth_suid

do-extract:
	${CP} ${FILESDIR}/pam_pwauth_suid.c ${FILESDIR}/pwauth_suid_helper.c \
		${WRKSRC}

do-build:
	(cd ${WRKSRC} && \
	 ${CC} ${CFLAGS} -c -fPIC ${PAMDEF} pam_pwauth_suid.c && \
	 ${LD} -shared pam_pwauth_suid.o -o pam_pwauth_suid.so && \
	 ${CC} ${CFLAGS} pwauth_suid_helper.c -o pwauth_suid_helper -lcrypt)

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/security
	${INSTALL_DATA} ${WRKSRC}/pam_pwauth_suid.so \
		${DESTDIR}${PREFIX}/lib/security
	${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/libexec
	${INSTALL_PROGRAM} ${WRKSRC}/pwauth_suid_helper \
		${DESTDIR}${PREFIX}/libexec
	${CHMOD} 04555 ${DESTDIR}${PREFIX}/libexec/pwauth_suid_helper
	sed -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/xscreensaver > \
		${DESTDIR}${PREFIX}/share/examples/pam-pwauth_suid/xscreensaver

.include "../../mk/pam.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>