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.
The build expects the usual tools and libraries to be available from
/opt/tools:
ksh93curlorwgetgzipandgtarortargmakeormakegccor another C compiler- GNU Readline headers and library
- a terminal library such as
ncurses,curses,tinfo,tinfow, ortermcap
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.kshThe 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.
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 4If you are not sure, omit --jobs and use the default.
After installation:
/opt/tools/bin/rlwrap --versionThe installer also runs this smoke test at the end of a successful install.