2000-09-10 14:57:49 +02:00
|
|
|
# New ports collection makefile for: pam_mysql
|
|
|
|
# Date created: 29 August 2000
|
|
|
|
# Whom: Anders Nordby <anders@fix.no>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pam_mysql
|
2003-06-01 23:27:03 +02:00
|
|
|
PORTVERSION= 0.5
|
2004-02-04 06:10:27 +01:00
|
|
|
PORTREVISION= 1
|
2000-09-10 14:57:49 +02:00
|
|
|
CATEGORIES= security databases
|
2003-06-01 23:29:01 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2003-07-19 13:07:04 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/}
|
2000-09-10 14:57:49 +02:00
|
|
|
|
2002-03-14 01:11:40 +01:00
|
|
|
MAINTAINER= anders@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A pam module for authenticating with MySQL
|
2000-09-10 14:57:49 +02:00
|
|
|
|
2003-11-06 01:10:17 +01:00
|
|
|
USE_MYSQL= yes
|
|
|
|
BROKEN_WITH_MYSQL= 41
|
2000-09-10 14:57:49 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2002-04-11 00:28:01 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-09-10 14:57:49 +02:00
|
|
|
post-patch:
|
|
|
|
@cd ${WRKSRC} && ${GMAKE} clean
|
|
|
|
|
|
|
|
do-build:
|
2003-11-06 01:10:17 +01:00
|
|
|
${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
|
2000-09-10 14:57:49 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/pam_mysql.so ${PREFIX}/lib
|
2003-11-06 01:10:17 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/Changelog ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/CREDITS ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/Readme ${DOCSDIR}
|
|
|
|
.endif
|
2000-09-10 14:57:49 +02:00
|
|
|
|
|
|
|
post-install:
|
2003-11-06 01:10:17 +01:00
|
|
|
@${ECHO_MSG} "================================================================================"
|
|
|
|
@${ECHO_MSG} "Copy/move/symlink ${PREFIX}/lib/pam_mysql.so to /usr/lib/pam_mysql.so"
|
|
|
|
@${ECHO_MSG} "to be able to use it. Read files in ${PREFIX}/share/doc/pam_mysql"
|
|
|
|
@${ECHO_MSG} "for info on how to set up."
|
|
|
|
@${ECHO_MSG} "================================================================================"
|
2000-09-10 14:57:49 +02:00
|
|
|
|
2002-04-11 00:28:01 +02:00
|
|
|
.include <bsd.port.post.mk>
|