pkgdups.sh and semi-random tagged pkglists shuffle
The bin/pkgdups.sh script comes from m-p-d in considerably optimized form and is to be used with the pkglist files of interest passed as its arguments to produce a "hall of duplicates" among those. The tagged lists received some updates along the rescue image lines, most of those are actually inspired by http://rescuecd.pld-linux.org/ and to lesser extent a few articles on rescue/recovery/forensics software -- so some newcomers are even employed already.
This commit is contained in:
parent
5bc3dc24dd
commit
8790a90cee
20
bin/pkgdups.sh
Executable file
20
bin/pkgdups.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
# a script to help weed out duplicate packages
|
||||
# contained in package lists given as arguments
|
||||
#
|
||||
# Requires: libshell
|
||||
|
||||
. /bin/shell-quote
|
||||
|
||||
sort "$@" \
|
||||
| grep -v '^ *#' \
|
||||
| sed -s 's,[ ]\+, ,g' \
|
||||
| grep -v '^ *$' \
|
||||
| uniq -cd \
|
||||
| while read num str; do
|
||||
echo -n "$str: $num ";
|
||||
pattern="`quote_sed_regexp "$str"`"
|
||||
grep -l "^$pattern$" "$@" | tr '\n' ' '
|
||||
echo
|
||||
done \
|
||||
| sort -rn -t: -k2
|
@ -9,8 +9,9 @@ distro/live-install: distro/.base use/live/install use/syslinux/localboot.cfg
|
||||
distro/live-icewm: distro/live use/live/icewm
|
||||
|
||||
distro/live-rescue: distro/live-icewm
|
||||
@$(call add,LIVE_LISTS,$(call tags,extra && (rescue || network)))
|
||||
@$(call add,LIVE_LISTS,$(call tags,rescue && (live || x11)))
|
||||
@$(call add,LIVE_LISTS, \
|
||||
$(call tags,(base || extra) && (archive || rescue || network)))
|
||||
|
||||
distro/live-isomd5sum: distro/.base use/live/base use/isomd5sum
|
||||
@$(call add,LIVE_PACKAGES,livecd-isomd5sum)
|
||||
|
@ -2,7 +2,7 @@
|
||||
реализация (tags2lists) требует, чтобы каждый из тегов был
|
||||
отдельным словом, состоящим из символов из набора a-zA-Z0-9_
|
||||
(внимание: не используйте в слове "-"); рекомендуется
|
||||
разделять слова "+" или "," (стандарт ещё не устоялся).
|
||||
разделять слова "+".
|
||||
|
||||
Предположительное применение: дополнение функциональности,
|
||||
заданной статически (наследственно или явно), факультативным
|
||||
|
6
pkg.in/lists/tagged/archive+base
Normal file
6
pkg.in/lists/tagged/archive+base
Normal file
@ -0,0 +1,6 @@
|
||||
bzip2
|
||||
cpio
|
||||
gzip
|
||||
tar
|
||||
xz
|
||||
zip
|
30
pkg.in/lists/tagged/archive+extra
Normal file
30
pkg.in/lists/tagged/archive+extra
Normal file
@ -0,0 +1,30 @@
|
||||
#gzrt
|
||||
lzip
|
||||
lzop
|
||||
p7zip
|
||||
pax
|
||||
rzip
|
||||
star
|
||||
unrar
|
||||
unzip
|
||||
xar
|
||||
|
||||
# parallel (de)compression
|
||||
lbzip2
|
||||
pbzip2
|
||||
pigz
|
||||
plzip
|
||||
pxz
|
||||
|
||||
# legacy
|
||||
arj
|
||||
cabextract
|
||||
ha
|
||||
lha
|
||||
mscompress
|
||||
nomarch
|
||||
ncompress
|
||||
unace
|
||||
unarj
|
||||
unzoo
|
||||
uudeview
|
5
pkg.in/lists/tagged/base+comm
Normal file
5
pkg.in/lists/tagged/base+comm
Normal file
@ -0,0 +1,5 @@
|
||||
ckermit
|
||||
lrzsz
|
||||
minicom
|
||||
picocom
|
||||
sredird
|
@ -1,6 +0,0 @@
|
||||
# compression
|
||||
cpio
|
||||
p7zip
|
||||
tar
|
||||
unzip
|
||||
zip
|
3
pkg.in/lists/tagged/dev+security
Normal file
3
pkg.in/lists/tagged/dev+security
Normal file
@ -0,0 +1,3 @@
|
||||
flawfinder
|
||||
rats
|
||||
valgrind
|
3
pkg.in/lists/tagged/network+bench
Normal file
3
pkg.in/lists/tagged/network+bench
Normal file
@ -0,0 +1,3 @@
|
||||
httperf
|
||||
nepim
|
||||
|
4
pkg.in/lists/tagged/network+security
Normal file
4
pkg.in/lists/tagged/network+security
Normal file
@ -0,0 +1,4 @@
|
||||
aircrack-ng
|
||||
#kismet*
|
||||
macchanger
|
||||
tcptrace
|
@ -27,6 +27,7 @@ partimage
|
||||
# Applications
|
||||
binutils
|
||||
dmidecode
|
||||
gnupg
|
||||
hexedit
|
||||
pciutils
|
||||
procps
|
||||
@ -36,14 +37,6 @@ sharutils
|
||||
time
|
||||
openssl
|
||||
|
||||
# Applications/Archiving
|
||||
arj
|
||||
bzip2
|
||||
gzip
|
||||
unrar
|
||||
unzip
|
||||
zip
|
||||
|
||||
# Applications/Editors
|
||||
vim-console
|
||||
|
||||
@ -51,7 +44,6 @@ vim-console
|
||||
findutils
|
||||
file
|
||||
less
|
||||
mtools
|
||||
|
||||
# Filesystem utils
|
||||
dosfstools
|
8
pkg.in/lists/tagged/rescue+fs
Normal file
8
pkg.in/lists/tagged/rescue+fs
Normal file
@ -0,0 +1,8 @@
|
||||
cpipe
|
||||
dar
|
||||
ddrescue
|
||||
foremost
|
||||
ntfsprogs
|
||||
sleuthkit
|
||||
xfsdump
|
||||
#zfs-fuse
|
9
pkg.in/lists/tagged/security+extra
Normal file
9
pkg.in/lists/tagged/security+extra
Normal file
@ -0,0 +1,9 @@
|
||||
apg
|
||||
#chkrootkit
|
||||
dcfldd
|
||||
john
|
||||
#logcheck
|
||||
md5deep
|
||||
osec
|
||||
osec-cronjob
|
||||
osec-mailreport
|
11
pkg.in/lists/tagged/server+openvpn
Normal file
11
pkg.in/lists/tagged/server+openvpn
Normal file
@ -0,0 +1,11 @@
|
||||
apt
|
||||
basesystem
|
||||
sysklogd
|
||||
etcnet
|
||||
glibc-nss
|
||||
openvpn
|
||||
netlist
|
||||
#alterator-fbi
|
||||
openssh-server
|
||||
passwd
|
||||
less
|
@ -1,11 +0,0 @@
|
||||
apt
|
||||
basesystem
|
||||
sysklogd
|
||||
etcnet
|
||||
glibc-nss
|
||||
openvpn
|
||||
netlist
|
||||
#alterator-fbi
|
||||
openssh-server
|
||||
passwd
|
||||
less
|
Loading…
Reference in New Issue
Block a user