Initial import of pkgfs, aka package from sources.

It's a simple wrapper to shell scripts to allow building source
distribution files through an easy cli. For now it's only able
to fetch/build/install a package into a destination directory.

Goal is to be able to have same functionality like GNU's stow.

I added three template files to allow building: glib2, gmake
and libtool.

--HG--
extra : convert_revision : 5e52738f97edc0ff4a9e5de48a75834bf0916651
Fix PKGFS_CXXFLAGS in configuration file.

--HG--
extra : convert_revision : b43b68397c17b1c97e0ce24aaa9d4d41122cd14f
Some fixes missed in the import.

Fix _MKDIR_CMD... wrong var.
Check var's value before exporting it.

--HG--
extra : convert_revision : cec5c47afaa94daa7f2f3d2b9ebe4d37b1bd46a8
Remove the list target... it's not very useful.

Also use my copyright for this file.

--HG--
extra : convert_revision : 75a3b2fc4aa7785437e4f3de53b23dd64683d990
Don't hardcode commands and don't require the global configuration
file to use the info target.

--HG--
extra : convert_revision : 26794799a354baebac87c41c54662ae28a7becda
Remove the .pkgfs suffix from templates and just use .tmpl.

--HG--
extra : convert_revision : 25f083cc51d50fa59d2d0e9d408f6a992aa8e260
Use a minimal PATH when building packages, and restore it afterwards.

Add a pkg-config-0.23 template.

--HG--
extra : convert_revision : c2788d660db625a50bb0b177633600aa4d076dda
Bah, use the correct variable for PATH and fix previous.

--HG--
extra : convert_revision : 7d6324e3bff7dbd8fd898ae6b145e343afca9f84
Some changes I have done for the past hour.

Added some flags:
	-C	To clean the builddir after package is built.
	-b	Only build the package.

Cleaned up variable naming conventions and multiple bugfixes,
among others now the required vars in tmpl files are properly
checked.

--HG--
extra : convert_revision : f0cb010b7308756cd562871b26f2b399d8d85a29
Introduce PKGFS_MASTERDIR.

It is used as master directory on where all symlinks will be created
pointing at packages installed on PKGFS_DESTDIR. Not used yet, but
will be soon.

--HG--
extra : convert_revision : c45fa6512917016c04f83ca44e0c2b74b0b48915
Simplify check_build_dirs and rename it to check_build_vars.

--HG--
extra : convert_revision : aa5bb29fb0c8aeb27495e07224be484dbddce971
Add a patch for libtool-2.2.6a that allows building/installing
latest glib successfully.

--HG--
extra : convert_revision : 9e2e6a342ce833c45902e0bb2e6173a8633351f2
Rename glib template to something more correct, while I'm here
add a patch from pkgsrc to make it build.

--HG--
extra : convert_revision : b90f70cc5983c63bb79a586a773260b27650fc51
Add PKGFS_TEMPLATESDIR and PKGFS_XSTOW_CMD.

PKGFS_TEMPLATESDIR specifies where the templates and patches are stored.
PKGFS_XSTOW_CMD specifies the path to the xstow binary, used by pkgfs.

--HG--
extra : convert_revision : e095bef85ffe102484737fa79f704db7c30c891d
Major patch for pkgfs.sh. Adds new functionality as well as bugfixes.

* The stow/unstow targets are now working properly, when a package is built
  and installed, it will be stowned if the steps were succesful.
* The unstow target allows to remove the symlinks from the master directory.
* When a new package is installed and the xstow binary specified in the config
  file is not found, the xstow package will be installed and self stowned.

glib can be installed and stowned properly into the master dir, after fixing
libtool.

--HG--
extra : convert_revision : 7f4012adfb2cdcc926c3e126b1d82d0bb7f9a46a
Add expat-2.0.1 and perl-5.10.0 templates.

These can be installed and are working properly.

--HG--
extra : convert_revision : 5259ade144c963e0e1577b38ac362f8826bd273f
Don't stow twice the origin package after xstow has been installed and stowned.

Also use a template for xstow to avoid hardcoding the vars into the script,
as bonus don't allow to unstow 'xstow' once is stowned... heh.

--HG--
extra : convert_revision : 94b5676b13ed79d54f1968120ddb50a20429bca9
Set LDFLAGS with correct compile and run time paths before building.

Use local variables where possible.

--HG--
extra : convert_revision : 39a0153d9f11cd1889c1dfbba015a71e344352d0
Added irssi-0.8.12 template... working without problems.

--HG--
extra : convert_revision : fd77e1387fc50d5759124edd6416f4cdb0df2f37
Pass some args to irssi's configure script, from pkgsrc.

--HG--
extra : convert_revision : 432e7e6892bf77a6832d18f7da8d7f67c588619a