View | Details | Raw Unified | Return to bug 57439
Collapse All | Expand All

(-)/usr/ports/security/pam-mysql/Makefile (-13 / +16 lines)
Lines 14-23 Link Here
14
MAINTAINER=	anders@FreeBSD.org
14
MAINTAINER=	anders@FreeBSD.org
15
COMMENT=	A pam module for authenticating with MySQL
15
COMMENT=	A pam module for authenticating with MySQL
16
16
17
LIB_DEPENDS=	mysqlclient.10:${PORTSDIR}/databases/mysql323-client
17
USE_MYSQL=	yes
18
19
USE_GMAKE=	yes
18
USE_GMAKE=	yes
20
19
20
INSTALLS_SHLIB=	yes
21
21
WRKSRC=		${WRKDIR}/${PORTNAME}
22
WRKSRC=		${WRKDIR}/${PORTNAME}
22
23
23
.include <bsd.port.pre.mk>
24
.include <bsd.port.pre.mk>
Lines 26-46 Link Here
26
	@cd ${WRKSRC} && ${GMAKE} clean
27
	@cd ${WRKSRC} && ${GMAKE} clean
27
28
28
do-build:
29
do-build:
29
	${CC} -O -pipe -fpic -DPIC -Wall -I${PREFIX}/include -c ${WRKSRC}/pam_mysql.c -o ${WRKSRC}/pam_mysql.o
30
	${CC} -O -pipe -fpic -DPIC -Wall -I${LOCALBASE}/include -c ${WRKSRC}/pam_mysql.c -o ${WRKSRC}/pam_mysql.o
30
	${LD} -x --shared -o ${WRKSRC}/pam_mysql.so ${WRKSRC}/pam_mysql.o -lpam -lcrypt -L${PREFIX}/lib/mysql -lmysqlclient
31
	${LD} -x --shared -o ${WRKSRC}/pam_mysql.so ${WRKSRC}/pam_mysql.o -lpam -lcrypt -L${LOCALBASE}/lib/mysql -lmysqlclient
31
32
32
do-install:
33
do-install:
33
	@${INSTALL_DATA} ${WRKSRC}/pam_mysql.so ${PREFIX}/lib
34
	@${INSTALL_DATA} ${WRKSRC}/pam_mysql.so ${PREFIX}/lib
34
	@${INSTALL} -d -o root -g wheel -m 0755 ${PREFIX}/share/doc/pam_mysql
35
.if !defined(NOPORTDOCS)
35
	@${INSTALL_DATA} ${WRKSRC}/Changelog ${PREFIX}/share/doc/pam_mysql/
36
	@${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}
36
	@${INSTALL_DATA} ${WRKSRC}/CREDITS ${PREFIX}/share/doc/pam_mysql/
37
	@${INSTALL_DATA} ${WRKSRC}/Changelog ${DOCSDIR}
37
	@${INSTALL_DATA} ${WRKSRC}/Readme ${PREFIX}/share/doc/pam_mysql/
38
	@${INSTALL_DATA} ${WRKSRC}/CREDITS ${DOCSDIR}
39
	@${INSTALL_DATA} ${WRKSRC}/Readme ${DOCSDIR}
40
.endif
38
41
39
post-install:
42
post-install:
40
	@${ECHO} "================================================================================"
43
	@${ECHO_MSG} "================================================================================"
41
	@${ECHO} "Copy/move/symlink ${PREFIX}/lib/pam_mysql.so to /usr/lib/pam_mysql.so"
44
	@${ECHO_MSG} "Copy/move/symlink ${PREFIX}/lib/pam_mysql.so to /usr/lib/pam_mysql.so"
42
	@${ECHO} "to be able to use it. Read files in ${PREFIX}/share/doc/pam_mysql"
45
	@${ECHO_MSG} "to be able to use it. Read files in ${PREFIX}/share/doc/pam_mysql"
43
	@${ECHO} "for info on how to set up."
46
	@${ECHO_MSG} "for info on how to set up."
44
	@${ECHO} "================================================================================"
47
	@${ECHO_MSG} "================================================================================"
45
48
46
.include <bsd.port.post.mk>
49
.include <bsd.port.post.mk>
(-)/usr/ports/security/pam-mysql/pkg-plist (-4 / +4 lines)
Lines 1-5 Link Here
1
lib/pam_mysql.so
1
lib/pam_mysql.so
2
share/doc/pam_mysql/Changelog
2
%%PORTDOCS%%%%DOCSDIR%%/Changelog
3
share/doc/pam_mysql/CREDITS
3
%%PORTDOCS%%%%DOCSDIR%%/CREDITS
4
share/doc/pam_mysql/Readme
4
%%PORTDOCS%%%%DOCSDIR%%/Readme
5
@dirrm share/doc/pam_mysql
5
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 57439