aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorAnders Nordby <anders@FreeBSD.org>2003-11-06 00:10:17 +0000
committerAnders Nordby <anders@FreeBSD.org>2003-11-06 00:10:17 +0000
commitcb20dc983443e69fea56d7deb1ab6730d53e4840 (patch)
tree6f449efcde9f5923a451d29776993a182d7f7904 /security
parentaa02f0b1699e4bb056dc955bdd0cb4ba57c42484 (diff)
downloadports-cb20dc983443e69fea56d7deb1ab6730d53e4840.tar.gz
ports-cb20dc983443e69fea56d7deb1ab6730d53e4840.zip
Notes
Diffstat (limited to 'security')
-rw-r--r--security/pam-mysql/Makefile28
-rw-r--r--security/pam-mysql/pkg-plist8
2 files changed, 19 insertions, 17 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>
diff --git a/security/pam-mysql/pkg-plist b/security/pam-mysql/pkg-plist
index c6db9c211cfa..251b9f7b7167 100644
--- a/security/pam-mysql/pkg-plist
+++ b/security/pam-mysql/pkg-plist
@@ -1,5 +1,5 @@
lib/pam_mysql.so
-share/doc/pam_mysql/Changelog
-share/doc/pam_mysql/CREDITS
-share/doc/pam_mysql/Readme
-@dirrm share/doc/pam_mysql
+%%PORTDOCS%%%%DOCSDIR%%/Changelog
+%%PORTDOCS%%%%DOCSDIR%%/CREDITS
+%%PORTDOCS%%%%DOCSDIR%%/Readme
+%%PORTDOCS%%@dirrm %%DOCSDIR%%