Running it with no arguments will display a basic usage message.
The idea is to take advantage of the commonly used GNU autotools approach to building software, which results in many source tarballs containing a usable configure script, which generates a Makefile with standard well known targets.
So you can grab most free/open source tarballs (.tar, .tar.gz or .tar.bz2 archives are all suported) and run dpupmaker.sh against them, and the result will in many cases be a fully working dotpup that:
- Always installs under /usr/local
- Registers itself with the Pupget package manager
- Computes its own size during the build so that size information is added to /root/.packages/alienpackages.txt
- Accepts optional parameters for the info string to register with PupGet, and the group or category of software to register as.
- Has a corresponding "source dotpup" (new in 1.6)
BTW: One way to generate lots of dotpups at about one per minute is:
Code: Select all
./dpupmaker.sh bison-2.1.tar.gz "The GNU Project parser generator - a yacc replacement"
./dpupmaker.sh coreutils-5.93.tar.gz "Core GNU text, find and shell manipulation tools"
./dpupmaker.sh diffutils-2.8.tar.gz "GNU diff, diff3, sdiff, and cmp utilities"
./dpupmaker.sh flex-2.5.31.tar.gz "GNU Fast Lexical Analyzer Generator"
./dpupmaker.sh gnuchess-5.07.tar.gz "A computer program which plays the Game of Chess"
./dpupmaker.sh joe-3.3.tar.gz "Joe's Own Editor, A Free ASCII-Text Screen Editor"
./dpupmaker.sh less-394.tar.gz "A terminal based program for viewing text files"
./dpupmaker.sh nano-1.2.5.tar.gz "An enhanced clone of the Pico text editor"
./dpupmaker.sh ruby-1.8.4.tar.gz "Ruby, an object-oriented language for quick and easy programming"
The usage info it displays when run with no parameters is currently:
Code: Select all
dpupmaker.sh version 1.6
dpupmaker.sh: Usage is dpupmaker.sh TARBALLFILE [ INFO [ PUPGETINFO [CONFIGOPTS ] ] ]
Where TARBALLFILE is the path to a source tarball such as joe-3.3.tar.gz
INFO is a short optional description of the software
PUPGETINFO is the group of the software, default is CONSAPPS
CONFIGOPTS is a string containing options to the configure,
default is --prefix=/usr/local
04 March 2006 -- updated to v1.9