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 | |
parent | This PR is basically a "japanese/kappa20 X11 bitmap font" port update. (diff) |
Use PORTDOCS, DOCSDIR and USE_MYSQL.
Use LOCALBASE instad of PREFIX to locate MySQL includes.
Use BROKEN_WITH_MYSQL to indicate that pam-mysql does not work with MySQL
4.1.
PR: 57439
Submitted by: Sergey Matveychuk <sem@ciam.ru>
Notes
Notes:
svn path=/head/; revision=93201
-rw-r--r-- | security/pam-mysql/Makefile | 28 | ||||
-rw-r--r-- | security/pam-mysql/pkg-plist | 8 |
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%% |