Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= dropbear |
4 |
PORTNAME= dropbear |
5 |
PORTVERSION= 2016.74 |
5 |
PORTVERSION= 2017.75 |
6 |
CATEGORIES= security ipv6 |
6 |
CATEGORIES= security ipv6 |
7 |
MASTER_SITES= http://matt.ucc.asn.au/dropbear/releases/ |
7 |
MASTER_SITES= http://matt.ucc.asn.au/dropbear/releases/ |
8 |
|
8 |
|
Lines 19-26
Link Here
|
19 |
|
19 |
|
20 |
USE_RC_SUBR= ${PORTNAME} |
20 |
USE_RC_SUBR= ${PORTNAME} |
21 |
|
21 |
|
22 |
OPTIONS_DEFINE= STATIC |
22 |
OPTIONS_DEFINE= DH_GROUP1 SMALL_CODE STATIC |
|
|
23 |
OPTIONS_DEFAULT= AES128 AES256 CTR RSA SHA2_256 SHA2_512 SMALL_CODE TWOFISH128 TWOFISH256 |
24 |
OPTIONS_MULTI= ENC KEY MAC MODE |
25 |
OPTIONS_MULTI_ENC= AES128 3DES AES256 BLOWFISH TWOFISH256 TWOFISH128 |
26 |
OPTIONS_MULTI_MODE= CBC CTR |
27 |
OPTIONS_MULTI_KEY= ECDSA DSA RSA |
28 |
OPTIONS_MULTI_MAC= MD5 SHA1 SHA1_96 SHA2_256 SHA2_512 |
23 |
|
29 |
|
|
|
30 |
3DES_DESC= Enable 3DES-based encryption |
31 |
AES128_DESC= Enable AES128-based encryption |
32 |
AES256_DESC= Enable AES256-based encryption |
33 |
TWOFISH128_DESC= Enable Twofish128-based encryption |
34 |
TWOFISH256_DESC= Enable Twofish256-based encryption |
35 |
BLOWFISH_DESC= Enable Blowfish-based encryption |
36 |
|
37 |
DH_GROUP1_DESC= Enable Group1 Diffie-Hellman (less secure) |
38 |
|
39 |
CBC_DESC= Use CBC mode for ciphers (less secure) |
40 |
CTR_DESC= Use CTR mode for ciphers (more secure) |
41 |
|
42 |
ECDSA_DESC= Enable ECDSA public key support |
43 |
DSA_DESC= Enable DSA public key support |
44 |
RSA_DESC= Enable RSA public key support |
45 |
|
46 |
MD5_DESC= Enable MD5 MAC (broken) |
47 |
SHA1_DESC= Enable SHA1 MAC (less secure) |
48 |
SHA1_96_DESC= Enable SHA1_96 MAC (less secure) |
49 |
SHA2_256_DESC= Enable SHA2_256 MAC |
50 |
SHA2_512_DESC= Enable SHA2_512 MAC |
51 |
|
52 |
SMALL_CODE_DESC= Make binary smaller in exchange for 50% performance hit |
53 |
|
24 |
STATIC_LDFLAGS= -static |
54 |
STATIC_LDFLAGS= -static |
25 |
|
55 |
|
26 |
post-patch: |
56 |
post-patch: |
Lines 30-35
Link Here
|
30 |
@${REINPLACE_CMD} -e "s,make clean,\$${MAKE} clean," \ |
60 |
@${REINPLACE_CMD} -e "s,make clean,\$${MAKE} clean," \ |
31 |
${WRKSRC}/libtomcrypt/Makefile.in |
61 |
${WRKSRC}/libtomcrypt/Makefile.in |
32 |
|
62 |
|
|
|
63 |
post-patch-SMALL_CODE-off: |
64 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_SMALL_CODE,/*#define DROPBEAR_SMALL_CODE*/,g" \ |
65 |
${WRKSRC}/options.h |
66 |
|
67 |
post-patch-3DES-off: |
68 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_3DES,/*#define DROPBEAR_3DES*/,g" \ |
69 |
${WRKSRC}/options.h |
70 |
|
71 |
post-patch-AES128-off: |
72 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_AES128,/*#define DROPBEAR_AES128*/,g" \ |
73 |
${WRKSRC}/options.h |
74 |
|
75 |
post-patch-AES256-off: |
76 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_AES256,/*#define DROPBEAR_AES256*/,g" \ |
77 |
${WRKSRC}/options.h |
78 |
|
79 |
post-patch-TWOFISH256-off: |
80 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_TWOFISH256,/*#define DROPBEAR_TWOFISH256*/,g" \ |
81 |
${WRKSRC}/options.h |
82 |
|
83 |
post-patch-TWOFISH128-off: |
84 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_TWOFISH128,/*#define DROPBEAR_TWOFISH128*/,g" \ |
85 |
${WRKSRC}/options.h |
86 |
|
87 |
post-patch-BLOWFISH-on: |
88 |
@${REINPLACE_CMD} -e "s,/\*#define DROPBEAR_BLOWFISH\*/,#define DROPBEAR_BLOWFISH,g" \ |
89 |
${WRKSRC}/options.h |
90 |
|
91 |
post-patch-CBC-off: |
92 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_ENABLE_CBC_MODE,/*#define DROPBEAR_ENABLE_CBC_MODE*/,g" \ |
93 |
${WRKSRC}/options.h |
94 |
|
95 |
post-patch-CTR-off: |
96 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_ENABLE_CTR_MODE,/*#define DROPBEAR_ENABLE_CTR_MODE*/,g" \ |
97 |
${WRKSRC}/options.h |
98 |
|
99 |
post-patch-DH_GROUP1-off: |
100 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_DH_GROUP1 1,/*#define DROPBEAR_DH_GROUP1 1*/,g" \ |
101 |
${WRKSRC}/options.h |
102 |
|
103 |
post-patch-DSA-off: |
104 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_DSS,/*#define DROPBEAR_DSS*/,g" \ |
105 |
${WRKSRC}/options.h |
106 |
|
107 |
post-patch-RSA-off: |
108 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_RSA,/*#define DROPBEAR_RSA*/,g" \ |
109 |
${WRKSRC}/options.h |
110 |
|
111 |
post-patch-ECDSA-off: |
112 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_ECDSA,/*#define DROPBEAR_ECDSA*/,g" \ |
113 |
${WRKSRC}/options.h |
114 |
|
115 |
post-patch-MD5-off: |
116 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_MD5_HMAC,/*#define DROPBEAR_MD5_HMAC*/,g" \ |
117 |
${WRKSRC}/options.h |
118 |
|
119 |
post-patch-SHA1-off: |
120 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_SHA1_HMAC,/*#define DROPBEAR_SHA1_HMAC*/,g" \ |
121 |
${WRKSRC}/options.h |
122 |
|
123 |
post-patch-SHA1_96-off: |
124 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_SHA1_96_HMAC,/*#define DROPBEAR_SHA1_96_HMAC*/,g" \ |
125 |
${WRKSRC}/options.h |
126 |
|
127 |
post-patch-SHA2_256-off: |
128 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_SHA2_256_HMAC,/*#define DROPBEAR_SHA2_256_HMAC*/,g" \ |
129 |
${WRKSRC}/options.h |
130 |
|
131 |
post-patch-SHA2_512-off: |
132 |
@${REINPLACE_CMD} -e "s,#define DROPBEAR_SHA2_512_HMAC,/*#define DROPBEAR_SHA2_512_HMAC*/,g" \ |
133 |
${WRKSRC}/options.h |
134 |
|
33 |
do-install: |
135 |
do-install: |
34 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/dropbear |
136 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/dropbear |
35 |
${INSTALL_PROGRAM} ${WRKSRC}/dbclient ${STAGEDIR}${PREFIX}/bin |
137 |
${INSTALL_PROGRAM} ${WRKSRC}/dbclient ${STAGEDIR}${PREFIX}/bin |