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
@@ -50,42 +49,42 @@ apps:
50
49
john-the-ripper :
51
50
command : bin/john
52
51
plugs : [home, removable-media]
53
- opencl :
54
- command : bin/john
55
- plugs : [home, removable-media]
56
- dmg2john :
57
- command : bin/dmg2john
58
- plugs : [home, removable-media]
59
- hccap2john :
60
- command : bin/hccap2john
61
- plugs : [home, removable-media]
62
- racf2john :
63
- command : bin/racf2john
64
- plugs : [home, removable-media]
65
- vncpcap2john :
66
- command : bin/vncpcap2john
67
- plugs : [home, removable-media]
68
- zip2john :
69
- command : bin/zip2john
70
- plugs : [home, removable-media]
71
- gpg2john :
72
- command : bin/gpg2john
73
- plugs : [home, removable-media]
74
- keepass2john :
75
- command : bin/keepass2john
76
- plugs : [home, removable-media]
77
- putty2john :
78
- command : bin/putty2john
79
- plugs : [home, removable-media]
80
- rar2john :
81
- command : bin/rar2john
82
- plugs : [home, removable-media]
83
- uaf2john :
84
- command : bin/uaf2john
85
- plugs : [home, removable-media]
86
- wpapcap2john :
87
- command : bin/wpapcap2john
88
- plugs : [home, removable-media]
52
+ # opencl:
53
+ # command: bin/john
54
+ # plugs: [home, removable-media]
55
+ # dmg2john:
56
+ # command: bin/dmg2john
57
+ # plugs: [home, removable-media]
58
+ # hccap2john:
59
+ # command: bin/hccap2john
60
+ # plugs: [home, removable-media]
61
+ # racf2john:
62
+ # command: bin/racf2john
63
+ # plugs: [home, removable-media]
64
+ # vncpcap2john:
65
+ # command: bin/vncpcap2john
66
+ # plugs: [home, removable-media]
67
+ # zip2john:
68
+ # command: bin/zip2john
69
+ # plugs: [home, removable-media]
70
+ # gpg2john:
71
+ # command: bin/gpg2john
72
+ # plugs: [home, removable-media]
73
+ # keepass2john:
74
+ # command: bin/keepass2john
75
+ # plugs: [home, removable-media]
76
+ # putty2john:
77
+ # command: bin/putty2john
78
+ # plugs: [home, removable-media]
79
+ # rar2john:
80
+ # command: bin/rar2john
81
+ # plugs: [home, removable-media]
82
+ # uaf2john:
83
+ # command: bin/uaf2john
84
+ # plugs: [home, removable-media]
85
+ # wpapcap2john:
86
+ # command: bin/wpapcap2john
87
+ # plugs: [home, removable-media]
89
88
info :
90
89
command : bin/run-john.sh
91
90
desktop : com.openwall.John.desktop
@@ -100,13 +99,17 @@ parts:
100
99
101
100
override-build : |
102
101
cp "$SNAPCRAFT_STAGE"/build.sh .
103
- ./build.sh
102
+ cp "$SNAPCRAFT_STAGE"/com.openwall.John.png ./icon.png
103
+ echo "" > run/john; chmod +x run/john #./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
+
110
113
build-packages :
111
114
- build-essential
112
115
- libssl-dev
@@ -119,31 +122,24 @@ parts:
119
122
- curl
120
123
- patch
121
124
# OpenCL stuff
122
- - on amd64 :
123
- - libpocl-dev
124
- - ocl-icd-opencl-dev
125
- - pocl-opencl-icd
125
+ - libpocl-dev
126
+ - ocl-icd-opencl-dev
127
+ - pocl-opencl-icd
126
128
- on arm64 :
127
129
- libpocl-dev
128
130
- ocl-icd-opencl-dev
129
131
- pocl-opencl-icd
130
132
133
+ stage-packages :
134
+ - libgomp1
135
+ - libpcap0.8
136
+ - ocl-icd-libopencl1
137
+
131
138
organize :
132
139
../build/run/ : bin/
133
140
../build/doc/ : doc/
134
141
../build/README.md : README.md
135
142
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
143
john-packages :
148
144
plugin : nil
149
145
source : .
@@ -152,6 +148,7 @@ parts:
152
148
cp deploy/metadata/com.openwall.John.desktop .
153
149
cp deploy/metadata/run-john.sh .
154
150
cp deploy/snap/build.sh $SNAPCRAFT_STAGE
151
+ cp deploy/metadata/com.openwall.John.png $SNAPCRAFT_STAGE
155
152
156
153
organize :
157
154
../build/com.openwall.John.desktop : com.openwall.John.desktop
0 commit comments