Tue Mar 2 17:31:29 CET 2021

pkg/slackpkg+-1.7.4-noarch-1mt.txz: Rebuilt
  This release does not introduce feature on the core; just add a section to
  configuration file to enable some currently hidden feature.
  - Added plugin section. Now we can enable or disable sperimental plugin
    from configuration file. Currently we have two plugins.
  - ZLookKernel: help you to rebuild the initrd and install lilo or EFI elilo
  - ZChangeLog: generate a changelog for all repository at every 'update'
    process
This commit is contained in:
Matteo Rossini 2021-03-02 21:32:11 +01:00
parent 8045bad06a
commit 2e9092773f
12 changed files with 171 additions and 49 deletions

View file

@ -1,3 +1,14 @@
Tue Mar 2 17:31:29 CET 2021
pkg/slackpkg+-1.7.4-noarch-1mt.txz: Rebuilt
This release does not introduce feature on the core; just add a section to
configuration file to enable some currently hidden feature.
- Added plugin section. Now we can enable or disable sperimental plugin
from configuration file. Currently we have two plugins.
- ZLookKernel: help you to rebuild the initrd and install lilo or EFI elilo
- ZChangeLog: generate a changelog for all repository at every 'update'
process
+-------------------------+
Mon Mar 1 20:40:19 CET 2021
pkg/slackpkg+-1.7.3-noarch-1mt.txz: Rebuilt
Starting from 1.7.1, slackpkg+ no longer supports Slackware 14.2 (i.e.

View file

@ -1,6 +1,6 @@
= Full Changes list =
== From 1.7 to 1.7.2 ==
== From 1.7 to 1.7.4 ==
*Configuration file:
@ -16,6 +16,11 @@
- Removed ktown samples since kde5 is in slackware 15.0
- Added plugins section to configure the extra-tools in slackpkg+
Currently zlookkernel and zchangelog
Note that some plugin may be experimental
*New features:
- Added manpages (italian and english) for slackpkgplus.conf
@ -44,6 +49,11 @@
- 'slackpkg search' show more info on column Status
- set PLUGIN_ZCHANGELOG=enable to enable zchangelog.sh plugin
set PLUGIN_ZCHANGELOG_SHOW=on to print changelog on stdout
For details read notes in the code:
/usr/libexec/slackpkg/functions.d/zchangelog.sh
*BugFixes
@ -67,7 +77,6 @@
- Handle the case where /var/log/packages is a symlink
*Various
- Suppress wget output in ChangeLog downloading
@ -88,8 +97,9 @@
- Added zlookkernel.sh
It help you to reconfigure initrd. It does support lilo and elilo (EFI)
set PLUGIN_ZLOOKKERNEL=enable to use it
For instructions read notes in the code:
/usr/libexec/slackpkg/zlookkernel.sh
/usr/libexec/slackpkg/functions.d/zlookkernel.sh
== From 1.6 and 1.7 ==

View file

@ -1,3 +1,14 @@
Tue Mar 2 17:31:29 CET 2021
pkg/slackpkg+-1.7.4-noarch-1mt.txz: Rebuilt
This release does not introduce feature on the core; just add a section to
configuration file to enable some currently hidden feature.
- Added plugin section. Now we can enable or disable sperimental plugin
from configuration file. Currently we have two plugins.
- ZLookKernel: help you to rebuild the initrd and install lilo or EFI elilo
- ZChangeLog: generate a changelog for all repository at every 'update'
process
+-------------------------+
Mon Mar 1 20:40:19 CET 2021
pkg/slackpkg+-1.7.3-noarch-1mt.txz: Rebuilt
Starting from 1.7.1, slackpkg+ no longer supports Slackware 14.2 (i.e.

View file

@ -593,6 +593,25 @@ repository name with "slackpkg install/upgrade repository:package".
-----
PLUGINS
In the slackpkg+ packages there are some optional plugin. Some of that may be
sperimental, so it is not included by default in slackpkg+ core. You may
enable it by setting the PLUGIN_* variable to 'enabled'. Open the plugin file
for further defail about the plugin.
- /usr/libexec/slackpkg/functions.d/zlookkernel.sh
to allow slackpkg to rebuild your initrd and install lilo.
enable it with PLUGIN_ZLOOKKERNEL=enable
- /usr/libexec/slackpkg/functions.d/zchangelog.sh
to allow slackpkg to create a global changelog in
/var/lib/slackpkg/RepoChangeLog.txt
enable it with PLUGIN_ZCHANGELOG=disable
set PLUGIN_ZCHANGELOG_SHOW=on to view it in standard output too
-----
FURTHER INFORMATION
The AlienBOB article about slackpkg+:

View file

@ -68,8 +68,8 @@ cp $CWD/repositories.txt usr/doc/slackpkg+-$VERSION/
cp $CWD/repositories.lst usr/doc/slackpkg+-$VERSION/
cp $CWD/setupmultilib.sh usr/doc/slackpkg+-$VERSION/
cp $CWD/checkrepos.sh usr/doc/slackpkg+-$VERSION/
cp $CWD/zchangelog.sh usr/libexec/slackpkg/zchangelog.sh
cp $CWD/zlookkernel.sh usr/libexec/slackpkg/zlookkernel.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/slackpkg+.SlackBuild usr/doc/slackpkg+-$VERSION/
cp $CWD/slackpkg.bash_completion etc/bash_completion.d/slackpkg
cp $CWD/slackpkgplus.*.sample usr/doc/slackpkg+-$VERSION/
@ -81,8 +81,8 @@ cat $CWD/doinst.sh|sed "s/SLPVERSION/$VERSION/" > install/doinst.sh
cat $CWD/notifymsg.conf > etc/slackpkg/notifymsg.conf.new
chmod +x usr/libexec/slackpkg/functions.d/slackpkgplus.sh
chmod +x usr/libexec/slackpkg/zchangelog.sh
chmod +x usr/libexec/slackpkg/zlookkernel.sh
chmod +x usr/libexec/slackpkg/functions.d/zchangelog.sh
chmod +x usr/libexec/slackpkg/functions.d/zlookkernel.sh
chmod +x usr/doc/slackpkg+-$VERSION/setupmultilib.sh

View file

@ -1,9 +1,9 @@
.\"*******************************************************************
.\"
.\" Questa manpage è scritta modificando quella di slackpkg.conf
.\" This manpage was written modifying the slackpkg.conf manpage
.\"
.\"*******************************************************************
.TH SLACKPKGPLUS.CONF 5 "Febbraio 2020" slackpkg+\-1.8.0 ""
.TH SLACKPKGPLUS.CONF 5 "Febrary 2021" slackpkg+\-1.8.0 ""
.SH NOME
\fBslackpkgplus.conf\fP \- Configuration file for slackpkg+
@ -116,7 +116,12 @@ Here is the list of available settings:
\*3
.in
For each configuration change is necessary or otherwise appropriate to re-run \fB\%slackpkg\ update\fP
\fBPlugins\fP
.br
In this section you can put the settings to enable, disable or configure the extra plugins. To know the available variable read the documentation inside the plugin (see FILES section in that man page).
For each configuration change is necessary or otherwise appropriate to re-run \fB\%slackpkg\ update\fP.
Here are the details for each setting.
@ -221,7 +226,7 @@ This setting is ignored (or partially ignored if it is set to \fI3\fP if you are
.TP 5
\fBUSETERSE\fP
.br
Set this variable ti \fIon\P to use the TERSE option of installpkg(8), upgradepkg(8), removepkg(8). Install displaying only a single description line to stdout instead full description and coplete filelist.
Set this variable to \fIon\fP to use the TERSE option of installpkg(8), upgradepkg(8), removepkg(8). Install displaying only a single description line to stdout instead full description and coplete filelist.
.TP 5
\fBPROXY\fP
@ -369,7 +374,7 @@ Setting \fBGREYLIST\fP=\fIoff\fP in the configuration, this feature is disabled.
.TP 5
\fBSENSITIVE_SEARCH\fP
.br
In \fBslackpkg\ search\fP the search is in "case sensitive" mode that respecting differences between upper and lower case, so \fB\%slackpkg\ search\ mplayer\fP is not the same as \fB\%slackpkg\ search\ MPlayer\fP. The same is true for the \fB\%file\ -search\fP.
In \fBslackpkg\ search\fP the search is in "case sensitive" mode that respecting differences between upper and lower case, so \fB\%slackpkg\ search\ mplayer\fP is not the same as \fB\%slackpkg\ search\ MPlayer\fP. The same is true for the \fB\%file\-search\fP.
Setting \fB\%SENSITIVE_SEARCH\fP=\fIoff\fP will be possible to search in "case insensitive" that is, without making differences between upper and lower case.
@ -464,7 +469,7 @@ See the documentation and the file \fB\%notifymsg.conf\fP for details.
.br
The main configuration file where there are all the parameters above.
.br
For any change you have to re-run \fB%slackpkg\ update\fP
For any change you have to re-run \fB\%slackpkg\ update\fP.
.TP 5
\fB/etc/slackpkg/greylist\fP
@ -488,7 +493,7 @@ The slackpkg+ changelog.
\fBCHANGES\fP:
.in +5
The complete list of changes from slackpkg+ 1.6 to 1.7; read it to get a description of the new features introduced.
The complete list of changes from two stable release; read it to get a description of the new features introduced.
.in
\fBREADME\fP:
@ -523,9 +528,7 @@ The SlackBuild of slackpkg+. Only to be used for consultation; being thrown out
\fBslackpkg.bash_completion\fP:
.in +5
If you have the \fB\%bash_completion\fP taken from the repository \fBextra\fP slackware you can copy this file in the directory
\fB\%/etc/bash\-completion\fP
to use the bash autocompletion function with slackpkg (also queries the pkglist). It's in the experimental stage.
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:
@ -539,13 +542,16 @@ The sample configuration file for 64bit architectures.
.in
.TP 5
\fB/usr/libexec/slackpkg/zchangelog.sh\fP
\fB/usr/libexec/slackpkg/functions.d/zchangelog.sh\fP
.br
This script populates a global changelog \fB\%/var/lib/slackpkg/RepoChangeLog.txt\fP to each \fB\%slackpkg\ update\fP with a list of all tracked changes. It is disabled by default. To enable it, run the following as root (open the same file for more details)
This plugin populates a global changelog \fB\%/var/lib/slackpkg/RepoChangeLog.txt\fP to each \fB\%slackpkg\ update\fP with a list of all tracked changes. Read the note into the file. It is disabled by default. To enable it, put \fB\%PLUGIN_ZCHANGELOG=\fP\fIenable\fP in configuration; to view the output on screen put also the PLUGIN_ZCHANGELOG_SHOW=on setting in configuration.
Please, read the note into the file for more informations.
#\ cd\ /usr/libexec/slackpkg/functions.d
.TP 5
\fB/usr/libexec/slackpkg/functions.d/zlookkerne.sh\fP
.br
#\ ln\ -sf\ ../zchangelog.sh\ .
Questo plugin add the ability to rebuild the initrd and to run lilo or EFI lilo everytime you upgrade the kernel. Note that slackpkg-15.0 removed the automatic run of lilo replacing it with a simple advice message. It is disabled by default. To enable it put \fB\%PLUGIN_ZLOOKKERNEL=\fP\fIenable\fP in configuration.
Please, read the note into the file for more informations.
.SH NOTES
.TP 5

View file

@ -3,7 +3,7 @@
.\" Questa manpage è scritta modificando quella di slackpkg.conf
.\"
.\"*******************************************************************
.TH SLACKPKGPLUS.CONF 5 "Febbraio 2020" slackpkg+\-1.8.0 ""
.TH SLACKPKGPLUS.CONF 5 "Febbraio 2021" slackpkg+\-1.8.0 ""
.SH NOME
\fBslackpkgplus.conf\fP \- Configurazione per slackpkg+
@ -116,7 +116,13 @@ Seguono le differenti impostazioni disponibili:
\*3
.in
Ad ogni modifica della configurazione è necessario o comunque opportuno rilanciare \fB\%slackpkg\ update\fP
\fBPlugins\fP
.br
In questa sezione vengono messe le impostazioni per abilitare, disabilitare o configurare i plugin aggiuntivi. Per conoscere le variabili disponibili vedi la documentazione all'interno del plugin stesso (v. sezione FILES in questa man page).
Ad ogni modifica della configurazione è necessario o comunque opportuno rilanciare \fB\%slackpkg\ update\fP.
Di seguito i dettagli delle singole impostazioni.
@ -461,7 +467,7 @@ Vedi la documentazione e il file \fB\%notifymsg.conf\fP per i dettagli.
.br
Il file di configurazione principale dove sono presenti tutti i parametri di cui sopra.
.br
Ad ogni modifica è opportuno rilanciare \fB%slackpkg\ update\fP
Ad ogni modifica è opportuno rilanciare \fB\%slackpkg\ update\fP.
.TP 5
\fB/etc/slackpkg/greylist\fP
@ -484,7 +490,7 @@ Il changelog di slackpkg+
\fBCHANGES\fP:
.in +5
L'elenco cumulativo completo dei cambiamenti da slackpkg+ 1.6 a 1.7; leggilo per avere una descrizione delle nuove funzionalità introdotte.
L'elenco cumulativo completo dei cambiamenti da una release stabile all'altra; leggilo per avere una descrizione delle nuove funzionalità introdotte.
.in
\fBREADME\fP:
@ -519,9 +525,7 @@ Lo SlackBuild di slackpkg+. Da usare solo per consultazione; il lancio fuori del
\fBslackpkg.bash_completion\fP:
.in +5
Se hai il pacchetto \fB\%bash_completion\fP preso dal repository \fBextra\fP di slackware puoi copiare questo file nella directory
\fB\%/etc/bash\-completion\fP
per utilizzare la funzione l'autocompletamento di bash con slackpkg (effettua anche le ricerche nel pkglist). E' in fase sperimentale.
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:
@ -535,13 +539,16 @@ Il file di configurazione di esempio per le architetture a 64bit.
.in
.TP 5
\fB/usr/libexec/slackpkg/zchangelog.sh\fP
\fB/usr/libexec/slackpkg/functions.d/zchangelog.sh\fP
.br
Questo script popola un changelog globale \fB\%/var/lib/slackpkg/RepoChangeLog.txt\fP ad ogni \fB\%slackpkg\ update\fP con l'elenco di tutte le modifiche rilevate. E' disabilitato per default. Per abilitarlo lanciare il seguente come root (aprite il file stesso per ulteriori dettagli)
Questo plugin popola un changelog globale \fB\%/var/lib/slackpkg/RepoChangeLog.txt\fP ad ogni \fB\%slackpkg\ update\fP con l'elenco di tutte le modifiche rilevate. Leggi le note all'interno del file. E' disabilitato per default. Per abilitarlo metti \fB\%PLUGIN_ZCHANGELOG=\fP\fIenable\fP in configurazione; puoi stampare l'output a schermo aggiungendo l'impostazione \fB\%PLUGIN_ZCHANGELOG_SHOW=\fP\fIon\fP in configurazione.
Leggi le note all'interno del file per ulteriori dettagli.
#\ cd\ /usr/libexec/slackpkg/functions.d
.TP 5
\fB/usr/libexec/slackpkg/functions.d/zlookkerne.sh\fP
.br
#\ ln\ -sf\ ../zchangelog.sh\ .
Questo plugin aggiunge la possibilità di ricostruire l'initrd e di lanciare lilo o EFI lilo ogni volta che viene aggiornato il kernel. Notare che slackpkg-15.0 ha rimosso il lancio automatico di lilo ma da solamente un messaggio di avvertimento. E' disabilitato per default. Per abilitarlo metti \fB\%PLUGIN_ZLOOKKERNEL=\fP\fIenable\fP in configurazione.
Leggi le note all'interno del file per ulteriori dettagli.
.SH NOTE
.TP 5

View file

@ -1747,7 +1747,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
cleanup
fi
SPKGPLUS_VERSION="1.7.3"
SPKGPLUS_VERSION="1.7.4"
VERSION="$VERSION / slackpkg+ $SPKGPLUS_VERSION"
if [ ${VERSION:0:4} == "2.82" ];then

View file

@ -126,7 +126,24 @@ MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+15/
# download and build it yourself or via sbopkg.
#SBOURL=https://www.slackbuilds.org/slackbuilds/14.2/
# Plugin section:
# Here you can enable some optional feature. Please read documentation before enable it.
#
# ZLookKernel can help you to rebuild initrd and reistall lilo/elilo. This feature was
# removed in slackpkg-15.0. 'enable' this setting to enable it.
# read /usr/libexec/slackpkg/functions.d/zlookkernel.sh for more information
#PLUGIN_ZLOOKKERNEL=disable
#
# ZChangeLog track all repository changes everytime you run 'slackpkg update'
# It write the changelog at /var/lib/slackpkg/RepoChangeLog.txt
# 'enable' this setting to enable it. Also set 'PLUGIN_ZCHANGELOGS_SHOW=on' to print
# the changes in standard output at the end of 'update' process.
# read /usr/libexec/slackpkg/functions.d/zchangelog.sh for more information
#PLUGIN_ZCHANGELOG=disable
#PLUGIN_ZCHANGELOG_SHOW=off
#
#
# Supported Repositories (see /usr/doc/slackpkg+-* for details and notes):
#

View file

@ -138,12 +138,30 @@ MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+15/
# Remote packages (you do not need metadata)
#MIRRORPLUS['slackpkgbeta']=httpsdir://slackpkg.org/beta/
# SBo SlackBuilds. Uncomment it to allow slackpkg to search SlackBuilds on SlackBuilds.org
# This does not repleace sbopkg; slackpkg just report the package, version and url; you must
# download and build it yourself or via sbopkg.
#SBOURL=https://www.slackbuilds.org/slackbuilds/14.2/
# Plugin section:
# Here you can enable some optional feature. Please read documentation before enable it.
#
# ZLookKernel can help you to rebuild initrd and reistall lilo/elilo. This feature was
# removed in slackpkg-15.0. 'enable' this setting to enable it.
# read /usr/libexec/slackpkg/functions.d/zlookkernel.sh for more information
#PLUGIN_ZLOOKKERNEL=disable
#
# ZChangeLog track all repository changes everytime you run 'slackpkg update'
# It write the changelog at /var/lib/slackpkg/RepoChangeLog.txt
# 'enable' this setting to enable it. Also set 'PLUGIN_ZCHANGELOGS_SHOW=on' to print
# the changes in standard output at the end of 'update' process.
# read /usr/libexec/slackpkg/functions.d/zchangelog.sh for more information
#PLUGIN_ZCHANGELOG=disable
#PLUGIN_ZCHANGELOG_SHOW=off
#
#
# Supported Repositories (see /usr/doc/slackpkg+-* for details and notes):
#

View file

@ -3,21 +3,34 @@
#
# It track all repositories changes in /var/lib/slackpkg/RepoChangeLog.txt
# everytime you run 'slackpkg update' so you will have a global changelog.
#
# example:
# Wed Feb 24 22:17:41 CET 2021
# ----------------------------------
# Added: testing
#
# Upgraded: alienbob :: chromium-88.0.4324.190-x86_64-1alien.txz
# Added: extra :: php8-8.0.2-x86_64-1.txz
# Upgraded: slackpkgplus :: slackpkg+-1.7.2-noarch-1mt.txz
# Upgraded: slackware64 :: Cython-0.29.22-x86_64-1.txz
# Upgraded: slackware64 :: autoconf-archive-2021.02.19-noarch-1.txz
# Rebuilt: slackware64 :: bind-9.16.11-x86_64-3.txz
# Upgraded: slackware64 :: bluedevil-5.21.1-x86_64-1.txz
#
# WARNING: This tool is in an embrional state. However it does not affect
# the correct slackpkg+ working. But you need to install it manually
# if you want use it.
#
# To install it run (as root):
# $ ln -sf /usr/libexec/slackpkg/zchangelog.sh /usr/libexec/slackpkg/functions.d/
# To use it put PLUGIN_ZCHANGELOG=enable
# in /etc/slackpkg/slackpkgplus.conf
#
# To uninstall it run (as root):
# $ rm /usr/libexec/slackpkg/functions.d/zchangelog.sh
#
# By default after run 'slackpkg update' ZChangeLog print the changes in
# output. If you dislike it add 'SHOW_ZCHANGELOGS=no' to slackpkgplus.conf
# After run 'slackpkg update' ZChangeLog cat print the changes in output
# if you set 'PLUGIN_ZCHANGELOG_SHOW=on' to slackpkgplus.conf
#
if [ "$PLUGIN_ZCHANGELOG" == "enable" ];then
test -n "$(declare -f cleanup)" # || return
eval "${_/cleanup/cleanup_orig}"
@ -65,7 +78,7 @@ function cleanup(){
if ! tail -1 $TMPDIR/RepoChangeLog.txt|grep -q -- --------- ;then
echo >> $TMPDIR/RepoChangeLog.txt
echo "==================================" >> $TMPDIR/RepoChangeLog.txt
if [ "$SHOW_ZCHANGELOGS" != "no" ];then
if [ "$PLUGIN_ZCHANGELOG_SHOW" == "on" ];then
cat $TMPDIR/RepoChangeLog.txt
fi
cat $WORKDIR/RepoChangeLog.txt >> $TMPDIR/RepoChangeLog.txt
@ -77,3 +90,4 @@ function cleanup(){
cleanup_orig
}
fi

View file

@ -1,15 +1,22 @@
### Note about ZLookKernel ##
#
# slackpkg-15 removed the ability to run lilo after a kernel upgrade since
# lilo.conf may contains an initrd. Now slackpkg just advice you:
# Your kernel image was updated. Be sure to handle any needed updates
# to your bootloader.
#
# After a kernel update, it try to rebuild the initrd - if any - and try to
# reinstall lilo/elilo
# This plugin try to rebuild the initrd - if any - and try to reinstall lilo
#
# To install it run (as root):
# $ ln -sf /usr/libexec/slackpkg/zlookkernel.sh /usr/libexec/slackpkg/functions.d/
# Also it supports EFI elilo.
#
# To uninstall it run (as root):
# $ rm /usr/libexec/slackpkg/functions.d/zlookkernel.sh
# Warning: it works with some common configuration, and may fail with other
# so user it at your own risk. Before reboot please verify.
#
# To use it put PLUGIN_ZLOOKKERNEL=enable
# in /etc/slackpkg/slackpkgplus.conf
#
if [ "$PLUGIN_ZLOOKKERNEL" == "enable" ];then
lookkernel() {
NEWKERNELMD5=$(md5sum /boot/vmlinuz 2>/dev/null)
@ -77,3 +84,5 @@ lookkernel() {
fi
fi
}
fi