Commit 03f8631 1 parent dee09ff commit 03f8631 Copy full SHA for 03f8631
File tree 3 files changed +32
-21
lines changed
3 files changed +32
-21
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ google
115
115
GOST
116
116
gpg
117
117
GPUs
118
+ gui
118
119
hashicorp
119
120
hccap
120
121
hicolor
@@ -238,6 +239,7 @@ sonarsource
238
239
sonoma
239
240
squashfs
240
241
ssd
242
+ sse
241
243
SSSE
242
244
stdlib
243
245
strderr
Original file line number Diff line number Diff line change 70
70
echo " "
71
71
echo " ---------------------------- BUILDING -----------------------------"
72
72
73
- if [[ " $arch " == " x86_64" ]]; then
73
+ if [[ " $arch " == " i686" ]]; then
74
+ # CPU (OMP and extensions fallback)
75
+ do_configure " $X86_NO_OPENMP " --enable-simd=sse2 CPPFLAGS=" -D_SNAP -D_BOXED" && do_build ../run/john-sse2
76
+ do_configure " $X86_REGULAR " --enable-simd=sse2 CPPFLAGS=" -D_SNAP -D_BOXED -DOMP_FALLBACK -DOMP_FALLBACK_BINARY=\"\\\" john-sse2\\\"\" " && do_build ../run/john-sse2-omp
77
+ do_configure " $X86_NO_OPENMP " --enable-simd=avx CPPFLAGS=" -D_SNAP -D_BOXED" && do_build ../run/john-avx
78
+ do_configure " $X86_REGULAR " --enable-simd=avx CPPFLAGS=" -D_SNAP -D_BOXED -DOMP_FALLBACK -DOMP_FALLBACK_BINARY=\"\\\" john-avx\\\"\" -DCPU_FALLBACK -DCPU_FALLBACK_BINARY=\"\\\" john-sse2-omp\\\"\" " && do_build ../run/john-avx-omp
79
+ do_configure " $X86_NO_OPENMP " --enable-simd=avx2 CPPFLAGS=" -D_SNAP -D_BOXED" && do_build ../run/john-avx2
80
+ do_configure " $X86_REGULAR " --enable-simd=avx2 CPPFLAGS=" -D_SNAP -D_BOXED -DOMP_FALLBACK -DOMP_FALLBACK_BINARY=\"\\\" john-avx2\\\"\" -DCPU_FALLBACK -DCPU_FALLBACK_BINARY=\"\\\" john-avx-omp\\\"\" " && do_build ../run/john-avx2-omp
81
+ BINARY=" john-avx2-omp"
82
+ OPENCL_SUPPORT=" Yes"
83
+
84
+ elif [[ " $arch " == " x86_64" ]]; then
74
85
# x86_64 CPU (OMP and SIMD fallback)
75
86
do_configure " $X86_NO_OPENMP " --enable-simd=avx CPPFLAGS=" -D_SNAP -D_BOXED" && do_build ../run/john-avx
76
87
do_configure " $X86_REGULAR " --enable-simd=avx CPPFLAGS=" -D_SNAP -D_BOXED -DOMP_FALLBACK_BINARY=\"\\\" john-avx\\\"\" " && do_build ../run/john-avx-omp
Original file line number Diff line number Diff line change 21
21
# More info at https://github.com/openwall/john-packages
22
22
---
23
23
name : john-the-ripper
24
- version : bleeding
24
+ version : v2.0.0
25
25
26
- base : core24
26
+ base : core18
27
27
confinement : strict
28
28
grade : stable # TODO: [stable or devel] edit before release (BLEEDING_RELEASE)
29
29
30
- assumes : [snapd2.65]
31
- adopt-info : john-the-ripper
30
+ assumes : [snapd2.41]
32
31
33
32
license : GPL-2.0
34
33
title : John the Ripper CE Auditing Tool
@@ -100,13 +99,18 @@ parts:
100
99
101
100
override-build : |
102
101
cp "$SNAPCRAFT_STAGE"/build.sh .
102
+ cp "$SNAPCRAFT_STAGE"/com.openwall.John.png ./icon.png
103
103
./build.sh
104
104
105
- craftctl set version="$(cat version.txt)"
105
+ # craftctl set version="$(cat version.txt)"
106
106
107
107
mkdir -p ../install/etc/bash_completion
108
108
cp run/john.*_completion ../install/etc/bash_completion/
109
109
110
+ mkdir -p ../install/share/icons
111
+ cp icon.png ../install/share/icons/icon.png
112
+ cp icon.png ../install/share/icons/com.openwall.John.png
113
+
110
114
build-packages :
111
115
- build-essential
112
116
- libssl-dev
@@ -119,31 +123,24 @@ parts:
119
123
- curl
120
124
- patch
121
125
# OpenCL stuff
122
- - on amd64 :
123
- - libpocl-dev
124
- - ocl-icd-opencl-dev
125
- - pocl-opencl-icd
126
+ - libpocl-dev
127
+ - ocl-icd-opencl-dev
128
+ - pocl-opencl-icd
126
129
- on arm64 :
127
130
- libpocl-dev
128
131
- ocl-icd-opencl-dev
129
132
- pocl-opencl-icd
130
133
134
+ stage-packages :
135
+ - libgomp1
136
+ - libpcap0.8
137
+ - ocl-icd-libopencl1
138
+
131
139
organize :
132
140
../build/run/ : bin/
133
141
../build/doc/ : doc/
134
142
../build/README.md : README.md
135
143
136
- libs :
137
- plugin : nil
138
-
139
- stage-packages :
140
- - libgomp1
141
- - libpcap0.8t64
142
- - on amd64 :
143
- - ocl-icd-libopencl1
144
- - on arm64 :
145
- - ocl-icd-libopencl1
146
-
147
144
john-packages :
148
145
plugin : nil
149
146
source : .
@@ -152,6 +149,7 @@ parts:
152
149
cp deploy/metadata/com.openwall.John.desktop .
153
150
cp deploy/metadata/run-john.sh .
154
151
cp deploy/snap/build.sh $SNAPCRAFT_STAGE
152
+ cp deploy/metadata/com.openwall.John.png $SNAPCRAFT_STAGE
155
153
156
154
organize :
157
155
../build/com.openwall.John.desktop : com.openwall.John.desktop
You can’t perform that action at this time.
0 commit comments