├── ChangeLog.txt ├── GPG-KEY ├── README.TXT ├── THANKS └── src ├── CHANGES ├── ChangeLog.txt ├── README ├── checkrepos.sh ├── doinst.sh ├── greylist ├── notifymsg.conf ├── repositories.lst ├── repositories.txt ├── setupmultilib.sh ├── slack-desc ├── slackpkg+.SlackBuild ├── slackpkgplus.conf.5 ├── slackpkgplus.conf.5.fr ├── slackpkgplus.conf.5.it ├── slackpkgplus.sh ├── slackpkgplus.x86.sample ├── slackpkgplus.x86_64.sample ├── zchangelog.sh └── zlookkernel.sh /ChangeLog.txt: -------------------------------------------------------------------------------- 1 | Wed Sep 7 09:24:29 CEST 2022 2 | pkg/slackpkg+-1.8.0-noarch-7mt.txz: Rebuilt 3 | - egrep deprecated. thx to ma marav 4 | +-------------------------+ 5 | 6 | Sat May 7 01:31:38 CEST 2022 7 | pkg/slackpkg+-1.8.0-noarch-6mt.txz: Rebuilt 8 | - wget2 did print CWD 9 | - fixed typo in documentation 10 | +-------------------------+ 11 | 12 | Sat May 7 01:06:13 CEST 2022 13 | pkg/slackpkg+-1.8.0-noarch-5mt.txz: Rebuilt 14 | - wget2 does not honor WGETOPTS 15 | +-------------------------+ 16 | 17 | Mon Apr 18 18:19:11 CEST 2022 18 | pkg/slackpkg+-1.8.0-noarch-4mt.txz: Rebuilt 19 | - Show filename in wget2 instead directory 20 | +-------------------------+ 21 | 22 | Sun Apr 3 19:29:38 CEST 2022 23 | pkg/slackpkg+-1.8.0-noarch-3mt.txz: Rebuilt 24 | - Manage '+' in $TEMP path 25 | - Remove obsolete or broken repositories from list 26 | - Add SBo 15.0 27 | +-------------------------+ 28 | 29 | Wed Feb 16 15:50:11 CET 2022 30 | pkg/slackpkg+-1.8.0-noarch-2mt.txz: Rebuilt 31 | - slackpkg update will return exit code 2 on broken slackware mirrors 32 | - Advice if you are installing a wrong release of multilibs. 33 | - Make difference in switching from current >15.0 or from <15.0 to 15.0 34 | +-------------------------+ 35 | 36 | Thu Feb 3 11:18:01 CET 2022 37 | pkg/slackpkg+-1.8.0-noarch-1mt.txz: Upgrade 38 | Hello, World! Slackware 15.0 was finally released so slackpkg+ has 39 | been adapted, so we can release Slackpkg+ 1.8.0 final release. Also 40 | some third party repositories are ready. A notice: starting from now 41 | /slackpkg+/ official repository will contain slackpkg+ 1.8 (an alias 42 | o /slackpkg+15/ repository, unless you are using wget/curl/lftp from 43 | slackware 14.2; in this case the site automatically show slackpkg+1.7. 44 | You can put https://slakfinder.org/slackpkg+/ for historical reason 45 | in slackpkgplus.conf, but you are encouraged to use 46 | https://slakfinder.org/slackpkg+15/ or /slackpkg+dev/ instead it. 47 | I thank everyone for contributing by reporting bugs or new proposal. 48 | Special thanks to those who maintain the repositories, that make 49 | slackpkg+ useful. 50 | +-------------------------+ 51 | 52 | Sat Jan 29 16:42:01 CET 2022 53 | pkg/slackpkg+-1.8.rc3-noarch-1mt.txz: Upgrade 54 | - Give a chance to disable the packages cache purge. 55 | - some cosmetic report (thx to marav) 56 | - small issue trying to clean cache directory 57 | - A minor in slackpkg info on sbo packages 58 | - Generated 1.8 branch on github and slakfinder repositories 59 | - New repository /slackpkg+1.8/ and a dynamic repository /slackpkg+/ 60 | that automatically select a release for slackware 14.2 o 15.0 61 | +-------------------------+ 62 | 63 | Sun Jan 16 00:05:32 CET 2022 64 | pkg/slackpkg+-1.8.rc2-noarch-1mt.txz: Upgrade 65 | - Fixed an advice at first 1.8 install 66 | - Fixed slackpkg info for sbo packages 67 | - Avoid slackpkg runs update before load slackpkg+ code 68 | - Fixed automatic rebuild pkglist 69 | +-------------------------+ 70 | 71 | Fri Jan 14 20:49:06 CET 2022 72 | pkg/slackpkg+-1.8.rc1-noarch-2mt.txz: Rebuilt 73 | - Advice to run /var/lib/pkgtools/setup/setup.vi-ex if some upgrade 74 | delete the /usr/bin/vi link (may happens upgrading from 14.2 to 15.0) 75 | - Protect from slackware downgrades in case of wrong slackware mirror 76 | selected. 77 | - Report in /var/run/needs_restarting if some upgrade needs a reboot 78 | (from a non-release feature of slackpkg) 79 | - zlookkernel.sh does not try to configure grub, just re-configure if 80 | it is already configure 81 | +-------------------------+ 82 | 83 | Thu Jan 13 10:48:24 CET 2022 84 | pkg/slackpkg+-1.8.rc1-noarch-1mt.txz: Upgrade 85 | Slackware 15.0 rc3 has been released, declared as 99% freezed. 86 | Slackpkg too has had many changes, fix and improvement, and it's the 87 | time for slackpkg+ 1.8 to be declared ready. See the CHANGES in 88 | documentation for all improvements. 89 | - Regression on (not-needed) gpg key check on dir:/ repository 90 | +-------------------------+ 91 | 92 | Tue Jan 11 21:42:33 CET 2022 93 | pkg/slackpkg+-1.7.11-noarch-2mt.txz: Rebuilt 94 | - Automatically download gpg key if needed if STRICTGPG=on. 95 | If STRICTGPG=off you need to manually run slackpkg update gpg every 96 | time you add a new repository. 97 | +-------------------------+ 98 | 99 | Tue Jan 11 19:24:04 CET 2022 100 | pkg/slackpkg+-1.7.11-noarch-1mt.txz: Upgrade 101 | - zlookkernel.sh also supports grub (thanks to RezaT4795) 102 | - repositories.lst updated 103 | - Added "comma" syntax. Now you can add a comma (,) at start or at end 104 | of packagename to match the exact name, so "libreoffice," does match 105 | the "libreoffice" package and not the libreoffice-dict-* ecc. for ex: 106 | slackpkg upgrade libreoffice, 107 | slackpkg install alienbob:libreoffice, 108 | slackpkg download libreoffice, 109 | slackpkg search libreoffice, 110 | +-------------------------+ 111 | 112 | Sun Dec 19 23:40:59 CET 2021 113 | pkg/slackpkg+-1.7.10-noarch-1mt.txz: Upgrade 114 | - According to slackpkg 15.0.9, automatically rebuild package lists if 115 | missing or not build by slackpkg+ 116 | +-------------------------+ 117 | 118 | Tue Oct 26 10:10:23 CEST 2021 119 | pkg/slackpkg+-1.7.9-noarch-1mt.txz: Upgrade 120 | - According to slackpkg 15.0.8 new exit codes was added in slackpkg+ too: 121 | 0 Successful Slackpkg execution. 122 | 1 Something wrong happened. 123 | 2 Something fatal happened. (not available in slackpkg) 124 | 20 No package found to be downloaded, installed, reinstalled, upgraded 125 | or removed. 126 | 50 Slackpkg itself was upgraded and you need to re-run it. 127 | 100 There are pending updates. 128 | Please: do not ignore the fatal output! 129 | +-------------------------+ 130 | 131 | Sat Oct 16 15:39:45 CEST 2021 132 | pkg/slackpkg+-1.7.8-noarch-1mt.txz: Upgrade 133 | - New feature: CHECKDISKSPACE=on in configuration enable checking 134 | diskspace before download and install packages 135 | - Fixed an issue on zlookkernel when /boot/vmlinuz is a symlink to another 136 | symlink 137 | +-------------------------+ 138 | 139 | Fri Jul 9 00:47:35 CEST 2021 140 | pkg/slackpkg+-1.7.7-noarch-1mt.txz: Upgrade 141 | - Added support for SBo-current repository (by cgit ponce) 142 | - slackpkg download can download SBo scripts 143 | - Replaced SBOURL with array SBO to allow multiple repository. please 144 | do not change the default value. 145 | +-------------------------+ 146 | 147 | Sun Jul 4 23:51:46 CEST 2021 148 | pkg/slackpkg+-1.7.6-noarch-9mt.txz: Rebuilt 149 | - Just updated repositories in documentation and in sample config 150 | file. Note that some repository now force ssl, and bear.alienbase.ln 151 | moved to slackware.nl and www.slakfinder.org moved to slakfinder.org. 152 | If not explicitly put it in configuration files, the cached downloader 153 | may not work properly. So it's important update slackpkgplus.conf 154 | +-------------------------+ 155 | 156 | Sun Jul 4 19:57:22 CEST 2021 157 | pkg/slackpkg+-1.7.6-noarch-8mt.txz: Rebuilt 158 | - slackpkg update now force to download all metadata if conf file 159 | change (thanks to chrisretusn) 160 | - 'slackpkg download ' works 161 | +-------------------------+ 162 | 163 | Fri Jun 11 16:25:43 CEST 2021 164 | pkg/slackpkg+-1.7.6-noarch-7mt.txz: Rebuilt 165 | - Removed bash completion file (already included in slackpkg) 166 | +-------------------------+ 167 | 168 | Fri Jun 11 15:36:58 CEST 2021 169 | pkg/slackpkg+-1.7.6-noarch-6mt.txz: Rebuilt 170 | - slackpkg 15.0.5 incompatible gpg hardening. 171 | +-------------------------+ 172 | 173 | Wed May 26 20:31:25 CEST 2021 174 | pkg/slackpkg+-1.7.6-noarch-5mt.txz: Rebuilt 175 | - cached_downloader did not correctly honor VERBOSE >= 2 176 | +-------------------------+ 177 | 178 | Fri May 14 21:01:28 CEST 2021 179 | pkg/slackpkg+-1.7.6-noarch-4mt.txz: Rebuilt 180 | - bad package 181 | +-------------------------+ 182 | 183 | Fri May 14 20:53:06 CEST 2021 184 | pkg/slackpkg+-1.7.6-noarch-3mt.txz: Rebuilt 185 | - fix some regression with use of link 186 | +-------------------------+ 187 | 188 | Thu May 13 22:37:45 CEST 2021 189 | pkg/slackpkg+-1.7.6-noarch-2mt.txz: Rebuilt 190 | - link instead copy for local repositories (thanks to zdolar) 191 | - WGETOPTS="-q" works with links too (use it with USETERSE=on) 192 | - zlookkernel did not honor PLUGIN_ZLOOKKERNEL_PROMPT=off correctly 193 | +-------------------------+ 194 | 195 | Wed May 12 00:02:47 CEST 2021 196 | pkg/slackpkg+-1.7.6-noarch-1mt.txz: Upgrade 197 | - Added LEGACYBL to allow slackpkg+ to use the previous blacklist system 198 | - Fix 'continue' error message with -dialog=off 199 | - Print "Package:" on the same line of progress counter in downloading 200 | +-------------------------+ 201 | 202 | Mon May 3 10:05:41 CEST 2021 203 | pkg/slackpkg+-1.7.5-noarch-2mt.txz: Rebuilt 204 | - Not really need to rerun slackpkg update. 205 | - blacklist works as slackpkg 206 | +-------------------------+ 207 | 208 | Mon Mar 29 21:19:36 CEST 2021 209 | pkg/slackpkg+-1.7.5-noarch-1mt.txz: Upgrade 210 | - Added TERSESEARCH to show a compact output in search function (thanks to 211 | edrozenberg) 212 | +-------------------------+ 213 | 214 | Sat Mar 20 23:01:33 CET 2021 215 | pkg/slackpkg+-1.7.4-noarch-3mt.txz: Rebuilt 216 | - Fix exit code for check-updates (slackpkg 15.0.1); now it return 1 if 217 | there are updates available 218 | - Fix an incompatibility with dir:// repository and slackpkg 15.0.1 219 | +-------------------------+ 220 | 221 | Mon Mar 8 21:45:32 CET 2021 222 | pkg/slackpkg+-1.7.4-noarch-2mt.txz: Rebuilt 223 | - doinst.sh does remove CHECKSUMS.md5 instead pkglist 224 | - fix slackbuild 225 | - shorter pause after some warning 226 | - suppress some check-updates warning when run as non-root user 227 | - Improved ZLookKernel: 228 | Monitor other than vmlinuz (i.e. vmlinuz-generic) 229 | Run it from cmdline directly 230 | Configure it to ask less confirmation 231 | Better documentation (open the zlookkernel.sh to read it) 232 | +-------------------------+ 233 | 234 | Tue Mar 2 17:31:29 CET 2021 235 | pkg/slackpkg+-1.7.4-noarch-1mt.txz: Upgrade 236 | This release does not introduce feature on the core; just add a section to 237 | configuration file to enable some currently hidden feature. 238 | - Added plugin section. Now we can enable or disable sperimental plugin 239 | from configuration file. Currently we have two plugins. 240 | - ZLookKernel: help you to rebuild the initrd and install lilo or EFI elilo 241 | - ZChangeLog: generate a changelog for all repository at every 'update' 242 | process 243 | +-------------------------+ 244 | 245 | Mon Mar 1 20:40:19 CET 2021 246 | pkg/slackpkg+-1.7.3-noarch-1mt.txz: Upgrade 247 | Starting from 1.7.1, slackpkg+ no longer supports Slackware 14.2 (i.e. 248 | slackpkg-15.0). It advice you to downgrade to 1.7.0. Now we can fix some 249 | things that can break the backward compatibility. 250 | - from 2.84.0_beta1: Use CHECKSUMS.md5.asc to determine ChangeLog newness 251 | - from 2.84.0_beta11: check-updates change the messages and print the 252 | "no updates" in stdout and "updates available" in stderr. If you are 253 | using automatic scripts be sure to fix it. 254 | - now both work properly with slackpkg+ 255 | +-------------------------+ 256 | 257 | Thu Feb 25 12:56:55 CET 2021 258 | pkg/slackpkg+-1.7.2-noarch-2mt.txz: Rebuilt 259 | - Solved bad progress bar in download/upgrade process 260 | +-------------------------+ 261 | 262 | Wed Feb 24 22:07:25 CET 2021 263 | pkg/slackpkg+-1.7.2-noarch-1mt.txz: Upgrade 264 | It's the time to summarize all changes. 265 | As always, a big thanks goes to phenixia2003 and all other contributor 266 | Now we can summarise the changes. You can find a full list in the CHANGES 267 | documentation file 268 | slackpkg+ 1.7.2 adds new features with some new entries in configuration file 269 | that you should merge in your old slackpkgplus.conf: 270 | SBOURL , USETERSE , PROXY , USEBL (not new but changed the values) 271 | also some default values was changed from 1.7 to 1.7.2 272 | see README for details. 273 | New features: 274 | - Now slackpkgplus.conf has a manpage, also available in italian 275 | - Now we have a "fatal log". If it occurs please does not ignore it! 276 | - Now we can search packages in SBo repository. (does not replace sbopkg) 277 | - Now we can use httpdir/httpsdir/ftpdir repositories without metadata 278 | - Added an optional zlookkernel script to allow slackpkg to update initrd 279 | Improvements: 280 | - Quick output for Cached Download for a most clear output. 281 | - Improved output for 'slackpkg search' 282 | - Replaced Spinning with Percentage 283 | - Better output for download/install process 284 | - Now cachedupdate support HTTP/2 servers 285 | - bash_completion is now enabled by default 286 | Note: 287 | - slackpkg+ currently does not support $ROOT 288 | - slackpkg-15 uses a new blacklist syntax; this works fine with slackpkg+ 289 | but just for blacklist; don't use it for greylist 290 | +-------------------------+ 291 | 292 | Mon Feb 15 21:14:31 CET 2021 293 | pkg/slackpkg+-1.7.1-noarch-1mt.txz: Upgrade 294 | - This is a temporary release 295 | - Slackpkg+ devel no longer supports slackware 14.2 296 | +-------------------------+ 297 | 298 | Mon Feb 8 18:41:17 CET 2021 299 | pkg/slackpkg+-1.7.0d1-noarch-13mt.txz: Rebuilt 300 | - Fixed some regression on blacklist with slackpkg-15 301 | +-------------------------+ 302 | 303 | Mon Jan 25 16:50:48 CET 2021 304 | pkg/slackpkg+-1.7.0d1-noarch-12mt.txz: Rebuilt 305 | - Other fix for counter on big package lists (thank chrisretusn for reporting) 306 | - Reverted zlookkernel. It need more testing. 307 | +-------------------------+ 308 | 309 | Sun Jan 24 20:19:11 CET 2021 310 | pkg/slackpkg+-1.7.0d1-noarch-11mt.txz: Rebuilt 311 | - Fixed counter on big package lists (thank chrisretusn for reporting) 312 | - Added percentage to download process 313 | - Improved "Installing..." and "Upgrading..." messages 314 | - zlookkernel: select huge or generic kernel according the running 315 | kernel instead the vmlinuz link 316 | - Removed ktown from default repositories 317 | +-------------------------+ 318 | 319 | Sun Mar 15 21:36:19 CET 2020 320 | pkg/slackpkg+-1.7.0d1-noarch-10mt.txz: Rebuilt 321 | - Small fix in search packages 322 | - Added httpdir/httpsdir/ftpdir repository type. See documentation. 323 | +-------------------------+ 324 | 325 | Sun Mar 8 17:28:40 CET 2020 326 | pkg/slackpkg+-1.7.0d1-noarch-9mt.txz: Rebuilt 327 | - Regression due percentage improvements 328 | +-------------------------+ 329 | 330 | Sun Mar 8 13:58:45 CET 2020 331 | pkg/slackpkg+-1.7.0d1-noarch-8mt.txz: Rebuilt 332 | - Extends percentage where possible. 333 | - Align check-updates messages with slackpkg 2.84 334 | - Catch errors and return exit status: 1 for warning, 2 for fatal 335 | +-------------------------+ 336 | 337 | Tue Feb 18 08:30:10 CET 2020 338 | pkg/slackpkg+-1.7.0d1-noarch-7mt.txz: Rebuilt 339 | - Replace SPINNING with PROGRESS status 340 | - Small fix the Cached Downloader output 341 | - Added USETERSE option to enable --terse on pkgtools 342 | - Added PROXY to use a proxy 343 | - Fix for servers using HTTP/2 on checkrepos.sh 344 | - Fix search where there are duplicated packages (thanks phenixia2003) 345 | - Improved upgrade info on search (thanks phenixia2003) 346 | - Added Added /usr/libexec/slackpkg/zlookkernel.sh tool. Edit it to see instructions. 347 | +-------------------------+ 348 | 349 | Thu Jan 3 12:18:57 CET 2019 350 | pkg/slackpkg+-1.7.0d1-noarch-6mt.txz: Rebuilt 351 | - Allow to use the blacklist system from slackpkg 2.84 (still in beta). 352 | Only impact install/upgrade/remove options, and does not impact 353 | greylist. 354 | - Fixed searching groups (a, ap, ...) instead packages 355 | - Fix for servers using HTTP/2 on cached downloader 356 | +-------------------------+ 357 | 358 | Fri Jun 15 18:25:33 CEST 2018 359 | pkg/slackpkg+-1.7.0d1-noarch-5mt.txz: Rebuilt 360 | - Fix incompatibility with slackpkg prior 2.83.0-noarch-3 361 | +-------------------------+ 362 | 363 | Fri Jun 15 16:09:51 CEST 2018 364 | pkg/slackpkg+-1.7.0d1-noarch-4mt.txz: Rebuilt 365 | - Fix incompatibility with slackpkg-2.83.0-noarch-3 366 | - Fix setupmultilib script. It did use oldstyle 'multilib:' 367 | - Fix a regression in TAG PRIORITY 368 | - Handle the case where /var/log/packages is a symlink 369 | +-------------------------+ 370 | 371 | Thu Apr 26 23:49:04 CEST 2018 372 | pkg/slackpkg+-1.7.0d1-noarch-3mt.txz: Rebuilt 373 | - Do not log 'install.log' and 'fatal.log' when DOWNLOADONLY=on 374 | - issue with slackpkg-2.83 (development release) 375 | +-------------------------+ 376 | 377 | Sat Apr 14 00:09:27 CEST 2018 378 | pkg/slackpkg+-1.7.0d1-noarch-2mt.txz: Rebuilt 379 | - Add a fatal.log for messages that users should not ignore. 380 | Currently it log if a package fails to install/upgrade/remove. 381 | - slackpkg upgrade did not work with slackpkg-2.83 (development release) 382 | - Fixed checkrepos.sh when server response is 302 383 | - smaller output for slackpkg search 384 | +-------------------------+ 385 | 386 | Sun Oct 2 13:55:26 CEST 2016 387 | pkg/slackpkg+-1.7.0d1-noarch-1mt.txz: Upgrade 388 | - Added SBo support. This does not replace sbopkg. It just search in 389 | SlackBuilds.org and report the url to download to build and install 390 | packages yourself. 391 | +-------------------------+ 392 | 393 | Fri Jul 8 19:18:29 CEST 2016 394 | pkg/slackpkg+-1.7.0d0-noarch-4mt.txz: Rebuilt 395 | - Slackware 14.2 was finally released. Updated repository list. 396 | - Added manpage for the configuration file (man slackpkgplus.conf) 397 | - bash_completion is now enabled by default 398 | - Improved checkrepos.sh (now write PACKAGES.TXT size and last update time) 399 | - Changed some default settings in sample configuration file; also 400 | USEBL accepts on/off instead 0/1 401 | +-------------------------+ 402 | 403 | Wed Jun 22 21:05:15 CEST 2016 404 | pkg/slackpkg+-1.7.0d0-noarch-3mt.txz: Rebuilt 405 | - slackpkg search did not honor the '+' symbol (thanks to yars) 406 | +-------------------------+ 407 | 408 | Wed Jun 22 00:01:56 CEST 2016 409 | pkg/slackpkg+-1.7.0d0-noarch-2mt.txz: Rebuilt 410 | - slackpkg check-updates did not work unless you set VERBOSE=3 (thanks to 411 | Talus). 412 | +-------------------------+ 413 | 414 | Tue Jun 15 00:45:00 CEST 2016 415 | pkg/slackpkg+-1.7.0d0-noarch-1mt.txz: Upgraded 416 | Setting up mainline branch. 417 | - Fixed some typos and missed SEARCH_CLOG_INPARENT documentation in README 418 | - Suppress wget output in ChangeLog downloading 419 | - Fixed an issue when an invalid repository is configured 420 | +-------------------------+ 421 | 422 | Version 1.7.0rc3 - 03/Jun/2016 423 | This could be the last batch of updates before 1.7.0 stable, so please test! 424 | - dialog did no more trap develop errors (but if occurs please report it) 425 | - givepriority did drop matched package if it is the first in pkglist 426 | - Added /usr/src/slackpkg+-*/slackpkg.bash_completation. Edit it for 427 | instructions. 428 | 429 | Version 1.7.0rc2 - 02/Jun/2016 430 | - ChangeLog did not skipped for dir:/ repositories 431 | - ChangeLog did not show correctly certain slackware changelog 432 | - dir:/ repositories does not need STRICTGPG nor GPG key; however remember 433 | that if .asc file exists a key must be manually imported 434 | - Removed makeinstlog.sh since it was bugged and no longer supported 435 | - Repositories in default configuration file are bumped to 14.2 436 | - Full 1.7.0 changes tracked in CHANGES file 437 | - Added /usr/libexec/slackpkg/zchangelog.sh tool. Edit it to see instructions. 438 | 439 | Version 1.7.0rc1 - 19/May/2016 440 | - WW_FILE_SEARCH did affect file search AND package search 441 | - fixed warning in update when one repository does not have the changelog 442 | - ignore the package extension in package selection 443 | - fixed a regression in dir: repository 444 | 445 | Version 1.7.b4.3 - 02/May/2016 446 | - Optimized code for generating ChangeLogs. (phenixia2003) 447 | 448 | Version 1.7.b4.2 - 18/Apr/2016 449 | - Improved cached downloader with specifics output for ChangeLogs 450 | - Fixed a bug in TAG_PRIORITY when the package is not installed 451 | - Improved performance in upgrade by skipping priority check for 452 | not installed packages 453 | 454 | Version 1.7.b4.1 - 15/Apr/2016 455 | - slackpkg allow ChangeLog for third-party repositories too. 456 | - Reduced verbosity in cached downloader == most clear output. 457 | 458 | Version 1.7.b4 - 14/Mar/2016 459 | - slackpkg search now search in dir:// repositories too. 460 | - subdirectory allowed in dir:// repositories. 461 | - slackpkg search honour correctly the '+' character 462 | - Added 'ChangeLog' dialog box to show the changelog of selected packages 463 | (thanks to phenixia2003) 464 | 465 | Version 1.7.b3 - 27/Feb/2016 466 | - Added WW_FILE_SEARCH to file-search whole-words o not (thanks to yars068) 467 | - Colorized the slackpkg search results 468 | - Added DETAILED_INFO to allow slackpkg info to show many details on the 469 | package 470 | - slackpkg reinstall fixed; also now allow to choose the repository as in 471 | install/upgrade; this becouse there more than one repository containing 472 | identicals packages. 473 | - dir:// repositories and inline repositories has most priority 474 | 475 | Version 1.7.b2 - 29/Jan/2016 476 | - Avoid slackpkg to corrupt the slackware database if there are some manual 477 | upgrade in progress. 478 | - Fixed a regression in TAG_PRIORITY. 479 | - Added spinning in check-updates. 480 | - Fixed bad trap CTRL+C when spinning is on. 481 | - Fixed a regression in SENSITIVE_SEARCH. 482 | - Cached Download works with check-updates too. 483 | - check-updates shows downloader output if VERBOSE=3 484 | 485 | Version 1.7.b1 - 18/Jan/2016 486 | Well, I think that we can mark that version as Beta. It does not contains 487 | new features, but it was done a large work of bugfixes and improvements. 488 | A special thanks is for phenixia2003 and yars068 for code contributing and 489 | for many other for ideas and testing. It's the time for the tests, to find 490 | for bugs or someother improvement. 491 | - Improved greylist. Now it allow to match the name in installed packages, 492 | so it also impact remove and clean-system actions. 493 | - Improved performance searching packages and preparing the package list in 494 | large install/upgrade. 495 | - Improved 'slackpkg search' that now shows all packages matching from all 496 | repositories, not just that in priority; it will mark as 'masked' the 497 | packages that would not selected in install/upgrade mode. Also always show 498 | repository source for official packages. 499 | - Quick output for Cached Download.. 500 | - Does not show notices to remember to run 'slackpkg update' when running 501 | slackpkg check-updates. 502 | - Fixed Download Only when upgrade base packages (aaa_base, pkgtools...). 503 | - Fixed a bug in slackpkg upgrade when used with $ROOT. 504 | - Repositories now can contains letters, numbers, minus and underscore 505 | - Fixed a bug on x86 hosts when a repository contains also x86_64 packages 506 | - Some fix in Strict GPG Check. 507 | 508 | Version 1.7.a1 - 04/Jan/2016 509 | It's the time for a stable version of slackpkg+. Currently it is just a 510 | development version to fix older feature and add/test new. I'll need more 511 | test possible to make it bugfree ;). 512 | - Code reordering; now slackpkg+ is only slackpkgplus.sh 513 | - BugFix: slackpkg did give 'grep: write error' when running with "sudo su -". 514 | - Added repositories; improved checkrepos.sh 515 | - Strict GPG Check: Packages and metadata in one repository should be signed 516 | with just the root GPG-KEY. This improve security. Some repository might 517 | want to contains heterogeneous package. In this case, set STRICTGPG=off. 518 | See README. 519 | - New repository for slackpkg+ development version 520 | 521 | Version 1.6.1 - 20/Dec/2015 522 | - Added DOWNLOADONLY to just download packages without installing it 523 | 524 | Version 1.6.0 - 19/Dec/2015 525 | - Added CACHEUPDATE. You can now speedup the slackpkg update by caching 526 | metadata files. 527 | 528 | Version 1.5.2 - 18/Dec/2015 529 | - Fixed a missed $ROOT 530 | - Added SHOWORDER option. It's a way to sort packages in dialog box to help 531 | reviewing large upgrade from many repositories. The SHOWORDER option 532 | accepts "package" "repository" "tag" "path" "arch". 533 | - Fixed some repository url. There are already some 14.2 repositories!!! 534 | - slackpkg+ advise you to update the pkglist before use it 535 | - Added a script in /usr/doc/slackpkg+-* to a fast check of repositories 536 | - slackpkg -dialog=off now show repository name as with dialog 537 | - Added SENSITIVE_SEARCH option to search case-insensitive 538 | (thanks to phenixia2003) 539 | - Important fixes in the priority manager. Many thanks to all people that 540 | reported the bugs and a Big thanks to phenixia2003 for the fix. Now we need 541 | your help to test it. 542 | 543 | Version 1.5.1 - 20/Nov/2015 544 | Note for Slackware 14.1 users: slackware-current introduce important bug fix 545 | in slackpkg 2.82.0-14 (see Slackware ChangeLog) not backported in slackware 546 | 14.1; it is not mandatory but you are encouraged to upgrade it by download it 547 | manually; be sure to greylist slackpkg to avoid an automatic downgrade. 548 | - The trailing slash in MIRRORPLUS[] is now optional (thanks to phenixia2003 549 | and Didier Spaier) 550 | - Added DOWNLOADCMD option to add a custom downloader 551 | - Fixed a bug that causes that ALL repositories fail if ONE repository fails 552 | (thanks to FR on Alien Pasture for reporting) 553 | - Fixed TAG_PRIORITY to avoid impact in slackpkg install 554 | 555 | Version 1.5.0 - 10/Jul/2015 556 | - Fixed TAG_PRIORITY 557 | - Fixed repositories list 558 | 559 | Version 1.4.99 - 01/Jul/2015 560 | - Added priority by tag. Setting TAG_PRIORITY to 'on' slackpkg+ 561 | automatically upgrade packages from repository where the tag is the same 562 | of the already installed package. 563 | 564 | Version 1.4.1 - 16/Jun/2015 565 | - Fix for repositories having CHECKSUMS.md5.gz.asc 566 | 567 | Version 1.4.0 - 13/Dec/2014 568 | - Now the official repositories (slackware64, extra, patches...) are treated 569 | as thirdy party repositories, so you can add it in PKGS_PRIORITY 570 | (phenixia2003) 571 | - To put an entire repository in PKGS_PRIORITY, you no more need to add 572 | ':.*' after the name (phenixia2003) 573 | 574 | Version 1.3.3 - 26/Oct/2014 575 | - Patched to avoid to install glibc-debug from alienbob multilib (thanks to 576 | phenixia2003) 577 | 578 | Version 1.3.2 - 13/Jul/2014 579 | - Patched to reflect changes on slackpkg 2.82.0-13 580 | 581 | Version 1.3.1 - 7/Mar/2014 582 | - Improved check-updates function (thanks to phenixia2003) 583 | - Improved debug-mode 584 | 585 | Version 1.3.0 - 1/Jan/2014 586 | - Added a debug-mode download verbosity 587 | - On upgrade, the status bar show available packages from every repository 588 | 589 | Version 1.2.0 - 9/Dec/2013 590 | - Now ALLOW32BIT also auto-greylist the 32bit packages 591 | - Added an install log in /var/lib/slackpkg/install.log; use 592 | '/usr/libexec/slackpkg/makeinstlog.sh -t' to create a starting 593 | install.log (it TRY to detect the repository) 594 | 595 | Version 1.1.0 - 6/Dec/2013 596 | - Added ALLOW32BIT flag to allow to install 32bit packages on a 64bit system 597 | - setupmultilib.sh install only adaptative multilib by default 598 | - Small fixes 599 | 600 | Version 1.0.2 - 6/Dec/2013 601 | - Added WGETOPTS 602 | - Moved notifications on a dedicated configuration file (notifymsg.conf) 603 | 604 | Version 1.0.1 - 14/Nov/2013 605 | - Fixed fatal on 'pasture' repository and on invalid repository 606 | 607 | Version 1.0 - 11/Nov/2013 608 | - slackpkg+ 1.0 stable finally relased 609 | - All repositories aligned to newest slackware version 610 | - Documentation reformatting and some typo fix (thanx to idlemoor) 611 | - Added function 'notification on event' that allow to insert reminders 612 | when you install/ugrade/remove some packages. See slackpkgplus.conf samples. 613 | (thanks to phenixia2003) 614 | 615 | Version 1.0rc3 - 28/Oct/2013 616 | - slackpkg+ 1.0 release candidate 3. Last call. :) 617 | - Added setupmultilib.sh in /usr/doc/slackpkg+-*, an helper for configure 618 | multilibs in slackpkgplus.conf 619 | 620 | Version 1.0rc2 - 21/Oct/2013 621 | - Looks like we get a slackpkg+ 1.0 release candidate 2... but things are 622 | pretty much nailed down at this point. Please test and report any last :D 623 | - Updated some repository to 14.1 624 | 625 | Version 1.0rc1 - 16/Oct/2013 626 | - Slackware 14.1 is coming up. I think that also slackpkg+ is ready so as 627 | Slackware I mark it as rc1 :). slackpkg 2.82.0-11 added the 14.1 repositories. 628 | Unfortuatly I don't know which third-party repository will contains 14.1 629 | packages, so I can't add 14.1 to repositories.txt 630 | - You can now ovverride SLACKPKGPLUS VERBOSE from command-line (as USEBL) 631 | 632 | Version 0.9.7.4 - 24/Sep/2013 633 | - Try a better way to detect the newest version of the same package in local 634 | or remote directory (does not guarantees 100% success) 635 | - Try to download CHECKSUMS.md5.gz.asc if CHECKSUMS.md5.asc does not exists 636 | (as salixos repository) 637 | 638 | Version 0.9.7.3 - 10/Sep/2013 639 | - Fix an issue with dir:// repositories and gpg check 640 | 641 | Version 0.9.7.2 - 09/Sep/2013 642 | - Added support for unrepositorized local directory in config file 643 | - Added USEBL to temporary skip blacklist check (USEBL=0 slackpkg install..) 644 | 645 | Version 0.9.7.1 - 06/Sep/2013 646 | - fixed a bug on 'slackpkg upgrade file:..' 647 | 648 | Version 0.9.7 - 05/Sep/2013 649 | - Added install/upgrade/reinstall from disk with file:package.txz or dir:path, 650 | and remote with {http,ftp,htts}://site/path/[package.txz], unrepositorized 651 | packages. Please, read the README file. 652 | - Disallow to choice the download manager; slackpkg+ require wget AND lftp 653 | 654 | Version 0.9.6.1 - 02/Sep/2013 655 | - fixed a bug in new dialog function (thanks to phenixia2003) 656 | 657 | Version 0.9.6 - 01/Sep/2013 658 | - fixed a slackpkg bug that does not recreate $WORKDIR if it does not exists. 659 | - added repository name in dialog 660 | 661 | Version 0.9.5 - 28/Aug/2013 662 | - fixed a problem with some compat32 packages 663 | - fixed a issue about packages selection with the official slackware repository 664 | (thanks to phenixia2003) 665 | 666 | Version 0.9.4 - 27/Aug/2013 667 | - fixed a issue when a pattern is used multiple times in argument 668 | - fixed a bug in install/upgrade regarding the enhanced priority 669 | - fixed a bug in search which leads to wrong information about upgrade 670 | - allow to to install/upgrade/reinstall/remove all the packages from 671 | a given repository (thanks to phenixia2003 for big patch) 672 | 673 | Version 0.9.3 - 25/Aug/2013 674 | - fixed md5 check (thanks to AlienBob) 675 | 676 | Version 0.9.2 - 01/Aug/2013 677 | - allow to search the non $ARCH packages 678 | - speed up the update process 679 | - allow to disable the download status bar 680 | 681 | Version 0.9.1 - 05/May/2013 682 | - fixed an error when a folder is missing in the slackware mirror (as 683 | /testing). 684 | - fixed a conflict searching the package 'slackpkg' 685 | - added file-search function 686 | 687 | Version 0.9rc3 - 01/May/2013 688 | - added more config file checks 689 | - fixed a bug that does not allow to use the gpg check 690 | - fixed a bug that deny to use local slackware mirror 691 | 692 | Version 0.9rc2 - 30/Apr/2013 693 | - added config file checks 694 | - fixed a bug that try to check gpg even if CHECKGPG is set to off 695 | - fixed a bug that show compat32 packages as duplicated 696 | - implemented 'slackpkg search' 697 | 698 | Version 0.9rc1 - 29/Apr/2013 699 | - added some repository 700 | 701 | Version 0.9beta2 - 27/Apr/2013 702 | - fixed a 'package' bug that override slackpkgplus.conf (instead .new) 703 | - added doinst.sh that auto-select a configuration file depending $ARCH 704 | - fixed priority system bug when two repositories have package with the same 705 | full name 706 | 707 | Version 0.9beta1 - 26/Apr/2013 708 | - added repositories in conf file 709 | - added a priority system for repository only 710 | - added support to local repository 711 | 712 | Version 0.9test1 - 26/Apr/2013 713 | - added a priority system for repository and single packages 714 | - added gpg support 715 | - added explicit support for alienbob multilibs 716 | 717 | Version 0.3beta - 10/Oct/2012 718 | - Added slackware 14.0 in default configuration 719 | 720 | Version 0.2beta - 28/Sep/2012 721 | - renamed in 'slackpkg+' 722 | - allow to add multiple repositories 723 | - extends the slackpkg 'PRIORITY' 724 | 725 | Version 0.1 - 12/Jul/2011 726 | First release. 727 | - added slacky repository to slackpkg 728 | -------------------------------------------------------------------------------- /GPG-KEY: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PUBLIC KEY BLOCK----- 2 | Version: GnuPG v1.4.12 (GNU/Linux) 3 | 4 | mQENBE0fJ0MBCACt1SvFHKtSDhrYQYXkK1n8o2lGioKWeN7c4AS3plm6OuLs6lbd 5 | tYcfrVqbQbnYluxHDwAvTWwYD/m4LSGCqIj2AOt23K5MLSRk5hxOy7nI1xjtUmeZ 6 | B203fIgk0Ym/vVFuMehM+zM8AC7HtfAZ4ByZX06k7SrK7mQYvIHEHf07Gtw01TZr 7 | mc/Sps3Iz/0j015ztdmGHZ6S97TDu3nuMAdAofSklR+kEM0+HcByu4OLh+iQdYwd 8 | Oo+sAOZrCU9gUElsqWy/Tg0Qdu6PADNV8Btugyzpwz17z5Le5ItHyrpsxdxsFY0Q 9 | +P9FsQxaU7KWKo9Nf2YZlqRgwgffNTtg7aLFABEBAAG0Ik1hdHRlbyBSb3NzaW5p 10 | IDx6ZXJvdW5vQHNsYWNreS5pdD6JATgEEwECACIFAk0fJ0MCGwMGCwkIBwMCBhUI 11 | AgkKCwQWAgMBAh4BAheAAAoJEL/Rm5PtEj+8OsoIAJVNQ676gtyySUMyjghs09mt 12 | VaiubB4iBUgKCuNH11gtuoJ5CRnak3FMuCVUqYbnmb6Y4kYrVQ3OgR26kacSJyia 13 | rFPVH1Skerw80ofKpftfd4AlX30wKp8BoCOcO7zZ8NpZpvyDMTuPwvVZe8kJTl5u 14 | G4oCFEj7TIIL89GXicFlWaahgT0KWX4CAtxklHmFKfeMmwC+PLJtxMj1az1V+tXc 15 | zVUQ2nCNOfR6pBiVO+m/GyRDuHu8yVlIVidLPBnTlgv3rcwWxGeV3qC2J8dXt8rc 16 | OzhQONN9CkP4SvBPfzCSaFRhYhNxjtCvVVAOwheakHgLpzrF9qb8W1cCliaGDma5 17 | AQ0ETR8nQwEIAJ5LsJyxaOMtedc9mYzl82RDdHhTeSfyQcmj5EfitynD/rVQ6rl2 18 | NjSdIcJL76k+VUVFMzuSQCkYQXqYfSJbv7zIj4Y/TTpF0vRco/O2j7hh97PNn7ch 19 | zXIKCqcaGkqXvLkvksw2aHk6r6zXXOBmUbp97BVURBJwT/0DomugbStDDRuasLe8 20 | 38JuzjHgvn42vfGpvYS/k+LHWYM4e1O3JrSimlbLFUbz3gImF48g7RbskLynKTdT 21 | dxWds4Qh20fb49quOTt6dK768jwTF3RLQQ6Xj48uzxILYt4qHjIQS1eGTg4IAM2X 22 | hryaIq8DkIzRjoBekW4j37eblVDu6EbGwTkAEQEAAYkBHwQYAQIACQUCTR8nQwIb 23 | DAAKCRC/0ZuT7RI/vOp+B/0dO6o0p9Jxk4qfmDnczfwmBe6k3ysHjaZ80pjQJdhR 24 | tox32KpJk5fIok4lniEsmhrSDAFmWPcciItKUe2AZfOQTzeNqBy4IJFSVHIjuxrp 25 | XwbZ3sTzBNLQWZE4nmHk6MJy+n3Po9FDkvKG1BnpRSfFfIqgAFT/p01tikyfjj6k 26 | QR1UMRMRbHrTVHv5Kx3LMC0udJWxRqhZoLRdRygAcMsoGshhQqy5Wbw9ZLqHp4W9 27 | DgslJY9CmlnRoL/lmYLLHG/oE36UnvsGStpzExbvFTzwOEu44jKXneE3GcIiS/eX 28 | OXmm+F0aDmXyzsDlSyuT5tAV+2Nw5mQQz8OYSxvBNuc1 29 | =zFmp 30 | -----END PGP PUBLIC KEY BLOCK----- 31 | -------------------------------------------------------------------------------- /README.TXT: -------------------------------------------------------------------------------- 1 | slackpkg+ plugin for third-party repositories 2 | 3 | Slackpkg is a package manager for Slackware. 4 | 5 | Slackpkg+ is a plugin for slackpkg. 6 | It adds support for third-party repositories. 7 | You can install, upgrade and search from multiple repositories. 8 | 9 | -------------------------------------------------------------------------------- /THANKS: -------------------------------------------------------------------------------- 1 | Thanks to AlienBob and phenixia2003 (on LQ) for contributing 2 | -------------------------------------------------------------------------------- /src/CHANGES: -------------------------------------------------------------------------------- 1 | = Full Changes list = 2 | 3 | == From 1.8 to mainline == 4 | 5 | *New features: 6 | 7 | - Added french manpage for slackpkgplus.conf 8 | to read the french manpage be sure to export LANG=fr_FR@euro and use the 9 | ISO8859-15 charset in console. 10 | 11 | *Bug Fixes: 12 | 13 | - Manage '+' in $TEMP path 14 | 15 | == From 1.7 to 1.8 == 16 | 17 | *Configuration file: 18 | 19 | - USEBL now accepts 'on'/'off' values instead '0'/'1' 20 | 21 | - Changed some default settings in sample configuration file 22 | 23 | - Added SBO to configure the SlackBuild.org repository (search and download). 24 | Please do not touch the default values. 25 | 26 | - Added USETERSE to use the --terse mode for pkgtools 27 | 28 | - Added TERSESEARCH to show a compact output in search function 29 | 30 | - Added PROXY to specify a proxy server 31 | 32 | - Removed ktown samples since kde5 is in slackware 15.0 33 | 34 | - Added plugins section to configure the extra-tools in slackpkg+ 35 | Currently zlookkernel and zchangelog 36 | Note that some plugin may be experimental 37 | 38 | - Added LEGACYBL to allow slackpkg+ to use blacklist syntax from slackware 14.2 39 | 40 | - Added CHECKDISKSPACE to allow to check disk space before download and install 41 | packages 42 | 43 | *New features: 44 | 45 | - Added "comma" syntax. Now you can select an exact package name adding a comma (,) 46 | at the end of the package name 47 | slackpkg upgrade libreoffice, 48 | slackpkg install alienbob:libreoffice, 49 | slackpkg download libreoffice, 50 | slackpkg search libreoffice, 51 | without comma slackpkg shows libreoffice libreoffice-dict-* libreoffice-l10n-* 52 | that means up to 500 packages that you have to deselect. With the comma 53 | slackpkg shows the libreoffice package only. 54 | You can also add it at the start of name 55 | slackpkg install alienbob:libreoffice, 56 | slackpkg install alienbob:,libreoffice 57 | slackpkg install ,alienbob:libreoffice 58 | are all equivalent 59 | 60 | - Added manpages (italian and english) for slackpkgplus.conf 61 | to read the italian manpage be sure to export LANG=it_IT@euro and use the 62 | ISO8859-15 charset in console. 63 | 64 | - Added a 'fatal log' to show some serious error that the users should not 65 | ignore. For example a failure installing packages. 66 | 67 | - Added SBo support. This does not replace sbopkg. It just search in 68 | SlackBuilds.org and report the presence of the package; you can download 69 | it via 'slackpkg download ', then build and install 70 | packages yourself. 71 | 72 | - Added httpdir/httpsdir/ftpdir repositories. These repositories does not 73 | need metadatas (CHECKSUMS.md5 ...), simple a remote directory listing 74 | 75 | - Allow slackpkg+ to use the blacklist system from slackware 14.2; the new 76 | blacklist system from slackware 15.0 may not work properly with third party 77 | repositories 78 | 79 | - Added check disk space before download and install packages 80 | 81 | - Added new exit codes according to slackpkg-15.0.8 and one specific for slackpkg+ 82 | 0 Successful Slackpkg execution. 83 | 1 Something wrong happened. 84 | 2 Something fatal happened, please do not ignore it. (not available in slackpkg) 85 | 20 No package found to be downloaded, installed, reinstalled, upgraded 86 | or removed. 87 | 50 Slackpkg itself was upgraded and you need to re-run it. 88 | 100 There are pending updates. 89 | IMPORTANT note: please do not use 90 | # slackpkg install-new && slackpkg upgrade-all 91 | 92 | - Rebuild pkglist database if it was not generated by slackpkg+. Avoid slackpkg 93 | (starting 15.0.9) to autogenerate pkglist database skipping slackpkg+. 94 | This happen after a self upgrade of slackpkg. 95 | After a manual upgrade of slackpkg or a manual remove of pkglist database, 96 | slackpkg will generate the pkglist skipping slackpkg+ then slackpkg+ will 97 | regenerate pkglist skipping slackpkg :) 98 | 99 | - Create a /var/run/needs_restarting with the list of upgraded packages that may need 100 | reboot (proposed by piterpunk on github for slackpkg) 101 | 102 | *Improvements 103 | 104 | - Improved checkrepos.sh 105 | 106 | - Smaller output for 'slackpkg search' 107 | 108 | - Replaced Spinning with Percentage 109 | 110 | - Better output for download/install process 111 | 112 | - 'slackpkg search' show more compact info on column Status 113 | 114 | - set PLUGIN_ZCHANGELOG=enable to enable zchangelog.sh plugin 115 | set PLUGIN_ZCHANGELOG_SHOW=on to print changelog on stdout 116 | For details read notes in the code: 117 | /usr/libexec/slackpkg/functions.d/zchangelog.sh 118 | It does not support SBo repositories 119 | 120 | - Prevents from slackware downgrade caused by mirror misconfiguration. 121 | 122 | - Advice to run /var/lib/pkgtools/setup/setup.vi-ex if some upgrade removes 123 | /usr/bin/vi 124 | 125 | *BugFixes 126 | 127 | - 'slackpkg search' did not honor the '+' symbol 128 | 129 | - Issues when an invalid repository is configured or no repositories are 130 | configured 131 | 132 | - 'slackpkg check-updates' did not work unless you set VERBOSE=3 133 | 134 | - Fix a not work properly when run as a package group instead single packages 135 | (a, ap, d, ...) 136 | 137 | - Fix caching HTTP/2 servers 138 | 139 | - Fix setupmultilib script 140 | 141 | - 'slackpkg search' did not show duplicated packages (as ffmpeg in alienbob 142 | and restricted repositories) 143 | 144 | - Handle the case where /var/log/packages is a symlink 145 | 146 | 147 | *Various 148 | 149 | - No longer need to run 'slackpkg update gpg' everytime a repository is added or 150 | renamed, unless STRICTGPG=off 151 | 152 | - Suppress wget output in ChangeLog downloading 153 | 154 | - Catch errors and return exit status: 1 for warning, 2 for fatal 155 | after run slackpkg you can read the exit status with echo $? 156 | 1 => WARNING! One or more errors occurred while slackpkg was running 157 | 2 => FATAL! Some operation has failed and need attention 158 | other from slackpkg (see above) 159 | 160 | - Bash completion removed (already included in slackpkg) 161 | 162 | - Works with slackpkg-15 163 | Unfortunately it does not work if $ROOT is non-empty 164 | Also slackpkg-15 introduces a new blacklist system and seems to work fine 165 | but greylist system use the older syntax 166 | 167 | - Added zlookkernel.sh 168 | It help you to reconfigure initrd. It does support lilo , elilo (EFI) and grub 169 | set PLUGIN_ZLOOKKERNEL=enable to use it 170 | For instructions read notes in the code: 171 | /usr/libexec/slackpkg/functions.d/zlookkernel.sh 172 | 173 | == From 1.6 and 1.7 == 174 | 175 | *Configuration file: 176 | 177 | - Added SEARCH_CLOG_INPARENT: available 'on'/'off'; default is 'off' 178 | Allow/disallow to search ChangeLog.txt in parent url. May be unsafe. 179 | 180 | - Added WW_FILE_SEARCH: available 'on'/'off'; default is 'off' 181 | Allow you to enable or disable the Whole Word search in 'slackpkg file-search' 182 | 183 | - Added DETAILED_INFO: available 'none'/'basic'/'filelist'; default is 'none' 184 | Specify the verbosity of output in 'slackpkg info'. 185 | 186 | - Added STRICTGPG: available 'on'/'off'; default is 'on' 187 | Allow you to disable the Strict GPG Check. This is NOT SECURE, but some 188 | repository may need it. 189 | 190 | 191 | *New features: 192 | 193 | - slackpkg+ allow you to see the ChangeLog in dialog box. 194 | Now 'slackpkg update' download all ChangeLog.txt from all repositories (if 195 | available). Then when you go to in install/upgrade a package, you have a chance 196 | to read it before install the package. Note that the ChangeLog must be in 197 | the same Slackware changelog format. Some repository does not have the 198 | ChangeLog.txt in the main url but has it in a parent url. Be sure to set 199 | SEARCH_CLOG_INPARENT to 'on' to search it in parent. Note that ascend out 200 | of main url sometime may be unsafe; so if it does not work reset it to 'off'. 201 | Note that sometime the changelog does not fit in dialogbox; you can use 202 | left<->right arrow to move it orizzontally. 203 | 204 | - 'slackpkg info' allows you to see more details about the package. 205 | By default slackpkg info shows you the slackware metadata and package 206 | description. Set DETAILED_INFO to 'basic' and you can also see the 207 | repository and url. Set it to 'filelist' and you will see the full file 208 | listing in the package. Note that packages as kernel-source or other big 209 | packages give you a loooong list. 210 | 211 | - slackpkg+ now uses a Strict GPG Check for packages and metadata .asc files. 212 | This is a security fix. 213 | slackpkg was born to install slackware packages from official mirrors; they 214 | are signed with the official slackware GPG-KEY, so no other packages may be 215 | added (unless you disable GPG check). 216 | slackpkg+ introduces the ability to download keys from many repositories; as 217 | implication, slackpkg+ allow also to copy packages from other repositories and 218 | the original signature; in this way a repository can contain a mix of packages 219 | that may confuse the user. 220 | Strict GPG check disallow users to do that. This improve the security. 221 | However some repository NEEDs the mixes of packages, so you can disable this 222 | function by setting STRICTGPG to 'off' 223 | 224 | 225 | *Improvements 226 | 227 | - Cached Download: 228 | Now it gives you a quick output for a most clear output. 229 | Now you can use it in slackpkg check-updates. 230 | Now it caches most metadata file. 231 | 232 | - Performance: 233 | slackpkg now is faster when search packages or prepare the package list in 234 | large install/upgrade 235 | 236 | - slackpkg search: 237 | * It does order the results by status, and colors the output 238 | * It does search in dir:/ repositories 239 | * If a package match in more than one repository, it did show just the package 240 | that had priority; now it show all matching packages from all repositories. 241 | It will mark as 'masked' the packages that would not selected in install/upgrade 242 | mode. Also it always shows repository source for official packages. 243 | 244 | - Graylist: 245 | Now it works for slackpkg remove and clean-system too (however it matches 246 | package name only, not match for repository name or package path) 247 | 248 | - slackpkg check-updates: 249 | * Added spinning 250 | * Shows downloader output if VERBOSE=3 251 | * Does not more show notices about remember to run 'slackpkg update' 252 | 253 | - slackpkg reinstall: 254 | Allow to choose the repository as in install/upgrade; this becouse there are 255 | more than one repository containing packages with identical name (but different 256 | packages, i.e. chromium for slackware 14.1 and the same version for current). 257 | 258 | - dir:/ repositories: 259 | * dir:/ repositories and inline repositories has most priority 260 | * slackpkg search does search in dir:/ repositories 261 | * now dir:/ allows subdirectories; note that EVERYTIME you run slackpkg, it 262 | scan for all subdirectories of any dir:/ repositoies, even if you does not use 263 | that repository. It uses the 'find' command, so be sure to not select largest 264 | directories. 265 | 266 | 267 | *BugFixes 268 | 269 | - slackpkg did give 'grep: write error' when running after "sudo su -" 270 | 271 | - Fixed a bug on x86 hosts when a repository contains also x86_64 packages. 272 | 273 | - Fixed a bug in slackpkg upgrade when used with $ROOT. 274 | 275 | - Fixed Download Only feature when upgrade base packages (aaa_base, pkgtools...). 276 | 277 | - Fixed a regression in SENSITIVE_SEARCH 278 | 279 | - Fixed bad trap CTRL+C when spinning is on. 280 | 281 | - Various fixes in TAG_PRIORITY functionality. 282 | 283 | - slackpkg could corrupt the slackware database if running when there are 284 | some manual upgrades in progress. 285 | 286 | - slackpkg search did not honour correctly the '+' character 287 | 288 | 289 | 290 | *Various 291 | 292 | - Repository name can contain letters, numbers, minus and underscore 293 | 294 | - Added and fixed repositories; improved checkrepos.sh 295 | 296 | - Code reordering; now slackpkg+ is only slackpkgplus.sh; removed zdialogplus.sh 297 | 298 | - Removed makeinstlog.sh; the install.log just track slackpkg+ operations, and 299 | makeinstalog.sh was bugged and no longer used. 300 | 301 | - Added zchangelog.sh tool to create a global repositories changelog every time 302 | you run 'slackpkg update'; it is in an embrional state, so you must install it 303 | manually. For instructions read notes in the code: 304 | /usr/libexec/slackpkg/zchangelog.sh 305 | 306 | - Added bash completation. You can do basic search packages directly from 307 | commandline with a simple . slackpkg search emacs_ 308 | emacs emacspeak emacspeak-ss 309 | Copy /usr/src/slackpkg+-*/slackpkg.bash_completation in /etc/bash_completation.d 310 | 311 | 312 | -------------------------------------------------------------------------------- /src/ChangeLog.txt: -------------------------------------------------------------------------------- 1 | Wed Sep 7 09:24:29 CEST 2022 2 | pkg/slackpkg+-1.8.0-noarch-7mt.txz: Rebuilt 3 | - egrep deprecated. thx to ma marav 4 | +-------------------------+ 5 | 6 | Sat May 7 01:31:38 CEST 2022 7 | pkg/slackpkg+-1.8.0-noarch-6mt.txz: Rebuilt 8 | - wget2 did print CWD 9 | - fixed typo in documentation 10 | +-------------------------+ 11 | 12 | Sat May 7 01:06:13 CEST 2022 13 | pkg/slackpkg+-1.8.0-noarch-5mt.txz: Rebuilt 14 | - wget2 does not honor WGETOPTS 15 | +-------------------------+ 16 | 17 | Mon Apr 18 18:19:11 CEST 2022 18 | pkg/slackpkg+-1.8.0-noarch-4mt.txz: Rebuilt 19 | - Show filename in wget2 instead directory 20 | +-------------------------+ 21 | 22 | Sun Apr 3 19:29:38 CEST 2022 23 | pkg/slackpkg+-1.8.0-noarch-3mt.txz: Rebuilt 24 | - Manage '+' in $TEMP path 25 | - Remove obsolete or broken repositories from list 26 | - Add SBo 15.0 27 | +-------------------------+ 28 | 29 | Wed Feb 16 15:50:11 CET 2022 30 | pkg/slackpkg+-1.8.0-noarch-2mt.txz: Rebuilt 31 | - slackpkg update will return exit code 2 on broken slackware mirrors 32 | - Advice if you are installing a wrong release of multilibs. 33 | - Make difference in switching from current >15.0 or from <15.0 to 15.0 34 | +-------------------------+ 35 | 36 | Thu Feb 3 11:18:01 CET 2022 37 | pkg/slackpkg+-1.8.0-noarch-1mt.txz: Upgrade 38 | Hello, World! Slackware 15.0 was finally released so slackpkg+ has 39 | been adapted, so we can release Slackpkg+ 1.8.0 final release. Also 40 | some third party repositories are ready. A notice: starting from now 41 | /slackpkg+/ official repository will contain slackpkg+ 1.8 (an alias 42 | o /slackpkg+15/ repository, unless you are using wget/curl/lftp from 43 | slackware 14.2; in this case the site automatically show slackpkg+1.7. 44 | You can put https://slakfinder.org/slackpkg+/ for historical reason 45 | in slackpkgplus.conf, but you are encouraged to use 46 | https://slakfinder.org/slackpkg+15/ or /slackpkg+dev/ instead it. 47 | I thank everyone for contributing by reporting bugs or new proposal. 48 | Special thanks to those who maintain the repositories, that make 49 | slackpkg+ useful. 50 | +-------------------------+ 51 | 52 | Sat Jan 29 16:42:01 CET 2022 53 | pkg/slackpkg+-1.8.rc3-noarch-1mt.txz: Upgrade 54 | - Give a chance to disable the packages cache purge. 55 | - some cosmetic report (thx to marav) 56 | - small issue trying to clean cache directory 57 | - A minor in slackpkg info on sbo packages 58 | - Generated 1.8 branch on github and slakfinder repositories 59 | - New repository /slackpkg+1.8/ and a dynamic repository /slackpkg+/ 60 | that automatically select a release for slackware 14.2 o 15.0 61 | +-------------------------+ 62 | 63 | Sun Jan 16 00:05:32 CET 2022 64 | pkg/slackpkg+-1.8.rc2-noarch-1mt.txz: Upgrade 65 | - Fixed an advice at first 1.8 install 66 | - Fixed slackpkg info for sbo packages 67 | - Avoid slackpkg runs update before load slackpkg+ code 68 | - Fixed automatic rebuild pkglist 69 | +-------------------------+ 70 | 71 | Fri Jan 14 20:49:06 CET 2022 72 | pkg/slackpkg+-1.8.rc1-noarch-2mt.txz: Rebuilt 73 | - Advice to run /var/lib/pkgtools/setup/setup.vi-ex if some upgrade 74 | delete the /usr/bin/vi link (may happens upgrading from 14.2 to 15.0) 75 | - Protect from slackware downgrades in case of wrong slackware mirror 76 | selected. 77 | - Report in /var/run/needs_restarting if some upgrade needs a reboot 78 | (from a non-release feature of slackpkg) 79 | - zlookkernel.sh does not try to configure grub, just re-configure if 80 | it is already configure 81 | +-------------------------+ 82 | 83 | Thu Jan 13 10:48:24 CET 2022 84 | pkg/slackpkg+-1.8.rc1-noarch-1mt.txz: Upgrade 85 | Slackware 15.0 rc3 has been released, declared as 99% freezed. 86 | Slackpkg too has had many changes, fix and improvement, and it's the 87 | time for slackpkg+ 1.8 to be declared ready. See the CHANGES in 88 | documentation for all improvements. 89 | - Regression on (not-needed) gpg key check on dir:/ repository 90 | +-------------------------+ 91 | 92 | Tue Jan 11 21:42:33 CET 2022 93 | pkg/slackpkg+-1.7.11-noarch-2mt.txz: Rebuilt 94 | - Automatically download gpg key if needed if STRICTGPG=on. 95 | If STRICTGPG=off you need to manually run slackpkg update gpg every 96 | time you add a new repository. 97 | +-------------------------+ 98 | 99 | Tue Jan 11 19:24:04 CET 2022 100 | pkg/slackpkg+-1.7.11-noarch-1mt.txz: Upgrade 101 | - zlookkernel.sh also supports grub (thanks to RezaT4795) 102 | - repositories.lst updated 103 | - Added "comma" syntax. Now you can add a comma (,) at start or at end 104 | of packagename to match the exact name, so "libreoffice," does match 105 | the "libreoffice" package and not the libreoffice-dict-* ecc. for ex: 106 | slackpkg upgrade libreoffice, 107 | slackpkg install alienbob:libreoffice, 108 | slackpkg download libreoffice, 109 | slackpkg search libreoffice, 110 | +-------------------------+ 111 | 112 | Sun Dec 19 23:40:59 CET 2021 113 | pkg/slackpkg+-1.7.10-noarch-1mt.txz: Upgrade 114 | - According to slackpkg 15.0.9, automatically rebuild package lists if 115 | missing or not build by slackpkg+ 116 | +-------------------------+ 117 | 118 | Tue Oct 26 10:10:23 CEST 2021 119 | pkg/slackpkg+-1.7.9-noarch-1mt.txz: Upgrade 120 | - According to slackpkg 15.0.8 new exit codes was added in slackpkg+ too: 121 | 0 Successful Slackpkg execution. 122 | 1 Something wrong happened. 123 | 2 Something fatal happened. (not available in slackpkg) 124 | 20 No package found to be downloaded, installed, reinstalled, upgraded 125 | or removed. 126 | 50 Slackpkg itself was upgraded and you need to re-run it. 127 | 100 There are pending updates. 128 | Please: do not ignore the fatal output! 129 | +-------------------------+ 130 | 131 | Sat Oct 16 15:39:45 CEST 2021 132 | pkg/slackpkg+-1.7.8-noarch-1mt.txz: Upgrade 133 | - New feature: CHECKDISKSPACE=on in configuration enable checking 134 | diskspace before download and install packages 135 | - Fixed an issue on zlookkernel when /boot/vmlinuz is a symlink to another 136 | symlink 137 | +-------------------------+ 138 | 139 | Fri Jul 9 00:47:35 CEST 2021 140 | pkg/slackpkg+-1.7.7-noarch-1mt.txz: Upgrade 141 | - Added support for SBo-current repository (by cgit ponce) 142 | - slackpkg download can download SBo scripts 143 | - Replaced SBOURL with array SBO to allow multiple repository. please 144 | do not change the default value. 145 | +-------------------------+ 146 | 147 | Sun Jul 4 23:51:46 CEST 2021 148 | pkg/slackpkg+-1.7.6-noarch-9mt.txz: Rebuilt 149 | - Just updated repositories in documentation and in sample config 150 | file. Note that some repository now force ssl, and bear.alienbase.ln 151 | moved to slackware.nl and www.slakfinder.org moved to slakfinder.org. 152 | If not explicitly put it in configuration files, the cached downloader 153 | may not work properly. So it's important update slackpkgplus.conf 154 | +-------------------------+ 155 | 156 | Sun Jul 4 19:57:22 CEST 2021 157 | pkg/slackpkg+-1.7.6-noarch-8mt.txz: Rebuilt 158 | - slackpkg update now force to download all metadata if conf file 159 | change (thanks to chrisretusn) 160 | - 'slackpkg download ' works 161 | +-------------------------+ 162 | 163 | Fri Jun 11 16:25:43 CEST 2021 164 | pkg/slackpkg+-1.7.6-noarch-7mt.txz: Rebuilt 165 | - Removed bash completion file (already included in slackpkg) 166 | +-------------------------+ 167 | 168 | Fri Jun 11 15:36:58 CEST 2021 169 | pkg/slackpkg+-1.7.6-noarch-6mt.txz: Rebuilt 170 | - slackpkg 15.0.5 incompatible gpg hardening. 171 | +-------------------------+ 172 | 173 | Wed May 26 20:31:25 CEST 2021 174 | pkg/slackpkg+-1.7.6-noarch-5mt.txz: Rebuilt 175 | - cached_downloader did not correctly honor VERBOSE >= 2 176 | +-------------------------+ 177 | 178 | Fri May 14 21:01:28 CEST 2021 179 | pkg/slackpkg+-1.7.6-noarch-4mt.txz: Rebuilt 180 | - bad package 181 | +-------------------------+ 182 | 183 | Fri May 14 20:53:06 CEST 2021 184 | pkg/slackpkg+-1.7.6-noarch-3mt.txz: Rebuilt 185 | - fix some regression with use of link 186 | +-------------------------+ 187 | 188 | Thu May 13 22:37:45 CEST 2021 189 | pkg/slackpkg+-1.7.6-noarch-2mt.txz: Rebuilt 190 | - link instead copy for local repositories (thanks to zdolar) 191 | - WGETOPTS="-q" works with links too (use it with USETERSE=on) 192 | - zlookkernel did not honor PLUGIN_ZLOOKKERNEL_PROMPT=off correctly 193 | +-------------------------+ 194 | 195 | Wed May 12 00:02:47 CEST 2021 196 | pkg/slackpkg+-1.7.6-noarch-1mt.txz: Upgrade 197 | - Added LEGACYBL to allow slackpkg+ to use the previous blacklist system 198 | - Fix 'continue' error message with -dialog=off 199 | - Print "Package:" on the same line of progress counter in downloading 200 | +-------------------------+ 201 | 202 | Mon May 3 10:05:41 CEST 2021 203 | pkg/slackpkg+-1.7.5-noarch-2mt.txz: Rebuilt 204 | - Not really need to rerun slackpkg update. 205 | - blacklist works as slackpkg 206 | +-------------------------+ 207 | 208 | Mon Mar 29 21:19:36 CEST 2021 209 | pkg/slackpkg+-1.7.5-noarch-1mt.txz: Upgrade 210 | - Added TERSESEARCH to show a compact output in search function (thanks to 211 | edrozenberg) 212 | +-------------------------+ 213 | 214 | Sat Mar 20 23:01:33 CET 2021 215 | pkg/slackpkg+-1.7.4-noarch-3mt.txz: Rebuilt 216 | - Fix exit code for check-updates (slackpkg 15.0.1); now it return 1 if 217 | there are updates available 218 | - Fix an incompatibility with dir:// repository and slackpkg 15.0.1 219 | +-------------------------+ 220 | 221 | Mon Mar 8 21:45:32 CET 2021 222 | pkg/slackpkg+-1.7.4-noarch-2mt.txz: Rebuilt 223 | - doinst.sh does remove CHECKSUMS.md5 instead pkglist 224 | - fix slackbuild 225 | - shorter pause after some warning 226 | - suppress some check-updates warning when run as non-root user 227 | - Improved ZLookKernel: 228 | Monitor other than vmlinuz (i.e. vmlinuz-generic) 229 | Run it from cmdline directly 230 | Configure it to ask less confirmation 231 | Better documentation (open the zlookkernel.sh to read it) 232 | +-------------------------+ 233 | 234 | Tue Mar 2 17:31:29 CET 2021 235 | pkg/slackpkg+-1.7.4-noarch-1mt.txz: Upgrade 236 | This release does not introduce feature on the core; just add a section to 237 | configuration file to enable some currently hidden feature. 238 | - Added plugin section. Now we can enable or disable sperimental plugin 239 | from configuration file. Currently we have two plugins. 240 | - ZLookKernel: help you to rebuild the initrd and install lilo or EFI elilo 241 | - ZChangeLog: generate a changelog for all repository at every 'update' 242 | process 243 | +-------------------------+ 244 | 245 | Mon Mar 1 20:40:19 CET 2021 246 | pkg/slackpkg+-1.7.3-noarch-1mt.txz: Upgrade 247 | Starting from 1.7.1, slackpkg+ no longer supports Slackware 14.2 (i.e. 248 | slackpkg-15.0). It advice you to downgrade to 1.7.0. Now we can fix some 249 | things that can break the backward compatibility. 250 | - from 2.84.0_beta1: Use CHECKSUMS.md5.asc to determine ChangeLog newness 251 | - from 2.84.0_beta11: check-updates change the messages and print the 252 | "no updates" in stdout and "updates available" in stderr. If you are 253 | using automatic scripts be sure to fix it. 254 | - now both work properly with slackpkg+ 255 | +-------------------------+ 256 | 257 | Thu Feb 25 12:56:55 CET 2021 258 | pkg/slackpkg+-1.7.2-noarch-2mt.txz: Rebuilt 259 | - Solved bad progress bar in download/upgrade process 260 | +-------------------------+ 261 | 262 | Wed Feb 24 22:07:25 CET 2021 263 | pkg/slackpkg+-1.7.2-noarch-1mt.txz: Upgrade 264 | It's the time to summarize all changes. 265 | As always, a big thanks goes to phenixia2003 and all other contributor 266 | Now we can summarise the changes. You can find a full list in the CHANGES 267 | documentation file 268 | slackpkg+ 1.7.2 adds new features with some new entries in configuration file 269 | that you should merge in your old slackpkgplus.conf: 270 | SBOURL , USETERSE , PROXY , USEBL (not new but changed the values) 271 | also some default values was changed from 1.7 to 1.7.2 272 | see README for details. 273 | New features: 274 | - Now slackpkgplus.conf has a manpage, also available in italian 275 | - Now we have a "fatal log". If it occurs please does not ignore it! 276 | - Now we can search packages in SBo repository. (does not replace sbopkg) 277 | - Now we can use httpdir/httpsdir/ftpdir repositories without metadata 278 | - Added an optional zlookkernel script to allow slackpkg to update initrd 279 | Improvements: 280 | - Quick output for Cached Download for a most clear output. 281 | - Improved output for 'slackpkg search' 282 | - Replaced Spinning with Percentage 283 | - Better output for download/install process 284 | - Now cachedupdate support HTTP/2 servers 285 | - bash_completion is now enabled by default 286 | Note: 287 | - slackpkg+ currently does not support $ROOT 288 | - slackpkg-15 uses a new blacklist syntax; this works fine with slackpkg+ 289 | but just for blacklist; don't use it for greylist 290 | +-------------------------+ 291 | 292 | Mon Feb 15 21:14:31 CET 2021 293 | pkg/slackpkg+-1.7.1-noarch-1mt.txz: Upgrade 294 | - This is a temporary release 295 | - Slackpkg+ devel no longer supports slackware 14.2 296 | +-------------------------+ 297 | 298 | Mon Feb 8 18:41:17 CET 2021 299 | pkg/slackpkg+-1.7.0d1-noarch-13mt.txz: Rebuilt 300 | - Fixed some regression on blacklist with slackpkg-15 301 | +-------------------------+ 302 | 303 | Mon Jan 25 16:50:48 CET 2021 304 | pkg/slackpkg+-1.7.0d1-noarch-12mt.txz: Rebuilt 305 | - Other fix for counter on big package lists (thank chrisretusn for reporting) 306 | - Reverted zlookkernel. It need more testing. 307 | +-------------------------+ 308 | 309 | Sun Jan 24 20:19:11 CET 2021 310 | pkg/slackpkg+-1.7.0d1-noarch-11mt.txz: Rebuilt 311 | - Fixed counter on big package lists (thank chrisretusn for reporting) 312 | - Added percentage to download process 313 | - Improved "Installing..." and "Upgrading..." messages 314 | - zlookkernel: select huge or generic kernel according the running 315 | kernel instead the vmlinuz link 316 | - Removed ktown from default repositories 317 | +-------------------------+ 318 | 319 | Sun Mar 15 21:36:19 CET 2020 320 | pkg/slackpkg+-1.7.0d1-noarch-10mt.txz: Rebuilt 321 | - Small fix in search packages 322 | - Added httpdir/httpsdir/ftpdir repository type. See documentation. 323 | +-------------------------+ 324 | 325 | Sun Mar 8 17:28:40 CET 2020 326 | pkg/slackpkg+-1.7.0d1-noarch-9mt.txz: Rebuilt 327 | - Regression due percentage improvements 328 | +-------------------------+ 329 | 330 | Sun Mar 8 13:58:45 CET 2020 331 | pkg/slackpkg+-1.7.0d1-noarch-8mt.txz: Rebuilt 332 | - Extends percentage where possible. 333 | - Align check-updates messages with slackpkg 2.84 334 | - Catch errors and return exit status: 1 for warning, 2 for fatal 335 | +-------------------------+ 336 | 337 | Tue Feb 18 08:30:10 CET 2020 338 | pkg/slackpkg+-1.7.0d1-noarch-7mt.txz: Rebuilt 339 | - Replace SPINNING with PROGRESS status 340 | - Small fix the Cached Downloader output 341 | - Added USETERSE option to enable --terse on pkgtools 342 | - Added PROXY to use a proxy 343 | - Fix for servers using HTTP/2 on checkrepos.sh 344 | - Fix search where there are duplicated packages (thanks phenixia2003) 345 | - Improved upgrade info on search (thanks phenixia2003) 346 | - Added Added /usr/libexec/slackpkg/zlookkernel.sh tool. Edit it to see instructions. 347 | +-------------------------+ 348 | 349 | Thu Jan 3 12:18:57 CET 2019 350 | pkg/slackpkg+-1.7.0d1-noarch-6mt.txz: Rebuilt 351 | - Allow to use the blacklist system from slackpkg 2.84 (still in beta). 352 | Only impact install/upgrade/remove options, and does not impact 353 | greylist. 354 | - Fixed searching groups (a, ap, ...) instead packages 355 | - Fix for servers using HTTP/2 on cached downloader 356 | +-------------------------+ 357 | 358 | Fri Jun 15 18:25:33 CEST 2018 359 | pkg/slackpkg+-1.7.0d1-noarch-5mt.txz: Rebuilt 360 | - Fix incompatibility with slackpkg prior 2.83.0-noarch-3 361 | +-------------------------+ 362 | 363 | Fri Jun 15 16:09:51 CEST 2018 364 | pkg/slackpkg+-1.7.0d1-noarch-4mt.txz: Rebuilt 365 | - Fix incompatibility with slackpkg-2.83.0-noarch-3 366 | - Fix setupmultilib script. It did use oldstyle 'multilib:' 367 | - Fix a regression in TAG PRIORITY 368 | - Handle the case where /var/log/packages is a symlink 369 | +-------------------------+ 370 | 371 | Thu Apr 26 23:49:04 CEST 2018 372 | pkg/slackpkg+-1.7.0d1-noarch-3mt.txz: Rebuilt 373 | - Do not log 'install.log' and 'fatal.log' when DOWNLOADONLY=on 374 | - issue with slackpkg-2.83 (development release) 375 | +-------------------------+ 376 | 377 | Sat Apr 14 00:09:27 CEST 2018 378 | pkg/slackpkg+-1.7.0d1-noarch-2mt.txz: Rebuilt 379 | - Add a fatal.log for messages that users should not ignore. 380 | Currently it log if a package fails to install/upgrade/remove. 381 | - slackpkg upgrade did not work with slackpkg-2.83 (development release) 382 | - Fixed checkrepos.sh when server response is 302 383 | - smaller output for slackpkg search 384 | +-------------------------+ 385 | 386 | Sun Oct 2 13:55:26 CEST 2016 387 | pkg/slackpkg+-1.7.0d1-noarch-1mt.txz: Upgrade 388 | - Added SBo support. This does not replace sbopkg. It just search in 389 | SlackBuilds.org and report the url to download to build and install 390 | packages yourself. 391 | +-------------------------+ 392 | 393 | Fri Jul 8 19:18:29 CEST 2016 394 | pkg/slackpkg+-1.7.0d0-noarch-4mt.txz: Rebuilt 395 | - Slackware 14.2 was finally released. Updated repository list. 396 | - Added manpage for the configuration file (man slackpkgplus.conf) 397 | - bash_completion is now enabled by default 398 | - Improved checkrepos.sh (now write PACKAGES.TXT size and last update time) 399 | - Changed some default settings in sample configuration file; also 400 | USEBL accepts on/off instead 0/1 401 | +-------------------------+ 402 | 403 | Wed Jun 22 21:05:15 CEST 2016 404 | pkg/slackpkg+-1.7.0d0-noarch-3mt.txz: Rebuilt 405 | - slackpkg search did not honor the '+' symbol (thanks to yars) 406 | +-------------------------+ 407 | 408 | Wed Jun 22 00:01:56 CEST 2016 409 | pkg/slackpkg+-1.7.0d0-noarch-2mt.txz: Rebuilt 410 | - slackpkg check-updates did not work unless you set VERBOSE=3 (thanks to 411 | Talus). 412 | +-------------------------+ 413 | 414 | Tue Jun 15 00:45:00 CEST 2016 415 | pkg/slackpkg+-1.7.0d0-noarch-1mt.txz: Upgraded 416 | Setting up mainline branch. 417 | - Fixed some typos and missed SEARCH_CLOG_INPARENT documentation in README 418 | - Suppress wget output in ChangeLog downloading 419 | - Fixed an issue when an invalid repository is configured 420 | +-------------------------+ 421 | 422 | Version 1.7.0rc3 - 03/Jun/2016 423 | This could be the last batch of updates before 1.7.0 stable, so please test! 424 | - dialog did no more trap develop errors (but if occurs please report it) 425 | - givepriority did drop matched package if it is the first in pkglist 426 | - Added /usr/src/slackpkg+-*/slackpkg.bash_completation. Edit it for 427 | instructions. 428 | 429 | Version 1.7.0rc2 - 02/Jun/2016 430 | - ChangeLog did not skipped for dir:/ repositories 431 | - ChangeLog did not show correctly certain slackware changelog 432 | - dir:/ repositories does not need STRICTGPG nor GPG key; however remember 433 | that if .asc file exists a key must be manually imported 434 | - Removed makeinstlog.sh since it was bugged and no longer supported 435 | - Repositories in default configuration file are bumped to 14.2 436 | - Full 1.7.0 changes tracked in CHANGES file 437 | - Added /usr/libexec/slackpkg/zchangelog.sh tool. Edit it to see instructions. 438 | 439 | Version 1.7.0rc1 - 19/May/2016 440 | - WW_FILE_SEARCH did affect file search AND package search 441 | - fixed warning in update when one repository does not have the changelog 442 | - ignore the package extension in package selection 443 | - fixed a regression in dir: repository 444 | 445 | Version 1.7.b4.3 - 02/May/2016 446 | - Optimized code for generating ChangeLogs. (phenixia2003) 447 | 448 | Version 1.7.b4.2 - 18/Apr/2016 449 | - Improved cached downloader with specifics output for ChangeLogs 450 | - Fixed a bug in TAG_PRIORITY when the package is not installed 451 | - Improved performance in upgrade by skipping priority check for 452 | not installed packages 453 | 454 | Version 1.7.b4.1 - 15/Apr/2016 455 | - slackpkg allow ChangeLog for third-party repositories too. 456 | - Reduced verbosity in cached downloader == most clear output. 457 | 458 | Version 1.7.b4 - 14/Mar/2016 459 | - slackpkg search now search in dir:// repositories too. 460 | - subdirectory allowed in dir:// repositories. 461 | - slackpkg search honour correctly the '+' character 462 | - Added 'ChangeLog' dialog box to show the changelog of selected packages 463 | (thanks to phenixia2003) 464 | 465 | Version 1.7.b3 - 27/Feb/2016 466 | - Added WW_FILE_SEARCH to file-search whole-words o not (thanks to yars068) 467 | - Colorized the slackpkg search results 468 | - Added DETAILED_INFO to allow slackpkg info to show many details on the 469 | package 470 | - slackpkg reinstall fixed; also now allow to choose the repository as in 471 | install/upgrade; this becouse there more than one repository containing 472 | identicals packages. 473 | - dir:// repositories and inline repositories has most priority 474 | 475 | Version 1.7.b2 - 29/Jan/2016 476 | - Avoid slackpkg to corrupt the slackware database if there are some manual 477 | upgrade in progress. 478 | - Fixed a regression in TAG_PRIORITY. 479 | - Added spinning in check-updates. 480 | - Fixed bad trap CTRL+C when spinning is on. 481 | - Fixed a regression in SENSITIVE_SEARCH. 482 | - Cached Download works with check-updates too. 483 | - check-updates shows downloader output if VERBOSE=3 484 | 485 | Version 1.7.b1 - 18/Jan/2016 486 | Well, I think that we can mark that version as Beta. It does not contains 487 | new features, but it was done a large work of bugfixes and improvements. 488 | A special thanks is for phenixia2003 and yars068 for code contributing and 489 | for many other for ideas and testing. It's the time for the tests, to find 490 | for bugs or someother improvement. 491 | - Improved greylist. Now it allow to match the name in installed packages, 492 | so it also impact remove and clean-system actions. 493 | - Improved performance searching packages and preparing the package list in 494 | large install/upgrade. 495 | - Improved 'slackpkg search' that now shows all packages matching from all 496 | repositories, not just that in priority; it will mark as 'masked' the 497 | packages that would not selected in install/upgrade mode. Also always show 498 | repository source for official packages. 499 | - Quick output for Cached Download.. 500 | - Does not show notices to remember to run 'slackpkg update' when running 501 | slackpkg check-updates. 502 | - Fixed Download Only when upgrade base packages (aaa_base, pkgtools...). 503 | - Fixed a bug in slackpkg upgrade when used with $ROOT. 504 | - Repositories now can contains letters, numbers, minus and underscore 505 | - Fixed a bug on x86 hosts when a repository contains also x86_64 packages 506 | - Some fix in Strict GPG Check. 507 | 508 | Version 1.7.a1 - 04/Jan/2016 509 | It's the time for a stable version of slackpkg+. Currently it is just a 510 | development version to fix older feature and add/test new. I'll need more 511 | test possible to make it bugfree ;). 512 | - Code reordering; now slackpkg+ is only slackpkgplus.sh 513 | - BugFix: slackpkg did give 'grep: write error' when running with "sudo su -". 514 | - Added repositories; improved checkrepos.sh 515 | - Strict GPG Check: Packages and metadata in one repository should be signed 516 | with just the root GPG-KEY. This improve security. Some repository might 517 | want to contains heterogeneous package. In this case, set STRICTGPG=off. 518 | See README. 519 | - New repository for slackpkg+ development version 520 | 521 | Version 1.6.1 - 20/Dec/2015 522 | - Added DOWNLOADONLY to just download packages without installing it 523 | 524 | Version 1.6.0 - 19/Dec/2015 525 | - Added CACHEUPDATE. You can now speedup the slackpkg update by caching 526 | metadata files. 527 | 528 | Version 1.5.2 - 18/Dec/2015 529 | - Fixed a missed $ROOT 530 | - Added SHOWORDER option. It's a way to sort packages in dialog box to help 531 | reviewing large upgrade from many repositories. The SHOWORDER option 532 | accepts "package" "repository" "tag" "path" "arch". 533 | - Fixed some repository url. There are already some 14.2 repositories!!! 534 | - slackpkg+ advise you to update the pkglist before use it 535 | - Added a script in /usr/doc/slackpkg+-* to a fast check of repositories 536 | - slackpkg -dialog=off now show repository name as with dialog 537 | - Added SENSITIVE_SEARCH option to search case-insensitive 538 | (thanks to phenixia2003) 539 | - Important fixes in the priority manager. Many thanks to all people that 540 | reported the bugs and a Big thanks to phenixia2003 for the fix. Now we need 541 | your help to test it. 542 | 543 | Version 1.5.1 - 20/Nov/2015 544 | Note for Slackware 14.1 users: slackware-current introduce important bug fix 545 | in slackpkg 2.82.0-14 (see Slackware ChangeLog) not backported in slackware 546 | 14.1; it is not mandatory but you are encouraged to upgrade it by download it 547 | manually; be sure to greylist slackpkg to avoid an automatic downgrade. 548 | - The trailing slash in MIRRORPLUS[] is now optional (thanks to phenixia2003 549 | and Didier Spaier) 550 | - Added DOWNLOADCMD option to add a custom downloader 551 | - Fixed a bug that causes that ALL repositories fail if ONE repository fails 552 | (thanks to FR on Alien Pasture for reporting) 553 | - Fixed TAG_PRIORITY to avoid impact in slackpkg install 554 | 555 | Version 1.5.0 - 10/Jul/2015 556 | - Fixed TAG_PRIORITY 557 | - Fixed repositories list 558 | 559 | Version 1.4.99 - 01/Jul/2015 560 | - Added priority by tag. Setting TAG_PRIORITY to 'on' slackpkg+ 561 | automatically upgrade packages from repository where the tag is the same 562 | of the already installed package. 563 | 564 | Version 1.4.1 - 16/Jun/2015 565 | - Fix for repositories having CHECKSUMS.md5.gz.asc 566 | 567 | Version 1.4.0 - 13/Dec/2014 568 | - Now the official repositories (slackware64, extra, patches...) are treated 569 | as thirdy party repositories, so you can add it in PKGS_PRIORITY 570 | (phenixia2003) 571 | - To put an entire repository in PKGS_PRIORITY, you no more need to add 572 | ':.*' after the name (phenixia2003) 573 | 574 | Version 1.3.3 - 26/Oct/2014 575 | - Patched to avoid to install glibc-debug from alienbob multilib (thanks to 576 | phenixia2003) 577 | 578 | Version 1.3.2 - 13/Jul/2014 579 | - Patched to reflect changes on slackpkg 2.82.0-13 580 | 581 | Version 1.3.1 - 7/Mar/2014 582 | - Improved check-updates function (thanks to phenixia2003) 583 | - Improved debug-mode 584 | 585 | Version 1.3.0 - 1/Jan/2014 586 | - Added a debug-mode download verbosity 587 | - On upgrade, the status bar show available packages from every repository 588 | 589 | Version 1.2.0 - 9/Dec/2013 590 | - Now ALLOW32BIT also auto-greylist the 32bit packages 591 | - Added an install log in /var/lib/slackpkg/install.log; use 592 | '/usr/libexec/slackpkg/makeinstlog.sh -t' to create a starting 593 | install.log (it TRY to detect the repository) 594 | 595 | Version 1.1.0 - 6/Dec/2013 596 | - Added ALLOW32BIT flag to allow to install 32bit packages on a 64bit system 597 | - setupmultilib.sh install only adaptative multilib by default 598 | - Small fixes 599 | 600 | Version 1.0.2 - 6/Dec/2013 601 | - Added WGETOPTS 602 | - Moved notifications on a dedicated configuration file (notifymsg.conf) 603 | 604 | Version 1.0.1 - 14/Nov/2013 605 | - Fixed fatal on 'pasture' repository and on invalid repository 606 | 607 | Version 1.0 - 11/Nov/2013 608 | - slackpkg+ 1.0 stable finally relased 609 | - All repositories aligned to newest slackware version 610 | - Documentation reformatting and some typo fix (thanx to idlemoor) 611 | - Added function 'notification on event' that allow to insert reminders 612 | when you install/ugrade/remove some packages. See slackpkgplus.conf samples. 613 | (thanks to phenixia2003) 614 | 615 | Version 1.0rc3 - 28/Oct/2013 616 | - slackpkg+ 1.0 release candidate 3. Last call. :) 617 | - Added setupmultilib.sh in /usr/doc/slackpkg+-*, an helper for configure 618 | multilibs in slackpkgplus.conf 619 | 620 | Version 1.0rc2 - 21/Oct/2013 621 | - Looks like we get a slackpkg+ 1.0 release candidate 2... but things are 622 | pretty much nailed down at this point. Please test and report any last :D 623 | - Updated some repository to 14.1 624 | 625 | Version 1.0rc1 - 16/Oct/2013 626 | - Slackware 14.1 is coming up. I think that also slackpkg+ is ready so as 627 | Slackware I mark it as rc1 :). slackpkg 2.82.0-11 added the 14.1 repositories. 628 | Unfortuatly I don't know which third-party repository will contains 14.1 629 | packages, so I can't add 14.1 to repositories.txt 630 | - You can now ovverride SLACKPKGPLUS VERBOSE from command-line (as USEBL) 631 | 632 | Version 0.9.7.4 - 24/Sep/2013 633 | - Try a better way to detect the newest version of the same package in local 634 | or remote directory (does not guarantees 100% success) 635 | - Try to download CHECKSUMS.md5.gz.asc if CHECKSUMS.md5.asc does not exists 636 | (as salixos repository) 637 | 638 | Version 0.9.7.3 - 10/Sep/2013 639 | - Fix an issue with dir:// repositories and gpg check 640 | 641 | Version 0.9.7.2 - 09/Sep/2013 642 | - Added support for unrepositorized local directory in config file 643 | - Added USEBL to temporary skip blacklist check (USEBL=0 slackpkg install..) 644 | 645 | Version 0.9.7.1 - 06/Sep/2013 646 | - fixed a bug on 'slackpkg upgrade file:..' 647 | 648 | Version 0.9.7 - 05/Sep/2013 649 | - Added install/upgrade/reinstall from disk with file:package.txz or dir:path, 650 | and remote with {http,ftp,htts}://site/path/[package.txz], unrepositorized 651 | packages. Please, read the README file. 652 | - Disallow to choice the download manager; slackpkg+ require wget AND lftp 653 | 654 | Version 0.9.6.1 - 02/Sep/2013 655 | - fixed a bug in new dialog function (thanks to phenixia2003) 656 | 657 | Version 0.9.6 - 01/Sep/2013 658 | - fixed a slackpkg bug that does not recreate $WORKDIR if it does not exists. 659 | - added repository name in dialog 660 | 661 | Version 0.9.5 - 28/Aug/2013 662 | - fixed a problem with some compat32 packages 663 | - fixed a issue about packages selection with the official slackware repository 664 | (thanks to phenixia2003) 665 | 666 | Version 0.9.4 - 27/Aug/2013 667 | - fixed a issue when a pattern is used multiple times in argument 668 | - fixed a bug in install/upgrade regarding the enhanced priority 669 | - fixed a bug in search which leads to wrong information about upgrade 670 | - allow to to install/upgrade/reinstall/remove all the packages from 671 | a given repository (thanks to phenixia2003 for big patch) 672 | 673 | Version 0.9.3 - 25/Aug/2013 674 | - fixed md5 check (thanks to AlienBob) 675 | 676 | Version 0.9.2 - 01/Aug/2013 677 | - allow to search the non $ARCH packages 678 | - speed up the update process 679 | - allow to disable the download status bar 680 | 681 | Version 0.9.1 - 05/May/2013 682 | - fixed an error when a folder is missing in the slackware mirror (as 683 | /testing). 684 | - fixed a conflict searching the package 'slackpkg' 685 | - added file-search function 686 | 687 | Version 0.9rc3 - 01/May/2013 688 | - added more config file checks 689 | - fixed a bug that does not allow to use the gpg check 690 | - fixed a bug that deny to use local slackware mirror 691 | 692 | Version 0.9rc2 - 30/Apr/2013 693 | - added config file checks 694 | - fixed a bug that try to check gpg even if CHECKGPG is set to off 695 | - fixed a bug that show compat32 packages as duplicated 696 | - implemented 'slackpkg search' 697 | 698 | Version 0.9rc1 - 29/Apr/2013 699 | - added some repository 700 | 701 | Version 0.9beta2 - 27/Apr/2013 702 | - fixed a 'package' bug that override slackpkgplus.conf (instead .new) 703 | - added doinst.sh that auto-select a configuration file depending $ARCH 704 | - fixed priority system bug when two repositories have package with the same 705 | full name 706 | 707 | Version 0.9beta1 - 26/Apr/2013 708 | - added repositories in conf file 709 | - added a priority system for repository only 710 | - added support to local repository 711 | 712 | Version 0.9test1 - 26/Apr/2013 713 | - added a priority system for repository and single packages 714 | - added gpg support 715 | - added explicit support for alienbob multilibs 716 | 717 | Version 0.3beta - 10/Oct/2012 718 | - Added slackware 14.0 in default configuration 719 | 720 | Version 0.2beta - 28/Sep/2012 721 | - renamed in 'slackpkg+' 722 | - allow to add multiple repositories 723 | - extends the slackpkg 'PRIORITY' 724 | 725 | Version 0.1 - 12/Jul/2011 726 | First release. 727 | - added slacky repository to slackpkg 728 | -------------------------------------------------------------------------------- /src/README: -------------------------------------------------------------------------------- 1 | slackpkg+ plugin for third-party repositories 2 | 3 | Slackpkg is a package manager for Slackware. 4 | 5 | Slackpkg+ is a plugin for slackpkg. 6 | It adds support for third-party repositories. 7 | You can install, upgrade and search from multiple repositories. 8 | 9 | Thanks to alienbob and phenixia2003 for contributing and all other submitted 10 | suggestions and/or patches. 11 | 12 | ********************* DISCLAIMER ********************** 13 | This is NOT an official tool. Use it at your own risk. 14 | The third party repositories are NOT official. 15 | The authors of those repositories are not responsible 16 | for any damage that may be caused to your computer. 17 | ******************************************************* 18 | 19 | ----- 20 | 21 | 22 | CONFIGURATION 23 | 24 | see man slackpkgplus.conf. If you are italian or french, please export LANG=it_IT@euro 25 | or LANG=fr_FR@euro to see the italian or french manpage and set ISO8859-15 charset for 26 | the console. 27 | 28 | For the basic configuration: 29 | 30 | * Edit /etc/slackpkg/slackpkgplus.conf 31 | * Uncomment one or more mirrors and add them to the REPOPLUS list 32 | 33 | Note that packages in these repository will not listed if they are present in 34 | the official repositories (see below). 35 | 36 | * Optionally, set PKGS_PRIORITY to give priority order for single packages 37 | present in multiple repositories or to allow repositories to override 38 | official slackware packages 39 | 40 | For a list of known repositories see repositories.lst, but you can also 41 | add others yourself. 42 | 43 | If you configure repositories that do not support gpg, you may need to set 44 | "CHECKGPG=off" in /etc/slackpkg/slackpkg.conf 45 | 46 | Then launch 47 | # slackpkg update gpg 48 | # slackpkg update 49 | 50 | To keep slackpkg+ updated, uncomment the 'slackpkgplus' repository, and then 51 | # slackpkg upgrade-all 52 | will upgrade slackpkg+ whenever a new version is released. 53 | 54 | ----- 55 | 56 | 57 | MIRRORPLUS 58 | 59 | The MIRRORPLUS array defines all mirrors. It accepts these protocols: 60 | 61 | 1) http/ftp/https: for example, 62 | 63 | MIRRORPLUS['alienbob']=https://slackware.nl/people/alien/sbrepos/15.0/x86_64/ 64 | 65 | The mirror must contains all metadata files (CHECKSUMS.md5 ...) 66 | You must run 'slackpkg update' after adding/removing a repository. 67 | You may also need 'slackpkg update gpg' 68 | 69 | 2) Local mirror: for example, 70 | 71 | MIRRORPLUS['alienlocal']=file://mirrors/alienbob/x86_64/15.0/ 72 | 73 | The directory must contains all metadata files (CHECKSUMS.md5 ...) 74 | You must run 'slackpkg update' after adding/removing a repository. 75 | 76 | 3) Local packages directory: for example, 77 | 78 | MIRRORPLUS['mypackages']=dir://mypackages/ 79 | 80 | All packages must be in a single directory (subdirectory not allowed). 81 | Note that 'slackpkg update' ignores these repositories. Every time you run 82 | slackpkg, it reads the directory contents. 83 | 84 | 4) Remote packages directory httpdir/httpsdir/ftpdir not containing metadata: 85 | 86 | MIRRORPLUS['slackpkgbeta']=httpsdir://slackpkg.org/stable/ 87 | 88 | All packages must be in a single directory (subdirectory not allowed). 89 | 'slackpkg update' get the directory index and put it in slackpkg database. 90 | 91 | As mirror name, slackpkg+ accepts numbers, letters, minus and underscore, but 92 | you are encouraged to not use the minus character. 93 | 94 | ----- 95 | 96 | 97 | USAGE 98 | 99 | See 'man slackpkg' :D 100 | 101 | Use the command 102 | # slackpkg upgrade-all 103 | to keep your system up-to-date. This command searches for upgraded packages 104 | spanning all configured repositories. 105 | 106 | Use the command 107 | # slackpkg install-new 108 | (if you use Slackware -current) to check for new packages. This command 109 | searches for new packages ONLY in the official Slackware repository. 110 | 111 | The command 112 | # slackpkg {install,upgrade,remove,reinstall} 113 | accepts the following kinds of argument: 114 | 115 | 1) package-name (spanning all repositories), for example 116 | # slackpkg install bsd-games 117 | 118 | 2) part of package-name (spanning all repositories), for example 119 | # slackpkg install alsa 120 | 121 | 3) path of packages in repository (spanning all repositories), for example 122 | # slackpkg install xap 123 | 124 | 4) repository-name, for example 125 | # slackpkg upgrade alienbob 126 | upgrades all packages in the alienbob repository, and 127 | # slackpkg install multilib 128 | installs all packages in the multilib repository 129 | 130 | 5) repository-name:package-name, for example 131 | # slackpkg install alienbob:openjdk 132 | installs openjdk from slacky even if there is another openjdk in another 133 | repository 134 | 135 | 6) file:local-file-name (txz/tgz), for example 136 | # slackpkg install file:mypackage-1.0-noarch-1my.txz 137 | installs mypackage even though not defined in slackpkgplus.conf 138 | (you can specify either a relative or an absolute path) 139 | 140 | 7) dir:directory, for example 141 | # slackpkg {install|upgrade} dir:/root/myrepo 142 | installs or upgrades all packages in /root/myrepo/ 143 | (The final '/' is not strictly required.) 144 | Note: 'slackpkg install .' is an alias of 'slackpkg install dir:./', but 145 | 'slackpkg install ./' is NOT the same alias; see FILE in man slackpkg 146 | 147 | 8) "comma syntax". Add a comma to the package name in any command to match 148 | exact package name instead word match. For example, searching for 149 | "libreoffice" match "libreoffice" "libreoffice-dict-it" etc. Up to 500 150 | packages that you need to deselect if you just want to install libreoffice 151 | slackpkg upgrade libreoffice, 152 | slackpkg install alienbob:libreoffice, 153 | slackpkg download libreoffice, 154 | slackpkg search libreoffice, 155 | you can also put the comma at the start of the packagename 156 | slackpkg reinstall ,libreoffice 157 | slackpkg install ,libreoffice{,-dict-it,-l10n-it} 158 | 159 | ----- 160 | 161 | 162 | PRIORITY CONFIGURATION 163 | 164 | When a package is present in more than one repository, the package will be 165 | searched for in the following order: 166 | 167 | 1) as listed in PKGS_PRIORITY (allow to override official packages) 168 | 2) as listed in an official Slackware repository 169 | (configured in /etc/slackpkg/mirrors) 170 | 3) as listed in REPOPLUS (deny to override official packages) 171 | 4) all others defined in MIRRORPLUS 172 | 173 | PKGS_PRIORITY syntax: 174 | PKGS_PRIORITY=( : ... ) 175 | 176 | for example: 177 | PKGS_PRIORITY=( alienbob:openjdk ) 178 | 179 | accepts a regular expression, so for example 180 | PKGS_PRIORITY=( restricted:.* vlc.* ) 181 | means 'all packages containing the "vlc" string' 182 | PKGS_PRIORITY=( alienbob:.* ) 183 | means 'all packages in repository alienbob' 184 | 185 | latest item maybe replaced simply with 186 | PKGS_PRIORITY=( alienbob ) 187 | 188 | all packages matched from alienbob ovverride all related slackware packages, unless 189 | you do not explicitly exclude it: 190 | PKGS_PRIORITY=( patches:harfbuzz slackware64:harfbuzz alienbob ) 191 | that means 'all alienbob packages except harfbuzz' 192 | 193 | 194 | Also you can set TAG_PRIORITY=on to allow slackpkg+ to try select repository 195 | from where the package was previously installed. 196 | This method is based from tag of the installed package. 197 | slackpkg+ search a package with the same tag in all repositories and use it. 198 | If two repositories contains the same tag, it will honour REPOPLUS. 199 | 200 | 201 | ----- 202 | 203 | 204 | MULTILIB 205 | 206 | If you want to use a multilib system, you can automatically configure the 207 | multilib repository in slackpkgplus.conf and install multilib simply by running: 208 | # /usr/doc/slackpkg+-*/setupmultilib.sh 209 | 210 | To configure multilib manually (e.g. if you have installed multilib already), 211 | uncomment the correct "MIRRORPLUS['multilib']=...", 212 | and uncomment "PKGS_PRIORITY=( multilib )". 213 | If you do not plan to build yourself 32bit packages on your 64bit machine, you may 214 | avoid to install gcc: 215 | 216 | PKGS_PRIORITY=( patches:gcc slackware64:gcc multilib ) 217 | 218 | 219 | To install multilib manually, launch: 220 | # slackpkg update gpg 221 | # slackpkg update 222 | # slackpkg upgrade-all 223 | # slackpkg install multilib 224 | 225 | After that, you can keep multilib up-to-date by launching: 226 | # slackpkg update 227 | # slackpkg upgrade-all 228 | periodically launch: 229 | # slackpkg install multilib 230 | to check for new multilib packages availability 231 | 232 | To uninstall multilib, you must remove 'multilib' from PKGS_PRIORITY and from 233 | REPOPLUS, but do NOT delete the related MIRRORPLUS line, then launch: 234 | # slackpkg update 235 | # slackpkg remove multilib 236 | Note: this does NOT remove the core multilib packages, because they affect the 237 | 64bit system. You must remove these by launching: 238 | # slackpkg upgrade-all 239 | then delete or comment the related MIRRORPLUS line, and finally launch 240 | # slackpkg update 241 | 242 | or just re-run 243 | # /usr/doc/slackpkg+-*/setupmultilib.sh 244 | 245 | 246 | ----- 247 | 248 | 249 | PERSONAL PACKAGES 250 | 251 | If you build some packages yourself, you can install these without 252 | installpkg, by using slackpkg+. This helps you to track the install/upgrade, 253 | and reduces the possibility of errors. You do NOT need to create a personal 254 | repository with a gpg-key and metadata every time you build a package; also 255 | you do NOT need to modify your slackpkgplus.conf file or launch 'slackpkg 256 | update'. 257 | 258 | You can: 259 | 260 | 1) install/upgrade/reinstall a single package by passing the full file name 261 | (optionally with absolute or relative path), for example 262 | # slackpkg install file:package-1.0-noarch-1my.txz 263 | or 264 | # slackpkg upgrade file:../repo/package-2.0-noarch-1my.txz 265 | 266 | 2) install/upgrade/reinstall all packages in a directory and subdirectory 267 | by passing a directory name (optionally with absolute or relative 268 | path), for example 269 | # slackpkg install dir:/myrep 270 | or 271 | # slackpkg upgrade dir:./test/package/ 272 | or 273 | # slackpkg reinstall . 274 | 275 | Note: '.' is an alias of 'dir:./', but only that alias exists. 276 | 'slackpkg install ./' (or /myrepo/ or ./package.txz) generates an error, 277 | because in standard slackpkg you can specify a FILE as input, so in 278 | 'slackpkg install ./list.txt' list.txt must be a plain file containing a list 279 | of packages to install (see man slackpkg) 280 | 281 | If a directory contains the same package with two different versions, 282 | slackpkg+ try to get the higher version, but it can fail and list one in an 283 | unpredictable order 284 | 285 | Tip: if you want to use dir:/myrepo to track your installations and you have 286 | lost the original txz/tgz file, you can simply create an empty file; this 287 | fools slackpkg+, which only searches for file name and not for contents 288 | (unless you run slackpkg reinstall on these packages ;)) So, by doing 289 | # touch mypkg1-1.0-noarch-1my.tgz 290 | # touch mysecondpkg-1.1-noarch-2my.txz 291 | (where mypkg1 and mysecondpkg are already installed packages), 292 | 'slackpkg install .' (or upgrade) does not show you those packages, but 293 | 'slackpkg reinstall .' DOES show them (so do not continue the installation) 294 | 295 | NOTE: slackpkg+ honour gpg check if a .asc file exists but you must manually 296 | import the gpg key. If you don't want that, run with -checkgpg=off. The Strict 297 | GPG Check is disabled. If a .asc file does noti exists, the gpg check is disabled. 298 | 299 | ----- 300 | 301 | 302 | REMOTE PACKAGES WITHOUT METADATA 303 | 304 | Some users share packages on their personal sites, but do not create metadata 305 | files (particularly if they share only a few packages). To install one of these 306 | packages, you could download it and install it manually. But now with slackpkg+ 307 | you can specify a direct URL for the package that will automatically download 308 | and install/upgrade the package. 309 | 310 | You can: 311 | 312 | 1) install/upgrade/reinstall a single package by specifying the complete url: 313 | # slackpkg install http://site/path/package-1.0-noarch-1my.txz 314 | For example, you may use this function to install a snapshot of slackpkg+ 315 | (that is not available with 'slackpkg upgrade slackpkg+' because it is a beta 316 | version): 317 | # slackpkg upgrade https://slakfinder.org/slackpkg+/pkg/slackpkg+-1.7.0-noarch-1mt.txz 318 | 319 | 2) install/upgrade/reinstall all packages in a single remote directory (but not 320 | in a subtree) even if the site owner does not create metadata: 321 | # slackpkg install https://slakfinder.org/slackpkg+/pkg/ 322 | 323 | Note: this function requires lftp and may fail if the server does not support 324 | Directory Listing or if there is a index.html in the path. 325 | 326 | 3) configure an httpdir MIRRORPLUS 327 | MIRRORPLUS['slackpkgbeta']=httpsdir://slackpkg.org/beta/ 328 | 329 | 330 | NOTE: slackpkg+ will skip the gpg and md5 check for remote packages without 331 | metadata!! 332 | 333 | ------ 334 | 335 | 336 | NOTIFICATIONS 337 | 338 | Some package require special post-installation activity as upgrading a related 339 | package or rebuilt kernel modules or change a custom configuration. A user may 340 | forgot to do this, especially in large updates. The notification functionality 341 | help the user to remember it. In /etc/slackpkg/notifymsg.conf you can define 342 | some custom event. See documentation in that file. Events may be VERY custom 343 | (on kde upgrde remember me to call my friends ;), or the more useful 344 | "on kernel upgrade remember to recompile all driver modules" 345 | 346 | You may enable this function by setting "ENABLENOTIFY=on" in slackpkgplus.conf 347 | 348 | 349 | ----- 350 | 351 | WGET Options 352 | 353 | slackpkg+ uses wget to download packages and metadata. 354 | 355 | You can use the WGETOPTS setting to pass options to wget. 356 | 357 | By default when an url is unreachable wget - after a long timeout - retry to 358 | download so if a repository is unreacheble you should remove it from your 359 | configuration file. 360 | As workaround you can add the options WGETOPTS="--timeout=5 --tries=1" 361 | in slackpkgplus.conf 362 | 363 | You also add "-q" to WGETOPTS for a silent output in conjuction of 364 | VERBOSE=0 and USETERSE=on 365 | 366 | ----- 367 | 368 | DOWNLOADCMD Option 369 | 370 | You can choose to use an alternative to wget. 371 | 372 | Note that downloader will be called as 373 | $DOWNLOADCMD destinationfile url 374 | 375 | The base is 376 | DOWNLOADCMD="wget -O" 377 | by default slackpkgplus adds other useful options: 378 | DOWNLOADCMD="wget $WGETOPTS -nv --no-check-certificate --passive-ftp -O" 379 | 380 | If you like curl: 381 | DOWNLOADCMD="curl -o" 382 | you can add other options BEFORE the last '-o' switch: 383 | DOWNLOADCMD="curl -v -o" 384 | 385 | If you want use a multi-connection (parallel) download, you can use wget2 386 | DOWNLOADCMD="wget2 --progress=bar -O" 387 | 388 | ----- 389 | 390 | CHECKDISKSPACE Option 391 | 392 | When you set this option to 'on' slackpkg will check for free space on disk 393 | to download and install (not for upgrade) packages. 394 | Note: 395 | to download it will check $TEMP path (/var/cache/packages by default) 396 | to install (and only install, not for upgrade) it will check $ROOT/usr 397 | filesystem since MOST (not ALL) files are there. 398 | 399 | If there is not space available it will prompt for a confirmation to continue 400 | If there is space available it just report the required space. 401 | Default is 'off' 402 | 403 | ----- 404 | 405 | CACHEUPDATE Option 406 | 407 | By default 'slackpkg update' download all metadata files (CHECKSUMS.md5, PACKAGES.TXT, 408 | MANIFEST.bz2). When you use many and or large repositories, this may take a lot of 409 | time and in most cases there are no news or news just in only one repository. 410 | 411 | Enabling CACHEUPDATE slackpkg+ put a cache of metadatas in /var/lib/slackpkg/cache, 412 | so everytime it just must to verify if there is a new version, otherwise it can use 413 | the cached file. 414 | 415 | Note that it works only with http repositories and does not work with proxies. 416 | It uses 'curl' to download file headers to check if there is a new version of 417 | the file. 418 | 419 | Set CACHEUPDATE=on to enable it. Default is 'off' 420 | 421 | ----- 422 | 423 | SEARCH_CLOG_INPARENT Option 424 | 425 | Starting from 1.7.0, slackpkg+ allow you to see the ChangeLog in dialog box. 426 | When you run 'slackpkg update' it download all ChangeLog.txt from all 427 | repositories (if available). 428 | Then when you go to in install/upgrade a package, you have a chance to 429 | read it before install the package. 430 | Note that the ChangeLog must be in the same Slackware changelog format. 431 | 432 | Some repository does not have the ChangeLog.txt in the main url but has it 433 | in a parent url. 434 | 435 | For example the alienbob multilib repository: 436 | https://slackware.nl/people/alien/multilib/current/ 437 | has not the ChangeLog.txt in tree, but it is placed in parent directory: 438 | https://slackware.nl/people/alien/multilib/current/ChangeLog.txt 439 | 440 | Be sure to set SEARCH_CLOG_INPARENT to 'on' to search it in parent. 441 | Note that ascend out of main url sometime may be unsafe; so if it does not 442 | work reset it to 'off'. 443 | Also note that slackpkg+ use wget as default downloader and when the 444 | ChangeLog.txt is not found it return "ERROR 404: Not Found" before try 445 | again in the parent url. 446 | You may avoid it by use the Cached Updates downloader that trap it for a 447 | quick output. So you are encouraged to set CACHEUPDATE=on 448 | 449 | ----- 450 | 451 | DOWNLOADONLY Option 452 | 453 | Sometimes may be useful to just download only the packages, and in a second moment 454 | install it. For example for large upgrades I can download all in the night while 455 | I sleep and then install all in the morning. 456 | 457 | Also it is good when the 'install-new' give you a large list of packages to install. 458 | 459 | You can set DOWNLOANDONLY=on in slackpkgplus.conf to do that or use it in cmdline. 460 | 461 | For example, to upgrading from slackware 15.0 to slackware current: 462 | # DOWNLOADONLY=on slackpkg install-new 463 | # DOWNLOADONLY=on slackpkg upgrade-all 464 | # slackpkg install-new 465 | # slackpkg upgrade-all 466 | # slackpkg clean-system 467 | 468 | ----- 469 | 470 | ALLOW32BIT 471 | 472 | By default slackpkg+ deny to install 32bit packages on a 64bit system. 473 | 474 | Set ALLOW32BIT=on to allow slackpkg+ to install 32bit packages on a 64bit slackware 475 | installation (possibly unsafe). Please, do not install both 32 and 64bit of the same 476 | package to avoid problems, and NEVER upgrade existant 64bit packages with relative 32bit 477 | package. 478 | 479 | Do not forget to install the multilibs. 480 | 481 | 482 | ----- 483 | 484 | BLACKLIST 485 | 486 | Slackpkg+ uses the same slackpkg system. See /etc/slackpkg/blacklist for details. 487 | Starting from slackpkg 15, the new system was improved. To blacklist a package 488 | you have to put its entire name, so 'kernel' does not blacklist 'kernel-modules', 489 | or a regular expression to match it, as 'kernel-.*'. Also you can blacklist an 490 | entire package series specifing the entire name followed by /, as 'kde/'. 491 | In this way you are more sure to exclude exactly the packages you want. 492 | 493 | However this may be inefficient with third party repository. 494 | You can set LEGACYBL=on to allow slackpkg+ to use the previous (14.2) blacklist system. 495 | It apply a regex to the entire pkglist row with 'grep -wE'. A row is similar to 496 | 497 | SLACKPKGPLUS_slackpkgplus slackpkg+ 1.7.5 noarch 2mt slackpkg+-1.7.5-noarch-2mt ./SLACKPKGPLUS_slackpkgplus/pkg txz 498 | 499 | consider that to avoid false positive. 500 | Test your blacklist file with the command: 501 | $ grep -wE -f <(grep -v ^$ /etc/slackpkg/blacklist) /var/lib/slackpkg/pkglist 502 | 503 | You can use USEBL=off to totally disable blacklist. 504 | 505 | Also you can use both settings as temporary from cmdlisne 506 | 507 | USEBL=off slackpkg search kernel 508 | LEGACYBL=on slackpkg search kernel 509 | 510 | ----- 511 | 512 | GREYLIST 513 | 514 | Sometime you may want that slackpkg+ does not install some package in the upgrade-all 515 | process. To do that you must uncheck the package everytime or add it in the 516 | 'blacklist' file. The first method may be onerous when you use upgrade-all frequently. 517 | The second method does not allow you to know which package version is available. 518 | A thirdy method is to put it in the 'greylist' file. 519 | All packages listed in greylist will be available to install and listed in slackpkg 520 | dialog, but they will be unchecked by default so you are sure to not install it 521 | wrongly. 522 | You may decide also to greylist one entire repository. A good idea is to greylist 523 | all thirdy party repository so an upgrade-all automatically upgrade official 524 | slackware packages but force you to review all other packages so to be sure on what 525 | you install. 526 | 527 | ----- 528 | 529 | SENSITIVE_SEARCH 530 | 531 | By default the 'slackpkg search' and 'slackpkg file-search' do case sensitive 532 | searches, so 'slackpkg search mplayer' does NOT find the slackware package 533 | MPlayer-1.1_20130819-x86_64-2 534 | 535 | You can search case-insensitive by setting SENSITIVE_SEARCH to off in config file. 536 | You can also do temporary case-insensitive searches overriding that setting in cmdline 537 | 538 | SENSITIVE_SEARCH=off slackpkg search mplayer 539 | 540 | 541 | Note that 'slackpkg install' still remains case sensitive, so you must use 542 | slackpkg install MPlayer 543 | 544 | ----- 545 | 546 | WW_FILE_SEARCH 547 | 548 | By default 'slackpkg file-search' search whole words, so 549 | # slackpkg file-search slackpkgpl 550 | returns nothing. 551 | 552 | By setting WW_FILE_SEARCH to on, the same command should find slackpkg+ 553 | becouse match slackpkgplus.conf and other. 554 | 555 | Note that a short pattern may match many many packages. 556 | 557 | ----- 558 | 559 | SBO 560 | 561 | 'slackpkg search' allow you to search packages in SlackBuilds.org 15.0 and 562 | current. 563 | Note that slackpkg+ does not replace sbopkg or other similar tools. 564 | slackpkg+ show you the url of the SlackBuild, then you have to manually 565 | download, build and install it, or use sbopkg to do that. 566 | Note that slackpkg+ does not replace sbopkg o similar tools, but is only 567 | useful to know if a package is present on SBo. 568 | The user can download it via 'slackpkg download ', then build it, 569 | or he can use sbopkg instead. 570 | 571 | 572 | ----- 573 | 574 | SHOWORDER 575 | 576 | By default slackpkg in dialogbox sort packages by name. 577 | For large upgrades from many reporitories, may be useful sorting by repository name. 578 | With this option you can sort packages by package name, repository, tag, path 579 | (in the repository), architecture: 580 | 581 | # Select the show order in dialogbox. Available "package" "repository" "tag" "path" "arch" 582 | SHOWORDER=repository 583 | 584 | Default is "package" 585 | 586 | ----- 587 | 588 | DETAILED_INFO 589 | 590 | By default, "slackpkg info " show the metadata and the package 591 | description. 592 | This is the same if you select DETAILED_INFO=none 593 | 594 | DETAILED_INFO=basic show the repository on the repository, and the url to 595 | download it. 596 | 597 | DETAILED_INFO=filelist also show the full file list of the package. 598 | 599 | ----- 600 | 601 | STRICTGPG 602 | 603 | slackpkg was born to install slackware packages from official mirrors; they 604 | are signed with the official slackware GPG-KEY, so no other packages may be 605 | added (unless you disable GPG check). 606 | slackpkg+ introduces the ability to download keys from many repositories; as 607 | implication, slackpkg+ allow also to copy packages from other repositories and 608 | the original signature; in this way a repository can contain a mix of packages 609 | that may confuse the user. 610 | 611 | Strict GPG check disallow users to do that. This improve the security. 612 | 613 | However some user may want to do a custom repository with any type of 614 | packages. 615 | To use a similar repository you may set STRICTGPG=off 616 | Note that sometime you may need to import manually the GPG-KEY with the command 617 | # gpg --import GPG-KEY 618 | 619 | Note: If you add a repository you may need to run 'slackpkg update gpg' if 620 | STRICTGPG is set to off. 621 | 622 | ----- 623 | 624 | CLEAN OUTPUT 625 | 626 | slackpkg tipically has a large amount of output that can make it few readable. 627 | slackpkg+ added a series of features that can do a lite output. 628 | 629 | VERBOSE: affect wget output and some other things; '2' is the default value 630 | for slackpkg; it make wget to print download bar both in download packages 631 | and metadata download; '1' means download bar only in download packages so 632 | you have a cleaner output updating metadata; '0' means no download bar, and 633 | you will see only the url&path of file. 634 | WGETOPTS: adding '-q' it will suppress the url&path too. 635 | USETERSE: setting it to 'on' the slackware pkgtools just print one line in 636 | installing/upgrading packages 637 | TERSESEARCH: set it to 'on' or 'tiny' to have a most compact output for 638 | slackpkg search 639 | 640 | ----- 641 | 642 | INSTALL LOG 643 | 644 | Slackpkg+ logs all install/remove/upgrade/reinstall actions in /var/lib/slackpkg/install.log 645 | This help you to track your slackware installation. 646 | 647 | ----- 648 | 649 | CHECK-UPDATE IMPROVEMENT 650 | 651 | the command "slackpkg check-updates" reports the repositories which have been changed since 652 | the last update. For more details and some suggests how to use it in crontab see: 653 | http://www.linuxquestions.org/questions/showthread.php?p=5146591 654 | 655 | also "slackpkg check-updates" give you an exit code 50 if there are available updates. 656 | 657 | ----- 658 | 659 | SEARCH FUNCTION IMPROVEMENT 660 | 661 | The command "slackpkg search ..." when finds two packages with the same name 662 | but with different versions, it will show all so you know all repositories 663 | that contains that package, not just the first in priority list. 664 | It will mark all versions not in priority (i.e. that install/upgrade will not 665 | show) as 'masked'. To install that packages you must explicitly specify the 666 | repository name with "slackpkg install/upgrade repository:package". 667 | 668 | ----- 669 | 670 | PLUGINS 671 | 672 | In the slackpkg+ packages there are some optional plugin. Some of that may be 673 | sperimental, so it is not included by default in slackpkg+ core. You may 674 | enable it by setting the PLUGIN_* variable to 'enabled'. Open the plugin file 675 | for further defail about the plugin. 676 | 677 | - /usr/libexec/slackpkg/functions.d/zlookkernel.sh 678 | to allow slackpkg to rebuild your initrd and install lilo or elilo. 679 | enable it with PLUGIN_ZLOOKKERNEL=enable 680 | set PLUGIN_ZLOOKKERNEL_PROMPT=off to avoid confirmation at every step 681 | set PLUGIN_ZLOOKKERNEL_IMAGE=/boot/vmlinuz-generic to monitor it instead 682 | standard vmlinuz image 683 | You can also run the plugin directly from cmdline to force rebuild 684 | bootloader 685 | 686 | - /usr/libexec/slackpkg/functions.d/zchangelog.sh 687 | to allow slackpkg to create a global changelog in 688 | /var/lib/slackpkg/RepoChangeLog.txt 689 | enable it with PLUGIN_ZCHANGELOG=disable 690 | set PLUGIN_ZCHANGELOG_SHOW=on to view it in standard output too 691 | 692 | ----- 693 | 694 | FURTHER INFORMATION 695 | 696 | The AlienBOB article about slackpkg+: 697 | http://alien.slackbook.org/blog/introducing-slackpkg-an-extension-to-slackpkg-for-3rd-party-repositories/ 698 | 699 | For questions, suggestions or contributions, you can email me at 700 | info@slakfinder.org or use the linuxquestions forum: 701 | https://www.linuxquestions.org/questions/showthread.php?p=4940074 702 | https://www.linuxquestions.org/questions/slackware-14/slackpkg-1-8-a-4175669481/ 703 | 704 | You can find slackpkg+ on sourceforge: 705 | https://sourceforge.net/projects/slackpkgplus 706 | -------------------------------------------------------------------------------- /src/checkrepos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | unset LANG 5 | 6 | if [ -z "$1" ];then 7 | echo " 8 | Usage: 9 | 10 | $0 [ -q ] 11 | 12 | where repository_url is a full url of a slackware repository 13 | (supported http only) 14 | 15 | Or: 16 | 17 | $0 [ -q ] 18 | 19 | where filename is the name of a file containing one or more 20 | repositories. It can contain also text. The script extract 21 | urls and check if it is a repository. 22 | 23 | -q print non-verbose progress 24 | -v print more verbose info 25 | 26 | The repository url can use the syntax '{ ... }' to specify 27 | multiple repository in one row. The script expand it and 28 | check if the expanded repository exists. 29 | 30 | Example: 31 | http://slackware.osuosl.org/slackware{,64}-{12.2,15.0,current}/ 32 | will be expanded as 33 | http://slackware.osuosl.org/slackware-12.2/ 34 | http://slackware.osuosl.org/slackware-15.0/ 35 | http://slackware.osuosl.org/slackware-current/ 36 | http://slackware.osuosl.org/slackware64-12.2/ 37 | http://slackware.osuosl.org/slackware64-15.0/ 38 | http://slackware.osuosl.org/slackware64-current/ 39 | Next, when the script will validate the repositories, it will 40 | remove slackware64-12.2 that does NOT exists. 41 | 42 | 43 | You can use this script to expand all repositories in 44 | /usr/doc/slackpkg+-*/repositories.txt 45 | " 46 | exit 47 | fi 48 | 49 | V=1 50 | if [ "$1" == "-q" ];then 51 | V="" 52 | shift 53 | fi 54 | if [ "$1" == "-v" ];then 55 | V=2 56 | shift 57 | fi 58 | 59 | if [ -f "$1" ];then 60 | REPOS=$(cat $1|grep -E -o -e 'http://[^ ]*' -e 'https://[^ ]*') 61 | else 62 | REPOS=$(echo $*|grep -E -o -e 'http://[^ ]*' -e 'https://[^ ]*') 63 | fi 64 | 65 | REPOS=$(eval echo $REPOS|sed -e 's/{//g' -e 's/}//g') 66 | 67 | [ $V ]&&echo "Expanded repositories" >&2 68 | [ $V ]&&echo $REPOS|sed 's/ /\n/g' >&2 69 | 70 | TMP=$(mktemp -d) 71 | cd $TMP 72 | 73 | ( 74 | echo 75 | echo "Check repositories" 76 | for R in $REPOS;do 77 | [ $V ]&&echo 78 | REPO=${R%/} 79 | echo -n "Repository: $REPO/ " 80 | 81 | HOST=$(echo $REPO|cut -f3 -d/) 82 | [ $V ]&&echo -en "\n Host: $HOST\n Check IP: "||echo -n . 83 | if echo $HOST|grep -E -q '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$';then 84 | IP=$HOST 85 | else 86 | IP=$(host $HOST 2>/dev/null|grep 'has address'|head -1|awk '{print $NF}') 87 | fi 88 | echo $IP|grep -E -q '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$' 89 | if [ $? -ne 0 ];then 90 | [ $V ]&&echo -e " unable to resolve\nInvalid repository"|grep --color .||echo " Invalid (unable to resolve address)"|grep --color . 91 | continue 92 | fi 93 | 94 | [ $V ]&&echo -en " $IP\n Check connection: "||echo -n . 95 | echo |timeout 10 telnet $IP 80 > telnet.out 2>&1 96 | ERR=$? 97 | if grep -q "Escape character is" telnet.out;then 98 | [ $V ]&&echo "OK "||echo -n . 99 | elif grep -q "Connection refused" telnet.out;then 100 | [ $V ]&&echo -e " Connection refused\nInvalid repository"|grep --color .||echo " Invalid (connection refused)"|grep --color . 101 | continue 102 | elif [ $ERR -eq 124 ];then 103 | [ $V ]&&echo -e " Timeout\nInvalid repository"|grep --color .||echo " Invalid (timeout)"|grep --color . 104 | continue 105 | else 106 | [ $V ]&&echo -e " Failed\nInvalid repository"|grep --color .||echo " Invalid (connection failed)"|grep --color . 107 | continue 108 | fi 109 | 110 | SIZE=0 111 | DATE="" 112 | MD5=no 113 | [ $V ]&&echo -en " CHECKSUMS.md5: "||echo -n . 114 | curl --location --head $REPO/CHECKSUMS.md5 > CHECKSUMS.md5.R 2>/dev/null 115 | ERR=$? 116 | if grep -q "^HTTP.*200" CHECKSUMS.md5.R;then 117 | [ $V ]&&echo -n "OK "||echo -n . 118 | if grep -q -i Content-Length: CHECKSUMS.md5.R;then 119 | [ $V ]&&echo -n "$(grep -i Content-Length: CHECKSUMS.md5.R|tail -1|awk '{print $2}'|sed $'s/\r//') bytes " 120 | fi 121 | if grep -q -i Last-Modified: CHECKSUMS.md5.R;then 122 | [ $V ]&&echo -n "($(grep -i Last-Modified: CHECKSUMS.md5.R|tail -1|cut -f2- -d:|sed $'s/\r//') ) " 123 | DATE="$(grep -i Last-Modified: CHECKSUMS.md5.R|tail -1|cut -f2- -d:|sed $'s/\r//')" 124 | fi 125 | [ $V ]&&echo 126 | MD5=yes 127 | elif grep -q "^HTTP.*404" CHECKSUMS.md5.R;then 128 | [ $V ]&&echo -e " not present\nInvalid repository"|grep --color .||echo " Invalid (CHECKSUMS.md5 not present)"|grep --color . 129 | continue 130 | else 131 | [ $V ]&&echo -e " unable to retrieve\nInvalid repository"|grep --color .||echo " Invalid (unable to retrieve CHECKSUMS.md5)"|grep --color . 132 | continue 133 | fi 134 | 135 | PACK=no 136 | [ $V ]&&echo -en " PACKAGES.TXT: "||echo -n . 137 | curl --location --head $REPO/PACKAGES.TXT > PACKAGES.TXT.R 2>/dev/null 138 | ERR=$? 139 | if grep -q "HTTP.*200" PACKAGES.TXT.R;then 140 | [ $V ]&&echo -n "OK "||echo -n . 141 | if grep -q -i Content-Length: PACKAGES.TXT.R;then 142 | [ $V ]&&echo -n "$(grep -i Content-Length: PACKAGES.TXT.R|tail -1|awk '{print $2}'|sed $'s/\r//') bytes " 143 | SIZE="$(grep -i Content-Length: PACKAGES.TXT.R|tail -1|awk '{print $2}'|sed $'s/\r//')" 144 | fi 145 | if grep -q -i Last-Modified: PACKAGES.TXT.R;then 146 | [ $V ]&&echo -n "($(grep -i Last-Modified: PACKAGES.TXT.R|tail -1|cut -f2- -d:|sed $'s/\r//') ) " 147 | fi 148 | [ $V ]&&echo 149 | PACK=yes 150 | elif grep -q "HTTP.*404" PACKAGES.TXT.R;then 151 | [ $V ]&&echo -e " not present\nInvalid repository"|grep --color .||echo " Invalid (PACKAGES.TXT not present)"|grep --color . 152 | continue 153 | else 154 | [ $V ]&&echo -e " unable to retrieve\nInvalid repository"|grep --color .||echo " Invalid (unable to retrieve PACKAGES.TXT)"|grep --color . 155 | continue 156 | fi 157 | 158 | [ $V ]&&echo -n " GPG-KEY: "||echo -n . 159 | wget -o wget.log --timeout=10 --wait=2 --tries=2 -O GPG-KEY $REPO/GPG-KEY 160 | ERR=$? 161 | if [ $ERR -eq 0 ];then 162 | if [ ! -s GPG-KEY ];then 163 | [ $V ]&&echo "empty"|grep --color . 164 | GPG=bad 165 | elif ! grep -q -- "-----END" GPG-KEY;then 166 | [ $V ]&&echo "invalid"|grep --color . 167 | GPG=bad 168 | else 169 | ID=$(gpg --list-packets GPG-KEY|grep ":user ID packet:"|head -1|cut -f2 -d'"') 170 | if [ -z "$ID" ];then 171 | [ $V ]&&echo "Unable to get UID"|grep --color . 172 | GPG=yes 173 | else 174 | [ $V ]&&echo $ID 175 | GPG=$ID 176 | fi 177 | if [ "$V" == "2" ];then 178 | ( gpg --list-packets GPG-KEY 179 | cat GPG-KEY 180 | )|sed 's/^/ /' 181 | fi 182 | fi 183 | elif grep -q "404 Not Found" wget.log;then 184 | [ $V ]&&echo "not present"|grep --color . 185 | GPG=no 186 | else 187 | [ $V ]&&echo "unable to retrieve"|grep --color . 188 | GPG=no 189 | fi 190 | 191 | if [ "$GPG" = "bad" ];then 192 | [ $V ]&&echo -e " invalid GPG key\nInvalid repository"|grep --color .||echo " Invalid (GPG-KEY failure)"|grep --color . 193 | continue 194 | fi 195 | 196 | if [ ! $V ];then 197 | echo -n " OK" 198 | if [ "$GPG" != "yes" ];then 199 | echo -n " ( $GPG gpg )" 200 | fi 201 | echo 202 | else 203 | echo "Done" 204 | fi 205 | if ! echo $SIZE|grep -q "^[1-9][0-9]*$";then 206 | SIZE="-" 207 | fi 208 | SIZE="$(printf "%8d" $SIZE)" 209 | if date -d "$DATE" >/dev/null 2>&1;then 210 | DATE=$(date -d "$DATE" "+%Y/%m/%d %H:%M:%S") 211 | else 212 | DATE="-" 213 | fi 214 | 215 | 216 | 217 | echo -e "$REPO#$SIZE#$DATE#$GPG" >> repositories.tmp 218 | 219 | 220 | done 221 | echo 222 | echo "========================================================" 223 | ) >&2 224 | 225 | date 226 | echo 227 | ( 228 | echo -e "url# size#date#gpg" 229 | echo 230 | cat repositories.tmp|sort 231 | )|LANG=C.utf8 column -t -s '#' 232 | 233 | cd 234 | #rm -rf $TMP 235 | 236 | 237 | 238 | 239 | -------------------------------------------------------------------------------- /src/doinst.sh: -------------------------------------------------------------------------------- 1 | config() { 2 | NEW="$1" 3 | OLD="$(dirname $NEW)/$(basename $NEW .new)" 4 | # If there's no config file by that name, mv it over: 5 | if [ ! -r $OLD ]; then 6 | mv $NEW $OLD 7 | elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy 8 | rm $NEW 9 | fi 10 | # Otherwise, we leave the .new copy for the admin to consider... 11 | } 12 | 13 | renam() { 14 | FILE="$1" 15 | if [ -r $FILE ]; then 16 | mv $FILE $FILE.tmp 17 | fi 18 | } 19 | 20 | copy_config_file() { 21 | ARCH=$(uname -m) 22 | case $ARCH in 23 | i386|i486|i586|i686) 24 | SRCMIRROR=slackpkgplus.x86.sample 25 | ;; 26 | x86-64|x86_64|X86-64|X86_64) 27 | SRCMIRROR=slackpkgplus.x86_64.sample 28 | ;; 29 | *) 30 | SRCMIRROR=slackpkgplus.x86.sample 31 | ;; 32 | esac 33 | cp usr/doc/slackpkg+-SLPVERSION/$SRCMIRROR etc/slackpkg/slackpkgplus.conf.new 34 | cat usr/doc/slackpkg+-SLPVERSION/repositories.txt |grep '^> ' |sed 's/^> /#/' >> etc/slackpkg/slackpkgplus.conf.new 35 | } 36 | 37 | copy_config_file 38 | config etc/slackpkg/slackpkgplus.conf.new 39 | config etc/slackpkg/greylist.new 40 | config etc/slackpkg/notifymsg.conf.new 41 | 42 | if [ -d var/lib/slackpkg ];then 43 | WORKDIR=var/lib/slackpkg 44 | [ ! -e $WORKDIR/pkglist ]&&touch $WORKDIR/pkglist 45 | [ -e $WORKDIR/current ]&&touch $WORKDIR/currentplus 46 | [ ! -e $WORKDIR/CHECKSUMS.md5 ]&&touch $WORKDIR/CHECKSUMS.md5 47 | fi 48 | -------------------------------------------------------------------------------- /src/greylist: -------------------------------------------------------------------------------- 1 | # All packages in that list will be showned but 2 | # unchecked by default 3 | # 4 | # You can greylist using regular expressions. 5 | # 6 | # Note that the regex will be applied with the command 'grep -wE' 7 | # at the entire pkglist row 8 | # SLACKPKGPLUS_slackpkgplus slackpkg+ 1.7.5 noarch 2mt slackpkg+-1.7.5-noarch-2mt ./SLACKPKGPLUS_slackpkgplus/pkg txz 9 | # 10 | # Also you may want to greylist ALL slackpkgplus repository; 11 | # useful if you want to run slackpkg install alienbob and select 12 | # only the wanted package (instead de-select all unwanted): 13 | #SLACKPKGPLUS_.* 14 | # 15 | # You may want to greylist kde and/or kdei 16 | #kde 17 | #kdei 18 | # 19 | #do not upgrade packages installed with sbopkg; use it instead 20 | #[0-9]+_SBo 21 | -------------------------------------------------------------------------------- /src/notifymsg.conf: -------------------------------------------------------------------------------- 1 | # This file contains all Notification Messages associated to an event. 2 | # To enable the feature set ENABLENOTIFY=on in slackpkgplus.conf 3 | # 4 | # 5 | # -- Each entry in the hash table NOTIFYMSG allows to associate a message 6 | # to an event. At runtime, when an event E is triggered the associated 7 | # message NOTIFYMSG[E], if any, is printed, in a dialog when DIALOG=on, 8 | # on the standard output otherwise. 9 | # 10 | # The syntax of the variable NOTIFYMSG is as below : 11 | # 12 | # NOTIFYMSG[]="" 13 | # 14 | # EVENT ::= @ 15 | # EVENTID ::= on_install|on_upgrade|on_remove 16 | # PATTERNLIST ::= [,PATTERNLIST] 17 | # MESSAGE ::= string 18 | # 19 | # Each PATTERN can be the basename of a package (i.e mesa), or a regular 20 | # expression (mozilla-.*) 21 | # 22 | # When an event occurs, the basenames of packages that match a given 23 | # PATTERNLIST is available at runtime through the variable NV_MATCHPKGS. 24 | # Attention, this variable must be escaped (i.e \${NV_MATCHPKGS}) when 25 | # referenced inside the MESSAGE associated to an EVENT. 26 | # 27 | # 28 | NOTIFYMSG[on_install@mesa.*,xorg-server]="Package(s) \$NV_MATCHPKGS has(have) been (re)installed.\n\ 29 | \n\ 30 | In order to use graphical softwares, you should reinstall any proprietary\ 31 | driver in use (nVidia, aTi)." 32 | 33 | NOTIFYMSG[on_upgrade@mesa.*,xorg-server]="Package(s) \$NV_MATCHPKGS has(have) been updated.\n\ 34 | \n\ 35 | In order to use graphical softwares, you should reinstall any proprietary\ 36 | driver in use (nVidia, aTi)." 37 | 38 | NOTIFYMSG[on_upgrade@kernel-modules]="Package(s) \$NV_MATCHPKGS has(have) been updated.\n\ 39 | \n\ 40 | Remember to update lilo.conf and the initrd (if use one) to include new modules.\n\ 41 | Also you need to rebuild all custom kernel modules (video driver, virtualization modules,...)." 42 | -------------------------------------------------------------------------------- /src/repositories.lst: -------------------------------------------------------------------------------- 1 | Sun Apr 3 20:58:50 CEST 2022 2 | 3 | url size date gpg 4 | http://www.slackel.gr/repo/i486/current 712824 2022/04/03 18:55:06 Dimitris Tzemos (Slackel Creator) 5 | http://www.slackel.gr/repo/x86_64/current 754115 2022/04/03 18:52:35 Dimitris Tzemos (Slackel Creator) 6 | https://download.salixos.org/i486/15.0 354608 2022/03/31 23:42:08 Salix Admin (The Bonsai OS) 7 | https://download.salixos.org/i486/extra-15.0 609 2022/02/13 09:04:59 Salix Admin (The Bonsai OS) 8 | https://download.salixos.org/x86_64/15.0 357459 2022/03/31 23:42:35 Salix Admin (The Bonsai OS) 9 | https://download.salixos.org/x86_64/extra-15.0 611 2022/02/13 09:05:12 Salix Admin (The Bonsai OS) 10 | https://ftp.osuosl.org/pub/slackware/slackware-15.0 861877 2022/03/31 00:37:36 Slackware Linux Project 11 | https://ftp.osuosl.org/pub/slackware/slackware-current 862484 2022/04/02 20:59:29 Slackware Linux Project 12 | https://ftp.osuosl.org/pub/slackware/slackware64-15.0 864745 2022/03/31 00:39:43 Slackware Linux Project 13 | https://ftp.osuosl.org/pub/slackware/slackware64-current 865358 2022/04/02 21:00:04 Slackware Linux Project 14 | https://packages.slackonly.com/pub/packages/15.0-x86_64 1497358 2022/04/03 01:55:54 Panagiotis Nikolaou (slackware user) 15 | https://slack.conraid.net/repository/slackware64-current 541693 2022/04/02 16:07:00 Corrado Franco (Conraid) 16 | https://slackware.nl/people/alien/multilib/15.0 200478 2022/03/20 12:38:50 Eric Hameleers (IBM Linux) 17 | https://slackware.nl/people/alien/multilib/current 200440 2022/03/20 12:40:25 Eric Hameleers (IBM Linux) 18 | https://slackware.nl/people/alien/restricted_sbrepos/15.0/x86 5820 2022/02/02 23:55:26 Eric Hameleers 19 | https://slackware.nl/people/alien/restricted_sbrepos/15.0/x86_64 5841 2022/02/02 23:55:25 Eric Hameleers 20 | https://slackware.nl/people/alien/restricted_sbrepos/current/x86 5820 2022/02/02 23:55:22 Eric Hameleers 21 | https://slackware.nl/people/alien/restricted_sbrepos/current/x86_64 5841 2022/02/02 23:55:20 Eric Hameleers 22 | https://slackware.nl/people/alien/sbrepos/15.0/x86 305419 2022/04/03 12:26:05 Eric Hameleers 23 | https://slackware.nl/people/alien/sbrepos/15.0/x86_64 310867 2022/04/03 12:24:40 Eric Hameleers 24 | https://slackware.nl/people/alien/sbrepos/current/x86 306369 2022/04/03 12:23:47 Eric Hameleers 25 | https://slackware.nl/people/alien/sbrepos/current/x86_64 311819 2022/04/03 12:22:20 Eric Hameleers 26 | https://slackware.uk/csb/15.0/x86 19160 2022/03/04 08:39:48 Willy Sudiarto Raharjo 27 | https://slackware.uk/csb/15.0/x86_64 19224 2022/03/04 08:39:57 Willy Sudiarto Raharjo 28 | https://slackware.uk/csb/current/x86 19160 2022/03/04 08:39:48 Willy Sudiarto Raharjo 29 | https://slackware.uk/csb/current/x86_64 19224 2022/03/04 08:39:57 Willy Sudiarto Raharjo 30 | https://slackware.uk/msb/15.0/latest/x86 27691 2022/03/26 17:02:25 MATE SlackBuilds 31 | https://slackware.uk/msb/15.0/latest/x86_64 27789 2022/03/26 17:02:37 MATE SlackBuilds 32 | https://slackware.uk/msb/current/latest/x86 27691 2022/03/26 17:02:25 MATE SlackBuilds 33 | https://slackware.uk/msb/current/latest/x86_64 27789 2022/03/26 17:02:37 MATE SlackBuilds 34 | https://slackware.uk/slint/x86_64/slint-15.0 673175 2022/04/03 00:10:59 Didier Spaier 35 | https://slakfinder.org/slackpkg+1.7 625 2022/02/23 23:49:30 Matteo Rossini 36 | https://slakfinder.org/slackpkg+1.8 624 2022/02/16 15:56:46 Matteo Rossini 37 | https://slakfinder.org/slackpkg+15 624 2022/02/16 15:57:54 Matteo Rossini 38 | https://slakfinder.org/slackpkg+dev 624 2022/02/16 15:55:39 Matteo Rossini 39 | -------------------------------------------------------------------------------- /src/repositories.txt: -------------------------------------------------------------------------------- 1 | Supported Repositories: 2 | 3 | > slackpkgplus: https://slakfinder.org/slackpkg+{dev,1.7,1.8,15}/ 4 | > multilib: https://slackware.nl/people/alien/multilib/{15.0,current}/ 5 | > alienbob: https://slackware.nl/people/alien/sbrepos/{15.0,current}/{x86,x86_64}/ 6 | > restricted: https://slackware.nl/people/alien/restricted_sbrepos/{15.0,current}/{x86,x86_64}/ 7 | > msb: https://slackware.uk/msb/{15.0,current}/latest/{x86,x86_64}/ 8 | > csb: https://slackware.uk/csb/{15.0,current}/{x86,x86_64}/ 9 | > slackers: https://slack.conraid.net/repository/slackware64-current/ 10 | > slackonly: https://packages.slackonly.com/pub/packages/15.0-x86_64/ 11 | > slackel: http://www.slackel.gr/repo/{i486,x86_64}/current/ 12 | > slint: https://slackware.uk/slint/x86_64/slint-15.0/ 13 | > salixos: https://download.salixos.org/{i486,x86_64}/15.0/ 14 | > salixextra: https://download.salixos.org/{i486,x86_64}/extra-15.0/ 15 | 16 | salixos partially supports GPG. This repository contains the .asc file 17 | for CHECKSUMS.md5, so the 'update' process works with CHECKGPG=on and repository authenticity 18 | is guaranteed. 19 | Unfortunately the single packages do not include the related .asc file, so you must 20 | install the packages with 'slackpkg -checkgpg=off install ', but the 21 | integrity is guaranteed by the md5 authenticity. 22 | 23 | See /usr/doc/slackpkg+-*/repositories.lst for an expanded list. 24 | 25 | 26 | 27 | Some specific notes: 28 | 29 | * slackpkgplus: 30 | This is the official repository to keep slackpkg+ updated. We have 4 branch: 31 | /slackpkg+1.7/ -> the latest release working with slackware 14.2 (only) 32 | /slackpkg+1.8/ -> the newest release working with slackware 15.0 and current 33 | /slackpkg+15/ -> the latest stable release working with slackware 15 34 | /slackpkg+dev/ -> the development release; please consider to test it and report bugs 35 | /slackpkg+/ -> Dynamic repository. Try to detect which slackware release you are using 36 | then redirect to /slackpkg+1.7/ if you are using 14.2, or show a release 37 | compatible with the slackware-stable at the moment. 38 | You should not use that repository 39 | 40 | * multilib: 41 | Please, run /usr/doc/slackpkg+-*/setupmultilib.sh to setup it. 42 | Periodically you should run "slackpkg install multilib" 43 | after run "slackpkg upgrade-all" 44 | 45 | Please read /usr/doc/slackpkg+-*/README for more details 46 | 47 | 48 | Slackware repositories: 49 | https://ftp.osuosl.org/pub/slackware/slackware{,64}-{15.0,current}/ 50 | -------------------------------------------------------------------------------- /src/setupmultilib.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | CONF=${CONF:-/etc/slackpkg} # needed if you're running slackpkg 2.28.0-12 4 | 5 | . $CONF/slackpkg.conf 6 | 7 | cd $(dirname $(readlink -f $0)) 8 | if [ ! -e repositories.txt ];then 9 | echo "Fatal. repositories.txt not found!" 10 | exit 1 11 | fi 12 | 13 | ISX64=$(ls $ROOT/var/log/packages/aaa_base-*-x86_64-*|wc -l) 14 | if [ $ISX64 -ne 1 ];then 15 | echo "Slackware multilib's are supported only from slackware x86_64!" 16 | exit 1 17 | fi 18 | SVER=$(grep -v ^\# $CONF/mirrors|sed -r 's,^.*/slackware64-(current|15.0)/,\1,'|head -1) 19 | if [ -z "$SVER" ];then 20 | echo "I can't detect your Slackware version." 21 | echo "Which Slackware version are you running? (current/15.0)" 22 | read $SVER 23 | fi 24 | if ! echo $SVER|grep -E -q '^(current|15.0)$';then 25 | echo "Invalid Slackware version ($SVER)" 26 | exit 1 27 | fi 28 | 29 | if grep -q -e '^PKGS_PRIORITY=.* multilib .*$' -e '^MIRRORPLUS..multilib..=.*multilib.*' $CONF/slackpkgplus.conf;then 30 | echo "slackpkg+ seems to be already configured for multilib support. Would you like to remove multilib support from the configuration? (y/N)" 31 | read ANS 32 | if [ "$ANS" == "y" -o "$ANS" == "Y" ];then 33 | cp $CONF/slackpkgplus.conf $CONF/slackpkgplus.conf.backup 34 | sed -i -r \ 35 | -e 's/^PKGS_PRIORITY=(.*) multilib[^ ]* (.*)$/PKGS_PRIORITY=\1 \2/' \ 36 | -e 's/^(PKGS_PRIORITY=\( +\).*)$/#\1/' \ 37 | -e 's/^(MIRRORPLUS..multilib..=.*multilib.*)$/#\1/' \ 38 | -e 's/^REPOPLUS=(.*) multilib (.*)/REPOPLUS=\1 \2/' \ 39 | -e 's/^(REPOPLUS=\( +\).*)$/#\1/' $CONF/slackpkgplus.conf 40 | echo "Multilib support has been removed from slackpkg+. Now you need to remove the installed packages (using slackpkg)." 41 | echo "Would you like this script to run slackpkg for you and remove the Multilib packages? (y/N)" 42 | read ANS 43 | if [ "$ANS" == "y" -o "$ANS" == "Y" ];then 44 | slackpkg update 45 | slackpkg upgrade gcc glibc 46 | slackpkg remove multilib 47 | echo "Multilib removed!!" 48 | exit 0 49 | else 50 | echo "To remove installed packages type:" 51 | echo "# slackpkg update" 52 | echo "# slackpkg upgrade gcc glibc" 53 | echo "# slackpkg remove multilib" 54 | exit 0 55 | fi 56 | else 57 | echo "Aborted" 58 | exit 1 59 | fi 60 | fi 61 | 62 | echo "Would you like to setup slackpkg+ to add multilib support? (y/N)" 63 | read ANS 64 | if [ "$ANS" == "y" -o "$ANS" == "Y" ];then 65 | MULTILIBREPO="MIRRORPLUS['multilib']="$(grep -m1 '> multilib: ' repositories.txt|awk '{print $3}'|sed "s/{.*}/$SVER/") 66 | cp $CONF/slackpkgplus.conf $CONF/slackpkgplus.conf.backup 67 | if grep -q ^PKGS_PRIORITY= $CONF/slackpkgplus.conf;then 68 | sed -i -r -e 's/^PKGS_PRIORITY=\( (.*) \)/PKGS_PRIORITY=( multilib \1 )/' $CONF/slackpkgplus.conf 69 | else 70 | sed -i -r -e '1,/^#PKGS_PRIORITY=.*$/s/^(#PKGS_PRIORITY=.*)$/\1\nPKGS_PRIORITY=( multilib )\n/' $CONF/slackpkgplus.conf 71 | fi 72 | sed -i -r -e 's|^(PKGS_PRIORITY=.*)$|\1\n'"$MULTILIBREPO|" $CONF/slackpkgplus.conf 73 | sed -i.backup -r -e 's/^(\[0-9\]\+compat32)$/\#\1/' $CONF/blacklist 74 | echo "slackpkg+ is now configured for multilib support." 75 | echo "Do you want to install the multilib now? (y/N)" 76 | read ANS 77 | if [ "$ANS" == "y" -o "$ANS" == "Y" ];then 78 | slackpkg update gpg 79 | slackpkg update 80 | slackpkg upgrade multilib 81 | COMPATPKGS=$( 82 | cd $ROOT/var/log/packages 83 | ls | rev |cut -f4- -d-|rev|sed -e 's/^/^slackware64 /' -e 's/$/ /' > /tmp/installed_packages1 84 | grep -f /tmp/installed_packages1 $WORKDIR/pkglist|awk '{print "SLACKPKGPLUS_multilib "$2"-compat32 "}' > /tmp/installed_packages2 85 | grep -f /tmp/installed_packages2 $WORKDIR/pkglist|awk '{print "multilib:"$2}' 86 | ) 87 | slackpkg install $COMPATPKGS 88 | echo "Multilib installed" 89 | else 90 | echo "To install multilib type:" 91 | echo "# slackpkg update gpg" 92 | echo "# slackpkg update" 93 | echo "# slackpkg upgrade gcc glibc" 94 | echo "# slackpkg install multilib" 95 | fi 96 | echo "To keep multilib updated, simply type:" 97 | echo "# slackpkg upgrade-all" 98 | if [ "$SVER" == "current" ];then 99 | echo "Remember... When you see NEW packages with 'slackpkg install-new' command," 100 | echo "you may need to install the related multilib package" 101 | fi 102 | exit 0 103 | else 104 | echo "Aborted" 105 | exit 1 106 | fi 107 | -------------------------------------------------------------------------------- /src/slack-desc: -------------------------------------------------------------------------------- 1 | # HOW TO EDIT THIS FILE: 2 | # The "handy ruler" below makes it easier to edit a package description. Line 3 | # up the first '|' above the ':' following the base package name, and the '|' 4 | # on the right side marks the last column you can put a character in. You must 5 | # make exactly 11 lines for the formatting to be correct. It's also 6 | # customary to leave one space after the ':'. 7 | 8 | |-handy-ruler------------------------------------------------------| 9 | slackpkg+: slackpkg+ plugin for third-party repositories 10 | slackpkg+: 11 | slackpkg+: Slackpkg is a package manager for Slackware. 12 | slackpkg+: 13 | slackpkg+: Slackpkg+ is a plugin for slackpkg. 14 | slackpkg+: It adds support for third-party repositories. 15 | slackpkg+: You can install, upgrade and search from multiple repositories. 16 | slackpkg+: 17 | slackpkg+: 18 | slackpkg+: 19 | slackpkg+: 20 | -------------------------------------------------------------------------------- /src/slackpkg+.SlackBuild: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | TXZ=$(head -2 ChangeLog.txt|cut -f1 -d:|cut -f2 -d/|tail -1) 6 | VERSION=$(echo $TXZ|cut -f2 -d-) 7 | BUILD=$(echo $TXZ|cut -f4 -d-|sed 's/.txz//')$TAG 8 | echo "Building $TXZ" 9 | 10 | CWD=`pwd` 11 | TMP=${TMP:-/tmp} 12 | PKG=$TMP/slackpkg+-$VERSION 13 | 14 | OUTPUT=${OUTPUT:-$TMP} 15 | 16 | if [ repositories.txt -nt repositories.lst ];then 17 | echo "WARNING: repositories.txt is newer than repositories.lst" 18 | echo " remember to run ./checkrepos.sh repositories.txt > repositories.lst" 19 | sleep 5 20 | fi 21 | 22 | INST=$(ls /var/log/packages/slackpkg+-$VERSION-noarch-* 2>/dev/null||true) 23 | if [ ! -z "$INST" ];then 24 | BINST=$(echo $INST|sed 's/.*-//') 25 | NBUILD=$(echo $BUILD|sed "s/[a-z].*//") 26 | NBINST=$(echo $BINST|sed "s/[a-z].*//") 27 | if [ "$BINST" == "$BUILD" ];then 28 | echo "WARNING: $INST seems to be installed" 29 | echo " remember to change \$VERSION or \$BUILD" 30 | sleep 5 31 | elif [ $NBUILD -le $NBINST ];then 32 | echo "NOTICE: `basename $INST` is installed" 33 | echo " remember to change \$VERSION or \$BUILD" 34 | sleep 5 35 | fi 36 | fi 37 | 38 | SPKGPLUS_VERSION=$(grep 'SPKGPLUS_VERSION="' slackpkgplus.sh|cut -f2 -d'"') 39 | if [ "$SPKGPLUS_VERSION" != "$VERSION" ];then 40 | echo "WARNING: slackpkg+ version in ChangeLog.txt ($VERSION) does not match with" 41 | echo " slackpkg+ version in slackpkgplus.sh ($SPKGPLUS_VERSION)" 42 | echo " please remember to update both version" 43 | sleep 5 44 | fi 45 | 46 | if [ -e ../ChangeLog.txt ];then if ! diff ../ChangeLog.txt ChangeLog.txt;then 47 | echo "WARNING: ChangeLog in src/ and git root does not match; please update both" 48 | sleep 5 49 | fi;fi 50 | 51 | 52 | rm -rf $PKG 53 | mkdir -p $PKG 54 | 55 | cd $PKG 56 | mkdir -p etc/slackpkg/ 57 | mkdir -p usr/libexec/slackpkg/functions.d/ 58 | mkdir -p usr/doc/slackpkg+-$VERSION/ 59 | mkdir -p usr/man/man5 60 | mkdir -p usr/man/it/man5 61 | mkdir -p usr/man/fr/man5 62 | mkdir -p install/ 63 | 64 | cp $CWD/slackpkgplus.sh usr/libexec/slackpkg/functions.d/ 65 | cp $CWD/README usr/doc/slackpkg+-$VERSION/ 66 | cp $CWD/CHANGES usr/doc/slackpkg+-$VERSION/ 67 | cp $CWD/ChangeLog.txt usr/doc/slackpkg+-$VERSION/ 68 | cp $CWD/repositories.txt usr/doc/slackpkg+-$VERSION/ 69 | cp $CWD/repositories.lst usr/doc/slackpkg+-$VERSION/ 70 | cp $CWD/setupmultilib.sh usr/doc/slackpkg+-$VERSION/ 71 | cp $CWD/checkrepos.sh usr/doc/slackpkg+-$VERSION/ 72 | cp $CWD/zchangelog.sh usr/libexec/slackpkg/functions.d/zchangelog.sh 73 | cp $CWD/zlookkernel.sh usr/libexec/slackpkg/functions.d/zlookkernel.sh 74 | cp $CWD/slackpkg+.SlackBuild usr/doc/slackpkg+-$VERSION/ 75 | cp $CWD/slackpkgplus.*.sample usr/doc/slackpkg+-$VERSION/ 76 | cp $CWD/greylist etc/slackpkg/greylist.new 77 | cp $CWD/slack-desc install/ 78 | gzip -9c $CWD/slackpkgplus.conf.5 > usr/man/man5/slackpkgplus.conf.5.gz 79 | gzip -9c $CWD/slackpkgplus.conf.5.it > usr/man/it/man5/slackpkgplus.conf.5.gz 80 | gzip -9c $CWD/slackpkgplus.conf.5.fr > usr/man/fr/man5/slackpkgplus.conf.5.gz 81 | cat $CWD/doinst.sh|sed "s/SLPVERSION/$VERSION/" > install/doinst.sh 82 | cat $CWD/notifymsg.conf > etc/slackpkg/notifymsg.conf.new 83 | 84 | chmod +x usr/libexec/slackpkg/functions.d/slackpkgplus.sh 85 | chmod +x usr/libexec/slackpkg/functions.d/zchangelog.sh 86 | chmod +x usr/libexec/slackpkg/functions.d/zlookkernel.sh 87 | chmod +x usr/doc/slackpkg+-$VERSION/setupmultilib.sh 88 | 89 | 90 | makepkg -l y -c y $OUTPUT/slackpkg+-$VERSION-noarch-$BUILD.txz 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /src/slackpkgplus.conf.5: -------------------------------------------------------------------------------- 1 | .\"******************************************************************* 2 | .\" 3 | .\" This manpage was written modifying the slackpkg.conf manpage 4 | .\" 5 | .\"******************************************************************* 6 | .TH SLACKPKGPLUS.CONF 5 "Febrary 2021" slackpkg+\-1.8.0 "" 7 | .SH NOME 8 | \fBslackpkgplus.conf\fP \- Configuration file for slackpkg+ 9 | 10 | .SH DESCRIPTION 11 | 12 | The \fBslackpkgplus.conf\fP file contains the \fB\%slackpkg+\fP configuration, a \%plugin for \%slackpkg that allows the addition of third-party repositories in \fB\%slackpkg\fP(5). 13 | 14 | The \%slackpkgplus.conf file is a sequence of shell script variables (also called "settings"), and each variable controls one aspect of \%slackpkg+. 15 | Comments begin with the \fB#\fP character and end at end of the line, and comments may appear anywhere inside the \%slackpkgplus.conf file. 16 | If some variable appears more than once in the file, slackpkg will use the value that was defined last. 17 | 18 | Many variables can be overridden from the command line writing them BEFORE the command. 19 | If you need to override the value of \fB\%VARIABLE\fP, write \fB\%VARIABLE=\fP\fIvalue\fP on the command line, just before \fB\%slackpkg\fP. 20 | Multiple variables can be overridden. 21 | 22 | .in +4 23 | DOWNLOADONLY=on\ slackpkg\ upgrade-all 24 | .in 25 | 26 | Each setting has a default value that is used if the variable is not present in the file or is commented out. It does not necessarly correspond with the value set in the sample configuration file. 27 | 28 | Here is the list of available settings: 29 | 30 | .ds 0 VARIABLE\t\t\t\tvalues\t\tdefault\tcan override 31 | .in +2 32 | \*0 33 | .in 34 | 35 | \fBMain settings\fP 36 | .ds 1 SLACKPKGPLUS\t\t\ton/off\t\ton\t\tyes 37 | .ds 2 MIRRORPLUS[]\t\t\tstrings\t\t-\t\tno 38 | .ds 3 REPOPLUS\t\t\t\tlist\t\t\t-\t\tno 39 | .ds 4 PKGS_PRIORITY\t\t\tlist\t\t\t-\t\tno 40 | .ds 5 TAG_PRIORITY\t\t\ton/off\t\toff\t\tyes 41 | .in +2 42 | \*1 43 | .br 44 | \*2 45 | .br 46 | \*3 47 | .br 48 | \*4 49 | .br 50 | \*5 51 | .in 52 | 53 | 54 | \fBDownload settings\fP 55 | .ds 0 VERBOSE\t\t\t\t0,1,2,3\t\t1\t\tyes 56 | .ds 1 USETERSE\t\t\t\ton/off\t\toff\t\tyes 57 | .ds 2 PROXY\t\t\t\tstring\t\t-\t\tyes 58 | .ds 3 WGETOPTS\t\t\t\tstring\t\t-\t\tyes 59 | .ds 4 DOWNLOADCMD\t\t\tstring\t\twget\t\tyes 60 | .ds 5 CHECKDISKSPACE\t\t\ton/off\t\toff\t\tno 61 | .ds 6 DOWNLOADONLY\t\t\ton/off\t\toff\t\tyes 62 | .ds 7 CACHEUPDATE\t\t\ton/off\t\toff\t\tyes 63 | .ds 8 SEARCH_CLOG_INPARENT\ton/off\t\toff\t\tno 64 | .ds 9 STRICTGPG\t\t\t\ton/off\t\ton\t\tyes 65 | .in +2 66 | \*0 67 | .br 68 | \*1 69 | .br 70 | \*2 71 | .br 72 | \*3 73 | .br 74 | \*4 75 | .br 76 | \*5 77 | .br 78 | \*6 79 | .br 80 | \*7 81 | .br 82 | \*8 83 | .br 84 | \*9 85 | .in 86 | 87 | 88 | \fBSearch settings\fP 89 | .ds 1 ALLOW32BIT\t\t\ton/off\t\toff\t\tyes 90 | .ds 2 USEBL\t\t\t\toff/on\t\ton\t\tyes 91 | .ds 3 LEGACYBL\t\t\t\toff/on\t\toff\t\tyes 92 | .ds 4 GREYLIST\t\t\t\ton/off\t\ton\t\tyes 93 | .ds 5 SENSITIVE_SEARCH\t\ton/off\t\ton\t\tyes 94 | .ds 6 WW_FILE_SEARCH\t\t\ton/off\t\ton\t\tyes 95 | .ds 7 SBO[]\t\t\t\tstrings\t\t-\t\tno 96 | .in +2 97 | \*1 98 | .br 99 | \*2 100 | .br 101 | \*3 102 | .br 103 | \*4 104 | .br 105 | \*5 106 | .br 107 | \*6 108 | .br 109 | \*7 110 | .in 111 | 112 | 113 | \fBDisplay settings\fP 114 | .ds 1 SHOWORDER\t\t\t\tstring\t\tpackage\tno 115 | .ds 2 DETAILED_INFO\t\t\tstring\t\tnone\t\tyes 116 | .ds 3 ENABLENOTIFY\t\t\ton/off\t\toff\t\tno 117 | .ds 4 TERSESEARCH\t\t\t\ton/off/tiny\t\ton\t\tyes 118 | .in +2 119 | \*1 120 | .br 121 | \*2 122 | .br 123 | \*3 124 | .in 125 | 126 | 127 | \fBPlugins\fP 128 | .br 129 | 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). 130 | 131 | For each configuration change is necessary or otherwise appropriate to re-run \fB\%slackpkg\ update\fP. 132 | 133 | Here are the details for each setting. 134 | 135 | .TP 5 136 | \fBSLACKPKGPLUS\fP 137 | .br 138 | Enable/Disable slackpkg+. 139 | If you want to disable slackpkg+ without uninstall it, sets this variale to \fBoff\fP. 140 | 141 | .TP 5 142 | \fBMIRRORPLUS\fP 143 | .br 144 | This is the main (and the only really necessary) configuration variable for \%slackpkg+ to set. 145 | It is used to specify the repositories from which to install third-party packages. 146 | You can specify more than one repository by adding multiple lines. 147 | Each repository has a name that have must be specified in square brackets. 148 | 149 | .in +4 150 | MIRRORPLUS['slackpkgplus']=https://slakfinder.org/slackpkg+15/ 151 | .in 152 | 153 | You can specify remote repositories in http/https/ftp or local repositories (with or without metadata). 154 | For details on repository types refer to the documentation. 155 | 156 | Each time you add a new repository you may need to lauch the command \fB\%slackpkg\ update\ gpg\fP to download the GPG key. 157 | 158 | .TP 5 159 | \fBREPOPLUS\fP 160 | .br 161 | The addition of more third-party repository has as consequence that the one software can be in more than one source, with the same package name, but built in a different way, with different options and different version. 162 | In the package selection, at installation time, slackpkg can show just one. 163 | 164 | The variable \fB\%REPOPLUS\fP is to specify the search order in the repositories. Example: 165 | 166 | .in +4 167 | REPOPLUS=(\ slackpkgplus\ alienbob\ slacky\ ) 168 | .in 169 | 170 | In this case launching \fB\%slackpkg\ install\ openjdk\fP the package will be taken from the \fI\%alienbob\fP's repository, if present, otherwise look in \fI\%slacky\fP. 171 | For example, if you later want to upgrade the package from the repository slacky launch explicitly: 172 | 173 | .in +4 174 | slackpkg\ upgrade\ slacky:openjdk 175 | .in 176 | 177 | .TP 5 178 | \fBPKGS_PRIORITY\fP 179 | .br 180 | The previous setting has some limitations. 181 | .br 182 | In the last example the slacky openjdk package replaced the alienbob openjdk package. However after launching the command \fB\%slackpkg\ upgrade\-all\fP would be reinstalled the package from alienbob repository. 183 | 184 | Also, if a package is also present in the official Slackware repositories, this package can not be installed. 185 | 186 | The variable \fB\%PKGS_PRIORITY\fP is similar to \fB\%REPOPLUS\fP but allows a more widespread choice of the order of research both at the repository level and at individual packet level. Moreover the packages in the repositories configured in this variable can be installed even if present in the official repositories. 187 | 188 | .in +4 189 | PKGS_PRIORITY=( slacky:openjdk multilib ) 190 | .in 191 | 192 | In this case \fB\%slackpkg\ upgrade\-all\fP would update the package \fIopenjdk\fP from the repository \fIslacky\fP and all other packages from other reporitories. Another case where you need to use this option it the multilib repositorie as it need to overwrite some official Slackware packages (for multilib please read the documentation carefully). You can fully replace the variable \%REPOPLUS with \%PKGS_PRIORITY, but if you do that please you are aware that you could upgrade Slackware official packages with those third-party, so make sure the autority of the source. 193 | 194 | .TP 5 195 | \fBTAG_PRIORITY\fP 196 | .br 197 | When installing many packages from many repositories forcing them from the command line as explained above, it is not always easy to maintain a good \fB\%PKGS_PRIORITY\fP. 198 | 199 | In this case, it comes to help the variable \fB\%TAG_PRIORITY\fP. 200 | 201 | By setting this variable to \fBon\fP the logic of calculating priority for the packages upgrade changes, and the repository is calculated by trying to maintain - where possible - the \fBtag\fP of the package currently installed. 202 | .br 203 | The idea is that the openjdk of slacky package is \%openjdk\-7u40_b60\-x86_64\-1\fBsl\fP.txz, and every upgrade the tag will always remain \fBsl\fP, while that of alienbob will always \fBalien\fP and hardly (even if not impossible) you will find the openjdk package with tag \fBsl\fP in any other repository (unless this is not copied from the source repository and not re-packaged by the owner of the destination repository). 204 | .br 205 | So in all probability the package will be updated with a package written by the same author of the currently installed package. 206 | 207 | Note that if the author of the currently installed package removes it from its repository and the package is also present in another repository, the package will be updated with the latter, even if the tag is different. 208 | We therefore recommend to always pay attention to the sources from which it is proposed updating packages. 209 | 210 | The setting is disabled by default. 211 | 212 | .TP 5 213 | \fBVERBOSE\fP 214 | .br 215 | This variable specifies the level of detail of the \%\fBwget\fP(1) output (which is the downloader that is used by default unless otherwise specified). 216 | The original \%slackpkg ny default launches a classic wget with default options that then shows the scroll bar. 217 | .br 218 | When downloading the metadata repositories with \fB\%slackpkg\ update\fP, the original version must download a few files, while \%\fBslackpkg+\fP downloads many files, which can make the output difficult to read. 219 | 220 | With this setting you can specify how many output should show wget. Possible values are \fI0\fP,\fI1\fP,\fI2\fP,\fI3\fP: 221 | 222 | .br 223 | \fI0\fP)\ In both metadatas download and packages download, wget does not show the scroll bar but just the downloaded url \%\fB\fP(wget\ \-nv) 224 | .br 225 | \fI1\fP)\ In metadatas download does not show the scroll bar while in the packages download it is shown (default in \fB\%slackpkg+\fP) 226 | .br 227 | \fi2\fP)\ In both metadatas download and packages download, wget does show the scroll bar (default in origina \fB\%slackpkg\fP) 228 | .br 229 | \fI3\fP)\ Extended wget output and more other error reporting options; also temporary files are not deleted at the end of process. Use in case of troubleshooting and when you report a bug to the developers. 230 | 231 | This setting is ignored (or partially ignored if it is set to \fI3\fP if you are using another downloader with setting \fB\%DOWNLOADCMD\fP (see below). 232 | 233 | .TP 5 234 | \fBUSETERSE\fP 235 | .br 236 | 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. 237 | 238 | .TP 5 239 | \fBPROXY\fP 240 | .br 241 | Use proxy when needed 242 | 243 | .in +4 244 | PROXY=192.168.0.1:3128 245 | .in 246 | 247 | If empty use the system settings (enviroment variable http_proxy and https_proxy). Set to \fIoff\fP to disable the proxy. 248 | 249 | 250 | .TP 5 251 | \fBWGETOPTS\fP 252 | .br 253 | Here you can specify additional options to wget. A typical is 254 | 255 | .in +4 256 | WGETOPTS="--timeout=20 --tries=2" 257 | .in 258 | 259 | That way if a repository is not responding right away due temporary problems another attempt is made, but if it still fails no infinity other attempts are made (the default wget is 20 attempts). 260 | .br 261 | Refer to the documentation of \fB\%wget\fP(1) for all available options. 262 | 263 | This setting is ignored if you are using another downloader with variable \fB\%DOWNLOADCMD\fP (see below). 264 | 265 | .TP 5 266 | \fBDOWNLOADCMD\fP 267 | .br 268 | In case you want to use a downloader instead wget (eg \fBcurl\fP(1) or \fBaria2\fP that is a tool for parallel download to speed up the download) you can specify it in this variable. 269 | 270 | In value we consider that is called with: 271 | 272 | .in +4 273 | \fB$DOWNLOADCMD\fP \fIdestinationfile\fP \fIurl\fP 274 | .in 275 | 276 | For example: 277 | 278 | .in +4 279 | DOWNLOADCMD="curl -v -o" 280 | .in 281 | 282 | For details see the documentation. 283 | 284 | .TP 5 285 | \fBCHECKDISKSPACE\fP 286 | .br 287 | Allow \%slackpkg+ to check needed diskspace to download packages. Also it check needed space to install it in install/install\-new process. 288 | 289 | .TP 5 290 | \fBDOWNLOADONLY\fP 291 | .br 292 | In the packages download, with this variable, you can specify to not install them, but only to download them. They will be left to the package cache. 293 | It may be useful for example, in the case of large upgrade, to download all in the night and install them in daytime. 294 | .br 295 | The original slackpkg to do this you can use \fB\%slackpkg\ download\fP but this feature is not fully implemented in \%slackpkg+. 296 | 297 | The typical use of this setting is not set in the configuration file but by performing overwriting from the command line: 298 | 299 | .in +4 300 | DOWNLOADONLY=on slackpkg upgrade\-all 301 | .in 302 | 303 | For details see the documentation. 304 | 305 | .TP 5 306 | \fBCACHEUPDATE\fP 307 | .br 308 | At each \fB\%slackpkg\ update\fP (even with \%slackpkg+) each time download all the metadatas (ChangeLog.txt, CHECKSUMS.md5 ...). This, especially in large repositories, may take a long time. 309 | Very often (especially when are configured many repositories), there is a re-download many times of metadatas that have not changes, with useless bandwidth and time consumption. 310 | 311 | Setting \fBCACHEUPDATE\fP to \fIon\fP a caching system is activated. Temporary files are not deleted after the download, as is usual, but are stored in a local cache. The next update checks whether the file has been changed (only by downloading the http header) and only if so is downloaded. 312 | .br 313 | This greatly speeds up the update process. 314 | 315 | Besides setting this to \fIon\fP, it will be pulled out of a very minimal and concise output that stands out immediately evident what is going on and if there are download errors. The output of wget (or downloader set from DOWNLOADCMD) is hidden, unless you set VERBOSE=3. 316 | 317 | The setting is disabled by default. 318 | 319 | .TP 5 320 | \fBSEARCH_CLOG_INPARENT\fP 321 | .br 322 | Starting from slackpkg+ 1.7, the package selection dialog is able to show the changelog of the package (if available). 323 | .br 324 | The ChangeLog.txt is sought in the main root of the repository, but some repository does not have it in that position but the previous (parent) directory. 325 | .br 326 | slackpkg+ is able to look for in these urls, but research out of the main url sometimes cause problems. 327 | 328 | Setting \fB\%SEARCH CLOG_INPARENT\fP=\fIoff\fP the file \fB\%ChangeLog.txt\fP will be searched only in the main url where are also metadata. 329 | 330 | .TP 5 331 | \fBSTRICTGPG\fP 332 | .br 333 | Almost all third-party repositories have a GPG key, so it is almost always possible to install packages without disabling the \%checkgpg from the file \%\fBslackpkg.conf\fP or from the command line \%(\fB\-checkgpg\fP=\fIoff\fP). 334 | .br 335 | The standard for the official repositories (those of slackware) is that all packages are all signed with the \fB\%GPG-KEY\fP in the repository root. 336 | .br 337 | Lo slackpkg originale verifica che la chiave sia quella giusta con l'opzione \fB\%SLACKKEY\fP in \fB\%slackpkg.conf\fP 338 | 339 | The official slackpkg verify that the key is the right one with the \fB\%SLACKKEY\fP in \fB\%slackpkg.conf\fP 340 | 341 | On slackpkg+ this control is not there and technically the owner of the third-party repository can copy packages and signatures from the official repository or other repository and put them in his repository. 342 | .br 343 | Starting from slackpkg+ 1.7, a "strict" GPG check is made, so that the published packages must be signed with his own GPG key. This increases the security of the repository. 344 | .br 345 | Because of this it is important that every time you add a repository or rename it, you re-launch the \fB\%slackpkg\ update\ gpg\fP to reread their own repository keys. 346 | 347 | However some repository - for they structure - can not meet this requirement. 348 | 349 | Setting \fBSTRICTGPG\fP=\fIoff\fP resets the classic behavior of \%slackpkg+\ 1.6 and earlier about the GPG checking. 350 | .br 351 | Use this setting consciously and following the instructions that usually the owner of the repository provides in these cases. 352 | 353 | .TP 5 354 | \fBALLOW32BIT\fP 355 | .br 356 | Normally on a 64bit system you should only install 64bit and noarch packages. If a repository also contains 32-bit packages, these will not be indexed (and then found in searches and installations). However, someone may want to also install the 32-bit packages on a 64bit system. 357 | 358 | Setting \fB\%ALLOW32BIT\fP=\fIon\fP 32bit packages will be treated the same as those 64bit. Note that if a repository contains, for the same package, either the 32bit and 64bit version, it is not predictable which package will be shown. 359 | 360 | Obviously, this variable is only available for 64bit systems. On 32bit systems it is automatically excluded from indexing the packages 64bit if any. 361 | 362 | The setting is \fIoff\fP by default. If you set it to \fIon\fP also remember to install multilib from alienbob or equivalent to ensure the proper 32bit dependencies for the packages you want to install. 363 | 364 | .TP 5 365 | \fBUSEBL\fP 366 | .br 367 | Slackpkg honors the \fBblacklist\fP of the classic \%slackpkg. However, if you want to disable this variable set to \fIoff\fP. 368 | 369 | The typical use of this setting is from the command line to disable it. 370 | 371 | For example in slackpkg you can blacklist the internationalization packages putting \fBl10n\fP in the blacklist files to avoid installing the 100 different language packages. When you want to install the italian Libreoffice package you can run: 372 | 373 | .in +4 374 | USEBL=off slackpkg install libreoffice-l10n-it 375 | .in 376 | 377 | .TP 5 378 | \fBLEGACYBL\fP 379 | .br 380 | Slackpkg 15.0.2 introduces a new blacklist system that may not work properly with third party repositories. 381 | 382 | If you set \fBLEGACYBL\fP=\fIon\fP, slackpkg+ will rollback the blacklist syntax to the same of Slackware 14.2 383 | 384 | That older syntax does \fBgrep\ \-wE\fP in pkglist of specified regex. 385 | 386 | .TP 5 387 | \fBGREYLIST\fP 388 | .br 389 | To avoid to temporarily disable the blacklist to install/upgrade the package\%kde-l10n-it as above, \%slackpkg+ provides a \fBgreylisting\fP system. 390 | 391 | Populating the file \fBgreylist\fP (see below in the section \fBFILES\fP), the packages that match will be displayed in the dialog box but disabled by default so that the user does not have to disable all not needed packages every time. 392 | 393 | Setting \fBGREYLIST\fP=\fIoff\fP in the configuration, this feature is disabled. 394 | 395 | .TP 5 396 | \fBSENSITIVE_SEARCH\fP 397 | .br 398 | 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. 399 | 400 | 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. 401 | 402 | Note that this option does not affect the behavior of \fB\%slackpkg\ install\fP or \fB\%upgrade\fP and the other, for which the package should be entered exactly as it is, with the correct uppercase and lowercase letters. 403 | 404 | .TP 5 405 | \fBWW_FILE_SEARCH\fP 406 | .br 407 | \fBWW\fP means "Whole Word". 408 | The \fB\%slackpkg\ file-search\fP command by default looks for files in Whole Word mode (using the command \fB\%grep\ \-w\fP), and \fB\%slackpkg\ files\-search\ libext2\fP will not find any result. 409 | 410 | Setting \fB\%WW_FILE_SEARCH\fP=\fIoff\fP command \fB\%file-search\fP will also look for substrings, so the above command will find the \fB\%e2fsprogs\fP for the presence of the file \fB\%libext2fs.a\fP. 411 | 412 | Note that the search for too short strings can pull out hundreds and hundreds of results and take a long time. 413 | 414 | .TP 5 415 | \fBSBO\fP 416 | .br 417 | The \fB\%slackpkg\ search\fP command allow you to search packages in the SlackBuilds.org repositories for 14.2 and current 418 | 419 | \fB\%SBO\fP contains the urls of SlackBuilds.org repository. It it is not set, the search will be skipped. 420 | 421 | Note that slackpkg+ does not replace \fB\%sbopkg\fP o similar tools, but is only useful to know if a package is present on SBo. The user can download it via \fB\%slackpkg\ download\ \fP, then build it, or he can use sbopkg instead. 422 | 423 | 424 | .TP 5 425 | \fBSHOWORDER\fP 426 | .br 427 | Usually the packages in the dialog box are listed alphabetically by \fIpackage\fP. 428 | .br 429 | Especially when there are large updates this could make it difficult to revisiting the package list. Sometimes it would be better to sort them by \fIrepository\fP, so you can see immediately the group of packages that are in a repository or the other. For someone may be preferable in order to show them how they are distributed in the directories of the repository (\fIpath\fP), so that - for the official repository of slackware - would be shown first ones from the package group \fB[A]\fP then those group \fB[AP]\fP etc .... Sometimes it can be useful for sorting \fItag\fP or package \fI\%arch\fPitecture. 430 | 431 | Accepted values for this option are 432 | .ds 1 \fIpackage\fP\t\tOrder by package name (default) 433 | .ds 2 \fIrepository\fP\tOrder by repository name 434 | .ds 3 \fItag\fP\t\t\tOrder by package tag 435 | .ds 4 \fIpath\fP\t\t\tOrder by location in the repository 436 | .ds 5 \fIarch\fP\t\t\tOrder by architecture 437 | .in +2 438 | \*1 439 | .br 440 | \*2 441 | .br 442 | \*3 443 | .br 444 | \*4 445 | .br 446 | \*5 447 | .in 448 | 449 | .TP 5 450 | \fBDETAILED_INFO\fP 451 | .br 452 | The \fB\%slackpkg\ info\fP usually shows only the basic metadata, i.e. \%NAME \%LOCATION \%SIZE \%DESCRIPTION. 453 | 454 | With the variable \fBDETAILED_INFO\fP you can show more detail. 455 | 456 | Accepted values for this option are 457 | .ds 1 \fInone\fP\t\tShow only metadata above (default) 458 | .ds 2 \fIbasic\fP\tAdds the repository details and url 459 | .ds 3 \fIfilelist\fP\tAlso show the complete filelist of the package 460 | .in +2 461 | \*1 462 | .br 463 | \*2 464 | .br 465 | \*3 466 | .in 467 | 468 | You can also use this setting from the command line. 469 | For example: 470 | 471 | .in +4 472 | DETAILED_INFO=basic slackpkg info slackpkg 473 | .br 474 | DETAILED_INFO=filelist slackpkg info kernel-source|less 475 | .in 476 | 477 | .TP 5 478 | \fBENABLENOTIFY\fP 479 | .br 480 | Some packages require some post-installation activities to be done manually; for example after updating the kernel you have to recompile some kernel module of third-party driver, or re-installed some packages that may have been overwritten, and very often we forget these operations. 481 | 482 | Setting \fB\%ENABLENOTIFY\fP=\fIon\fP you enable a notification system but it must be configured appropriately. 483 | 484 | See the documentation and the file \fB\%notifymsg.conf\fP for details. 485 | 486 | .TP 5 487 | \fBTERSESEARCH\fP 488 | .br 489 | Show a terse output for \fB\%slackpkg\ search\fP. 490 | .br 491 | Replace first column with sometime shorter and colorized. Available value are: 492 | .br 493 | \fIoff\fP\ )\ No modifications 494 | .br 495 | \fIon\fP\ \ )\ [unin] uninstalled, [inst] installed, [upgr] upgrade, [mask] uninstalled/masked 496 | .br 497 | \fItiny\fP)\ [-] uninstalled, [I] installed, [U] upgrade, [M] uninstalled/masked 498 | .br 499 | 500 | .SH EXIT STATUS 501 | .P 502 | .IP "\fB0\fP" 5 503 | Successful slackpkg execution. 504 | .IP "\fB1\fP" 5 505 | Something wrong happened. 506 | .IP "\fB2\fP" 5 507 | Something fatal happened (please do not ignore it). 508 | .IP "\fB20\fP" 5 509 | No package found to be downloaded, installed, reinstalled, upgraded, or 510 | removed. 511 | .IP "\fB50\fP" 5 512 | Slackpkg itself was upgraded and you need to re-run it. 513 | .IP "\fB100\fP" 5 514 | There are pending updates. 515 | 516 | .SH FILES 517 | 518 | .TP 5 519 | \fB/etc/slackpkg/slacpkgplus.conf\fP 520 | .br 521 | The main configuration file where there are all the parameters above. 522 | .br 523 | For any change you have to re-run \fB\%slackpkg\ update\fP. 524 | 525 | .TP 5 526 | \fB/etc/slackpkg/greylist\fP 527 | .br 528 | The greylisting file. Accepts the syntax of the file \fB\%blacklist\fP of slackpkg. Examples: 529 | .br 530 | -\ Enable greylisting for all third-party packages add: \%SLACKPKGPLUS_.* 531 | .br 532 | -\ Enable greylisting for all internationalization packages: l10n 533 | 534 | 535 | .TP 5 536 | \fB/usr/doc/slackpkg+-*/\fP 537 | .br 538 | The directory with the documentation slackpkg and other miscellaneous things: 539 | 540 | \fBChangeLog.txt\fP: 541 | .in +5 542 | The slackpkg+ changelog. 543 | .in 544 | 545 | \fBCHANGES\fP: 546 | .in +5 547 | The complete list of changes from two stable release; read it to get a description of the new features introduced. 548 | .in 549 | 550 | \fBREADME\fP: 551 | .in +5 552 | The documentation slackpkg+. Read it to learn more about using slackpkg+. 553 | .in 554 | 555 | \fBrepositories.txt\fP: 556 | .in +5 557 | A summary list of repositories. !!WARNING!! This list is meant to be indicative only and is not an official list of supported repositories. 558 | .in 559 | 560 | \fBrepositories.lst\fP: 561 | .in +5 562 | The very extensive list and checked (with automated scripts to verify if the repository is present; please not consider this list as a 100% reliable, always made a personal check) 563 | .in 564 | 565 | \fBcheckrepos.sh\fP: 566 | .in +5 567 | Script used to generate the previous list. It connects to the url found in a file and check for metadata. 568 | .in 569 | 570 | \fBsetupmultilib.sh\fP: 571 | .in +5 572 | Scripts used to configure slackpkg+ to install multilib of alienbob and to do the first installation. 573 | .in 574 | 575 | \fBslackpkg+.SlackBuild\fP: 576 | .in +5 577 | The SlackBuild of slackpkg+. Only to be used for consultation; being thrown out of the directory of sources will fail. 578 | .in 579 | 580 | \fBslackpkgplus.x86.sample\fP: 581 | .in +5 582 | The sample configuration file for 32bit architectures. 583 | .in 584 | 585 | \fBslackpkgplus.x86_64.sample\fP: 586 | .in +5 587 | The sample configuration file for 64bit architectures. 588 | .in 589 | 590 | .TP 5 591 | \fB/usr/libexec/slackpkg/functions.d/zchangelog.sh\fP 592 | .br 593 | 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. 594 | Please, read the note into the file for more informations. 595 | 596 | .TP 5 597 | \fB/usr/libexec/slackpkg/functions.d/zlookkerne.sh\fP 598 | .br 599 | 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. Also you can add \fB\%PLUGIN_ZLOOKKERNEL_PROMPT=\fP\fIon\fP to avoid to ask confirm to every step, and \fBPLUGIN_ZLOOKKERNEL_IMAGE=\fP\fI/boot/vmlinuz-generic\fP to monitor it instead vmlinuz. 600 | Please, read the note into the file for more informations. 601 | 602 | .SH NOTES 603 | .TP 5 604 | \fBDisclaimer\fP 605 | slackpkg+ is a slackpkg plugin, but this not means that it can be considered an official tool of slackware, and is not supported by the \%slackware team. 606 | 607 | The slackpkg+ author is in no way related to the authors of the individual repository, nor for the contents thereof, nor for the proper functioning of hosting. 608 | 609 | The third-party packages are not supported by the Slackware team so they do not guarantee for their operation and shall not be liable for any damage that may be made to the system. Be sure of the authority of repositories before you use it in \%slackpkg+. 610 | 611 | .TP 5 612 | \fBSupport\fP 613 | If you have questions or you find bugs you can report to the author by writing an email address to \fB\%info@slakfinder.eu\fP. 614 | 615 | You can also follow the official italian discussion in slacky.eu: 616 | .br 617 | \ \ \%http://www.slacky.eu/forum/viewtopic.php?t=34536 618 | .br 619 | or in english in linuxquestions.org: 620 | .br 621 | \ \ \%https://www.linuxquestions.org/questions/slackware-14/slackpkg-1-8-a-4175669481/ 622 | 623 | .TP 5 624 | \fBThanks\fP 625 | Much of the slackpkg+ code is written by \fIphenixia2003\fP of LinuxQuestions; he deserves a big thank. For all other contributors search for "thank" in the ChangeLog. 626 | .br 627 | Thanks also to those who have tested, reported, recommended, or simply used slackpkg+ 628 | .br 629 | But the biggest thanks goes to those who compile packages, generates and maintains the repository, without which slackpkg+ has no reason to exist. 630 | 631 | .SH "SEE ALSO" 632 | \fB\%slackpkg\fP(8) \fB\%pkgtool\fP(8) \fB\%installpkg\fP(8) \fB\%upgradepkg\fP(8) \fB\%removepkg\fP(8) \fB\%slackpkg.conf\fP(5) 633 | -------------------------------------------------------------------------------- /src/slackpkgplus.conf.5.fr: -------------------------------------------------------------------------------- 1 | .\"******************************************************************* 2 | .\" 3 | .\" Cette page de manuel a été écrite en modifiant la page de manuel slackpkg.conf 4 | .\" 5 | .\"******************************************************************* 6 | .TH SLACKPKGPLUS.CONF 5 "Febrary 2021" slackpkg+\-1.8.0 "" 7 | .SH NOME 8 | \fBslackpkgplus.conf \fP \- Fichier de configuration de slackpkg+. 9 | 10 | .SH DESCRIPTION 11 | 12 | Le fichier \fBslackpkgplus.conf\fP contient la configuration \fB\%slackpkg+\fP, un \%plugin pour \%slackpkg qui permet l'ajout de dépôts tiers dans \fB\%slackpkg\fP(5). 13 | 14 | Le fichier \%slackpkgplus.conf est une séquence de variables de script shell (également appelées "paramètres"), et chaque variable contrôle un aspect de \%slackpkg+. 15 | Les commentaires commencent par le caractère \fB#\fP et se terminent à la fin de la ligne, et les commentaires peuvent apparaître n'importe où dans le fichier \%slackpkgplus.conf. 16 | Si une variable apparaît plus d'une fois dans le fichier, slackpkg utilisera la valeur définie en dernier. 17 | 18 | De nombreuses variables peuvent être remplacées à partir de la ligne de commande en les écrivant AVANT la commande. 19 | Si vous devez remplacer la valeur de \fB\%VARIABLE\fP, écrivez \fB\%VARIABLE=\fP\fIvalue\fP sur la ligne de commande, juste avant \fB\%slackpkg\fP. 20 | Plusieurs variables peuvent être remplacées. 21 | 22 | .in +4 23 | DOWNLOADONLY=on\ slackpkg\ upgrade-all 24 | .in 25 | 26 | Chaque paramètre a une valeur par défaut qui est utilisée si la variable n'est pas présente dans le fichier ou est commentée. Elle ne correspond pas nécessairement à la valeur définie dans le modèle de fichier de configuration. 27 | 28 | Voici la liste des paramètres disponibles : 29 | 30 | .ds 0 VARIABLE\t\t\t\tvalues\t\tdefault\tcan override 31 | .in +2 32 | \*0 33 | .in 34 | 35 | \fBParamètres principaux\fP 36 | .ds 1 SLACKPKGPLUS\t\t\ton/off\t\ton\t\tyes 37 | .ds 2 MIRRORPLUS[]\t\t\tstrings\t\t-\t\tno 38 | .ds 3 REPOPLUS\t\t\t\tlist\t\t\t-\t\tno 39 | .ds 4 PKGS_PRIORITY\t\t\tlist\t\t\t-\t\tno 40 | .ds 5 TAG_PRIORITY\t\t\ton/off\t\toff\t\tyes 41 | .in +2 42 | \*1 43 | .br 44 | \*2 45 | .br 46 | \*3 47 | .br 48 | \*4 49 | .br 50 | \*5 51 | .in 52 | 53 | 54 | \fBParamètres de téléchargement\fP 55 | .ds 0 VERBOSE\t\t\t\t0,1,2,3\t\t1\t\tyes 56 | .ds 1 USETERSE\t\t\t\ton/off\t\toff\t\tyes 57 | .ds 2 PROXY\t\t\t\tstring\t\t-\t\tyes 58 | .ds 3 WGETOPTS\t\t\t\tstring\t\t-\t\tyes 59 | .ds 4 DOWNLOADCMD\t\t\tstring\t\twget\t\tyes 60 | .ds 5 CHECKDISKSPACE\t\t\ton/off\t\toff\t\tno 61 | .ds 6 DOWNLOADONLY\t\t\ton/off\t\toff\t\tyes 62 | .ds 7 CACHEUPDATE\t\t\ton/off\t\toff\t\tyes 63 | .ds 8 SEARCH_CLOG_INPARENT\ton/off\t\toff\t\tno 64 | .ds 9 STRICTGPG\t\t\t\ton/off\t\ton\t\tyes 65 | .in +2 66 | \*0 67 | .br 68 | \*1 69 | .br 70 | \*2 71 | .br 72 | \*3 73 | .br 74 | \*4 75 | .br 76 | \*5 77 | .br 78 | \*6 79 | .br 80 | \*7 81 | .br 82 | \*8 83 | .br 84 | \*9 85 | .in 86 | 87 | 88 | \fBParamètres de recherche\fP 89 | .ds 1 ALLOW32BIT\t\t\ton/off\t\toff\t\tyes 90 | .ds 2 USEBL\t\t\t\toff/on\t\ton\t\tyes 91 | .ds 3 LEGACYBL\t\t\t\toff/on\t\toff\t\tyes 92 | .ds 4 GREYLIST\t\t\t\ton/off\t\ton\t\tyes 93 | .ds 5 SENSITIVE_SEARCH\t\ton/off\t\ton\t\tyes 94 | .ds 6 WW_FILE_SEARCH\t\t\ton/off\t\ton\t\tyes 95 | .ds 7 SBO[]\t\t\t\tstrings\t\t-\t\tno 96 | .in +2 97 | \*1 98 | .br 99 | \*2 100 | .br 101 | \*3 102 | .br 103 | \*4 104 | .br 105 | \*5 106 | .br 107 | \*6 108 | .br 109 | \*7 110 | .in 111 | 112 | 113 | \fBParamètres d'affichage\fP 114 | .ds 1 SHOWORDER\t\t\t\tstring\t\tpackage\tno 115 | .ds 2 DETAILED_INFO\t\t\tstring\t\tnone\t\tyes 116 | .ds 3 ENABLENOTIFY\t\t\ton/off\t\toff\t\tno 117 | .ds 4 TERSESEARCH\t\t\t\ton/off/tiny\t\ton\t\tyes 118 | .in +2 119 | \*1 120 | .br 121 | \*2 122 | .br 123 | \*3 124 | .in 125 | 126 | 127 | \fBPlugins\fP 128 | .br 129 | Dans cette section vous pouvez mettre les paramètres pour activer, désactiver ou configurer les plugins supplémentaires. Pour connaître les variables disponibles, lisez la documentation du plugin (voir la section FILES de cette page de manuel). 130 | 131 | Pour chaque changement de configuration, il est nécessaire ou approprié de réexécuter \fB\%slackpkg\ update\fP. 132 | 133 | Voici les détails de chaque configuration. 134 | 135 | .TP 5 136 | \fBSLACKPKGPLUS\fP 137 | .br 138 | Activer/désactiver la fonction Slackpkg+. 139 | Si vous souhaitez désactiver le logiciel slackpkg+ sans le désinstaller, réglez cette variale sur \fBoff\fP. 140 | 141 | .TP 5 142 | \fBMIRRORPLUS\fP 143 | .br 144 | C'est la principale (et la seule vraiment nécessaire) variable de configuration à définir pour \%slackpkg+. 145 | Elle est utilisée pour spécifier les dépôts à partir desquels installer les paquets tiers. 146 | Vous pouvez spécifier plus d'un dépôt en ajoutant plusieurs lignes. 147 | Chaque dépôt a un nom qui doit être spécifié entre crochets. 148 | 149 | .in +4 150 | MIRRORPLUS['slackpkgplus']=https://slakfinder.org/slackpkg+15/ 151 | .in 152 | 153 | Vous pouvez spécifier des référentiels distants en http/https/ftp ou des référentiels locaux (avec ou sans métadonnées). 154 | Pour plus de détails sur les types de référentiel, reportez-vous à la documentation. 155 | 156 | Chaque fois que vous ajoutez un nouveau référentiel, vous devrez peut-être lancer la commande \fB\%slackpkg\ update\ gpg\fP pour télécharger la clé GPG. 157 | 158 | .TP 5 159 | \fBREPOPLUS\fP 160 | .br 161 | L'ajout d'un plus grand nombre de dépôts tiers a pour conséquence qu'un même logiciel peut se trouver dans plus d'une source, avec le même nom de paquet, mais construit de manière différente, avec des options différentes et une version différente. 162 | Dans la sélection du paquet, au moment de l'installation, slackpkg ne peut en montrer qu'un seul. 163 | 164 | La variable \fB\%REPOPLUS\fP permet de spécifier l'ordre de recherche dans les référentiels. Exemple : 165 | 166 | .in +4 167 | REPOPLUS=(\ slackpkgplus\ alienbob\ slacky\ ) 168 | .in 169 | 170 | Dans ce cas, en lançant \fB\%slackpkg\ install\ openjdk\fP, le paquet sera pris dans le référentiel de \fI\%alienbob\fP, s'il est présent, sinon cherchez dans \fI\%slacky\fP. 171 | Par exemple, si vous voulez plus tard mettre à jour le paquet à partir du dépôt slacky, lancez explicitement : 172 | 173 | .in +4 174 | slackpkg\ upgrade\ slacky:openjdk 175 | .in 176 | 177 | .TP 5 178 | \fBPKGS_PRIORITY\fP 179 | .br 180 | Le paramètre précédent présente certaines limites. 181 | .br 182 | Dans le dernier exemple, le paquetage openjdk slacky a remplacé le paquetage openjdk alienbob. Cependant, après avoir lancé la commande \fB\%slackpkg\_ upgrade\-all\fP, le paquetage du dépôt alienbob sera réinstallé. 183 | 184 | De même, si un paquet est également présent dans les dépôts officiels de Slackware, ce paquet ne peut pas être installé. 185 | 186 | La variable \fB\%PKGS_PRIORITY\fP est similaire à \fB\%REPOPLUS\fP mais permet un choix plus étendu de l'ordre de recherche tant au niveau du dépôt qu'au niveau des paquets individuels. De plus, les paquets des référentiels configurés dans cette variable peuvent être installés même s'ils sont présents dans les référentiels officiels. 187 | 188 | .in +4 189 | PKGS_PRIORITY=( slacky:openjdk multilib ) 190 | .in 191 | 192 | Dans ce cas, \fB\%slackpkg\ upgrade\-all\fP mettrait à jour le paquet \fIopenjdk\fP du dépôt \fIslacky\fP et tous les autres paquets des autres dépôts. Un autre cas où vous devez utiliser cette option est le dépôt multilib car il doit écraser certains paquets officiels de Slackware (pour multilib, veuillez lire attentivement la documentation). Vous pouvez remplacer complètement la variable \%REPOPLUS par \%PKGS_PRIORITY, mais si vous faites cela, vous devez être conscient que vous pourriez mettre à jour les paquets officiels de Slackware avec ces paquets tiers, donc assurez-vous de l'autorité de la source. 193 | 194 | .TP 5 195 | \fBTAG_PRIORITY\fP 196 | .br 197 | Lorsque vous installez de nombreux paquets à partir de plusieurs dépôts en les forçant depuis la ligne de commande comme expliqué ci-dessus, il n'est pas toujours facile de maintenir une bonne \fB\%PKGS_PRIORITY\fP. 198 | 199 | Dans ce cas, il faut utiliser la variable \fB\%TAG_PRIORITY\fP. 200 | 201 | En fixant cette variable à \fBon\fP, la logique de calcul de la priorité pour la mise à niveau des paquets change, et le dépôt est calculé en essayant de maintenir - si possible - le \fBtag\fP du paquet actuellement installé. 202 | .br 203 | L'idée est que l'openjdk du paquet slacky est \%openjdk\-7u40_b60\-x86_64\-1\fBsl\fP. txz, et à chaque mise à jour, le tag restera toujours \fBsl\fP, alors que celui d'alienbob sera toujours \fBalien\fP et il est très difficile (même si ce n'est pas impossible) de trouver le paquet openjdk avec le tag \fBsl\fP dans un autre dépôt (à moins qu'il ne soit pas copié depuis le dépôt source et pas repackagé par le propriétaire du dépôt de destination). 204 | .br 205 | Ainsi, selon toute probabilité, le paquet sera mis à jour avec un paquet écrit par le même auteur que le paquet actuellement installé. 206 | 207 | Notez que si l'auteur du paquet actuellement installé le supprime de son dépôt et que le paquet est également présent dans un autre dépôt, le paquet sera mis à jour avec ce dernier, même si l'étiquette est différente. 208 | Nous recommandons donc de toujours faire attention aux sources à partir desquelles il est proposé de mettre à jour les paquets. 209 | 210 | Ce paramètre est désactivé par défaut. 211 | 212 | .TP 5 213 | \fBVERBOSE\fP 214 | .br 215 | Cette variable spécifie le niveau de détail de la sortie de \%\fBwget\fP(1) (qui est le téléchargeur utilisé par défaut, sauf indication contraire). 216 | La version originale de \%slackpkg ny default lance un wget classique avec des options par défaut qui affiche alors la barre de défilement. 217 | .br 218 | Lors du téléchargement des référentiels de métadonnées avec \fB\%slackpkg\ update\fP, la version originale doit télécharger quelques fichiers, tandis que \%\fBslackpkg+\fP en télécharge beaucoup, ce qui peut rendre la sortie difficile à lire. 219 | 220 | Avec ce paramètre, vous pouvez spécifier le nombre de sorties que wget doit afficher. Les valeurs possibles sont : \fI0\fP,\fI1\fP,\fI2\fP,\fI3\fP : 221 | 222 | .br 223 | \fI0\fP)\ Dans le téléchargement des métadonnées et le téléchargement des paquets, wget ne montre pas la barre de défilement mais juste l'url téléchargée \%\fB\fP(wget\ \-nv) 224 | .br 225 | \fI1\fP)\ Dans le téléchargement des métadonnées, la barre de défilement ne s'affiche pas alors que dans le téléchargement des paquets, elle s'affiche (par défaut dans \fB\%slackpkg+\fP) 226 | .br 227 | \fi2\fP)\ Dans le téléchargement des métadonnées et le téléchargement des paquets, wget affiche la barre de défilement (par défaut dans l'original \fB\%slackpkg\fP) 228 | .br 229 | \fI3\fP)\ Sortie wget étendue et plus d'autres options de signalement des erreurs ; de plus, les fichiers temporaires ne sont pas supprimés à la fin du processus. À utiliser en cas de dépannage et lorsque vous signalez un bogue aux développeurs. 230 | 231 | Ce paramètre est ignoré (ou partiellement ignoré s'il est défini sur \fI3\fP) si vous utilisez un autre téléchargeur avec le paramètre \fB\%DOWNLOADCMD\fP (voir ci-dessous). 232 | 233 | .TP 5 234 | \fBUSETERSE\fP 235 | .br 236 | Donnez à cette variable la valeur \fIon\fP pour utiliser l'option TERSE de installpkg(8), upgradepkg(8), removepkg(8). L'installation n'affiche qu'une seule ligne de description sur stdout au lieu de la description complète et de la liste des fichiers coplete. 237 | 238 | .TP 5 239 | \fBPROXY\fP 240 | .br 241 | Utilisation du proxy si nécessaire 242 | 243 | .in +4 244 | PROXY=192.168.0.1:3128 245 | .in 246 | 247 | S'il est vide, utilisez les paramètres du système (variables d'environnement http_proxy et https_proxy). Définissez-le à \fIoff\fP pour désactiver le proxy. 248 | 249 | 250 | .TP 5 251 | \fBWGETOPTS\fP 252 | .br 253 | Vous pouvez spécifier ici des options supplémentaires pour wget. Voici un exemple typique 254 | 255 | .in +4 256 | WGETOPTS="--timeout=20 --tries=2" 257 | .in 258 | 259 | De cette façon, si un dépôt ne répond pas tout de suite en raison de problèmes temporaires, une autre tentative est faite, mais si elle échoue toujours, aucune autre tentative n'est faite à l'infini (par défaut, wget fait 20 tentatives). 260 | .br 261 | Reportez-vous à la documentation de \fB\%wget\fP(1) pour connaître toutes les options disponibles. 262 | 263 | Ce paramètre est ignoré si vous utilisez un autre téléchargeur avec la variable \fB\%DOWNLOADCMD\fP (voir ci-dessous). 264 | 265 | .TP 5 266 | \fBDOWNLOADCMD\fP 267 | .br 268 | Dans le cas où vous voulez utiliser un téléchargeur à la place de wget (par exemple \fBcurl\fP(1) ou \fBaria2\fP qui est un outil de téléchargement parallèle pour accélérer le téléchargement) vous pouvez le spécifier dans cette variable. 269 | 270 | En valeur nous considérons que est appelé avec : 271 | 272 | .in +4 273 | \fB$DOWNLOADCMD\fP \fIdestinationfile\fP \fIurl\fP 274 | .in 275 | 276 | Par exemple : 277 | 278 | .in +4 279 | DOWNLOADCMD="curl -v -o" 280 | .in 281 | 282 | Pour plus de détails, voir la documentation. 283 | 284 | .TP 5 285 | \fBCHECKDISKSPACE\fP 286 | .br 287 | Permet à \%slackpkg+ de vérifier l'espace disque nécessaire pour télécharger les paquets. Il le vérifie également pendant le processus install/install\-new. 288 | 289 | .TP 5 290 | \fBDOWNLOADONLY\fP 291 | .br 292 | Dans le téléchargement des paquets, avec cette variable, vous pouvez spécifier de ne pas les installer, mais seulement de les télécharger. Ils seront laissés dans le cache du paquet. 293 | Il peut être utile par exemple, dans le cas d'une mise à jour importante, de tout télécharger la nuit et de les installer dans la journée. 294 | .br 295 | Dans la version originale de Slackpkg, vous pouvez utiliser \fB\%slackpkg\ download\fP mais cette fonctionnalité n'est pas complètement implémentée dans \%slackpkg+. 296 | 297 | L'utilisation typique de ce paramètre n'est pas définie dans le fichier de configuration mais en effectuant un écrasement depuis la ligne de commande : 298 | 299 | .in +4 300 | DOWNLOADONLY=on slackpkg upgrade\-all 301 | .in 302 | 303 | Pour plus de détails, voir la documentation. 304 | 305 | .TP 5 306 | \fBCACHEUPDATE\fP 307 | .br 308 | À chaque \fB\%mise à jour de slackpkg\fP (même avec \%slackpkg+), téléchargez à chaque fois toutes les métadonnées (ChangeLog.txt, CHECKSUMS.md5 ...). Ceci, surtout dans les grands dépôts, peut prendre beaucoup de temps. 309 | Très souvent (surtout lorsque de nombreux dépôts sont configurés), il y a un retéléchargement de nombreuses fois des métadonnées qui n'ont pas changé, avec une consommation inutile de bande passante et de temps. 310 | 311 | En réglant \fBCACHEUPDATE\fP sur \fIon\fP, un système de cache est activé. Les fichiers temporaires ne sont pas supprimés après le téléchargement, comme c'est le cas habituellement, mais sont stockés dans un cache local. La prochaine mise à jour vérifie si le fichier a été modifié (uniquement en téléchargeant l'en-tête http) et n'est téléchargé que si c'est le cas. 312 | .br 313 | Cela accélère considérablement le processus de mise à jour. 314 | 315 | En plus de mettre cela à \fIon\fP, il sera extrait d'une sortie très minimale et concise qui met immédiatement en évidence ce qui se passe et s'il y a des erreurs de téléchargement. La sortie de wget (ou du téléchargeur défini à partir de DOWNLOADCMD) est masquée, sauf si vous définissez VERBOSE=3. 316 | 317 | Ce paramètre est désactivé par défaut. 318 | 319 | .TP 5 320 | \fBSEARCH_CLOG_INPARENT\fP 321 | .br 322 | À partir de slackpkg+ 1.7, la boîte de dialogue de sélection des paquets peut afficher le journal des modifications du paquet (si disponible). 323 | .br 324 | Le ChangeLog.txt est recherché dans la racine principale du référentiel, mais certains référentiels ne l'ont pas à cette position mais dans le répertoire précédent (parent). 325 | .br 326 | slackpkg+ est capable de chercher dans ces urls, mais la recherche hors de l'url principale cause parfois des problèmes. 327 | 328 | En définissant \fB\%SEARCH CLOG_INPARENT\fP=\fIoff\fP le fichier \fB\%ChangeLog.txt\fP sera recherché uniquement dans l'url principale où se trouvent également les métadonnées. 329 | 330 | .TP 5 331 | \fBSTRICTGPG\fP 332 | .br 333 | Presque tous les dépôts tiers possèdent une clé GPG, il est donc presque toujours possible d'installer des paquets sans désactiver le \%checkgpg à partir du fichier \%\fBslackpkg.conf\fP ou de la ligne de commande \%(\fB\-checkgpg\fP=\fIoff\fP). 334 | .br 335 | La norme pour les dépôts officiels (ceux de slackware) est que tous les paquets sont tous signés avec le \fB\%GPG-KEY\fP dans la racine du dépôt. 336 | .br 337 | Lo slackpkg originale verifica che la chiave sia quella giusta con l'opzione \fB\%SLACKKEY\fP in \fB\%slackpkg.conf\fP 338 | 339 | Le slackpkg officiel vérifie que la clé est la bonne avec l'option \fB\%SLACKKEY\fP dans \fB\%slackpkg.conf\fP 340 | 341 | Sur slackpkg+, ce contrôle n'existe pas et techniquement, le propriétaire du dépôt tiers peut copier les paquets et les signatures du dépôt officiel ou d'un autre dépôt et les mettre dans son dépôt. 342 | .br 343 | À partir de slackpkg+ 1.7, un contrôle GPG "strict" est effectué, de sorte que les paquets publiés doivent être signés avec sa propre clé GPG. Cela augmente la sécurité du dépôt. 344 | .br 345 | Pour cette raison, il est important que chaque fois que vous ajoutez un dépôt ou que vous le renommez, vous relanciez la mise à jour \fB\%slackpkg\ gpg\fP pour relire leurs propres clés de dépôt. 346 | 347 | Cependant, certains référentiels - pour leur structure - ne peuvent pas répondre à cette exigence. 348 | 349 | La définition de \fBSTRICTGP\fP=\fIoff\fP réinitialise le comportement classique de \%slackpkg+\ 1.6 et antérieur concernant la vérification du GPG. 350 | .br 351 | Utilisez ce paramètre consciemment et en suivant les instructions que le propriétaire du référentiel fournit généralement dans ces cas. 352 | 353 | 354 | .TP 5 355 | \fBALLOW32BIT\fP 356 | .br 357 | Normalement, sur un système 64 bits, vous ne devriez installer que des paquets 64 bits et noarch. Si un référentiel contient également des paquets 32 bits, ceux-ci ne seront pas indexés (et donc trouvés lors des recherches et des installations). Cependant, quelqu'un peut vouloir installer également les paquets 32 bits sur un système 64 bits. 358 | 359 | En définissant \fB\%ALLOW32BIT\fP=\fIon\fP, les paquets 32 bits seront traités de la même manière que ceux 64 bits. Notez que si un référentiel contient, pour le même paquet, la version 32 bits et la version 64 bits, il n'est pas possible de prévoir quel paquet sera affiché. 360 | 361 | Évidemment, cette variable n'est disponible que pour les systèmes 64 bits. Sur les systèmes 32 bits, elle est automatiquement exclue de l'indexation des paquets 64 bits s'il y en a. 362 | 363 | Le paramètre est \fIoff\fP par défaut. Si vous le définissez à \fIon\fP, n'oubliez pas d'installer multilib à partir de alienbob ou équivalent pour assurer les dépendances 32bit appropriées pour les paquets que vous voulez installer. 364 | 365 | .TP 5 366 | \fBUSEBL\fP 367 | .br 368 | Slackpkg honore la \fBblacklist\fP du \%slackpkg classique. Toutefois, si vous souhaitez désactiver cette variable, réglez-la sur \fIoff\fP. 369 | 370 | L'utilisation typique de ce paramètre se fait à partir de la ligne de commande pour la désactiver. 371 | 372 | Par exemple, dans slackpkg, vous pouvez mettre sur liste noire les paquets d'internationalisation en mettant \fBl10n\fP dans les fichiers de liste noire pour éviter d'installer les 100 paquets de langues différentes. Lorsque vous voulez installer les paquets français de Libreoffice, vous pouvez exécuter : 373 | 374 | .in +4 375 | USEBL=off slackpkg install libreoffice-l10n-fr 376 | .in 377 | 378 | .TP 5 379 | \fBLEGACYBL\fP 380 | .br 381 | Slackpkg 15.0.2 introduit un nouveau système de liste noire qui peut ne pas fonctionner correctement avec les dépôts de tiers. 382 | 383 | Si vous définissez \fBLEGACYBL\fP=\fIon\fP, slackpkg+ ramènera la syntaxe de la liste noire à celle de Slackware 14.2. 384 | 385 | Cette ancienne syntaxe fait \fBgrep\ \-wE\fP dans la pkglist de la regex spécifiée. 386 | 387 | .TP 5 388 | \fBGREYLIST\fP 389 | .br 390 | Pour éviter de devoir désactiver temporairement la liste noire pour installer/mettre à niveau le paquet \%libreoffice-l10n-fr comme ci-dessus, \%slackpkg+ fournit un système de \fBgreylisting\fP. 391 | 392 | En remplissant le fichier \fBgreylist\fP (voir ci-dessous la section \fBFILES\fP), les paquets qui correspondent seront affichés dans la boîte de dialogue mais désactivés par défaut afin que l'utilisateur n'ait pas à désactiver tous les paquets non nécessaires à chaque fois. 393 | 394 | En définissant \fBGREYLIST\fP=\fIoff\fP dans la configuration, cette fonctionnalité est désactivée. 395 | 396 | .TP 5 397 | \fBSENSITIVE_SEARCH\fP 398 | .br 399 | Dans la recherche \fBslackpkg\fP la recherche est en mode "sensible à la casse" qui respecte les différences entre les majuscules et les minuscules, ainsi \fB\%slackpkg\ search\ mplayer\fP n'est pas la même chose que \fB\%slackpkg\ search\ MPlayer\fP. Il en va de même pour le paramètre \fB\%file\-search\fP. 400 | 401 | En définissant \fB\%SENSITIVE_SEARCH\fP=\fIoff\fP, il sera possible d'effectuer une recherche en "insensible à la casse", c'est-à-dire sans faire de différence entre les majuscules et les minuscules. 402 | 403 | Notez que cette option n'affecte pas le comportement de \fB\%slackpkg\ install\fP ou \fB\%upgrade\fP et autres, pour lesquels le paquet doit être saisi exactement comme il est, avec les majuscules et les minuscules correctes. 404 | 405 | .TP 5 406 | \fBWW_FILE_SEARCH\fP 407 | .br 408 | \fBWW\fP signifie "mot entier". 409 | La commande \fB\%slackpkg\ file-search\fP recherche par défaut les fichiers en mode Mot entier (en utilisant la commande \fB\%grep\ \-w\fP), et \fB\%slackpkg\ files\-search\ libext2\fP ne trouvera aucun résultat. 410 | 411 | En définissant la commande \fB\%WW_FILE_SEARCH\fP=\fIoff\fP, \fB\%file-search\fP recherchera également les sous-chaînes, ainsi la commande ci-dessus trouvera le \fB\%e2fsprogs\fP pour la présence du fichier \fB\%libext2fs.a\fP. 412 | 413 | Notez que la recherche de chaînes de caractères trop courtes peut sortir des centaines et des centaines de résultats et prendre beaucoup de temps. 414 | 415 | .TP 5 416 | \fBSBO\fP 417 | .br 418 | La commande \fB\%slackpkg\ search\fP vous permet de rechercher des paquets dans les dépôts de SlackBuilds.org pour la version 14.2 et les versions actuelles. 419 | 420 | \fB\%SBO\fP contient les urls du dépôt de SlackBuilds.org. S'il n'est pas défini, la recherche sera ignorée. 421 | 422 | Notez que slackpkg+ ne remplace pas \fB\%sbopkg\fP ou des outils similaires, mais est seulement utile pour savoir si un paquet est présent sur SBo. L'utilisateur peut le télécharger via \fB\%slackpkg\ download\ \fP, puis le construire, ou il peut utiliser sbopkg à la place. 423 | 424 | 425 | .TP 5 426 | \fBSHOWORDER\fP 427 | .br 428 | En général, les paquets de la boîte de dialogue sont classés par ordre alphabétique par \fIpackage\fP. 429 | .br 430 | En particulier lors de mises à jour importantes, cela peut rendre difficile la révision de la liste des paquets. Il est parfois préférable de les trier par \fIrepository\fP, afin de voir immédiatement le groupe de paquets qui se trouve dans un dépôt ou l'autre. Pour quelqu'un peut être préférable afin de les montrer comment ils sont distribués dans les répertoires du dépôt (\fIpath\fP), de sorte que - pour le dépôt officiel de slackware - seraient montrés d'abord ceux du groupe de paquets \fB[A]\fP puis ceux du groupe \fB[AP]\fP etc ..... Parfois, cela peut être utile pour trier l'\fItag\fP ou le paquet \fI\%arch\fPitecture. 431 | 432 | 433 | Les valeurs acceptées pour cette option sont 434 | .ds 1 \fIpackage\fP\t\tOrdre par nom de paquet (par défaut) 435 | .ds 2 \fIrepository\fP\tOrdre par nom de dépôt 436 | .ds 3 \fItag\fP\t\tOrdre par étiquette de package 437 | .ds 4 \fIpath\fP\t\tOrder par emplacement dans le référentiel 438 | .ds 5 \fIarch\fP\t\t\t Ordre par architecture 439 | .in +2 440 | \*1 441 | .br 442 | \*2 443 | .br 444 | \*3 445 | .br 446 | \*4 447 | .br 448 | \*5 449 | .in 450 | 451 | .TP 5 452 | \fBDETAILED_INFO\fP 453 | .br 454 | La variable \fB\%slackpkg\ info\fP n'affiche généralement que les métadonnées de base, c'est-à-dire \%NAME \%LOCATION \%SIZE \%DESCRIPTION. 455 | 456 | Avec la variable \fBDETAILED_INFO\fP, vous pouvez afficher plus de détails. 457 | 458 | Les valeurs acceptées pour cette option sont 459 | .ds 1 \fInone\fP\t\tAfficher uniquement les métadonnées ci-dessus (par défaut) 460 | .ds 2 \fIbasic\fP\tAjoute les détails et l'url du référentiel. 461 | .ds 3 \fIfilelist\fP\tAffiche également la liste complète des fichiers du paquet. 462 | .in +2 463 | \*1 464 | .br 465 | \*2 466 | .br 467 | \*3 468 | .in 469 | 470 | Vous pouvez également utiliser ce paramètre à partir de la ligne de commande. 471 | Par exemple : 472 | 473 | .in +4 474 | DETAILED_INFO=basic slackpkg info slackpkg 475 | .br 476 | DETAILED_INFO=filelist slackpkg info kernel-source|less 477 | .in 478 | 479 | .TP 5 480 | \fBENABLENOTIFY\fP 481 | .br 482 | Certains paquets nécessitent que certaines activités de post-installation soient effectuées manuellement ; par exemple, après la mise à jour du noyau, vous devez recompiler un module du noyau ou un pilote tiers, ou réinstaller certains paquets qui ont pu être écrasés, et très souvent nous oublions ces opérations. 483 | 484 | En définissant \fB\%ENABLENOTIFY\fP=\fIon\fP vous activez un système de notification mais il doit être configuré de manière appropriée. 485 | 486 | Consultez la documentation et le fichier \fB\%notifymsg.conf\fP pour plus de détails. 487 | 488 | .TP 5 489 | \fBTERSESEARCH\fP 490 | .br 491 | Affiche une sortie laconique pour \fB\%slackpkg\ search\fP. 492 | .br 493 | Remplace la première colonne par une autre plus courte et colorée. Les valeurs disponibles sont : 494 | .br 495 | \fIoff\fP\ )\ Aucune modification 496 | .br 497 | \fIon\fP\ \ )\ [unin] désinstallé, [inst] installé, [upgr] mis à jour, [mask] désinstallé/masqué 498 | .br 499 | \fItiny\fP)\ [-] désinstallé, [I] installé, [U] mis à jour, [M] désinstallé/masqué 500 | .br 501 | 502 | .SH ÉTAT DE SORTIE 503 | .P 504 | .IP "\fB0\fP" 5 505 | Exécution réussie de slackpkg. 506 | .IP "\fB1\fP" 5 507 | Un problème est survenu. 508 | .IP "\fB2\fP" 5 509 | Quelque chose de fatal s'est produit (ne l'ignorez pas). 510 | .IP "\fB20\fP" 5 511 | Aucun paquet n'a été trouvé pour être téléchargé, installé, réinstallé, mis à niveau ou 512 | supprimé. 513 | .IP "\fB50\fP" 5 514 | Slackpkg lui-même a été mis à niveau et vous devez le ré-exécuter. 515 | .IP "\fB100\fP" 5 516 | Il y a des mises à jour en attente. 517 | 518 | .SH FILES 519 | 520 | .TP 5 521 | \fB/etc/slackpkg/slacpkgplus.conf\fP 522 | .br 523 | Le fichier de configuration principal où il y a tous les paramètres ci-dessus. 524 | .br 525 | Pour toute modification, vous devez exécuter à nouveau \fB\%slackpkg\ update\fP. 526 | 527 | .TP 5 528 | \fB/etc/slackpkg/greylist\fP 529 | .br 530 | Le fichier de liste grise. Accepte la syntaxe du fichier \fB\%blacklist\fP de slackpkg. Exemples : 531 | .br 532 | -\ Activer la liste grise pour tous les paquets tiers ajouter : \%SLACKPKGPLUS_.* 533 | .br 534 | -\ Active la liste grise pour tous les paquets d'internationalisation : l10n 535 | 536 | 537 | .TP 5 538 | \fB/usr/doc/slackpkg+-*/\fP 539 | .br 540 | Le répertoire contenant la documentation slackpkg et d'autres choses diverses : 541 | 542 | \fBChangeLog.txt\fP : 543 | .in +5 544 | Le journal des modifications de slackpkg+. 545 | .in 546 | 547 | \fBCHANGES\fP : 548 | .in +5 549 | La liste complète des modifications apportées à la deuxième version stable ; lisez-la pour obtenir une description des nouvelles fonctionnalités introduites. 550 | .in 551 | 552 | \fBREADME\fP : 553 | .in +5 554 | La documentation slackpkg+. Lisez-la pour en savoir plus sur l'utilisation de slackpkg+. 555 | .in 556 | 557 | \fBrepositories.txt\fP : 558 | .in +5 559 | Une liste sommaire des dépôts. ATTENTION ! Cette liste n'est donnée qu'à titre indicatif et ne constitue pas une liste officielle des dépôts pris en charge. 560 | .in 561 | 562 | \fBrepositories.lst\fP : 563 | .in +5 564 | La liste très étendue et vérifiée (avec des scripts automatisés pour vérifier si le dépôt est présent ; ne considérez pas cette liste comme fiable à 100%, faites toujours une vérification personnelle) 565 | .in 566 | 567 | \fBcheckrepos.sh\fP : 568 | .in +5 569 | Script utilisé pour générer la liste précédente. Il se connecte à l'url trouvée dans un fichier et vérifie les métadonnées. 570 | .in 571 | 572 | \fBsetupmultilib.sh\fP : 573 | .in +5 574 | Scripts utilisés pour configurer slackpkg+ pour installer multilib d'alienbob et pour faire la première installation. 575 | .in 576 | 577 | \fBslackpkg+.SlackBuild\fP : 578 | .in +5 579 | Le SlackBuild de slackpkg+. A n'utiliser que pour la consultation ; être jeté hors du répertoire des sources échouera. 580 | .in 581 | 582 | \fBslackpkgplus.x86.sample\fP : 583 | .in +5 584 | Le fichier de configuration type pour les architectures 32 bits. 585 | .in 586 | 587 | \fBslackpkgplus.x86_64.sample\fP : 588 | .in +5 589 | Fichier de configuration type pour les architectures 64 bits. 590 | .in 591 | 592 | .TP 5 593 | \fB/usr/libexec/slackpkg/functions.d/zchangelog.sh\fP 594 | .br 595 | Ce plugin ajoute un journal de modifications global \fB\%/var/lib/slackpkg/RepoChangeLog.txt\fP à chaque mise à jour \fB\%slackpkg\fP avec une liste de toutes les modifications suivies. Lisez la note dans le fichier. Elle est désactivée par défaut. Pour l'activer, mettez \fB\%PLUGIN_ZCHANGELOG=\fP\fIenable\fP dans la configuration ; pour voir la sortie sur l'écran, mettez également le paramètre PLUGIN_ZCHANGELOG_SHOW=on dans la configuration. 596 | Veuillez lire la note dans le fichier pour plus d'informations. 597 | 598 | 599 | .TP 5 600 | \fB/usr/libexec/slackpkg/functions.d/zlookkerne.sh\fP 601 | .br 602 | Ce plugin ajoute la possibilité de reconstruire l'initrd et d'exécuter lilo ou EFI lilo chaque fois que vous mettez à jour le noyau. Notez que slackpkg-15.0 a supprimé l'exécution automatique de lilo en le remplaçant par un simple message de conseil. Il est désactivé par défaut. Pour l'activer, mettez \fB\%PLUGIN_ZLOOKKERNEL=\fP\fIenable\fP dans la configuration. Vous pouvez également ajouter \fB\%PLUGIN_ZLOOKKERNEL_PROMPT=\fP\fIon\fP pour éviter de demander confirmation à chaque étape, et \fBPLUGIN_ZLOOKKERNEL_IMAGE=\fP\fI/boot/vmlinuz-generic\fP pour le surveiller à la place de vmlinuz. 603 | Veuillez lire la note dans le fichier pour plus d'informations. 604 | 605 | .SH NOTES 606 | .TP 5 607 | \fBResponsabilité\fP 608 | slackpkg+ est un plugin de slackpkg, mais cela ne signifie pas qu'il peut être considéré comme un outil officiel de slackware, et il n'est pas pris en charge par l'équipe \%slackware. 609 | 610 | L'auteur de slackpkg+ n'est en aucun cas lié aux auteurs du dépôt individuel, ni pour le contenu de celui-ci, ni pour le bon fonctionnement de l'hébergement. 611 | 612 | Les paquets tiers ne sont pas pris en charge par l'équipe Slackware qui ne garantit donc pas leur fonctionnement et ne sera pas responsable des dommages qui pourraient être causés au système. Soyez sûr de l'autorité des dépôts avant de les utiliser dans \%slackpkg+. 613 | 614 | .TP 5 615 | \fBSupport\fP 616 | Si vous avez des questions ou si vous trouvez des bogues, vous pouvez les signaler en écrivant à l'auteur : \fB\%info@slakfinder.org\fP. 617 | 618 | Vous pouvez également suivre la discussion officielle en italien sur slacky.eu : 619 | .br 620 | \ \ \%http://www.slacky.eu/forum/viewtopic.php?t=34536 621 | .br 622 | ou en anglais sur linuxquestions.org : 623 | .br 624 | \ \ \%https://www.linuxquestions.org/questions/slackware-14/slackpkg-1-8-a-4175669481/ 625 | 626 | .TP 5 627 | \fBRemerciements\fP 628 | Une grande partie du code de slackpkg+ est écrite par \fIphenixia2003\fP de LinuxQuestions ; il mérite un grand merci. Pour tous les autres contributeurs, cherchez "thank" dans le ChangeLog. 629 | .br 630 | Merci également à ceux qui ont testé, rapporté, recommandé ou simplement utilisé slackpkg+. 631 | .br 632 | Mais le plus grand merci va à ceux qui compilent les paquets, génèrent et maintiennent le dépôt, sans lesquels slackpkg+ n'aurait aucune raison d'exister. 633 | 634 | .SH "VOIR AUSSI" 635 | \fB\%slackpkg\fP(8) \fB\%pkgtool\fP(8) \fB\%installpkg\fP(8) \fB\%upgradepkg\fP(8) \fB\%removepkg\fP(8) \fB\%slackpkg.conf\fP(5) 636 | -------------------------------------------------------------------------------- /src/slackpkgplus.conf.5.it: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zuno/slackpkgplus/8fa8c614a20cbd22202ec6b5bd4e79ecb333aa56/src/slackpkgplus.conf.5.it -------------------------------------------------------------------------------- /src/slackpkgplus.x86.sample: -------------------------------------------------------------------------------- 1 | # Configuration for slackpkg+. 2 | # Please read manpage: "man slackpkgplus.conf" and documentation /usr/doc/slackpkg+-*/README 3 | 4 | # Enable (on) / Disable (off) slackpkg+ 5 | SLACKPKGPLUS=on 6 | 7 | # set to '0' to never show the download progress bar 8 | # set to '1' to show the bar only in download packages (default) 9 | # set to '2' to always show the download bar 10 | # set to '3' for a debug mode 11 | VERBOSE=1 12 | 13 | # Enable TERSE to use a smaller output in installpkg/upgradepkg 14 | USETERSE=on 15 | 16 | # Enable a smaller output for slackpkg search. It replace first column with one colorized 17 | # on: [unin] uninstalled, [inst] installed, [upgr] upgrade, [mask] uninstalled/masked 18 | # tiny: [-] uninstalled, [I] installed, [I] upgrade, [M] uninstalled/masked 19 | # off: leave unchanged and black/white. 20 | #TERSESEARCH=tiny 21 | TERSESEARCH=on 22 | 23 | # Use proxy. Leave commented to use system settings. 24 | #PROXY=off 25 | #PROXY=: 26 | 27 | # Enable (on) / Disable (off) the official slackpkg blacklist. May be useful to temporarily skip 28 | # the slackware blacklist. You can also override it from command line: 29 | # 'USEBL=off slackpkg upgrade-all' 30 | USEBL=on 31 | 32 | # Enable (on) / Disable (off) the legacy blacklist system ignoring the improvement 33 | # from slackpkg 15. Some improvement are not useful with third party repositories 34 | # Note that the legacy system does apply it as regex to the entire pkglist row 35 | # repository, name, version, arch, build, fullname, series/path, extension. 36 | LEGACYBL=off 37 | 38 | # Add custom option to 'wget'. 39 | # You can solve the repository unavailability problems by set a timeout here 40 | # Also add "-q" for super terse output (useful with USETERSE=on) 41 | WGETOPTS="--timeout=20 --tries=2" 42 | 43 | # If you want replace wget with another downloader search DOWNLOADCMD in documentation 44 | # at /usr/doc/slackpkg+-*/README 45 | #DOWNLOADCMD="wget2 --progress=bar -O" 46 | 47 | # Enable (on) / Disable (off) checking disk space to download and install packages. Default to "off" 48 | #CHECKDISKSPACE=on 49 | 50 | # Defines if the changelog of any third party repository must be searched in parent URL when not found in base URL. 51 | # Can be set to "on" or "off" (default) 52 | SEARCH_CLOG_INPARENT=on 53 | 54 | # Use the cache for metadata files (CHECKSUMS.md5,...). Enable it (on) to speedup the slackpkg update 55 | # process by downloading just new files (see README). Disabled by default (off) 56 | CACHEUPDATE=off 57 | 58 | # You can download-only by setting DOWNLOADONLY to 'on'. You may (you should) also use it in command line, 59 | # for example: "DOWNLOADONLY=on slackpkg upgrade-all". Useful for large upgrades. 60 | # You may also use 'slackpkg download' if you want to download few packages 61 | #DOWNLOADONLY=off 62 | 63 | # Enable (on) / Disable (off) notification events (see notifymsg.conf) 64 | #ENABLENOTIFY=off 65 | 66 | # Enable (on) / Disable (off) the greylist feature. See /etc/slackpkg/greylist 67 | GREYLIST=on 68 | 69 | # Defines if commands 'search' and 'file-search' are case-sensitive (on) or not (off). Default to "on" 70 | SENSITIVE_SEARCH=off 71 | 72 | # Defines if command 'file-search' does search Whole Word (on) or accept partial words (off). Note that 73 | # you may obtains many many results searching a short partial word 74 | WW_FILE_SEARCH=off 75 | 76 | # Select the show order in dialog box. Available "package" "repository" "tag" "path" "arch" 77 | SHOWORDER=package 78 | 79 | # Allow to show more details of the package in 'slackpkg info '. Accepts "none", "basic", "filelist" 80 | DETAILED_INFO=basic 81 | 82 | # Enable (on) / Disable (off) a Strict GPG Check. A repository should contains packages signed 83 | # with the only original GPG-KEY. In some custom repository may be wanted to mix heterogeneous 84 | # packages; to use that repository set Strict GPG Check to off. P.S: a repository can 85 | # contain just ONE gpg-key; you may manually import the other. 86 | STRICTGPG=on 87 | 88 | # If two or more repositories contains some same packages, you can specify 89 | # from which repository you prefer to search it. 90 | # The syntax is ":" 91 | # Accepts regular expressions. To give priority to an entire repository use "" 92 | 93 | # Examples: 94 | #PKGS_PRIORITY=( restricted:vlc ) 95 | # OR 96 | #PKGS_PRIORITY=( myrepo ) 97 | # 98 | # if you have two repositories to give priority you must set both in the same line 99 | #PKGS_PRIORITY=( myrepo restricted:vlc ) 100 | # 101 | 102 | # Otherwise you can try to upgrade a package from a repository that contains a package with the 103 | # same tag of the already installed package. Typically that means to upgrade a package from the 104 | # same author of the already installed package. 105 | # Note that this method may not works properly where two repositories contains a package with the 106 | # same tag. 107 | # Set TAG_PRIORITY to 'on' to enable this function 108 | TAG_PRIORITY=off 109 | 110 | # List repositories you want to use (defined below) 111 | # remember to launch 'slackpkg update' if you modify this row. 112 | #REPOPLUS=( slackpkgplus restricted alienbob ) 113 | REPOPLUS=( slackpkgplus ) 114 | 115 | 116 | # Define mirrors (uncomment one or more mirror; remember to add it to REPOPLUS) 117 | # GPG Note: after adding/renaming a repository, you must to run 'slackpkg update gpg'; 118 | # some repositories as salixos, have a partial GPG support; 119 | # for that repositories you may need to run slackpkg with 'slackpkg -checkgpg=off ...' 120 | 121 | # Slackware 15.0 - i386 122 | #MIRRORPLUS['alienbob']=https://slackware.nl/people/alien/sbrepos/15.0/x86/ 123 | #MIRRORPLUS['restricted']=https://slackware.nl/people/alien/restricted_sbrepos/15.0/x86/ 124 | 125 | # use this to keep the slackpkg+ package updated to the latest stable release 126 | MIRRORPLUS['slackpkgplus']=https://slakfinder.org/slackpkg+15/ 127 | 128 | # use the development branch to use the mainline version and help develop by reporting bugs. 129 | #MIRRORPLUS['slackpkgplus']=https://slakfinder.org/slackpkg+dev/ 130 | 131 | # Local repository: 132 | #MIRRORPLUS['alienbob']=file://repositories/alien/sbrepos/15.0/x86/ 133 | # 134 | # Local packages (you do not need metadata nor 'slackpkg update' command): 135 | #MIRRORPLUS['myrepo']=dir://repositories/mypackages/ 136 | # 137 | # Remote packages (you do not need metadata) 138 | #MIRRORPLUS['slackpkgbeta']=httpsdir://slackpkg.org/beta/ 139 | 140 | 141 | # SBo SlackBuilds. Uncomment it to allow slackpkg to search SlackBuilds on SlackBuilds.org 142 | # This does not replace sbopkg; slackpkg just report the package, version and url; you may 143 | # download it via 'slackpkg download ' and build it yourself or via sbopkg. 144 | #SBO['15.0']=https://www.slackbuilds.org/slackbuilds/15.0/ 145 | #SBO['current']=https://cgit.ponce.cc/slackbuilds/ 146 | 147 | 148 | # Plugin section: 149 | # Here you can enable some optional feature. Please read documentation before enable it. 150 | # 151 | # ZLookKernel can help you to rebuild initrd and reinstall lilo/elilo/grub. This feature was 152 | # removed in slackpkg-15.0. 'enable' this setting to enable it. 153 | # read /usr/libexec/slackpkg/functions.d/zlookkernel.sh for more information 154 | # It will ask confirmations at every step, unless you will set 'PLUGIN_ZLOOKKERNEL_PROMPT=off' 155 | # It will manage /boot/vmlinuz by default; if you use kernel generic, please set 156 | # the PLUGIN_ZLOOKKERNEL_IMAGE=/boot/vmlinuz-generic to manage it 157 | #PLUGIN_ZLOOKKERNEL=disable 158 | #PLUGIN_ZLOOKKERNEL_PROMPT=on 159 | #PLUGIN_ZLOOKKERNEL_IMAGE=/boot/vmlinuz 160 | # 161 | # ZChangeLog track all repository changes everytime you run 'slackpkg update' 162 | # It write the changelog at /var/lib/slackpkg/RepoChangeLog.txt 163 | # 'enable' this setting to enable it. Also set 'PLUGIN_ZCHANGELOGS_SHOW=on' to print 164 | # the changes in standard output at the end of 'update' process. 165 | # read /usr/libexec/slackpkg/functions.d/zchangelog.sh for more information 166 | #PLUGIN_ZCHANGELOG=disable 167 | #PLUGIN_ZCHANGELOG_SHOW=off 168 | # 169 | 170 | # 171 | # Supported Repositories (see /usr/doc/slackpkg+-* for details and notes): 172 | # 173 | -------------------------------------------------------------------------------- /src/slackpkgplus.x86_64.sample: -------------------------------------------------------------------------------- 1 | # Configuration for slackpkg+. 2 | # Please read manpage: "man slackpkgplus.conf" and documentation /usr/doc/slackpkg+-*/README 3 | 4 | # Enable (on) / Disable (off) slackpkg+ 5 | SLACKPKGPLUS=on 6 | 7 | # set to '0' to never show the download progress bar 8 | # set to '1' to show the bar only in download packages (default) 9 | # set to '2' to always show the download bar 10 | # set to '3' for a debug mode 11 | VERBOSE=1 12 | 13 | # Enable TERSE to use a smaller output in installpkg/upgradepkg 14 | USETERSE=on 15 | 16 | # Enable a smaller output for slackpkg search. It replace first column with one colorized 17 | # on: [unin] uninstalled, [inst] installed, [upgr] upgrade, [mask] uninstalled/masked 18 | # tiny: [-] uninstalled, [I] installed, [I] upgrade, [M] uninstalled/masked 19 | # off: leave unchanged and black/white. 20 | #TERSESEARCH=tiny 21 | TERSESEARCH=on 22 | 23 | # Use proxy. Leave commented to use system settings. 24 | #PROXY=off 25 | #PROXY=: 26 | 27 | # By default slackpkg+ deny to install 32bit packages. 28 | # 29 | # Set this flag to 'on' allow slackpkg+ to install 32bit packages on a 64bit slackware 30 | # installation (possibly unsafe). Please, do not install both 32 and 64bit of the same 31 | # package to avoid problems, and NEVER upgrade existing 64bit packages with relative 32bit package. 32 | # Do not forget to install the multilibs. 33 | ALLOW32BIT=off 34 | 35 | # Enable (on) / Disable (off) the official slackpkg blacklist. May be useful to temporarily skip 36 | # the slackware blacklist. You can also override it from command line: 37 | # 'USEBL=off slackpkg upgrade-all' 38 | USEBL=on 39 | 40 | # Enable (on) / Disable (off) the legacy blacklist system ignoring the improvement 41 | # from slackpkg 15. Some improvement are not useful with third party repositories 42 | # Note that the legacy system does apply it as regex to the entire pkglist row 43 | # repository, name, version, arch, build, fullname, series/path, extension. 44 | LEGACYBL=off 45 | 46 | # Add custom option to 'wget'. 47 | # You can solve the repository unavailability problems by set a timeout here 48 | # Also add "-q" for super terse output (useful with USETERSE=on) 49 | WGETOPTS="--timeout=20 --tries=2" 50 | 51 | # If you want replace wget with another downloader search DOWNLOADCMD in documentation 52 | # at /usr/doc/slackpkg+-*/README 53 | #DOWNLOADCMD="wget2 --progress=bar -O" 54 | 55 | # Enable (on) / Disable (off) checking disk space to download and install packages. Default to "off" 56 | #CHECKDISKSPACE=on 57 | 58 | # Defines if the changelog of any third party repository must be searched in parent URL when not found in base URL. 59 | # Can be set to "on" or "off" (default) 60 | SEARCH_CLOG_INPARENT=on 61 | 62 | # Use the cache for metadata files (CHECKSUMS.md5,...). Enable it (on) to speedup the slackpkg update 63 | # process by downloading just new files (see README). Disabled by default (off) 64 | CACHEUPDATE=off 65 | 66 | # You can download-only by setting DOWNLOADONLY to 'on'. You may (you should) also use it in command line, 67 | # for example: "DOWNLOADONLY=on slackpkg upgrade-all". Useful for large upgrades. 68 | # You may also use 'slackpkg download' if you want to download few packages 69 | #DOWNLOADONLY=off 70 | 71 | # Enable (on) / Disable (off) notification events (see notifymsg.conf) 72 | #ENABLENOTIFY=off 73 | 74 | # Enable (on) / Disable (off) the greylist feature. See /etc/slackpkg/greylist 75 | GREYLIST=on 76 | 77 | # Defines if commands 'search' and 'file-search' are case-sensitive (on) or not (off). Default to "on" 78 | SENSITIVE_SEARCH=off 79 | 80 | # Defines if command 'file-search' does search Whole Word (on) or accept partial words (off). Note that 81 | # you may obtains many many results searching a short partial word 82 | WW_FILE_SEARCH=off 83 | 84 | # Select the show order in dialog box. Available "package" "repository" "tag" "path" "arch" 85 | SHOWORDER=package 86 | 87 | # Allow to show more details of the package in 'slackpkg info '. Accepts "none", "basic", "filelist" 88 | DETAILED_INFO=basic 89 | 90 | # Enable (on) / Disable (off) a Strict GPG Check. A repository should contains packages signed 91 | # with the only original GPG-KEY. In some custom repository may be wanted to mix heterogeneous 92 | # packages; to use that repository set Strict GPG Check to off. P.S: a repository can 93 | # contain just ONE gpg-key; you may manually import the other. 94 | STRICTGPG=on 95 | 96 | # If two or more repositories contains some same packages, you can specify 97 | # from which repository you prefer to search it. 98 | # The syntax is ":" 99 | # Accepts regular expressions. To give priority to an entire repository use "" 100 | 101 | # Examples: 102 | #PKGS_PRIORITY=( restricted:vlc ) 103 | # OR 104 | #PKGS_PRIORITY=( myrepo ) 105 | # 106 | # if you have two repositories to give priority you must set both in the same line 107 | #PKGS_PRIORITY=( myrepo restricted:vlc ) 108 | # 109 | # 110 | # If you want a multilib system, uncomment the 'multilib' repository and set: 111 | #PKGS_PRIORITY=( multilib ) 112 | # 113 | # (Use /usr/doc/slackpkg+-*/setupmultilib.sh to setup a multilib configuration) 114 | 115 | # Otherwise you can try to upgrade a package from a repository that contains a package with the 116 | # same tag of the already installed package. Typically that means to upgrade a package from the 117 | # same author of the already installed package. 118 | # Note that this method may not works properly where two repositories contains a package with the 119 | # same tag. 120 | # Set TAG_PRIORITY to 'on' to enable this function 121 | TAG_PRIORITY=off 122 | 123 | # List repositories you want to use (defined below) 124 | # remember to launch 'slackpkg update' if you modify this row. 125 | #REPOPLUS=( slackpkgplus restricted alienbob ) 126 | REPOPLUS=( slackpkgplus ) 127 | 128 | 129 | # Define mirrors (uncomment one or more mirror; remember to add it to REPOPLUS) 130 | # GPG Note: after adding/renaming a repository, you must to run 'slackpkg update gpg'; 131 | # some repositories as salixos, have a partial GPG support; 132 | # for that repositories you may need to run slackpkg with 'slackpkg -checkgpg=off ...' 133 | 134 | # Slackware 15.0 - x86_64 135 | #MIRRORPLUS['multilib']=https://slackware.nl/people/alien/multilib/15.0/ 136 | #MIRRORPLUS['alienbob']=https://slackware.nl/people/alien/sbrepos/15.0/x86_64 137 | #MIRRORPLUS['restricted']=https://slackware.nl/people/alien/restricted_sbrepos/15.0/x86_64 138 | 139 | # use this to keep the slackpkg+ package updated to the latest stable release 140 | MIRRORPLUS['slackpkgplus']=https://slakfinder.org/slackpkg+15/ 141 | 142 | # use the development branch to use the mainline version and help develop by reporting bugs. 143 | #MIRRORPLUS['slackpkgplus']=https://slakfinder.org/slackpkg+dev/ 144 | 145 | 146 | # Local repository: 147 | #MIRRORPLUS['alienbob']=file://repositories/alien/sbrepos/15.0/x86/ 148 | # 149 | # Local packages (you do not need metadata nor 'slackpkg update' command): 150 | #MIRRORPLUS['myrepo']=dir://repositories/mypackages/ 151 | # 152 | # Remote packages (you do not need metadata) 153 | #MIRRORPLUS['slackpkgbeta']=httpsdir://slackpkg.org/beta/ 154 | 155 | 156 | # SBo SlackBuilds. Uncomment it to allow slackpkg to search SlackBuilds on SlackBuilds.org 157 | # This does not replace sbopkg; slackpkg just report the package, version and url; you may 158 | # download it via 'slackpkg download ' and build it yourself or via sbopkg. 159 | #SBO['15.0']=https://www.slackbuilds.org/slackbuilds/15.0/ 160 | #SBO['current']=https://cgit.ponce.cc/slackbuilds/ 161 | 162 | 163 | # Plugin section: 164 | # Here you can enable some optional feature. Please read documentation before enable it. 165 | # 166 | # ZLookKernel can help you to rebuild initrd and reinstall lilo/elilo/grub. This feature was 167 | # removed in slackpkg-15.0. 'enable' this setting to enable it. 168 | # read /usr/libexec/slackpkg/functions.d/zlookkernel.sh for more information 169 | # It will ask confirmations at every step, unless you will set 'PLUGIN_ZLOOKKERNEL_PROMPT=off' 170 | # It will manage /boot/vmlinuz by default; if you use kernel generic, please set 171 | # the PLUGIN_ZLOOKKERNEL_IMAGE=/boot/vmlinuz-generic to manage it 172 | #PLUGIN_ZLOOKKERNEL=disable 173 | #PLUGIN_ZLOOKKERNEL_PROMPT=on 174 | #PLUGIN_ZLOOKKERNEL_IMAGE=/boot/vmlinuz 175 | # 176 | # ZChangeLog track all repository changes everytime you run 'slackpkg update' 177 | # It write the changelog at /var/lib/slackpkg/RepoChangeLog.txt 178 | # 'enable' this setting to enable it. Also set 'PLUGIN_ZCHANGELOGS_SHOW=on' to print 179 | # the changes in standard output at the end of 'update' process. 180 | # read /usr/libexec/slackpkg/functions.d/zchangelog.sh for more information 181 | #PLUGIN_ZCHANGELOG=disable 182 | #PLUGIN_ZCHANGELOG_SHOW=off 183 | # 184 | 185 | # 186 | # Supported Repositories (see /usr/doc/slackpkg+-* for details and notes): 187 | # 188 | -------------------------------------------------------------------------------- /src/zchangelog.sh: -------------------------------------------------------------------------------- 1 | ### Note about ZChangeLog ## 2 | # 3 | # 4 | # It track all repositories changes in /var/lib/slackpkg/RepoChangeLog.txt 5 | # everytime you run 'slackpkg update' so you will have a global changelog. 6 | # 7 | # example: 8 | # Wed Feb 24 22:17:41 CET 2021 9 | # ---------------------------------- 10 | # Added: testing 11 | # 12 | # Upgraded: alienbob :: chromium-88.0.4324.190-x86_64-1alien.txz 13 | # Added: extra :: php8-8.0.2-x86_64-1.txz 14 | # Upgraded: slackpkgplus :: slackpkg+-1.7.2-noarch-1mt.txz 15 | # Upgraded: slackware64 :: Cython-0.29.22-x86_64-1.txz 16 | # Upgraded: slackware64 :: autoconf-archive-2021.02.19-noarch-1.txz 17 | # Rebuilt: slackware64 :: bind-9.16.11-x86_64-3.txz 18 | # Upgraded: slackware64 :: bluedevil-5.21.1-x86_64-1.txz 19 | 20 | # 21 | # WARNING: This tool is in an embrional state. However it does not affect 22 | # the correct slackpkg+ working. But you need to install it manually 23 | # if you want use it. 24 | # 25 | # To use it put PLUGIN_ZCHANGELOG=enable 26 | # in /etc/slackpkg/slackpkgplus.conf 27 | # 28 | # After run 'slackpkg update' ZChangeLog cat print the changes in output 29 | # if you set 'PLUGIN_ZCHANGELOG_SHOW=on' to slackpkgplus.conf 30 | # 31 | 32 | if [ "$PLUGIN_ZCHANGELOG" == "enable" ];then 33 | 34 | test -n "$(declare -f cleanup)" # || return 35 | eval "${_/cleanup/cleanup_orig}" 36 | 37 | function pkglistdiff (){ 38 | diff $WORKDIR/pkglist.copy $WORKDIR/pkglist|grep -v " SBO_"| 39 | grep -e "^>" -e "^<"| 40 | sed 's/SLACKPKGPLUS_//'| 41 | sort -k2| 42 | awk '{print $1,$2":"$3,$2,$3,$4,$5,$6,$9}'| 43 | uniq -f1 -u| 44 | awk '{print $1,$8,$7,$6,$5,$4,$3,$2}'| 45 | grep -v / 46 | } 47 | 48 | function makepkglog(){ 49 | if [ -z "$TMPDIR" ];then TMPDIR=/tmp;fi 50 | if [ -z "$WORKDIR" ];then WORKDIR=/var/lib/slackpkg;fi 51 | IGNORE="$( ( 52 | cat $WORKDIR/pkglist.copy|grep -v ^SBO_|awk '{print $1}'|sort -u|sed 's/SLACKPKGPLUS_//'|sed 's/^/Removed /' 53 | cat $WORKDIR/pkglist |grep -v ^SBO_|awk '{print $1}'|sort -u|sed 's/SLACKPKGPLUS_//'|sed 's/^/Added /' 54 | )|sort -k2|uniq -f1 -u)" 55 | echo "$IGNORE"|awk '{print $1": "$2}'|column -t |sort -k2|grep ...&&echo 56 | echo "$IGNORE"|awk '{print " "$2" "}'|grep ... >$TMPDIR/ignorerepos 57 | 58 | ( 59 | pkglistdiff |uniq -f5 -u |awk '{if ($1=="<"){ print "Removed: "$7" :: "$6"-"$5"-"$4"-"$3"."$2 }else{ print "Added: "$7" :: "$6"-"$5"-"$4"-"$3"."$2 } }' 60 | pkglistdiff |uniq -f5 -D |uniq -f4 -D|grep '>'|awk '{print "Rebuilt: "$7" :: "$6"-"$5"-"$4"-"$3"."$2}' 61 | pkglistdiff |uniq -f5 -D |uniq -f4 -u|grep '>'|awk '{print "Upgraded: "$7" :: "$6"-"$5"-"$4"-"$3"."$2}' 62 | )|sort -k2|column -t| grep -v -f $TMPDIR/ignorerepos 63 | 64 | } 65 | 66 | function cleanup(){ 67 | if [ "$CMD" == "update" ]&&[ -e "$WORKDIR/pkglist" ];then 68 | if [ ! -e "$WORKDIR/pkglist.copy" ];then 69 | touch -t 197001010101 $WORKDIR/pkglist.copy 70 | touch $WORKDIR/RepoChangeLog.txt 71 | fi 72 | if [ $WORKDIR/pkglist -nt $WORKDIR/pkglist.copy ];then 73 | date > $TMPDIR/RepoChangeLog.txt 74 | echo "----------------------------------" >> $TMPDIR/RepoChangeLog.txt 75 | makepkglog >> $TMPDIR/RepoChangeLog.txt 76 | 77 | 78 | if ! tail -1 $TMPDIR/RepoChangeLog.txt|grep -q -- --------- ;then 79 | echo >> $TMPDIR/RepoChangeLog.txt 80 | echo "==================================" >> $TMPDIR/RepoChangeLog.txt 81 | if [ "$PLUGIN_ZCHANGELOG_SHOW" == "on" ];then 82 | cat $TMPDIR/RepoChangeLog.txt 83 | fi 84 | cat $WORKDIR/RepoChangeLog.txt >> $TMPDIR/RepoChangeLog.txt 85 | cp $TMPDIR/RepoChangeLog.txt $WORKDIR/RepoChangeLog.txt 86 | fi 87 | cat $WORKDIR/pkglist|grep -v ^SBO_ > $WORKDIR/pkglist.copy 88 | fi 89 | fi 90 | cleanup_orig 91 | } 92 | 93 | fi 94 | -------------------------------------------------------------------------------- /src/zlookkernel.sh: -------------------------------------------------------------------------------- 1 | ### Note about ZLookKernel ## 2 | # 3 | # slackpkg-15 removed the ability to run lilo after a kernel upgrade since 4 | # lilo.conf may contains an initrd. Now slackpkg just advice you: 5 | # Your kernel image was updated. Be sure to handle any needed updates 6 | # to your bootloader. 7 | # 8 | # This plugin try to rebuild the initrd - if any - and try to reinstall lilo 9 | # Note: it works with common configurations. Custom configurations may 10 | # fails, so use it carefully. 11 | # 12 | # Also it supports EFI elilo. 13 | # 14 | # by default it manage the /boot/vmlinuz image. You have to configure it 15 | # according your lilo/elilo configuration. 16 | # 17 | # It does: 18 | # - check for vmlinuz modifications 19 | # - detect for existant /boot/initrd.gz 20 | # - try to rebuild it by running latest command /boot/initrd-tree/command_line 21 | # - detect the bootloader: 22 | # - elilo: try to detect which file to copy (vmlinuz, vmlinuz-generic, 23 | # vmlinuz-huge, initrd.gz) according to /boot/efi/EFI/Slackware/elilo.conf 24 | # - lilo: run 'lilo -v' 25 | # - grub: run 'grub-mkconfig -o /boot/grub/grub.cfg' 26 | # - none: advice that no bootloader was found 27 | # 28 | # If you are switching from kernel huge to kernel generic be sure to run 29 | # 30 | # cd / ; /var/lib/pkgtools/setup/setup.01.mkinitrd 31 | # 32 | # and to configure your lilo.conf 33 | # 34 | # image = /boot/vmlinuz-generic 35 | # initrd = /boot/initrd.gz 36 | # root = /dev/xxxxx 37 | # label = generic 38 | # read-only 39 | 40 | # 41 | # Warning: it works with some common configuration, and may fail with other 42 | # so user it at your own risk. Before reboot please verify. 43 | # 44 | # To use it put PLUGIN_ZLOOKKERNEL=enable 45 | # in /etc/slackpkg/slackpkgplus.conf 46 | # 47 | # set PLUGIN_ZLOOKKERNEL_PROMPT=off 48 | # to avoid it ask all confirmations 49 | # 50 | # set PLUGIN_ZLOOKKERNEL_IMAGE=/boot/vmlinuz-generic 51 | # to manage the generic kernel image instead /boot/vmlinuz 52 | # 53 | # 54 | # 55 | # You can also run it from cmdline to force rebuild the bootloader: 56 | # /usr/libexec/slackpkg/functions.d/zlookkernel.sh 57 | 58 | if [ "$(basename $0)" == "zlookkernel.sh" ];then 59 | PLUGIN_ZLOOKKERNEL=force 60 | fi 61 | 62 | if [ "$PLUGIN_ZLOOKKERNEL" == "enable" ]||[ "$PLUGIN_ZLOOKKERNEL" == "force" ];then 63 | 64 | [ -z "$PLUGIN_ZLOOKKERNEL_IMAGE" ]&&PLUGIN_ZLOOKKERNEL_IMAGE=/boot/vmlinuz 65 | 66 | ORIKERNELMD5=$(md5sum $PLUGIN_ZLOOKKERNEL_IMAGE 2>/dev/null;ls -Lli $PLUGIN_ZLOOKKERNEL_IMAGE 2>/dev/null; ls -li $PLUGIN_ZLOOKKERNEL_IMAGE 2>/dev/null) 67 | 68 | lookkernel() { 69 | NEWKERNELMD5=$(md5sum $PLUGIN_ZLOOKKERNEL_IMAGE ; ls -Lli $PLUGIN_ZLOOKKERNEL_IMAGE ; ls -li $PLUGIN_ZLOOKKERNEL_IMAGE) 70 | if [ "$ORIKERNELMD5" != "$NEWKERNELMD5" ]; then 71 | KERNEL=$(readlink -f $PLUGIN_ZLOOKKERNEL_IMAGE | sed 's/.*-\([1-9]\)/\1/') 72 | echo -e "\nYour kernel image was updated (found $KERNEL). You have to rebuild the bootloader.\nDo you want slackpkg to do it? (Y/n)" 73 | [ ! "$PLUGIN_ZLOOKKERNEL_PROMPT" == "off" ] && answer 74 | if [ "$ANSWER" != "n" ] && [ "$ANSWER" != "N" ]; then 75 | INITRD=/boot/initrd.gz 76 | if [ -e /boot/initrd-tree/command_line ];then 77 | OINITRD=$(cat /boot/initrd-tree/command_line|grep -- " -o "|sed -r 's/^.* -o *([^ ]*).*$/\1/') 78 | INITRD=${OINITRD:-$INITRD} 79 | 80 | if [ -f "$INITRD" ];then 81 | echo -en "Found $INITRD; rebuilding it with:\n " 82 | MKINITRD=$(sed -e "s/ *-k *[^ ]\+//g" -e "s/ *$/ -k $KERNEL/" /boot/initrd-tree/command_line) 83 | echo " $MKINITRD" 84 | echo "Do you want continue? (Y/n)" 85 | [ ! "$PLUGIN_ZLOOKKERNEL_PROMPT" == "off" ] && answer 86 | if [ "$ANSWER" != "n" ] && [ "$ANSWER" != "N" ]; then 87 | $MKINITRD 88 | if [ ! -d "/boot/initrd-tree/lib/modules/$KERNEL" ];then 89 | echo -e "\nWARNING! the initrd may failed to create\n" 90 | echo " The initrd may failed to create." >>$TMPDIR/error.log 91 | fi 92 | fi 93 | fi 94 | fi 95 | 96 | 97 | if [ -e /boot/efi/EFI/Slackware/elilo.conf ];then 98 | echo -e "\nFound elilo. Copying files to EFI partition" 99 | COPYDONE="" 100 | for tocopy in vmlinuz vmlinuz-generic vmlinuz-huge `basename $PLUGIN_ZLOOKKERNEL_IMAGE` `basename $INITRD`;do 101 | if [ -e /boot/$tocopy ]&&[ -e /boot/efi/EFI/Slackware/$tocopy ]&&grep -E -q "= *$tocopy *$" /boot/efi/EFI/Slackware/elilo.conf ;then 102 | echo "Do you want to copy $tocopy to EFI partition? (Y/n)" 103 | [ ! "$PLUGIN_ZLOOKKERNEL_PROMPT" == "off" ] && answer 104 | if [ "$ANSWER" != "n" ] && [ "$ANSWER" != "N" ]; then 105 | cp -v /boot/$tocopy /boot/efi/EFI/Slackware/$tocopy && COPYDONE="$COPYDONE $tocopy" 106 | touch -r /boot/$tocopy /boot/efi/EFI/Slackware/$tocopy 107 | fi 108 | fi 109 | done 110 | if [ -z "$COPYDONE" ];then 111 | echo -e "\nWARNING! no files copied. You have to fix bootloader yourself\n" 112 | echo " No files copied to the EFI partition found. Fix it yourself" >>$TMPDIR/error.log 113 | fi 114 | elif [ -x /sbin/lilo ]&&[ -e /etc/lilo.conf ]; then 115 | echo -e "\nFound lilo. Do you want to run now: /sbin/lilo ? (Y/n)" 116 | [ ! "$PLUGIN_ZLOOKKERNEL_PROMPT" == "off" ] && answer 117 | if [ "$ANSWER" != "n" ] && [ "$ANSWER" != "N" ]; then 118 | if ! /sbin/lilo -t ;then 119 | echo "You need to fix your lilo configuration NOW. Then press return to continue." 120 | read 121 | fi 122 | /sbin/lilo -v 123 | fi 124 | elif [ -e /boot/grub/grub.cfg ]&&[ -x /usr/sbin/grub-install ]; then 125 | echo -e "\nFound grub. Do you want to run now: /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg ? (Y/n)" 126 | [ ! "$PLUGIN_ZLOOKKERNEL_PROMPT" == "off" ] && answer 127 | if [ "$ANSWER" != "n" ] && [ "$ANSWER" != "N" ]; then 128 | if ! /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg ;then 129 | echo "You need to fix your grub configuration NOW. Then press return to continue." 130 | read 131 | fi 132 | fi 133 | else 134 | echo -e "\nWARNING! slackpkg can't found your bootloader configuration. You have to fix it yourself\n" 135 | echo " slackpkg can't found your bootloader configuration. You have to fix it yourself" >>$TMPDIR/error.log 136 | fi 137 | fi 138 | fi 139 | } 140 | 141 | if [ "$PLUGIN_ZLOOKKERNEL" == "force" ];then 142 | ORIKERNELMD5="" 143 | function answer(){ 144 | read ANSWER 145 | } 146 | lookkernel 147 | fi 148 | 149 | fi 150 | --------------------------------------------------------------------------------