There is a section of wsapi-install-1.2 with the parameters that
control the installer:

-------
# Installer parameters

LUA_VERSION=5.1.4
PACKAGE=WSAPI
PACKAGE_OPT=wsapi
PACKAGE_ROCK=wsapi-xavante
INSTALLER_VERSION=0.6
PACKAGE_VERSION=1.2
LUAROCKS_REPO=http://luarocks.org/repositories/rocks
LUAROCKS_URL=http://www.luarocks.org/releases/luarocks-2.0.1.tar.gz
LUAROCKS_VERSION=2.0.1
-------

To install something else change PACKAGE to the full name of the
package, PACKAGE_OPT to the name of the --with-foo option that lets
the user override the version (or skip installation of the package),
PACKAGE_ROCK to the name of the rock, and PACKAGE_VERSION to the
version. Also change LUAROCKS_REPO if you want to use another
repository (the installer uses --from, so will pull packages from
other repositories if the one you specified does not have them).

If there is a LuaRocks update change LUAROCKS_URL and
LUAROCKS_VERSION. Changing Lua version is much more involved, so I
won't go into that.

Now to make the tarball, put the installer script in an empty folder and run:

bash ./your-install-script --prefix=/tmp/anything --bootstrap

After it finishes you will have lua-5.1.4.tar.gz,
luarocks-2.0.1.tar.gz, and a rocks folder with .src.rocks for all the
rocks that the installer installs.

I have not written the script to make the tarball into a
self-contained installation script yet (like the old kaio-installer
script), but with the tarball you are already able to do offline
installation.

Right now you also need to have a single rock that pulls all the rocks
you want as a dependency.

--
Fabio Mascarenhas


On Tue, Oct 27, 2009 at 10:27 PM, Yuri Takhteyev <[email protected]> wrote:
>> Yuri, I think you will be happy to know that wsapi-install is
>> parametrized so its trivial to change the repository it feches from
>> and the rock that it installs. I also added an option that makes the
>> generation of all-in-one tarballs for the installer much more
>> automated.
>
> I am in fact very happy to know this. Can you provide more details on
> how to generate all-in-one tarballs?
>
> Also, is there any hope for an automated generate of Windows-friendly
> all-in-one installers?
>
>  - yuri
>

_______________________________________________
Kepler-Project mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to