2006-03-04 22:28:51 +01:00
|
|
|
# $NetBSD: Makefile,v 1.5 2006/03/04 21:30:37 jlam Exp $
|
2005-05-05 22:16:42 +02:00
|
|
|
|
|
|
|
DISTNAME= pam_mysql-0.5
|
|
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
2005-05-05 22:16:42 +02:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pam-mysql/}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2005-05-05 22:16:42 +02:00
|
|
|
HOMEPAGE= http://pam-mysql.sourceforge.net/
|
|
|
|
COMMENT= PAM module for authenticating with MySQL
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/pam_mysql
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/pam-mysql
|
|
|
|
|
2005-06-17 05:50:19 +02:00
|
|
|
INSTALLATION_DIRS= lib
|
|
|
|
|
2005-05-05 22:16:42 +02:00
|
|
|
do-build:
|
|
|
|
${CC} -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 \
|
|
|
|
${COMPILER_RPATH_FLAG}${LOCALBASE}/lib/mysql -lmysqlclient \
|
|
|
|
-L${LOCALBASE}/lib ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/pam_mysql.so ${PREFIX}/lib
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Changelog ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/CREDITS ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Readme ${DOCDIR}
|
|
|
|
|
|
|
|
.include "../../mk/mysql.buildlink3.mk"
|
|
|
|
.include "../../mk/pam.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|