Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

sm-rlwrap

What this is

This repository contains a small SmartOS installer for building rlwrap from the upstream release tarball and installing it under /opt/tools.

The upstream source is hanslub42/rlwrap.

The script is intended for a SmartOS global zone where the normal pkgsrc tools also live under /opt/tools.

Requirements

The build expects the usual tools and libraries to be available from /opt/tools:

  • ksh93
  • curl or wget
  • gzip and gtar or tar
  • gmake or make
  • gcc or another C compiler
  • GNU Readline headers and library
  • a terminal library such as ncurses, curses, tinfo, tinfow, or termcap

Quick start

On the SmartOS host, clone scsets/sm-rlwrap and run the installer:

cd /opt/tmp
git clone https://github.com/scsets/sm-rlwrap.git
cd sm-rlwrap
./install-rlwrap-smartos.ksh --dry-run
./install-rlwrap-smartos.ksh

The checkout can be in any writable directory. /opt/tmp is only a convenient temporary location on the SmartOS host.

The dry run prints the commands the installer would run. The second command does the real build and install.

Faster build

By default the script builds with one make job. On a multi-core machine, use --jobs to let make compile more than one file at a time:

./install-rlwrap-smartos.ksh --jobs 4

If you are not sure, omit --jobs and use the default.

Verify

After installation:

/opt/tools/bin/rlwrap --version

The installer also runs this smoke test at the end of a successful install.

About

SmartOS rlwrap installer for /opt/tools global-zone systems

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages