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