Initial import of pam-mysql, provided by David Ferlier in PR pkg/24170.
This is a module that allows people to login to PAM aware applications by authenticating to a MySQL db. Now configurable in terms of which host the database reside upon, which table and username and password column to interrogate.
This commit is contained in:
parent
50aba88e43
commit
2bc1d11ec5
4 changed files with 47 additions and 0 deletions
4
pam-mysql/DESCR
Normal file
4
pam-mysql/DESCR
Normal file
|
@ -0,0 +1,4 @@
|
|||
This is a module that allows people to login to PAM aware applications
|
||||
by authenticating to a MySQL db. Now configurable in terms of which
|
||||
host the database reside upon, which table and username and password
|
||||
column to interrogate.
|
33
pam-mysql/Makefile
Normal file
33
pam-mysql/Makefile
Normal file
|
@ -0,0 +1,33 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2004/03/27 22:59:45 xtraeme Exp $
|
||||
|
||||
DISTNAME= pam_mysql-0.5
|
||||
PKGNAME= pam-mysql-0.5
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pam-mysql/}
|
||||
|
||||
MAINTAINER= david@netbsd-fr.org
|
||||
HOMEPAGE= http://pam-mysql.sourceforge.net/
|
||||
COMMENT= PAM module for authenticating with MySQL
|
||||
|
||||
WRKSRC= ${WRKDIR}/pam_mysql
|
||||
USE_GMAKE= YES
|
||||
USE_BUILDLINK2= YES
|
||||
DOCDIR= ${PREFIX}/share/doc/pam-mysql
|
||||
|
||||
post-patch:
|
||||
cd ${WRKSRC} && ${GMAKE} clean
|
||||
|
||||
do-build:
|
||||
${CC} -O -pipe -fpic -DPIC -Wall -I${LOCALBASE}/include -c ${WRKSRC}/pam_mysql.c -o ${WRKSRC}/pam_mysql.o
|
||||
${LD} -x --shared -o ${WRKSRC}/pam_mysql.so ${WRKSRC}/pam_mysql.o -lpam -lcrypt -L${LOCALBASE}/lib/mysql -lmysqlclient -L${LOCALBASE}/lib
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/pam_mysql.so ${PREFIX}/lib
|
||||
${INSTALL} -d -o root -g wheel -m 0755 ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/Changelog ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/CREDITS ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/Readme ${DOCDIR}
|
||||
|
||||
.include "../../security/PAM/buildlink2.mk"
|
||||
.include "../../databases/mysql-client/buildlink2.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
6
pam-mysql/PLIST
Normal file
6
pam-mysql/PLIST
Normal file
|
@ -0,0 +1,6 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2004/03/27 22:59:45 xtraeme Exp $
|
||||
lib/pam_mysql.so
|
||||
share/doc/pam-mysql/CREDITS
|
||||
share/doc/pam-mysql/Changelog
|
||||
share/doc/pam-mysql/Readme
|
||||
@dirrm share/doc/pam-mysql
|
4
pam-mysql/distinfo
Normal file
4
pam-mysql/distinfo
Normal file
|
@ -0,0 +1,4 @@
|
|||
$NetBSD: distinfo,v 1.1.1.1 2004/03/27 22:59:45 xtraeme Exp $
|
||||
|
||||
SHA1 (pam_mysql-0.5.tar.gz) = 6e974a3ee78a968b0069c4abbd1d8602c145e177
|
||||
Size (pam_mysql-0.5.tar.gz) = 11587 bytes
|
Loading…
Reference in a new issue