Commit graph

156539 commits

Author SHA1 Message Date
Juan RP
183ba0cfea Show the list of dependencies required for a package to be built
in the "list" target.

--HG--
extra : convert_revision : e49a14940a078c994703d7ef678cc7e808b9d192
2008-09-30 04:28:05 +02:00
Juan RP
09dccc8719 Use "-P 512" when creating the deps.db files, so that they are smaller.
--HG--
extra : convert_revision : c33b4876293c47b96385caa71ad57aeda03d22e0
2008-09-30 04:14:35 +02:00
Juan RP
9a7303df8a Add latest libX11 template and its required dependencies.
While here, I compared install time in pkgfs vs pkgsrc on libX11,
and pkgfs built the package 12 seconds faster.

--HG--
extra : convert_revision : 7804a092c5d3ba879d9e869769ad912ddeb6743c
2008-09-30 04:02:44 +02:00
Juan RP
8adcb3fdb9 Add python-2.5.2 template. Also allow to templates to setting LDFLAGS
if they need, as python needed to make shared modules resolve rpath.

--HG--
extra : convert_revision : 4afad8b2d37d8a644a3d77e5c0f8212c0cf1d33e
2008-09-30 02:56:49 +02:00
Juan RP
7ea1076ab3 Do not require on install/remove commands to specify path to templates
directory, or full name to template files. Now you do:

$ pkgfs.sh install perl-5.10.0

Removed the item from TODO, which was suggested by milosn@freenode.

--HG--
extra : convert_revision : 55e41b27a940ed7d67ade5c185cbbfeb4d82c20a
2008-09-30 01:59:51 +02:00
Juan RP
37210e2d84 Add "list" targets, that prints pkg installed + short_desc.
--HG--
extra : convert_revision : dbce561949960303fea46d66b9920eff7e2dd244
2008-09-30 00:45:25 +02:00
Juan RP
71c3216f7a Add GNU Midnight Commander 4.6.1, as suggested by morr@.
--HG--
extra : convert_revision : 5581dec4dc1ce2de675484a010f1ae8cb343cc62
2008-09-30 00:01:24 +02:00
Juan RP
1e493264a3 build_tmpl_sources(): print $destdir/$pkgname, it's more correct.
--HG--
extra : convert_revision : 2cde88161d7ecf19ce20473a042d104224d90212
2008-09-30 00:00:37 +02:00
Juan RP
544f92e5b8 If $checksum is not set in template, exit. As found by morr@.
--HG--
extra : convert_revision : 00c146d64a7888c0a647a04ef010f0a65dc1b9eb
2008-09-29 22:51:08 +02:00
Juan RP
49dff5c7ca Add pcre-7.8 template and make glib use the installed pcre, rather
than use the included one.

While here, fix a bug in dependency handling when A package depends
B and B depends on C, C was installed two times because it was in
the dependency chain two times.

--HG--
extra : convert_revision : 379e161560cebd650a4f7e9d0f1b99f504317bbe
2008-09-29 22:32:08 +02:00
Juan RP
bc450e9c6c Repeat after me: DO NOT ADD A SLASH AT THE END OF $url.
--HG--
extra : convert_revision : 1ab5266709ca4aab268e120ed1cc07f28e57cd63
2008-09-29 22:27:37 +02:00
Juan RP
4d78af885b Add a small "HOW TO USE IT" section.
--HG--
extra : convert_revision : 41434cf75c4422e695ed15c8ede45c6e1c0ab880
2008-09-29 20:05:13 +02:00
Juan RP
a9fae81030 Add a README file to test if pushing changes via ssh works, heh.
--HG--
extra : convert_revision : eb6d2557d5fe1ce2360f48747298a280c7631467
2008-09-29 19:25:56 +02:00
Juan RP
01647d6e62 Add perl dependency to glib, required by glib-mkmenus.
--HG--
extra : convert_revision : de1b20ca5001a91b58a37c39930bcf02dbe15bec
2008-09-29 18:34:28 +02:00
Juan RP
06ed761de0 Add the example template file that contains all variables that can be
used in templates.

Remove all comments from the other templates, if you want to know what
are their meaning, look at the example template.

--HG--
extra : convert_revision : 348bbf4b780be0eba186ba2062cecf05cbbf8a69
2008-09-29 17:59:48 +02:00
Juan RP
7abe1ad2af Do not forget to check_tmpl_vars() the origin template.
--HG--
extra : convert_revision : d0b21eb461abcc0c1458840707109ccc0e66748c
2008-09-29 17:23:23 +02:00
Juan RP
4fa5372b9a Do not a slash at $url... found by morr@freenode.
--HG--
extra : convert_revision : 4dd799668e5d0b687b40dca681f0cedc603bf66b
2008-09-29 17:08:38 +02:00
Juan RP
cf8ed535b6 Basic dependency support for pkgfs.
The code looks at db(1) btree files stored in PKGFS_DEPSDIR to know
what dependencies are required for X package, and walks the dependency
chain every time that X package contains a deps .db file.

Every time a package is stowned, the pkg is registered into
PKGFS_DESTDIR/.pkgfs-registered-pkgs.db, and removed when it's unstowned.

--HG--
extra : convert_revision : b5222a890dd41b96dc72ee3e90bb72a282fe0841
2008-09-29 17:01:12 +02:00
Juan RP
c2ea47d2c1 Added remove target: unstows and removes the package from destdir.
Misc cleanups to prettify error, info or normal messages.

--HG--
extra : convert_revision : 0c2efb426e2e8299de2f6f5e1174f9aec0972116
2008-09-28 11:41:26 +02:00
Juan RP
371f746473 Pass some args to irssi's configure script, from pkgsrc.
--HG--
extra : convert_revision : 432e7e6892bf77a6832d18f7da8d7f67c588619a
2008-09-28 10:46:15 +02:00
Juan RP
832f002570 Added irssi-0.8.12 template... working without problems.
--HG--
extra : convert_revision : fd77e1387fc50d5759124edd6416f4cdb0df2f37
2008-09-28 10:37:37 +02:00
Juan RP
df628fc68e Set LDFLAGS with correct compile and run time paths before building.
Use local variables where possible.

--HG--
extra : convert_revision : 39a0153d9f11cd1889c1dfbba015a71e344352d0
2008-09-28 10:36:43 +02:00
Juan RP
8a62250ba8 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
2008-09-28 09:57:30 +02:00
Juan RP
553eb8bc14 Add expat-2.0.1 and perl-5.10.0 templates.
These can be installed and are working properly.

--HG--
extra : convert_revision : 5259ade144c963e0e1577b38ac362f8826bd273f
2008-09-28 07:18:38 +02:00
Juan RP
8314e3b0b1 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
2008-09-28 07:12:07 +02:00
Juan RP
c77eee1ea6 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
2008-09-28 07:10:47 +02:00
Juan RP
3eb2bfea4a 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
2008-09-28 07:09:12 +02:00
Juan RP
75a8b0aa46 Add a patch for libtool-2.2.6a that allows building/installing
latest glib successfully.

--HG--
extra : convert_revision : 9e2e6a342ce833c45902e0bb2e6173a8633351f2
2008-09-28 07:07:01 +02:00
Juan RP
6ff0c41308 Simplify check_build_dirs and rename it to check_build_vars.
--HG--
extra : convert_revision : aa5bb29fb0c8aeb27495e07224be484dbddce971
2008-09-27 18:20:46 +02:00
Juan RP
ccb854252d 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
2008-09-27 03:47:22 +02:00
Juan RP
3ec5d465e4 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
2008-09-27 03:17:12 +02:00
Juan RP
a8bb291a08 Bah, use the correct variable for PATH and fix previous.
--HG--
extra : convert_revision : 7d6324e3bff7dbd8fd898ae6b145e343afca9f84
2008-09-27 00:20:54 +02:00
Juan RP
e8944276b1 Use a minimal PATH when building packages, and restore it afterwards.
Add a pkg-config-0.23 template.

--HG--
extra : convert_revision : c2788d660db625a50bb0b177633600aa4d076dda
2008-09-27 00:19:02 +02:00
Juan RP
5b2e16e859 Remove the .pkgfs suffix from templates and just use .tmpl.
--HG--
extra : convert_revision : 25f083cc51d50fa59d2d0e9d408f6a992aa8e260
2008-09-26 23:43:20 +02:00
Juan RP
e36d3e4e5e Don't hardcode commands and don't require the global configuration
file to use the info target.

--HG--
extra : convert_revision : 26794799a354baebac87c41c54662ae28a7becda
2008-09-26 23:39:29 +02:00
Juan RP
084d6664b2 Remove the list target... it's not very useful.
Also use my copyright for this file.

--HG--
extra : convert_revision : 75a3b2fc4aa7785437e4f3de53b23dd64683d990
2008-09-26 23:23:41 +02:00
Juan RP
d2d10e9ecd Some fixes missed in the import.
Fix _MKDIR_CMD... wrong var.
Check var's value before exporting it.

--HG--
extra : convert_revision : cec5c47afaa94daa7f2f3d2b9ebe4d37b1bd46a8
2008-09-26 22:30:14 +02:00
Juan RP
df02cbad60 Fix PKGFS_CXXFLAGS in configuration file.
--HG--
extra : convert_revision : b43b68397c17b1c97e0ce24aaa9d4d41122cd14f
2008-09-26 22:29:43 +02:00
Juan RP
535b7b6a31 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
2008-09-26 21:59:07 +02:00