mirror of
https://github.com/zuno/slackpkgplus
synced 2025-01-13 20:01:04 +01:00
Fri Jun 11 16:25:43 CEST 2021
pkg/slackpkg+-1.7.6-noarch-7mt.txz: Rebuilt - Removed bash completion file (already included in slackpkg) +-------------------------+
This commit is contained in:
parent
4e3f8f6d68
commit
01a2bde343
7 changed files with 11 additions and 82 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Jun 11 16:25:43 CEST 2021
|
||||||
|
pkg/slackpkg+-1.7.6-noarch-7mt.txz: Rebuilt
|
||||||
|
- Removed bash completion file (already included in slackpkg)
|
||||||
|
+-------------------------+
|
||||||
|
|
||||||
Fri Jun 11 15:36:58 CEST 2021
|
Fri Jun 11 15:36:58 CEST 2021
|
||||||
pkg/slackpkg+-1.7.6-noarch-6mt.txz: Rebuilt
|
pkg/slackpkg+-1.7.6-noarch-6mt.txz: Rebuilt
|
||||||
- slackpkg 15.0.5 incompatible gpg hardening.
|
- slackpkg 15.0.5 incompatible gpg hardening.
|
||||||
|
|
|
@ -92,9 +92,7 @@
|
||||||
1 => WARNING! One or more errors occurred while slackpkg was running
|
1 => WARNING! One or more errors occurred while slackpkg was running
|
||||||
2 => FATAL! Some operation has failed and need attention
|
2 => FATAL! Some operation has failed and need attention
|
||||||
|
|
||||||
- Bash completation enabled by default
|
- Bash completation removed (already included in slackpkg)
|
||||||
note that you need to install bash_completation
|
|
||||||
slackpkg install bash_completation
|
|
||||||
|
|
||||||
- Works with slackpkg-15
|
- Works with slackpkg-15
|
||||||
Unfortunately it does not work if $ROOT is non-empty
|
Unfortunately it does not work if $ROOT is non-empty
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Jun 11 16:25:43 CEST 2021
|
||||||
|
pkg/slackpkg+-1.7.6-noarch-7mt.txz: Rebuilt
|
||||||
|
- Removed bash completion file (already included in slackpkg)
|
||||||
|
+-------------------------+
|
||||||
|
|
||||||
Fri Jun 11 15:36:58 CEST 2021
|
Fri Jun 11 15:36:58 CEST 2021
|
||||||
pkg/slackpkg+-1.7.6-noarch-6mt.txz: Rebuilt
|
pkg/slackpkg+-1.7.6-noarch-6mt.txz: Rebuilt
|
||||||
- slackpkg 15.0.5 incompatible gpg hardening.
|
- slackpkg 15.0.5 incompatible gpg hardening.
|
||||||
|
|
|
@ -54,7 +54,6 @@ mkdir -p $PKG
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
mkdir -p etc/slackpkg/
|
mkdir -p etc/slackpkg/
|
||||||
mkdir -p etc/bash_completion.d/
|
|
||||||
mkdir -p usr/libexec/slackpkg/functions.d/
|
mkdir -p usr/libexec/slackpkg/functions.d/
|
||||||
mkdir -p usr/doc/slackpkg+-$VERSION/
|
mkdir -p usr/doc/slackpkg+-$VERSION/
|
||||||
mkdir -p usr/man/man5
|
mkdir -p usr/man/man5
|
||||||
|
@ -72,7 +71,6 @@ cp $CWD/checkrepos.sh usr/doc/slackpkg+-$VERSION/
|
||||||
cp $CWD/zchangelog.sh usr/libexec/slackpkg/functions.d/zchangelog.sh
|
cp $CWD/zchangelog.sh usr/libexec/slackpkg/functions.d/zchangelog.sh
|
||||||
cp $CWD/zlookkernel.sh usr/libexec/slackpkg/functions.d/zlookkernel.sh
|
cp $CWD/zlookkernel.sh usr/libexec/slackpkg/functions.d/zlookkernel.sh
|
||||||
cp $CWD/slackpkg+.SlackBuild usr/doc/slackpkg+-$VERSION/
|
cp $CWD/slackpkg+.SlackBuild usr/doc/slackpkg+-$VERSION/
|
||||||
cp $CWD/slackpkg.bash_completion etc/bash_completion.d/slackpkg
|
|
||||||
cp $CWD/slackpkgplus.*.sample usr/doc/slackpkg+-$VERSION/
|
cp $CWD/slackpkgplus.*.sample usr/doc/slackpkg+-$VERSION/
|
||||||
cp $CWD/greylist etc/slackpkg/greylist.new
|
cp $CWD/greylist etc/slackpkg/greylist.new
|
||||||
cp $CWD/slack-desc install/
|
cp $CWD/slack-desc install/
|
||||||
|
|
|
@ -1,67 +0,0 @@
|
||||||
# Slackware slackpkg(8) completion -*- shell-script -*-
|
|
||||||
#
|
|
||||||
# This add the bash completation for slackpkg command.
|
|
||||||
#
|
|
||||||
# Be sure to install the bash-completation package
|
|
||||||
#
|
|
||||||
# # slackpkg install bash-completation
|
|
||||||
#
|
|
||||||
|
|
||||||
_slackpkg()
|
|
||||||
{
|
|
||||||
local cur prev words cword
|
|
||||||
_init_completion || return
|
|
||||||
|
|
||||||
local special i wc
|
|
||||||
wc=${#words[@]}
|
|
||||||
|
|
||||||
for (( i=0; i < ${#words[@]}-1; i++ )); do
|
|
||||||
if [[ ${words[i]} == @(install|remove|search|upgrade|reinstall|clean-system|upgrade-all|install-new|search|file-search|info|update|new-config|check-updates) ]]; then
|
|
||||||
special=${words[i]}
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [[ -n $special ]]; then
|
|
||||||
case $special in
|
|
||||||
upgrade|remove) COMPREPLY=( $( cd /var/log/packages; ls -- $cur* 2>/dev/null|rev|cut -f4- -d-|rev ) ) ;;
|
|
||||||
update) (( i++ )) ; (( wc-- )) ; [ $i -eq $wc ]&& COMPREPLY=( $( echo gpg|grep "^$cur" ) ) ;;
|
|
||||||
search) COMPREPLY=( $( grep -- "$cur" /var/lib/slackpkg/pkglist 2>/dev/null|awk '{print $2}'|grep -- "$cur" ) ) ;;
|
|
||||||
info) COMPREPLY=( $( grep -- " $cur" /var/lib/slackpkg/pkglist 2>/dev/null|awk '{print $2}'|grep -- "^$cur" ) ) ;;
|
|
||||||
install) COMPREPLY=( $(cd /var/log/packages
|
|
||||||
grep "^[^ ]* $cur" /var/lib/slackpkg/pkglist 2>/dev/null|awk '{print $2}' |
|
|
||||||
grep -v -f <(ls -- $cur* 2>/dev/null|rev|cut -f4- -d-|rev|sed -r -e "s/^/^/" -e "s/$/$/")
|
|
||||||
) )
|
|
||||||
;;
|
|
||||||
reinstall) [ ! -z "$cur" ]&& COMPREPLY=( $( cd /var/log/packages
|
|
||||||
grep "^[^ ]* $cur" /var/lib/slackpkg/pkglist 2>/dev/null|
|
|
||||||
grep -f <(ls -- $cur* 2>/dev/null) |awk '{print $2}'
|
|
||||||
) )
|
|
||||||
;;
|
|
||||||
update) COMPREPLY=( gpg ) ;;
|
|
||||||
esac
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$cur" == -* ]]; then
|
|
||||||
COMPREPLY=( $( compgen -W '
|
|
||||||
-delall=off -checkmd5=off -checkgpg=off -checksize=on
|
|
||||||
-postinst=off -onoff=off -download_all=off -dialog=off
|
|
||||||
-batch=on -only_new_dotnew=on
|
|
||||||
-use_includes=off -spinning=off -default_answer=yes
|
|
||||||
' -- "$cur" ) )
|
|
||||||
else
|
|
||||||
|
|
||||||
COMPREPLY=( $( compgen -W '
|
|
||||||
install remove search upgrade reinstall
|
|
||||||
clean-system upgrade-all install-new
|
|
||||||
search file-search
|
|
||||||
info update new-config check-updates
|
|
||||||
-
|
|
||||||
' -- "$cur" ) )
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
return 0
|
|
||||||
} &&
|
|
||||||
complete -F _slackpkg slackpkg
|
|
|
@ -553,11 +553,6 @@ Scripts used to configure slackpkg+ to install multilib of alienbob and to do th
|
||||||
The SlackBuild of slackpkg+. Only to be used for consultation; being thrown out of the directory of sources will fail.
|
The SlackBuild of slackpkg+. Only to be used for consultation; being thrown out of the directory of sources will fail.
|
||||||
.in
|
.in
|
||||||
|
|
||||||
\fBslackpkg.bash_completion\fP:
|
|
||||||
.in +5
|
|
||||||
If you have the \fB\%bash-completion\fP taken from the repository \fBextra\fP slackware you will automatically have the bash autocompletion function with slackpkg (also queries the pkglist).
|
|
||||||
.in
|
|
||||||
|
|
||||||
\fBslackpkgplus.x86.sample\fP:
|
\fBslackpkgplus.x86.sample\fP:
|
||||||
.in +5
|
.in +5
|
||||||
The sample configuration file for 32bit architectures.
|
The sample configuration file for 32bit architectures.
|
||||||
|
|
|
@ -550,11 +550,6 @@ Script utilizzabile per configurare slackpkg+ per installare le multilib di alie
|
||||||
Lo SlackBuild di slackpkg+. Da usare solo per consultazione; il lancio fuori della directory dei sorgenti fallirà.
|
Lo SlackBuild di slackpkg+. Da usare solo per consultazione; il lancio fuori della directory dei sorgenti fallirà.
|
||||||
.in
|
.in
|
||||||
|
|
||||||
\fBslackpkg.bash_completion\fP:
|
|
||||||
.in +5
|
|
||||||
Se hai il pacchetto \fB\%bash-completion\fP preso dal repository \fBextra\fP di slackware avrai automaticamente attiva la funzione di autocompletamento di bash con slackpkg (effettua anche le ricerche nel pkglist).
|
|
||||||
.in
|
|
||||||
|
|
||||||
\fBslackpkgplus.x86.sample\fP:
|
\fBslackpkgplus.x86.sample\fP:
|
||||||
.in +5
|
.in +5
|
||||||
Il file di configurazione di esempio per le architetture a 32bit.
|
Il file di configurazione di esempio per le architetture a 32bit.
|
||||||
|
|
Loading…
Reference in a new issue