Commit graph

164 commits

Author SHA1 Message Date
Piter Punk
a64693d900
Merge pull request #31 from piterpunk/detect_if_system_is_running_current 2023-04-10 17:07:58 -03:00
Piter Punk
c1373776f7
Merge pull request #30 from tterpelle/master 2023-04-10 17:07:12 -03:00
piterpunk
e0b0a08913 Detects if installed system is Slackware Current
If the installed system is Slackware Current, creates the
`/var/lib/slackpkg/current` file by default, saving the user from
being asked about using a `current` mirror in a Slackware stable
install.
2023-04-05 20:16:31 -03:00
piterpunk
10230a06cc Minor formatting fixes 2023-04-05 19:48:37 -03:00
Piter Punk
7776080596
Merge pull request #27 from pete4abw/master 2023-04-05 18:43:20 -03:00
Tristan Terpelle
f7ba8207a6 Fix alignment again 2022-09-23 22:11:05 +02:00
Tristan Terpelle
7fbd7d6a51 Fix alignment (?) 2022-09-23 22:09:03 +02:00
Tristan Terpelle
762587f684 Fix typo 2022-09-23 22:07:54 +02:00
Tristan Terpelle
7b52bfb8d5 Add SLACKCFVERSION as a config option 2022-09-23 22:03:35 +02:00
shamilbi
a278359a9a fix: grep warning: stray \ before / 2022-09-08 21:23:46 +02:00
shamilbi
efd23c6ca3 fix: egrep and fgrep commands have been deprecated since 2007
https://news.slashdot.org/story/22/09/05/0135254/
The egrep and fgrep commands have been deprecated since 2007.
Beginning with GNU Grep 3.8 today, calling these commands will now issue
a warning to the user that instead they should use
grep -E and grep -F, respectively
2022-09-05 16:22:59 +02:00
Peter Hyman
8aad60b3ab Update slackpkg.conf.new and slackpkg.conf.5
- Show DOWNLOADER options for curl usage.
- Update manpage date and slackpkg version.
2022-06-20 07:03:54 -05:00
Robby Workman
b211490ee5 Release 15.0.10 2022-01-17 00:41:07 -06:00
Robby Workman
31fcf9620e Fix mirrors.ucr.ac.cr link address
Thanks to Emmet Ford.
2022-01-16 23:11:50 -06:00
Robby Workman
29b631f7d5 Remove wroc.pl mirrors (very stale)
Thanks to Emmet Ford.
2022-01-16 23:05:22 -06:00
Robby Workman
215a66f0c7 Remove kddilabs.jp from mirrors (very stale)
Thanks to Emmet Ford.
2022-01-16 23:04:09 -06:00
piterpunk
9d5166d13b Unattended usage improvements
- When in batch mode, don't wait for <enter> after kernel upgrade,
  so Slackpkg will not wait forever.
- Also in batch mode, allow to set a default action about what to
  do with .new config files
2022-01-16 02:54:16 -06:00
piterpunk
f8dfb7722f File to flag if the system needs restart
Creates /var/run/needs_restarting file if any "critical" package got
upgraded. As the /var/run/ is ephemeral and renewed each boot, the
file disappears after reboot.

The packages that flags the restart need are:

- kernel-generic, kernel-huge: as a new kernel needs a restart to be
  running.
- glibc, glibc-solibs: Restart is the only way to be sure that all
  running binaries are using the new glibc.
- eudev, elogind, dbus: those provides some very basic system
  services.
- openssl, openssl-solibs: security bugs on those libs are dangerous,
  the reboot makes sure that all running binaries are using the newer
  version.
2022-01-16 02:52:09 -06:00
Robby Workman
0ea2cf2f56 Release 15.0.9 2021-12-12 18:28:03 -06:00
Emmet Ford
a9664cecf4 files/mirrors-x86*: Remove bad mirrors from list
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-11-28 22:33:48 -06:00
piterpunk
ea08809a75 Automatically rebuild package lists if missing
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-11-28 01:35:37 -06:00
Robby Workman
25aac7e027 Release 15.0.8 2021-10-24 19:45:56 -05:00
piterpunk
13c79b1eb2 New exit status for different situations
To make easier to do an unattended slackpkg update/upgrade process,
this commit provides different exit codes to many situations:

  0    Successful slackpkg execution.
  1    Something wrong happened.
  20   No package found to be downloaded, installed, reinstalled,
       upgraded, or removed.
  50   Slackpkg itself was upgraded and you need to re-run it.
  100  There are pending updates.

Code and the main manpage are updated accordingly.

In addition, this commit also:

  - removes the ChangeLog.txt in doinst.sh, so the needed
    'slackpkg update' after Slackpkg upgrade won't says it's all OK
    and don't need to redo the package lists
  - removes AUTHORS from manpage. Nowadays there are code from many
    people in Slackpkg and shows a bit unfair to have only my and
    Evaldo's name listed there.

Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-10-12 00:34:27 -05:00
Robby Workman
9862db7e31 Release 15.0.7 2021-08-15 21:15:07 -05:00
Robby Workman
36c74cd719 Remove ftp://spout.ussg.indiana.edu from mirrorlist
Thanks to Andy Alt on LQ.
2021-07-13 23:44:18 -05:00
JK Wood
f9f1004bc7 Allow "slackpkg help" to work after slackpkg is upgraded
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-07-11 02:53:04 -05:00
Robby Workman
76629f61ba Release 15.0.6 2021-07-05 22:46:39 -05:00
Robby Workman
bd0e7982f8 Fix getting gpg key on ARM ; use only www.slackware.com 2021-07-05 22:46:39 -05:00
Robby Workman
58dabfd6a9 Remove support for Slackintosh project - it's dead, Jim 2021-06-09 11:53:22 -05:00
Robby Workman
cd95834328 Release 15.0.5 2021-06-04 22:56:09 -05:00
Koichi Murase
ae1b8712a6 Add "--" option to "command cd" in bash completion file
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-06-04 22:52:15 -05:00
Robby Workman
1d0b67507a Release 15.0.4 2021-06-04 22:33:03 -05:00
Robby Workman
4d5e9bce79 shell-completions/slackpkg.bash: add "show-changelog" 2021-06-04 22:33:03 -05:00
Robby Workman
911063fce4 Import bash-completion file from upstream project
Thanks to Igor Murzov <igor@gplsoft.org> for the initial
contribution of this file to the upstream bash-completion
project, and thanks to Ville Skyttä <ville.skytta@iki.fi>
and Koichi Murase <myoga.murase@gmail.com> for various
changes and fixes since then.

Co-authored-by: Igor Murzov <igor@gplsoft.org>
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2021-06-04 22:24:49 -05:00
piterpunk
ab87149522 Added the new-config actions for specific files
- Added code to parse a list with the .new files and the default
  action to do.
- Added post-functions.conf file to hold the aforementioned list
  and possible future configurations.
- Updated the SlackBuild to install the post-functions.conf file
2021-06-04 22:24:28 -05:00
Robby Workman
3c4c175de8 Harden slackpkg with respect to obtaining GPG key
Co-authored-by: CRTS <crts@gmx.net>
Reviewed-by: Piter PUNK <piterpunk@slackware.com>
2021-06-04 22:23:27 -05:00
Robby Workman
c43af13723 Release slackpkg-15.0.3 2021-05-03 18:55:24 -05:00
Dave Woodfall
3f318af8ed Fix 'continue' error message. 2021-04-21 15:42:51 +00:00
Robby Workman
941fe1897d Really release 15.0.2 :-) 2021-04-20 17:19:55 -05:00
PiterPUNK
065f4fd00f core-functions.sh: Fix package duplicate bug 2021-04-20 17:18:15 -05:00
Robby Workman
30bcb5e729 Release 15.0.2 2021-04-13 01:51:02 -05:00
Dave Woodfall
919b08049e Fix break error messages. 2021-04-05 06:47:51 +00:00
Dave Woodfall
af7d21a99e Remove now pointless if/then/else 2021-04-05 05:17:43 +00:00
Dave Woodfall
969f650ff1 Safer config sourcing.
Guards against accidents/typos in the config.
2021-04-05 05:10:23 +00:00
Robby Workman
88bb400532 files/slackpkg: replace #!/bin/sh with #!/bin/bash
From Eugen Wissner:
/usr/sbin/slackpkg claims to be a /bin/sh script, but it is not, since
it contains bashisms (bash arrays in the configuration, bash functions).
2021-04-04 23:42:01 -05:00
Dave Woodfall
9cd55c9ae2 Don't create blacklist when running update. 2021-04-04 22:17:52 -05:00
Dave Woodfall
a1dd8f3f53 Add show-changelog & help to non-root commands 2021-03-31 14:42:04 +00:00
Dave Woodfall
3d99ab68d3 Improve search blacklisting. 2021-03-20 18:56:53 +00:00
Robby Workman
05e40b5d2f Re-release slackpkg-15.0.1 (no package generated yet anyway) 2021-03-14 10:17:42 -05:00
Dave Woodfall
14566ba1b0 Modifiy blacklist regex line ending. 2021-03-14 10:16:29 -05:00