summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/moduli-gen/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ssh/moduli-gen/Makefile')
-rw-r--r--usr.bin/ssh/moduli-gen/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/usr.bin/ssh/moduli-gen/Makefile b/usr.bin/ssh/moduli-gen/Makefile
new file mode 100644
index 00000000000..f5072657a35
--- /dev/null
+++ b/usr.bin/ssh/moduli-gen/Makefile
@@ -0,0 +1,32 @@
+# $OpenBSD: Makefile,v 1.1 2013/10/10 00:59:18 dtucker Exp $
+
+.include <bsd.own.mk>
+
+all: moduli
+
+# The larger ones will take many days, so if you're going to regen them run
+# it in a tmux session or something. The checkpoints should make it safe
+# to stop and restart.
+DHSIZE=1024 1536 2048 3072 4096 6144 8192
+
+.for bits in ${DHSIZE}
+MODULI_PARTS+=moduli.${bits}
+
+moduli.${bits}:
+ sh ${.CURDIR}/moduli-gen.sh ${.CURDIR} ${.CURDIR}/work ${bits}
+.endfor
+
+moduli: ${MODULI_PARTS}
+ ( \
+ echo -n '# $$Open'; echo 'BSD$$'; \
+ echo '# Time Type Tests Tries Size Generator Modulus'; \
+ cat ${MODULI_PARTS} \
+ ) > moduli
+
+update-moduli:
+ cp moduli ${BSDSRCDIR}/etc/moduli
+
+clean:
+.for bits in ${DHSIZE}
+ rm -f ${.OBJDIR}/moduli.${bits}.sieved.gz
+.endfor