Commit graph

138 commits

Author SHA1 Message Date
Robby Workman
0635933b1e Fix "slackpkg blacklist" so that it shows blacklist again 2021-02-11 17:59:44 -06:00
Dave Woodfall
3ea13bebcb Fixup internal blacklist handling, i.e. see remainder of commit
This creates a blacklist of package names from regexp in original
file (/etc/slackpkg/blacklist) and uses the precreated list for
later comparison

Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-02-11 17:10:25 -06:00
Dave Woodfall
f87bf1bf68 Use ERE for sanity_check() function
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-02-11 17:01:03 -06:00
Robby Workman
d9f835b61a Remove "slackpkg blacklist" from manual pages 2021-02-10 06:18:23 -06:00
Stuart Winter
31cbbbb734 Fix aaa_elflibs --> aaa_libraries in sample blacklist file
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-02-10 06:05:27 -06:00
Stuart Winter
2c37581b16 Split aarch64 and arm mirrors into separate files
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-02-09 22:08:23 -06:00
piterpunk
5edf86dceb Allow new-config after slackpkg upgrade itself
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-02-08 16:51:23 -06:00
Robby Workman
bb6e763eb7 Release slackpkg-15.0
We decided to jump from 2.83.x straight to 15.0 to match the
version of Slackware for which it's intended: 15.0
That's not to imply that this version of slackpkg won't work
just fine with earlier Slackware releases: it should; however,
you definitely want this version of slackpkg for Slackware 15.0
2021-02-04 19:52:35 -06:00
Robby Workman
1f96b540f0 Set fileversion of slackpkg.conf to "v15.0" 2021-02-04 19:52:33 -06:00
Robby Workman
b0f1bdb485 Do not allow adding blacklist packages from slackpkg exec
As of slackpkg shipped with Slackware 15.0, it is no longer
supported to add packages to /etc/slackpkg/blacklist using
the slackpkg executable; this should only be done with an
editor pointing at /etc/slackpkg/blacklist
2021-02-04 19:52:21 -06:00
Peter Hyman
a9e490297b Add 'download' to options in usage() ; remove dupes from manpage
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-02-04 19:52:18 -06:00
Robby Workman
e0f7de556d Add aaa_glibc-solibs and aaa_libraries to early routine 2021-02-04 19:52:16 -06:00
Robby Workman
521234d68f Release 2.84.0_beta12 2021-01-18 18:30:08 -06:00
Robby Workman
418a422c17 Change mirrors from ftp to http or https
Also omit "pub/" from mirror.slackbuilds.org links
2021-01-18 18:29:19 -06:00
Stuart Winter
89d4761f19 Add support for Slackware-AArch64
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-01-18 13:42:55 -06:00
Robby Workman
f601660353 Release 2.84.0_beta11 2021-01-04 23:14:20 -06:00
Peter Hyman
23640d912d Add show-changelog option and update manpage
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-01-04 23:08:49 -06:00
Peter Hyman
f62ecabf6c Changes to checkchangelog function
* Modify checkchangelog() function to only check CHECKSUMS.md5.asc.
* Remove unneeded check of ChangeLog.txt from checkchangelog() function.
* Move fetching of ChangeLog.txt to updatefilelists() function.
* Modify check-updates to output need to update to stderr so cron
  jobs will notify sysadmin.

Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-01-04 23:04:25 -06:00
Robby Workman
96f2132657 Update ChangeLog to reflect last commit
(should have been part of last commit)
2021-01-04 23:00:42 -06:00
Eric Pozharski
3d47ee175c slackpkg.8: document issues with filenames having spaces
Signed-off-by: Robby Workman <rworkman@slackware.com>
2020-12-01 21:37:12 -06:00
Robby Workman
9b950fcbaa Release 2.84.0_beta10 2020-11-27 15:14:58 -06:00
Robby Workman
7d8b3382ad Fix output if package is incorrectly named
Thanks to phenixia2003 (SeB) on LQ for the patch.
2020-11-27 02:57:52 -06:00
Robby Workman
775c2fa391 Release 2.84.0_beta9 2020-08-03 00:22:21 -05:00
Robby Workman
c0ae293961 Add Switzerland mirrors
Thanks to xpetrl on LQ
2020-08-03 00:11:33 -05:00
Robby Workman
266f09477b core-functions.sh: Replace tempfile with mktemp
Thanks to I.G.O.R. on LQ for the suggestion and reminder.
2020-07-30 00:41:19 -05:00
Robby Workman
f63b738fb0 Release 2.84.0_beta8 2020-02-26 21:53:48 -06:00
Robby Workman
dda9a37537 Revert "More fixups for alternate ROOT ; thanks to zerouno."
This reverts commit fcc58ff506
because it breaks lxc container creation; ponce stated on LQ
that "seems that forcing $CONF under $ROOT is what break things
here: $CONF in the template is used to have a temporary location,
outside of the container, in which to store the template, a
blacklist and a mirror configuration for the container creation"
2020-02-26 21:49:44 -06:00
Robby Workman
4be95fdf52 Update ChangeLog for 2.84.0_beta7 2020-02-20 22:54:09 -06:00
Robby Workman
fcc58ff506 More fixups for alternate ROOT ; thanks to zerouno. 2020-02-19 20:37:55 -06:00
Robby Workman
2857869820 Uncomment mirrors.slackware.com mirror by default
Thanks to zerouno for the suggestion.
2020-02-18 18:55:48 -06:00
Robby Workman
d3632208a5 Release 2.84.0_beta6 2019-07-15 15:30:44 -05:00
Darren Austin
7382dca1b4 Add slackware.uk mirrors to sample mirror list
Signed-off-by: Robby Workman <rworkman@slackware.com>
2019-07-15 15:11:32 -05:00
Robby Workman
d0f8027cf9 install-new: catch packages added to /patches after -stable release
Thanks to blizzack on ##slackware for the report, and thanks to
Skydroid and alienBOB for debugging assistance.
2019-07-15 15:03:55 -05:00
Robby Workman
c43abeab73 Release 2.84.0_beta5 2019-05-20 01:03:00 -05:00
Robby Workman
2a68edf018 Release 2.84.0_beta4 2019-01-28 00:45:02 -06:00
Robby Workman
7658ac7c89 Remove subshell usage and save a trivial amount of time 2019-01-16 00:21:54 -06:00
Robby Workman
c7216fb599 Catch errors and return exit status 1 if they occur
Thanks to mcandre on LQ for the suggestion.
2019-01-16 00:15:57 -06:00
Robby Workman
a9c7e7d4c7 Fixup blacklist checking and appending when using alt $ROOT
Thanks to dive for the report.
2019-01-14 23:17:13 -06:00
Robby Workman
a2f35e3110 Release 2.84.0_beta3 2018-12-31 00:46:50 -06:00
Dave Woodfall
7a62e902c7 Fix support for package sets (try #2)
This adds ./$PKGMAIN/ to a blacklisted set line, which
ought to say turn kde/ into ./slackware64/kde as it listed in the
temp pkglist.  I've tightened up the patches/pasture/extra etc. lines
too.

Signed-off-by: Robby Workman <rworkman@slackware.com>
2018-12-30 19:56:58 -06:00
Robby Workman
d358f77039 Release 2.84.0_beta2
This should fix blacklisting of entire package sets; thanks much
to David Woodfall (dive) for this. Note that the sample blacklist
file has changed to reflect the new syntax for blacklisting sets
(add a trailing slash, e.g. "kde/")
2018-12-30 04:21:36 -06:00
Dave Woodfall
a14cc9c888 Fix support for blacklisting entire package sets
Blacklisted sets now need a trailing / (eg. kde/)

Anything with a trailing slash is excluded from having \s added to it.
Then the slash is removed so the set is picked up by the old
functionality.

Signed-off-by: Robby Workman <rworkman@slackware.com>
2018-12-30 04:18:24 -06:00
Robby Workman
fdba68e529 2.84.0_beta1 release
- Allow blacklisting of individual packages without collateral
  damage (e.g. glibc ---> glibc-*). This changes the prior behavior
  of the blacklist function; previously, adding "glibc" to the
  blacklist would cause glibc, glibc-profile, glibc-zoneinfo, et al
  to be ignored by slackpkg. The new behavior is that *only* the
  glibc package is ignored. If you want to blacklist all packages
  whose names begin with glibc, you would need to add "glibc.*" to
  the blacklist now.  Also note that any special characters, e.g. "+",
  will need to be escaped in the blacklist file. (David Woodfall)
- Add support for listing .new files without PAGER (David Woodfall)
- Remove switch.ch mirrors
- Add config option to allow *not* saving .orig configs (Darren Austin)
- Mention possible stale mirror if CHECKSUMS.md5 gpg verify fails
- Clarify that a press of "Enter" is needed to confirm kernel change
  (Mario Preksavec)
- doinst.sh Don't remove ChangeLog.txt upon upgrade/reinstall.
  (Patrick Volkerding)
- mirrors-x86*.sample: Remove bjtu.edu.cn mirror
- Fix for /var/log/packages/ possibly being a symlink to elsewhere
- Use CHECKSUMS.md5.asc to determine ChangeLog newness
  (Patrick Volkerding)
2018-12-02 00:50:44 -06:00
Robby Workman
0463acfd1d Note requirement to escape special characters in blacklist 2018-12-02 00:50:44 -06:00
Robby Workman
5fdb8c5a0b Update sample blacklist file 2018-11-22 23:28:39 -06:00
Dave Woodfall
532b90838e Fix (hopefully) blacklisting of specific packages
In short, it seems impossible to blacklist some packages without
catching other undesirable packages. As an example, blacklisting
glibc will also catch glibc-zoneinfo (and the other glibc-*)
packages. It would be good to have the ability to blacklist only
the glibc package without it catching the others.

With this change, if sysadmin wants the blacklist to be "greedy,"
then adding "glibc.*" to the blacklist will do that.

Reported-by: Peter Hyman <pete@peterhyman.com>
Signed-off-by: Robby Workman <rworkman@slackware.com>
2018-11-22 23:28:39 -06:00
Robby Workman
5cf3313ce2 Minor tweaks to default slackpkg.conf 2018-11-22 23:28:27 -06:00
Robby Workman
098a71bc1f Minor grammatical fixup
Thanks to Gerard Lally on LQ.
2018-11-20 23:25:04 -06:00
Dave Woodfall
2cae1aa0af Adjust number of .new lines shown based on terminal size
Signed-off-by: Robby Workman <rworkman@slackware.com>
2018-11-20 01:37:14 -06:00
Robby Workman
d93ee0f36d Update ChangeLog with changes since 2.83.0 2018-11-18 00:15:26 -06:00
Dave Woodfall
8ff792f2ef Add support for listing .new files without PAGER
Signed-off-by: Robby Workman <rworkman@slackware.com>
2018-11-18 00:07:54 -06:00
Robby Workman
8bd2393f0e Remove switch.ch mirrors 2018-11-17 16:17:41 -06:00
Darren Austin
a805617e81 Add config option to allow *not* saving .orig configs
When admins choose to allow slackpkg new-config to overwrite
currently installed config files with the .new counterparts
from an upgraded package, slackpkg has traditionally created
backups of the config files first, with the backups being
written out with .orig extensions. This commit does not change
the default behavior, but it does allow it to be turned off.

TLDR: set "ORIG_BACKUPS" to "off" in /etc/slackpkg/slackpkg.conf
      if you do not wish to have .orig files left over

Signed-off-by: Robby Workman <rworkman@slackware.com>
2018-09-19 23:21:58 -05:00
Robby Workman
ff0b9ff70a Mention possible stale mirror if CHECKSUMS.md5 gpg verify fails
Signed-off-by: Robby Workman <rworkman@slackware.com>
2018-09-05 22:50:09 -05:00
Mario Preksavec
24ec5a28f8 Clarify that a press of "Enter" is needed to confirm kernel change
Signed-off-by: Robby Workman <rworkman@slackware.com>
2018-06-20 01:27:04 -05:00
Robby Workman
845c9adf65 mirrors-x86*.sample: Remove bjtu.edu.cn mirror
Thanks to Lockywolf on LQ for the report.
2018-06-12 12:46:25 -05:00
Robby Workman
10b2f7d493 Fix for /var/log/packages/ possibly being a symlink to elsewhere 2018-06-07 23:00:02 -05:00
Patrick J. Volkerding
e1fc7d9987 Use CHECKSUMS.md5.asc to determine ChangeLog newness
Thanks to drgibbon on LQ for the suggestion.

Signed-off-by: Robby Workman <rworkman@slackware.com>
2018-06-07 19:03:40 -05:00
Robby Workman
406a3cbed3 2.83.0 release 2018-05-29 19:16:26 -05:00
Robby Workman
d88c779699 2.83.0beta2 2018-04-04 02:14:39 -05:00
Robby Workman
b77f5bd5ee post-functions.sh: Tweak handling of new kernel prompts 2018-04-04 02:13:53 -05:00
orbea
3340c90614 files/slackpkg.8: mandoc lint fixes 2018-04-03 20:25:58 -05:00
Robby Workman
0cfc1f787d 2.83.0beta1 2018-04-03 20:06:33 -05:00
Robby Workman
80c5dc16dd post-functions.sh: Fix stray stuff in vimdiff prompt 2018-04-03 20:03:42 -05:00
Robby Workman
5d66c7cc39 post-functions.sh: Sort .new files list from looknew()
Thanks to Eduard Rozenberg.
2018-04-03 19:31:02 -05:00
Robby Workman
2cb98319cb post-functions.sh: Make sure user confirms kernel update 2018-04-03 19:19:18 -05:00
Robby Workman
b55bfd9645 post-functions.sh: Respect $ROOT in looknew()
Thanks again to burdi01 on LQ.
2018-04-03 19:14:27 -05:00
Robby Workman
caf6a1ab96 post-functions.sh: Don't offer to run lilo if initrd is in lilo.conf 2018-01-07 00:12:05 -06:00
Robby Workman
bc4ea512ee Make sure user knows that the warning about -current only shows once 2018-01-06 23:23:28 -06:00
Robby Workman
f59af2b4d7 2.82.3beta5 2018-01-06 17:55:18 -06:00
Didier Spaier
9cea505db9 files/slackpkg: SOURCE handling - land softer if no trailing / 2018-01-06 17:53:46 -06:00
Didier Spaier
b6cf5ec58c core-functions.sh: Warn (first time) if -current mirror is selected
Require confirmation the first time a -current mirror is selected.
2018-01-06 17:53:46 -06:00
Robby Workman
14ce3da94e post-functions.sh: Invert test for "not no" to "is yes"
Essentially, don't process a "not yes" as an "is yes"
2018-01-06 17:35:22 -06:00
Robby Workman
8c6d8b9947 post-functions.sh: check for /etc/lilo.conf too for lilo offer
Existence of /etc/lilo.conf coupled with executable /sbin/lilo
probably indicates lilo usage on the system, so that seems like
a reasonable compromise for everyone fussing about slackpkg's
offer to run /sbin/lilo for them after kernel upgrades even
though they use grub or whatever else.
2018-01-06 17:33:02 -06:00
Robby Workman
68d43457e8 2.82.3beta4 2018-01-04 21:25:40 -06:00
Robby Workman
4e7a7c9ebb slackpkg: Abort if system date is near epoch
This merges slackpkg-quit-on-epoch.patch from Slackware ARM
2018-01-03 04:48:53 -06:00
Robby Workman
d426faa6e7 2.82.3beta3 2018-01-02 22:26:44 -06:00
Robby Workman
47a185d6c6 pkglist.awk: Handle the (hopefully rare) case of $ROOT usage 2018-01-02 17:58:49 -06:00
Robby Workman
70948050f9 Add $ROOT to $WORKDIR, $TEMP, and $TMPDIR instances
This *should* have no effect if $ROOT is blank

Files modified:
  files/core-functions.sh
  files/slackpkg
2018-01-02 17:58:49 -06:00
Robby Workman
c73c1a9008 core-functions.sh: Fix Slackware ARM gpg key 2018-01-02 17:58:14 -06:00
Robby Workman
bc7e966ee1 mirrors-arm.sample: Update mirror list 2017-12-31 00:43:20 -06:00
Robby Workman
dfb299531d core-functions.sh: Create $WORKDIR before using it
This should never be an issue on a properly installed
system (assuming slackpkg is installed on the system),
but it doesn't hurt anything either to be safe.
2017-12-30 01:16:09 -06:00
Robby Workman
6b1ac9aa1b 2.82.3beta2 2017-11-08 22:04:42 -06:00
David Allen
c73041dff2 post-functions.sh: Fix vimdiff patch
** This was my mistake; my mail client munged the patch, so
   I had to apply it all by hand. The extra (old) line of
   'showmenu' options was what I'd copied to compare the
   new options, and I forgot to delete it when committing.
   Mea culpa.  --rworkman
2017-11-08 22:01:22 -06:00
Robby Workman
569b7a2548 Increment version to 2.82.3beta1 2017-11-07 18:47:30 -06:00
Robby Workman
942129a515 manpages-l10n: Move to files/ directory 2017-11-07 18:40:27 -06:00
David Allen
98c8ffda23 Allow using vimdiff to compare .new and original files
Signed-off-by: Robby Workman <rworkman@slackware.com>
2017-10-22 01:59:53 -05:00
Robby Workman
406e0e84f5 *: Initial commit of slackpkg (as of 2.82.2 release) 2017-10-22 01:59:41 -05:00