graft: a package management utility by Peter R. Samuel . Mirrored from http://peters.gormand.com.au/Home/tools/graft/ http://peters.gormand.com.au/Home/tools/graft/

Jeffrey H. Johnson a25f08bd93 Update README.md: Add links to mirror locations. 3 months ago
contrib a46d74dfdb Format code with black, gofmt, yapf, autopep8, isort, standardrb, standardjs, prettier and rubocop 3 months ago
doc a46d74dfdb Format code with black, gofmt, yapf, autopep8, isort, standardrb, standardjs, prettier and rubocop 3 months ago
.deepsource.toml 8e4d85a325 Update .deepsource.toml 3 months ago
.gitignore c3439ecc3e Initial commit 3 months ago
.whitesource 7b5b64a0ae Add .whitesource configuration file 3 months ago
CHANGES 7bcff018ef Commit graft-2.16 (2018/04/16 14:54:07) 3 months ago
COPYING 7bcff018ef Commit graft-2.16 (2018/04/16 14:54:07) 3 months ago
LICENSE c3439ecc3e Initial commit 3 months ago
Makefile.dist 7bcff018ef Commit graft-2.16 (2018/04/16 14:54:07) 3 months ago
README.md a25f08bd93 Update README.md: Add links to mirror locations. 3 months ago
THOUGHTS 7bcff018ef Commit graft-2.16 (2018/04/16 14:54:07) 3 months ago
control 7bcff018ef Commit graft-2.16 (2018/04/16 14:54:07) 3 months ago
graft.man 7bcff018ef Commit graft-2.16 (2018/04/16 14:54:07) 3 months ago
graft.pl 7bcff018ef Commit graft-2.16 (2018/04/16 14:54:07) 3 months ago
graft.spec.in 7bcff018ef Commit graft-2.16 (2018/04/16 14:54:07) 3 months ago

README.md

Graft

A package management utility


CodacyBadge DeepSourceA DeepSourceR


Introduction

Graft provides a mechanism for managing multiple packages under a single directory hierarchy.

It was inspired by both Depot (Carnegie Mellon University) and Stow (Bob Glickstein).

Installation

Module Dependencies

Graft has been written to ensure it uses Perl modules that are considered part of the core Perl distribution. However, it may be possible that you're using a home-grown installation of Perl, or some distribution that doesn't have the same Perl modules as the author's development environment.

If this is the case, you'll see compile failures for the following modules, if they are unavailable:

  • File::Basename
  • Getopt::Long

You will not be able to install graft until these modules are available.

You may also see run-time failures when using graft with .graft-config files, if the following modules are unavailable:

  • Compress::Raw::Zlib (used in install and delete modes)
  • File::Copy (only used in install mode)

If you don't have these modules and you do not intend to use .graft-config files, then you can continue to use graft without issue.

Prepare

  • make -f Makefile.dist

This generates a working copy of the Makefile for you to edit to suit your environment.

Edit Makefile appropriately.

You'll probably want to modify the following variables:

  • PACKAGEDIR = /usr/local/pkgs
  • TARGETDIR = /usr/local

The rest of the parameters are sensible defaults, but please change them to suit your needs. See the comments in the Makefile for directions or see the more detailed installation documentation in doc/graft.html.

Build

  • make

There should be no errors.

Install

  • make install

This installs the graft executable and its documentation into the $PACKAGEDIR/graft-2.16 directory which can then be grafted into your $TARGETDIR directory:

  • /usr/local/pkgs/graft-2.16/bin/graft graft-2.16

Or if you would prefer to create binary RPM or DEB files you can choose one of the following commands:

  • make rpm
  • make deb

Note that the installation directories for the RPM and DEB packages are hard-coded to:

  • /usr/bin
  • /usr/share/man
  • /usr/share/doc

Then use the appropriate rpm -[i|u] ... or dpkg install ... command to install the package onto your system(s).

  • Note that the RPM package build was tested on a Debian system, so its success on a true RPM based distro has not been verified.

Documentation

See the man page and the files ./doc/graft.{html,pdf,ps,txt} for expanded details on installation and usage.

Author

Thanks

  • Gordon Rowell
  • Charles Butcher
  • Charlie Brady
  • Robert Maldon
  • Matias Fonzo

Mirrors

Homepage