This script provides a simple method for tracking software that you have built from source, or binaries that you want to repackage from another distribution. It also simplifies transferring the software to other machines for install or backup. It works as a nice secondary package management tool, without the need to work with complex, distro specific, build tools.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Version: 1.2 | |
# | |
# This script provides a method for tracking software installed from | |
# source. Run it as follows for more information: | |
# | |
# pkgtrack -h | |
# | |
# Copyright 2018 Ruari Odegaard, Oslo, Norway |
These scripts are for people who want an alternative to the official Slackware provided makepkg
.
Why would you want that?
- To be able to create Slackware packages with root-owned files, even when run as a regular user.
- To be able create Slackware packages on non-Slackware based systems without the need to port Pkgtools and its dependencies (e.g. tar-1.13). Some examples being:
- Projects (or proprietary software vendors) that want to be able to provide binary Slackware packages, where their build/packaging system is on another distro.
- People who want to pair a package creation script with spkg to use as a secondary package manger on a non-Slackware based distro. This gives the advantage of simple packaging scripts (.SlackBuilds) for additional, self-compiled software.
Two versions are provided:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
helptext() { | |
cat << HELP | |
Usage: $0 [option]... packagename | |
Options: | |
-h, --help (Show this help text) | |
-a, --archive (Create an archive, instead of install) |