Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= scrypt |
4 |
PORTNAME= scrypt |
5 |
PORTVERSION= 1.2 |
5 |
PORTVERSION= 1.2 |
6 |
PORTREVISION= 1 |
6 |
PORTREVISION= 2 |
7 |
CATEGORIES= security pear |
7 |
CATEGORIES= security pear |
8 |
MASTER_SITES= http://pecl.php.net/get/ |
8 |
MASTER_SITES= http://pecl.php.net/get/ |
9 |
PKGNAMEPREFIX= pecl- |
9 |
PKGNAMEPREFIX= pecl- |
Lines 17-40
Link Here
|
17 |
USE_PHP= hash |
17 |
USE_PHP= hash |
18 |
USE_PHPEXT= yes |
18 |
USE_PHPEXT= yes |
19 |
USE_PHP_BUILD= yes |
19 |
USE_PHP_BUILD= yes |
|
|
20 |
INSTALL_TARGET= install-strip |
20 |
|
21 |
|
21 |
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} |
22 |
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} |
22 |
PORTDOCS= README.md |
23 |
PORTDOCS= README.md |
23 |
|
24 |
|
24 |
OPTIONS_DEFINE= DOCS |
25 |
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} |
25 |
OPTIONS_DEFAULT=STACKPROTECTOR |
26 |
PORTEXAMPLES= scrypt.php |
26 |
|
27 |
|
27 |
OPTIONS_RADIO= BUFFER_OVERFLOW_PROTECTION |
28 |
TESTDIR= ${PREFIX}/tests/${PKGNAMEPREFIX}${PORTNAME} |
28 |
OPTIONS_RADIO_BUFFER_OVERFLOW_PROTECTION= STACKPROTECTOR STACKPROTECTORALL |
29 |
PORTTEST= run-tests.php tests/params.phpt tests/vectors.phpt |
29 |
|
30 |
|
30 |
STACKPROTECTOR_DESC= Protect functions with vulnerable objects |
31 |
OPTIONS_DEFINE= DOCS EXAMPLES TEST |
31 |
STACKPROTECTORALL_DESC= Protect all functions |
|
|
32 |
|
32 |
|
33 |
STACKPROTECTOR_CFLAGS= -fstack-protector |
33 |
TEST_PLIST_FILES= ${PORTTEST:S|^|tests/${PKGNAMEPREFIX}${PORTNAME}/|} |
34 |
STACKPROTECTORALL_CFLAGS= -fstack-protector-all |
|
|
35 |
|
34 |
|
36 |
.include <bsd.port.pre.mk> |
35 |
.include <bsd.port.pre.mk> |
37 |
|
36 |
|
|
|
37 |
.if ${ARCH} == i386 && ${OSVERSION} < 1000036 |
38 |
CFLAGS+= -fstack-protector |
39 |
.endif |
40 |
|
38 |
.if ${ARCH} != amd64 && ${COMPILER_TYPE} == gcc |
41 |
.if ${ARCH} != amd64 && ${COMPILER_TYPE} == gcc |
39 |
post-patch: |
42 |
post-patch: |
40 |
${REINPLACE_CMD} '/emmintrin.h/d' ${WRKSRC}/config.m4 |
43 |
${REINPLACE_CMD} '/emmintrin.h/d' ${WRKSRC}/config.m4 |
Lines 41-49
Link Here
|
41 |
.endif |
44 |
.endif |
42 |
|
45 |
|
43 |
post-install: |
46 |
post-install: |
44 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/${PORTNAME}.so |
|
|
45 |
|
46 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
47 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
47 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} |
48 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} |
48 |
|
49 |
|
|
|
50 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
51 |
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR} |
52 |
|
53 |
.if ${PORT_OPTIONS:MTEST} |
54 |
@${MKDIR} ${STAGEDIR}${TESTDIR} |
55 |
${INSTALL_DATA} ${PORTTEST:M*.php:S|^|${WRKSRC}/|} ${STAGEDIR}${TESTDIR} |
56 |
(cd ${WRKSRC} && ${COPYTREE_SHARE} tests ${STAGEDIR}${TESTDIR}) |
57 |
.endif |
58 |
|
49 |
.include <bsd.port.post.mk> |
59 |
.include <bsd.port.post.mk> |