Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= pam_mysql |
8 |
PORTNAME= pam_mysql |
9 |
PORTVERSION= 0.5 |
9 |
PORTVERSION= 0.6.0 |
10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 0 |
11 |
CATEGORIES= security databases |
11 |
CATEGORIES= security databases |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
13 |
MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/} |
13 |
MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/} |
Lines 17-53
Link Here
|
17 |
|
17 |
|
18 |
USE_REINPLACE= yes |
18 |
USE_REINPLACE= yes |
19 |
USE_MYSQL= yes |
19 |
USE_MYSQL= yes |
20 |
BROKEN_WITH_MYSQL= 41 |
20 |
HAS_CONFIGURE= yes |
21 |
USE_GMAKE= yes |
21 |
CONFIGURE_ARGS= --with-mysql=${LOCALBASE} --with-pam-mods-dir=${PREFIX}/lib --with-pam=/usr |
22 |
|
22 |
|
23 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
23 |
PLIST_FILES= lib/pam_mysql.la lib/pam_mysql.so |
24 |
|
24 |
|
25 |
.include <bsd.port.pre.mk> |
|
|
26 |
|
27 |
post-patch: |
28 |
${REINPLACE_CMD} -e "s@^#define DEBUG@#undef DEBUG@" ${WRKSRC}/pam_mysql.c |
29 |
|
30 |
pre-build: |
31 |
@cd ${WRKSRC} && ${GMAKE} clean |
32 |
|
33 |
do-build: |
34 |
${CC} -O -pipe -fpic -DPIC -Wall -I${LOCALBASE}/include -c ${WRKSRC}/pam_mysql.c -o ${WRKSRC}/pam_mysql.o |
35 |
${LD} -x --shared -o ${WRKSRC}/pam_mysql.so ${WRKSRC}/pam_mysql.o -lpam -lcrypt -L${LOCALBASE}/lib/mysql -lmysqlclient |
36 |
|
37 |
do-install: |
38 |
@${INSTALL_DATA} ${WRKSRC}/pam_mysql.so ${PREFIX}/lib |
39 |
.if !defined(NOPORTDOCS) |
25 |
.if !defined(NOPORTDOCS) |
40 |
@${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR} |
26 |
PORTDOCS= * |
41 |
@${INSTALL_DATA} ${WRKSRC}/Changelog ${DOCSDIR} |
|
|
42 |
@${INSTALL_DATA} ${WRKSRC}/CREDITS ${DOCSDIR} |
43 |
@${INSTALL_DATA} ${WRKSRC}/Readme ${DOCSDIR} |
44 |
.endif |
27 |
.endif |
45 |
|
28 |
|
46 |
post-install: |
29 |
post-install: |
|
|
30 |
.if !defined(NOPORTDOCS) |
31 |
@${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR} |
32 |
@${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR} |
33 |
@${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR} |
34 |
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
35 |
.endif |
47 |
@${ECHO_MSG} "================================================================================" |
36 |
@${ECHO_MSG} "================================================================================" |
48 |
@${ECHO_MSG} "Copy/move/symlink ${PREFIX}/lib/pam_mysql.so to /usr/lib/pam_mysql.so" |
37 |
@${ECHO_MSG} "Copy/move/symlink ${PREFIX}/lib/pam_mysql.so to /usr/lib/pam_mysql.so" |
49 |
@${ECHO_MSG} "to be able to use it. Read files in ${PREFIX}/share/doc/pam_mysql" |
38 |
@${ECHO_MSG} "to be able to use it. Read files in ${PREFIX}/share/doc/pam_mysql" |
50 |
@${ECHO_MSG} "for info on how to set up." |
39 |
@${ECHO_MSG} "for info on how to set up." |
51 |
@${ECHO_MSG} "================================================================================" |
40 |
@${ECHO_MSG} "================================================================================" |
52 |
|
41 |
|
53 |
.include <bsd.port.post.mk> |
42 |
.include <bsd.port.mk> |