1 |
commit: f13acbb05d582cb0caa21e984f78821a01f81cda |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 2 10:23:44 2020 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 2 10:24:11 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f13acbb0 |
7 |
|
8 |
app-eselect/eselect-metasploit: remove last-rited pkg |
9 |
|
10 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
11 |
|
12 |
.../eselect-metasploit-0.16.ebuild | 40 ---- |
13 |
.../eselect-metasploit-0.17.ebuild | 40 ---- |
14 |
app-eselect/eselect-metasploit/files/91metasploit | 8 - |
15 |
.../files/metasploit.eselect-0.13 | 207 --------------------- |
16 |
.../files/metasploit.eselect-0.17 | 197 -------------------- |
17 |
.../eselect-metasploit/files/msfloader-0.16 | 41 ---- |
18 |
app-eselect/eselect-metasploit/files/msfrpcd.confd | 16 -- |
19 |
app-eselect/eselect-metasploit/files/msfrpcd.initd | 21 --- |
20 |
app-eselect/eselect-metasploit/metadata.xml | 8 - |
21 |
9 files changed, 578 deletions(-) |
22 |
|
23 |
diff --git a/app-eselect/eselect-metasploit/eselect-metasploit-0.16.ebuild b/app-eselect/eselect-metasploit/eselect-metasploit-0.16.ebuild |
24 |
deleted file mode 100644 |
25 |
index 3af96b65608..00000000000 |
26 |
--- a/app-eselect/eselect-metasploit/eselect-metasploit-0.16.ebuild |
27 |
+++ /dev/null |
28 |
@@ -1,40 +0,0 @@ |
29 |
-# Copyright 1999-2019 Gentoo Authors |
30 |
-# Distributed under the terms of the GNU General Public License v2 |
31 |
- |
32 |
-EAPI=6 |
33 |
- |
34 |
-inherit multilib |
35 |
- |
36 |
-DESCRIPTION="eselect module for metasploit" |
37 |
-HOMEPAGE="https://www.pentoo.ch/" |
38 |
-SRC_URI="" |
39 |
- |
40 |
-LICENSE="GPL-2" |
41 |
-SLOT="0" |
42 |
-KEYWORDS="~amd64 ~arm ~x86" |
43 |
-IUSE="" |
44 |
- |
45 |
-DEPEND="app-admin/eselect |
46 |
- !<net-analyzer/metasploit-4.6" |
47 |
-RDEPEND="${DEPEND}" |
48 |
- |
49 |
-S=${WORKDIR} |
50 |
- |
51 |
-src_install() { |
52 |
- #force to use the outdated bundled version of metasm |
53 |
- doenvd "${FILESDIR}"/91metasploit |
54 |
- |
55 |
- newinitd "${FILESDIR}"/msfrpcd.initd msfrpcd |
56 |
- newconfd "${FILESDIR}"/msfrpcd.confd msfrpcd |
57 |
- |
58 |
- insinto /usr/share/eselect/modules |
59 |
- newins "${FILESDIR}/metasploit.eselect-0.13" metasploit.eselect |
60 |
- |
61 |
- newbin "${FILESDIR}"/msfloader-${PV} msfloader |
62 |
-} |
63 |
- |
64 |
-pkg_postinst() { |
65 |
- "${EROOT}"/usr/bin/eselect metasploit set --use-old 1 |
66 |
- elog "To switch between installed slots, execute as root:" |
67 |
- elog " # eselect metasploit set [slot number]" |
68 |
-} |
69 |
|
70 |
diff --git a/app-eselect/eselect-metasploit/eselect-metasploit-0.17.ebuild b/app-eselect/eselect-metasploit/eselect-metasploit-0.17.ebuild |
71 |
deleted file mode 100644 |
72 |
index 1d5193b5460..00000000000 |
73 |
--- a/app-eselect/eselect-metasploit/eselect-metasploit-0.17.ebuild |
74 |
+++ /dev/null |
75 |
@@ -1,40 +0,0 @@ |
76 |
-# Copyright 1999-2019 Gentoo Authors |
77 |
-# Distributed under the terms of the GNU General Public License v2 |
78 |
- |
79 |
-EAPI=6 |
80 |
- |
81 |
-inherit multilib |
82 |
- |
83 |
-DESCRIPTION="eselect module for metasploit" |
84 |
-HOMEPAGE="https://www.pentoo.ch/" |
85 |
-SRC_URI="" |
86 |
- |
87 |
-LICENSE="GPL-2" |
88 |
-SLOT="0" |
89 |
-KEYWORDS="~amd64 ~arm ~x86" |
90 |
-IUSE="" |
91 |
- |
92 |
-DEPEND="app-admin/eselect |
93 |
- !<net-analyzer/metasploit-4.6" |
94 |
-RDEPEND="${DEPEND}" |
95 |
- |
96 |
-S=${WORKDIR} |
97 |
- |
98 |
-src_install() { |
99 |
- #force to use the outdated bundled version of metasm |
100 |
- doenvd "${FILESDIR}"/91metasploit |
101 |
- |
102 |
- newinitd "${FILESDIR}"/msfrpcd.initd msfrpcd |
103 |
- newconfd "${FILESDIR}"/msfrpcd.confd msfrpcd |
104 |
- |
105 |
- insinto /usr/share/eselect/modules |
106 |
- newins "${FILESDIR}/metasploit.eselect-0.17" metasploit.eselect |
107 |
- |
108 |
- newbin "${FILESDIR}"/msfloader-0.16 msfloader |
109 |
-} |
110 |
- |
111 |
-pkg_postinst() { |
112 |
- "${EROOT}"/usr/bin/eselect metasploit set --use-old 1 |
113 |
- elog "To switch between installed slots, execute as root:" |
114 |
- elog " # eselect metasploit set [slot number]" |
115 |
-} |
116 |
|
117 |
diff --git a/app-eselect/eselect-metasploit/files/91metasploit b/app-eselect/eselect-metasploit/files/91metasploit |
118 |
deleted file mode 100644 |
119 |
index ce58b5043dd..00000000000 |
120 |
--- a/app-eselect/eselect-metasploit/files/91metasploit |
121 |
+++ /dev/null |
122 |
@@ -1,8 +0,0 @@ |
123 |
-MSF_DATABASE_CONFIG=/usr/lib/metasploit/config/database.yml |
124 |
- |
125 |
-# needed because MSF ships an old version of metasm |
126 |
-# which isn't compatible with the new one |
127 |
-MSF_LOCAL_LIB="/usr/lib/metasploit/lib/metasm" |
128 |
- |
129 |
-# needed because MSF doesn't know where it is since the alzheimer's |
130 |
-MSF_ROOT=/usr/lib/metasploit |
131 |
|
132 |
diff --git a/app-eselect/eselect-metasploit/files/metasploit.eselect-0.13 b/app-eselect/eselect-metasploit/files/metasploit.eselect-0.13 |
133 |
deleted file mode 100644 |
134 |
index be4f780e935..00000000000 |
135 |
--- a/app-eselect/eselect-metasploit/files/metasploit.eselect-0.13 |
136 |
+++ /dev/null |
137 |
@@ -1,207 +0,0 @@ |
138 |
-# -*-eselect-*- vim: ft=eselect |
139 |
-# Copyright 2005-2015 Gentoo Foundation |
140 |
-# Distributed under the terms of the GNU General Public License v2 or later |
141 |
-# $ |
142 |
- |
143 |
-DESCRIPTION="Control which metaploit version is active" |
144 |
-MAINTAINER="zerochaos@××××××.ch" |
145 |
- |
146 |
-###WARNING: don't even think of using this insanity for a reference (but it works,mostly) |
147 |
-#base idea from kernel.eselect, get_libdir from php.eselect with --use-old from opencl.eselect |
148 |
-#all modified randomly until it worked, entropy is wonderful |
149 |
-###/WARNING |
150 |
- |
151 |
-inherit multilib |
152 |
- |
153 |
-get_libdir() { |
154 |
- local dir |
155 |
- if has lib64 $(list_libdirs); then |
156 |
- echo lib64 |
157 |
- return |
158 |
- fi |
159 |
- echo lib |
160 |
-} |
161 |
- |
162 |
-MSFPATH="/usr/$(get_libdir)/metasploit" |
163 |
- |
164 |
-# find a list of metasploit symlink targets and sort them |
165 |
-find_targets() { |
166 |
- local f |
167 |
- for f in "${EROOT}${MSFPATH}"[[:digit:]]*; do |
168 |
- [[ -d ${f} ]] && basename "${f}" |
169 |
- done | LC_ALL=C sort |
170 |
-} |
171 |
- |
172 |
-# remove the metasploit symlink |
173 |
-remove_symlink() { |
174 |
- for i in $(qlist metasploit | grep $(canonicalise "${EROOT}${MSFPATH}")/msf) |
175 |
- do |
176 |
- if [ -L /usr/bin/$(echo ${i} | awk -F'/' '{print $5}') ]; then |
177 |
- unlink /usr/bin/$(echo ${i} | awk -F'/' '{print $5}') || die -q "failed to unlink ${i}" |
178 |
- fi |
179 |
- done |
180 |
- if [ -L ${EROOT}${MSFPATH} ]; then |
181 |
- unlink "${EROOT}${MSFPATH}" || die -q "failed to unlink ${EROOT}${MSFPATH}" |
182 |
- elif [ -e ${EROOT}${MSFPATH} ]; then |
183 |
- die -q "${EROOT}${MSFPATH} exists but is not a symlink" |
184 |
- fi |
185 |
-} |
186 |
- |
187 |
-# set the metasploit symlink |
188 |
-set_symlink() { |
189 |
- local target=$1 |
190 |
- |
191 |
- if is_number "${target}"; then |
192 |
- local targets=( $(find_targets) ) |
193 |
- target=${targets[target-1]} |
194 |
- fi |
195 |
- |
196 |
- if [[ -z ${target} ]]; then |
197 |
- die -q "Target \"$1\" doesn't appear to be valid!" |
198 |
- elif [[ -d ${EROOT}/usr/$(get_libdir)/${target} ]]; then |
199 |
- ln -s "${target}" "${EROOT}${MSFPATH}" |
200 |
- for i in $(qlist metasploit | grep /usr/$(get_libdir)/${target}/msf) |
201 |
- do |
202 |
- ln -s /usr/bin/msfloader /usr/bin/$(echo ${i} | awk -F'/' '{print $5}') |
203 |
- done |
204 |
- #this elif looks like it is trying to support setting by slot only, |
205 |
- #but that isn't supported by the rest of the script... fix or remove? |
206 |
- elif [[ -d ${EROOT}${MSFPATH}${target} ]]; then |
207 |
- ln -s "metasploit${target}" "${EROOT}${MSFPATH}" |
208 |
- for i in $(qlist metasploit | grep /usr/$(get_libdir)/${target}/msf) |
209 |
- do |
210 |
- ln -s /usr/bin/msfloader /usr/bin/$(echo ${i} | awk -F'/' '{print $5}') |
211 |
- done |
212 |
- else |
213 |
- die -q "Target \"$1\" doesn't appear to be valid!" |
214 |
- fi |
215 |
-} |
216 |
- |
217 |
-# wrapper to safely set the symlink |
218 |
-set_symlink_safe() { |
219 |
- if [[ -L ${EROOT}${MSFPATH} ]]; then |
220 |
- # existing symlink |
221 |
- remove_symlink || die -q "Couldn't remove existing symlink" |
222 |
- set_symlink "$1" || die -q "Couldn't set a new symlink" |
223 |
- #um, why is there an env-update here? |
224 |
- env-update |
225 |
- elif [[ -e ${EROOT}${MSFPATH} ]]; then |
226 |
- # we have something strange |
227 |
- die -q "${EROOT}${MSFPATH} exists but is not a symlink" |
228 |
- else |
229 |
- set_symlink "$1" || die -q "Couldn't set a new symlink" |
230 |
- fi |
231 |
-} |
232 |
- |
233 |
-### show action ### |
234 |
- |
235 |
-describe_show() { |
236 |
- echo "Show the current metasploit symlink" |
237 |
-} |
238 |
- |
239 |
-do_show() { |
240 |
- write_list_start "Current metasploit symlink:" |
241 |
- if [[ -L ${EROOT}${MSFPATH} ]]; then |
242 |
- local metasploit=$(canonicalise "${EROOT}${MSFPATH}") |
243 |
- write_kv_list_entry "${metasploit%/}" "" |
244 |
- else |
245 |
- write_kv_list_entry "(unset)" "" |
246 |
- fi |
247 |
-} |
248 |
- |
249 |
-### list action ### |
250 |
- |
251 |
-describe_list() { |
252 |
- echo "List available metasploit symlink targets" |
253 |
-} |
254 |
- |
255 |
-do_list() { |
256 |
- local i targets=( $(find_targets) ) |
257 |
- |
258 |
- write_list_start "Available metasploit symlink targets:" |
259 |
- for (( i = 0; i < ${#targets[@]}; i++ )); do |
260 |
- [[ ${targets[i]} = \ |
261 |
- $(basename "$(canonicalise "${EROOT}${MSFPATH}")") ]] \ |
262 |
- && targets[i]=$(highlight_marker "${targets[i]}") |
263 |
- done |
264 |
- write_numbered_list -m "(none found)" "${targets[@]}" |
265 |
-} |
266 |
- |
267 |
-### set action ### |
268 |
- |
269 |
-describe_set() { |
270 |
- echo "Set a new metasploit symlink target" |
271 |
-} |
272 |
- |
273 |
-describe_set_parameters() { |
274 |
- echo "<target>" |
275 |
-} |
276 |
- |
277 |
-describe_set_options() { |
278 |
- echo "<target> : Target name or number (from 'list' action)" |
279 |
- echo "--use-old : If an implementation is already set, use that one instead" |
280 |
-} |
281 |
- |
282 |
-do_set() { |
283 |
- local action="error" |
284 |
- local current=$(basename "$(canonicalise "${EROOT}${MSFPATH}")") |
285 |
- local available=( $(find_targets) ) |
286 |
- local new |
287 |
- local opt |
288 |
- |
289 |
- while [[ ${#@} -gt 0 ]] ; do |
290 |
- opt=$1 |
291 |
- shift |
292 |
- case ${opt} in |
293 |
- --use-old) |
294 |
- if [[ -n "${current}" ]] && has "${current}" "${available[@]}"; then |
295 |
- action="old-implementation" |
296 |
- fi |
297 |
- ;; |
298 |
- metasploit*) |
299 |
- if [[ "${action}" != "old-implementation" ]] ; then |
300 |
- action="set-implementation" |
301 |
- fi |
302 |
- |
303 |
- if has ${opt} ${available[@]}; then |
304 |
- new="${opt}" |
305 |
- else |
306 |
- echo "You need to emerge ${opt} before you try to eselect it" |
307 |
- fi |
308 |
- ;; |
309 |
- *) |
310 |
- if [[ "${action}" != "old-implementation" ]] ; then |
311 |
- action="set-implementation" |
312 |
- fi |
313 |
- |
314 |
- if is_number ${opt} ; then |
315 |
- #targets=( $(get_implementations) ) |
316 |
- new=${available[opt - 1]} |
317 |
- if [[ -z ${new} ]] ; then |
318 |
- die -q "Unrecognized option: ${opt}" |
319 |
- fi |
320 |
- else |
321 |
- die -q "Unrecognized option: ${opt}" |
322 |
- fi |
323 |
- ;; |
324 |
- esac |
325 |
- done |
326 |
- |
327 |
- case ${action} in |
328 |
- old-implementation) |
329 |
- set_symlink_safe ${current} |
330 |
- return $? |
331 |
- ;; |
332 |
- set-implementation) |
333 |
- if [[ -n ${new} ]] ; then |
334 |
- set_symlink_safe ${new} |
335 |
- return $? |
336 |
- else |
337 |
- die -q "Please specify an implementation to set" |
338 |
- fi |
339 |
- ;; |
340 |
- *) |
341 |
- die -q "Invalid usage of set action." |
342 |
- ;; |
343 |
- esac |
344 |
-} |
345 |
|
346 |
diff --git a/app-eselect/eselect-metasploit/files/metasploit.eselect-0.17 b/app-eselect/eselect-metasploit/files/metasploit.eselect-0.17 |
347 |
deleted file mode 100644 |
348 |
index f27023354b5..00000000000 |
349 |
--- a/app-eselect/eselect-metasploit/files/metasploit.eselect-0.17 |
350 |
+++ /dev/null |
351 |
@@ -1,197 +0,0 @@ |
352 |
-# -*-eselect-*- vim: ft=eselect |
353 |
-# Copyright 2005-2019 Gentoo Authors |
354 |
-# Distributed under the terms of the GNU General Public License v2 or later |
355 |
-# $ |
356 |
- |
357 |
-DESCRIPTION="Control which metaploit version is active" |
358 |
-MAINTAINER="zerochaos@××××××.ch" |
359 |
- |
360 |
-###WARNING: don't even think of using this insanity for a reference (but it works,mostly) |
361 |
-#base idea from kernel.eselect with --use-old from opencl.eselect |
362 |
-#all modified randomly until it worked, entropy is wonderful |
363 |
-###/WARNING |
364 |
- |
365 |
- |
366 |
-MSFPATH="/usr/lib/metasploit" |
367 |
- |
368 |
-# find a list of metasploit symlink targets and sort them |
369 |
-find_targets() { |
370 |
- local f |
371 |
- for f in "${EROOT}${MSFPATH}"[[:digit:]]*; do |
372 |
- [[ -d ${f} ]] && basename "${f}" |
373 |
- done | LC_ALL=C sort |
374 |
-} |
375 |
- |
376 |
-# remove the metasploit symlink |
377 |
-remove_symlink() { |
378 |
- for i in $(qlist metasploit | grep $(canonicalise "${EROOT}${MSFPATH}")/msf) |
379 |
- do |
380 |
- if [ -L /usr/bin/$(echo ${i} | awk -F'/' '{print $5}') ]; then |
381 |
- unlink /usr/bin/$(echo ${i} | awk -F'/' '{print $5}') || die -q "failed to unlink ${i}" |
382 |
- fi |
383 |
- done |
384 |
- if [ -L ${EROOT}${MSFPATH} ]; then |
385 |
- unlink "${EROOT}${MSFPATH}" || die -q "failed to unlink ${EROOT}${MSFPATH}" |
386 |
- elif [ -e ${EROOT}${MSFPATH} ]; then |
387 |
- die -q "${EROOT}${MSFPATH} exists but is not a symlink" |
388 |
- fi |
389 |
-} |
390 |
- |
391 |
-# set the metasploit symlink |
392 |
-set_symlink() { |
393 |
- local target=$1 |
394 |
- |
395 |
- if is_number "${target}"; then |
396 |
- local targets=( $(find_targets) ) |
397 |
- target=${targets[target-1]} |
398 |
- fi |
399 |
- |
400 |
- if [[ -z ${target} ]]; then |
401 |
- die -q "Target \"$1\" doesn't appear to be valid!" |
402 |
- elif [[ -d ${EROOT}/usr/lib/${target} ]]; then |
403 |
- ln -s "${target}" "${EROOT}${MSFPATH}" |
404 |
- for i in $(qlist metasploit | grep /usr/lib/${target}/msf) |
405 |
- do |
406 |
- ln -s /usr/bin/msfloader /usr/bin/$(echo ${i} | awk -F'/' '{print $5}') |
407 |
- done |
408 |
- #this elif looks like it is trying to support setting by slot only, |
409 |
- #but that isn't supported by the rest of the script... fix or remove? |
410 |
- elif [[ -d ${EROOT}${MSFPATH}${target} ]]; then |
411 |
- ln -s "metasploit${target}" "${EROOT}${MSFPATH}" |
412 |
- for i in $(qlist metasploit | grep /usr/lib/${target}/msf) |
413 |
- do |
414 |
- ln -s /usr/bin/msfloader /usr/bin/$(echo ${i} | awk -F'/' '{print $5}') |
415 |
- done |
416 |
- else |
417 |
- die -q "Target \"$1\" doesn't appear to be valid!" |
418 |
- fi |
419 |
-} |
420 |
- |
421 |
-# wrapper to safely set the symlink |
422 |
-set_symlink_safe() { |
423 |
- if [[ -L ${EROOT}${MSFPATH} ]]; then |
424 |
- # existing symlink |
425 |
- remove_symlink || die -q "Couldn't remove existing symlink" |
426 |
- set_symlink "$1" || die -q "Couldn't set a new symlink" |
427 |
- #um, why is there an env-update here? |
428 |
- env-update |
429 |
- elif [[ -e ${EROOT}${MSFPATH} ]]; then |
430 |
- # we have something strange |
431 |
- die -q "${EROOT}${MSFPATH} exists but is not a symlink" |
432 |
- else |
433 |
- set_symlink "$1" || die -q "Couldn't set a new symlink" |
434 |
- fi |
435 |
-} |
436 |
- |
437 |
-### show action ### |
438 |
- |
439 |
-describe_show() { |
440 |
- echo "Show the current metasploit symlink" |
441 |
-} |
442 |
- |
443 |
-do_show() { |
444 |
- write_list_start "Current metasploit symlink:" |
445 |
- if [[ -L ${EROOT}${MSFPATH} ]]; then |
446 |
- local metasploit=$(canonicalise "${EROOT}${MSFPATH}") |
447 |
- write_kv_list_entry "${metasploit%/}" "" |
448 |
- else |
449 |
- write_kv_list_entry "(unset)" "" |
450 |
- fi |
451 |
-} |
452 |
- |
453 |
-### list action ### |
454 |
- |
455 |
-describe_list() { |
456 |
- echo "List available metasploit symlink targets" |
457 |
-} |
458 |
- |
459 |
-do_list() { |
460 |
- local i targets=( $(find_targets) ) |
461 |
- |
462 |
- write_list_start "Available metasploit symlink targets:" |
463 |
- for (( i = 0; i < ${#targets[@]}; i++ )); do |
464 |
- [[ ${targets[i]} = \ |
465 |
- $(basename "$(canonicalise "${EROOT}${MSFPATH}")") ]] \ |
466 |
- && targets[i]=$(highlight_marker "${targets[i]}") |
467 |
- done |
468 |
- write_numbered_list -m "(none found)" "${targets[@]}" |
469 |
-} |
470 |
- |
471 |
-### set action ### |
472 |
- |
473 |
-describe_set() { |
474 |
- echo "Set a new metasploit symlink target" |
475 |
-} |
476 |
- |
477 |
-describe_set_parameters() { |
478 |
- echo "<target>" |
479 |
-} |
480 |
- |
481 |
-describe_set_options() { |
482 |
- echo "<target> : Target name or number (from 'list' action)" |
483 |
- echo "--use-old : If an implementation is already set, use that one instead" |
484 |
-} |
485 |
- |
486 |
-do_set() { |
487 |
- local action="error" |
488 |
- local current=$(basename "$(canonicalise "${EROOT}${MSFPATH}")") |
489 |
- local available=( $(find_targets) ) |
490 |
- local new |
491 |
- local opt |
492 |
- |
493 |
- while [[ ${#@} -gt 0 ]] ; do |
494 |
- opt=$1 |
495 |
- shift |
496 |
- case ${opt} in |
497 |
- --use-old) |
498 |
- if [[ -n "${current}" ]] && has "${current}" "${available[@]}"; then |
499 |
- action="old-implementation" |
500 |
- fi |
501 |
- ;; |
502 |
- metasploit*) |
503 |
- if [[ "${action}" != "old-implementation" ]] ; then |
504 |
- action="set-implementation" |
505 |
- fi |
506 |
- |
507 |
- if has ${opt} ${available[@]}; then |
508 |
- new="${opt}" |
509 |
- else |
510 |
- echo "You need to emerge ${opt} before you try to eselect it" |
511 |
- fi |
512 |
- ;; |
513 |
- *) |
514 |
- if [[ "${action}" != "old-implementation" ]] ; then |
515 |
- action="set-implementation" |
516 |
- fi |
517 |
- |
518 |
- if is_number ${opt} ; then |
519 |
- #targets=( $(get_implementations) ) |
520 |
- new=${available[opt - 1]} |
521 |
- if [[ -z ${new} ]] ; then |
522 |
- die -q "Unrecognized option: ${opt}" |
523 |
- fi |
524 |
- else |
525 |
- die -q "Unrecognized option: ${opt}" |
526 |
- fi |
527 |
- ;; |
528 |
- esac |
529 |
- done |
530 |
- |
531 |
- case ${action} in |
532 |
- old-implementation) |
533 |
- set_symlink_safe ${current} |
534 |
- return $? |
535 |
- ;; |
536 |
- set-implementation) |
537 |
- if [[ -n ${new} ]] ; then |
538 |
- set_symlink_safe ${new} |
539 |
- return $? |
540 |
- else |
541 |
- die -q "Please specify an implementation to set" |
542 |
- fi |
543 |
- ;; |
544 |
- *) |
545 |
- die -q "Invalid usage of set action." |
546 |
- ;; |
547 |
- esac |
548 |
-} |
549 |
|
550 |
diff --git a/app-eselect/eselect-metasploit/files/msfloader-0.16 b/app-eselect/eselect-metasploit/files/msfloader-0.16 |
551 |
deleted file mode 100644 |
552 |
index 6c617165c58..00000000000 |
553 |
--- a/app-eselect/eselect-metasploit/files/msfloader-0.16 |
554 |
+++ /dev/null |
555 |
@@ -1,41 +0,0 @@ |
556 |
-#!/bin/sh |
557 |
- |
558 |
-#todo: |
559 |
-#add in optional auto starting/stopping of postgres |
560 |
- |
561 |
-#read the desired version of ruby from the eselected version of msf |
562 |
-header="$(head -n1 /usr/lib/metasploit/msfconsole)" |
563 |
-ruby="${header:2}" |
564 |
- |
565 |
-#normally msf makes this dir, however, this script runs first |
566 |
-if [ ! -d ~/.msf4 ]; then |
567 |
- mkdir ~/.msf4 |
568 |
-fi |
569 |
- |
570 |
-#we cannot control if msf* exits normally so always start with cleanup |
571 |
-if [ -f ~/.msf4/Gemfile ]; then |
572 |
- rm ~/.msf4/Gemfile |
573 |
-fi |
574 |
-if ls -A ~/.msf4/*.gemspec > /dev/zero 2>&1; then |
575 |
- rm ~/.msf4/*.gemspec |
576 |
-fi |
577 |
- |
578 |
-#fetch the latest Gemfile and gemspecs from the selected version of msf |
579 |
-cp /usr/lib/metasploit/Gemfile ~/.msf4/ |
580 |
-if ls -A /usr/lib/metasploit/*.gemspec > /dev/zero 2>&1; then |
581 |
- cp /usr/lib/metasploit/*.gemspec ~/.msf4/ |
582 |
-fi |
583 |
- |
584 |
-#ensure Gemfile.lock is up to date |
585 |
-BUNDLE_GEMFILE=~/.msf4/Gemfile ${ruby} -S bundle check > /dev/null 2>&1 |
586 |
-if [ "$?" != "0" ]; then |
587 |
- if [ -f ~/.msf4/Gemfile.lock ]; then |
588 |
- rm ~/.msf4/Gemfile.lock |
589 |
- else |
590 |
- echo "Something went wrong, please open a bug for metasploit on https://bugs.gentoo.org" |
591 |
- fi |
592 |
-fi |
593 |
- |
594 |
-#ready to go |
595 |
-BUNDLE_GEMFILE=~/.msf4/Gemfile ${ruby} -S bundle exec /usr/lib/metasploit/$(basename $0) "$@" |
596 |
-#profit |
597 |
|
598 |
diff --git a/app-eselect/eselect-metasploit/files/msfrpcd.confd b/app-eselect/eselect-metasploit/files/msfrpcd.confd |
599 |
deleted file mode 100644 |
600 |
index d097e6cdfb7..00000000000 |
601 |
--- a/app-eselect/eselect-metasploit/files/msfrpcd.confd |
602 |
+++ /dev/null |
603 |
@@ -1,16 +0,0 @@ |
604 |
-# Config file for /etc/init.d/metasploit |
605 |
- |
606 |
-# Bind to the following IP instead of the loopback address |
607 |
-IPADDR=127.0.0.1 |
608 |
- |
609 |
-# Bind to the following TCP port instead of default 55555 |
610 |
-PORT=55553 |
611 |
- |
612 |
-# Use the following username instead of msf |
613 |
-USER="msf" |
614 |
- |
615 |
-# Use the following password instead of msf |
616 |
-PASS="secure" |
617 |
- |
618 |
-# All options |
619 |
-MSF_OPTS="-U $USER -P $PASS -S -a $IPADDR -p $PORT" |
620 |
|
621 |
diff --git a/app-eselect/eselect-metasploit/files/msfrpcd.initd b/app-eselect/eselect-metasploit/files/msfrpcd.initd |
622 |
deleted file mode 100644 |
623 |
index 8963eef82bf..00000000000 |
624 |
--- a/app-eselect/eselect-metasploit/files/msfrpcd.initd |
625 |
+++ /dev/null |
626 |
@@ -1,21 +0,0 @@ |
627 |
-#!/sbin/openrc-run |
628 |
-# Copyright 1999-2015 Gentoo Foundation |
629 |
-# Distributed under the terms of the GNU General Public License v2 |
630 |
- |
631 |
-VERSION= |
632 |
-PIDFILE=/var/run/msfrpcd${VERSION}.pid |
633 |
- |
634 |
-start() { |
635 |
- ebegin "Starting msfrpcd" |
636 |
- start-stop-daemon --start --quiet --background \ |
637 |
- --exec /usr/bin/msfrpcd \ |
638 |
- --pidfile ${PIDFILE} \ |
639 |
- --make-pidfile -- -f ${MSF_OPTS} |
640 |
- eend $? |
641 |
-} |
642 |
- |
643 |
-stop() { |
644 |
- ebegin "Stopping msfrpcd" |
645 |
- start-stop-daemon --stop --quiet -s 9 --pidfile ${PIDFILE} |
646 |
- eend $? |
647 |
-} |
648 |
|
649 |
diff --git a/app-eselect/eselect-metasploit/metadata.xml b/app-eselect/eselect-metasploit/metadata.xml |
650 |
deleted file mode 100644 |
651 |
index 0bd171786a1..00000000000 |
652 |
--- a/app-eselect/eselect-metasploit/metadata.xml |
653 |
+++ /dev/null |
654 |
@@ -1,8 +0,0 @@ |
655 |
-<?xml version="1.0" encoding="UTF-8"?> |
656 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
657 |
-<pkgmetadata> |
658 |
-<maintainer type="person"> |
659 |
-<email>zerochaos@g.o</email> |
660 |
-<name>Rick Farina</name> |
661 |
-</maintainer> |
662 |
-</pkgmetadata> |