Skip to content

rizitis/captain-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Captain-Slack (cptn)

Captain-Slack

We're living the future so the present is our past.


Install

  • required:yq, chafa and jq, from SBo
  • DO NOT Download source.tar.gz from release it will not work. Please Download zip file from latest branch.
  • Unzip zip file and change in folder.
  • As root run bash cptn.SlackBuild
  • Finally upgradepkg --install-new /tmp/cptn*.tlz

Alternative method (unstable):

  1. git clone https://github.com/rizitis/captain-slack.git
  2. cd captain-slack && sudo bash cptn.SlackBuild
  3. sudo upgradepkg --install-new /tmp/cptn*.tlz
  4. sudo rm /tmp/cptn*.tlz

NOTE: main README.md as main branch it self, is the develop branch.
Some informations or commands may not exist yet for latest cptn release zip files.
Please read release version branch README.md for valid infos.


Uninstall

As root removepkg cptn


Usage:

If you install Captain-Slack the first thing you must do is create data-base for packages and libraries:

create db

  1. cptn make-db -a (as root) Will create a full database of all installed packages and libraries (need some time...)
  2. cptn make-db -p (as root) The same but only for packages
  3. cptn make-db -l (as root) The same but only for libraries and their deps...

For print informations about your current system use:

print infos

  1. cptn info <package-name> Will print info for the package
  2. cptn info <package-name> the same if its a library (the .so extension not needed)
  3. cptn open-libs or cptn open-pkgs Defauld text editor will open the yaml file for installed libraries or packages (only for read)
  4. cptn open-logs Default file manager will open /var/log/captain-slack folder for read files.
  5. cptn clear-logs Delete all *.log files from /var/log/captain-slack folder.

To print informations about running services or status of a services or restart a service:

services

  1. cptn serv-status <rc.service-name> (as root) Will print service status info
  2. cptn restart-serv (as root) Will print all rc.services and ask user to chose which need restart
  3. cptn show-servs (as root) Will export in terminal all services and their status.

To find and use fast mirrors as for your location from mirrorlist:

mirrors and weather forcast

  1. cptn mirrors (as root) Will check all active slackware mirrorlist servers and print top 5 (default) faster for your location.
    • cptn mirrors -1 Using flag -1 will print only the faster
    • cptn mirrors -[1..9] Valid flags numbers are from 1 to 9. (if not -N flag set, then default is top 5 mirrors)
  2. cptn weather Will print in terminal next days weather forcast for you :D (assume you are not under vpn)

Videos:

asciicast

asciicast

ScreenShots

info

weather

Examples.yaml

  1. libraries
  2. packages
  3. executable_dependencies

TODO

  • cptn make coffee
  • fix bugs

LATEST NEWS

If you build using AthOS (athos) build system, cptn info cmd will print dependencies informations also: AthOS

update:
After conraid suggestions I made some changes. Now cptn info command will read also his build as we both storing a slack-required file in /usr/doc/$PRGNAM-$VERSION/ folder and things are more easy and more proper discribed ;)
If you also have local builds is a good choice to include a slack-required file in the same folder.

  • slack-required format is:
foo
foo1
foo-do
etc...

For your SlackBuilds from SBo-ponce you must add this line in SlackBuild: grep "^REQUIRES=" $CWD/$PRGNAM.info | sed 's/^REQUIRES="//;s/"$//' | tr ' ' '\n' > "$PKG"/usr/doc/"$PRGNAM-$VERSION"/slack-required

If you are in Slackware-current and using slpkg you can use my fork of ponce repo. This fork has all SlackBuild patched for slack-required and more... But you use it at your own risk.

This is the edit in all SlackBuilds:

cd $PKG
if [ -f $CWD/slack-required ]; then cat $CWD/slack-required > $PKG/install/slack-required; fi
if [ -f $CWD/slack-required ]; then cat $CWD/slack-required > $PKG/usr/doc/$PRGNAM-$VERSION/slack-required; fi
if [ -f $CWD/dependees-on ]; then cat $CWD/dependees-on > $PKG/usr/doc/$PRGNAM-$VERSION/dependees-on; fi
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
if [ -f $CWD/slack-required ]; then cp $CWD/slack-required  $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.dep; fi

READ disclaimer first! Original SlackBuilds Maintainers or SlackBuilds.org or Ponce has no responsibility about this fork!