Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= libscrypt |
4 |
PORTNAME= libscrypt |
5 |
PORTVERSION= 1.19 |
5 |
PORTVERSION= 1.20 |
6 |
CATEGORIES= security |
6 |
CATEGORIES= security |
7 |
|
7 |
|
8 |
MAINTAINER= horia@racoviceanu.com |
8 |
MAINTAINER= horia@racoviceanu.com |
Lines 14-22
Link Here
|
14 |
USE_LDCONFIG= yes |
14 |
USE_LDCONFIG= yes |
15 |
USE_GITHUB= yes |
15 |
USE_GITHUB= yes |
16 |
GH_ACCOUNT= technion |
16 |
GH_ACCOUNT= technion |
17 |
GH_TAGNAME= 457ff86 |
17 |
GH_TAGNAME= c107c41 |
18 |
|
18 |
|
19 |
MAKE_ARGS+= CC="${CC}" LIBDIR=${PREFIX}/lib |
19 |
MAKE_ARGS+= CC="${CC}" LIBDIR="${PREFIX}"/lib |
20 |
|
20 |
|
21 |
PLIST_FILES= include/libscrypt.h \ |
21 |
PLIST_FILES= include/libscrypt.h \ |
22 |
lib/libscrypt.so \ |
22 |
lib/libscrypt.so \ |
Lines 25-50
Link Here
|
25 |
PORTDOCS= README.md |
25 |
PORTDOCS= README.md |
26 |
|
26 |
|
27 |
OPTIONS_DEFINE= DOCS |
27 |
OPTIONS_DEFINE= DOCS |
28 |
OPTIONS_DEFAULT=STACKPROTECTOR |
|
|
29 |
|
28 |
|
30 |
OPTIONS_SINGLE= BUFFER_OVERFLOW_PROTECTION |
|
|
31 |
OPTIONS_SINGLE_BUFFER_OVERFLOW_PROTECTION= STACKPROTECTOR STACKPROTECTORALL |
32 |
|
33 |
STACKPROTECTOR_DESC= Protect functions with vulnerable objects |
34 |
STACKPROTECTORALL_DESC= Protect all functions |
35 |
|
36 |
.include <bsd.port.pre.mk> |
29 |
.include <bsd.port.pre.mk> |
37 |
|
30 |
|
38 |
post-patch: |
31 |
post-patch: |
39 |
@${REINPLACE_CMD} -e 's|?=-|+=-|; s|-O2 ||' ${WRKSRC}/Makefile |
32 |
@${REINPLACE_CMD} -e 's|?=-|+=-|; s|-O2 ||' ${WRKSRC}/Makefile |
40 |
|
33 |
|
41 |
.if ${PORT_OPTIONS:MSTACKPROTECTORALL} |
|
|
42 |
@${REINPLACE_CMD} -e 's|stack-protector|&-all|' ${WRKSRC}/Makefile |
43 |
.endif |
44 |
|
45 |
.if ${ARCH} == i386 && ${COMPILER_TYPE} == gcc && ${OSVERSION} < 1000036 |
34 |
.if ${ARCH} == i386 && ${COMPILER_TYPE} == gcc && ${OSVERSION} < 1000036 |
46 |
@${REINPLACE_CMD} -e 's|-lscrypt|& -lssp_nonshared|; \ |
35 |
@${REINPLACE_CMD} -e 's|-lscrypt|& -lssp_nonshared|; \ |
47 |
s|\.version|&,-lssp_nonshared|' ${WRKSRC}/Makefile |
36 |
s|\.version|&,-lssp_nonshared|' ${WRKSRC}/Makefile |
|
|
37 |
.else |
38 |
@${REINPLACE_CMD} -e 's|-fstack-protector ||' ${WRKSRC}/Makefile |
48 |
.endif |
39 |
.endif |
49 |
|
40 |
|
50 |
@${REINPLACE_CMD} -e \ |
41 |
@${REINPLACE_CMD} -e \ |