diff options
author | Anders Nordby <anders@FreeBSD.org> | 2003-11-06 00:10:17 +0000 |
---|---|---|
committer | Anders Nordby <anders@FreeBSD.org> | 2003-11-06 00:10:17 +0000 |
commit | cb20dc983443e69fea56d7deb1ab6730d53e4840 (patch) | |
tree | 6f449efcde9f5923a451d29776993a182d7f7904 /security/pam-mysql/Makefile | |
parent | aa02f0b1699e4bb056dc955bdd0cb4ba57c42484 (diff) | |
download | ports-cb20dc983443e69fea56d7deb1ab6730d53e4840.tar.gz ports-cb20dc983443e69fea56d7deb1ab6730d53e4840.zip |
Notes
Diffstat (limited to 'security/pam-mysql/Makefile')
-rw-r--r-- | security/pam-mysql/Makefile | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/security/pam-mysql/Makefile b/security/pam-mysql/Makefile index 52d415fec02e..8c81976f3cad 100644 --- a/security/pam-mysql/Makefile +++ b/security/pam-mysql/Makefile @@ -14,8 +14,8 @@ MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/} MAINTAINER= anders@FreeBSD.org COMMENT= A pam module for authenticating with MySQL -LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client - +USE_MYSQL= yes +BROKEN_WITH_MYSQL= 41 USE_GMAKE= yes WRKSRC= ${WRKDIR}/${PORTNAME} @@ -26,21 +26,23 @@ post-patch: @cd ${WRKSRC} && ${GMAKE} clean do-build: - ${CC} -O -pipe -fpic -DPIC -Wall -I${PREFIX}/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${PREFIX}/lib/mysql -lmysqlclient + ${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 do-install: @${INSTALL_DATA} ${WRKSRC}/pam_mysql.so ${PREFIX}/lib - @${INSTALL} -d -o root -g wheel -m 0755 ${PREFIX}/share/doc/pam_mysql - @${INSTALL_DATA} ${WRKSRC}/Changelog ${PREFIX}/share/doc/pam_mysql/ - @${INSTALL_DATA} ${WRKSRC}/CREDITS ${PREFIX}/share/doc/pam_mysql/ - @${INSTALL_DATA} ${WRKSRC}/Readme ${PREFIX}/share/doc/pam_mysql/ +.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 post-install: - @${ECHO} "================================================================================" - @${ECHO} "Copy/move/symlink ${PREFIX}/lib/pam_mysql.so to /usr/lib/pam_mysql.so" - @${ECHO} "to be able to use it. Read files in ${PREFIX}/share/doc/pam_mysql" - @${ECHO} "for info on how to set up." - @${ECHO} "================================================================================" + @${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} "================================================================================" .include <bsd.port.post.mk> |