Commit graph

54 commits

Author SHA1 Message Date
Juan RP
b0089e7284 binpkg: replace invalid chars in $maintainer.
--HG--
extra : convert_revision : 31669a428ad626a7c97d533d057ca0be1d265c31
2008-12-19 03:24:49 +01:00
Juan RP
071a1148c5 Fix another stupid error in genindex.
--HG--
extra : convert_revision : 18b91a31fc42ec374a5f51d4c32fcc85d1615738
2008-12-19 03:06:43 +01:00
Juan RP
931731bb2c binpkg.sh: fix some typos that really fucked me!
--HG--
extra : convert_revision : ffceafd696ab31e057ebfcab1e565132dd69aae9
2008-12-19 03:01:11 +01:00
Juan RP
a17ba41e17 binpkg-genindex.sh: be sure there are binpkgs before starting.
--HG--
extra : convert_revision : 451c8924fdd71dfc020cf5a4f068d564b66de981
2008-12-18 11:40:56 +01:00
Juan RP
f19afb5fe0 chroot.sh: improve error messages.
--HG--
extra : convert_revision : a0d0b166ca331bd8af9cdf1c54459b09156ab978
2008-12-18 11:40:43 +01:00
Juan RP
d9fb96533f Rename xbps.sh to xbps-src.sh.
In preparation for the utility that will handle binary packages.

--HG--
extra : convert_revision : c67f42bccad28f1b5313ae0e1739979a477fd2f1
2008-12-18 11:07:33 +01:00
Juan RP
ff4f1346c2 stow_funcs.sh: don't error with metapkgs while removing.
--HG--
extra : convert_revision : 04d1f2fe6e9bc962f62b93f9b4bd6d566c759e07
2008-12-18 09:50:19 +01:00
Juan RP
6626a77bd7 Use -w rather than -O for write permission.
--HG--
extra : convert_revision : 20cbb0fff9d9e2fb21a174c606db84bfc9ffba76
2008-12-18 08:17:46 +01:00
Juan RP
75acc69282 xbps.sh: added a new target 'genindex'.
This target will create a package index file with all metadata info,
for all binary packages available at XBPS_PACKAGESDIR.

--HG--
extra : convert_revision : 02ab69209e5096f060969ef803aa1cc74fe8a843
2008-12-18 07:32:42 +01:00
Juan RP
8a35ef0945 binpkg.sh: add $pkgname/$version in metadata plist.
--HG--
extra : convert_revision : 8d3926972b082b28f16ef20afe4a76ab01bebc0a
2008-12-18 07:14:01 +01:00
Juan RP
6f8456d9f1 binpkg.sh: use xbps as extension and add hw machine.
Packages are now named like: foo-2.0.x86_64.xbps
so that they don't have any common extension that could lead
to confusion for installing.

These packages shouldn't be installed directly with tar(1).

--HG--
extra : convert_revision : ee3efd57adbba6aa025a2a4e76002c784510f810
2008-12-18 02:11:12 +01:00
Juan RP
d222a32dc0 tmpl_vars.sh: added $UBUNTU_SITE.
--HG--
extra : convert_revision : cf7ecd7a07deae82c3907bec9b798990eaed9692
2008-12-17 19:12:31 +01:00
Juan RP
d9c6363159 chroot.sh: fix created dirs again.
--HG--
extra : convert_revision : cc507288837d8b12015e17f570fe4b5e0616ce65
2008-12-17 10:10:13 +01:00
Juan RP
7e4a61c822 extract_func.sh: don't check perms in chroot.
--HG--
extra : convert_revision : 555418e9a3c1097bcfd78c355f86b1b344d10689
2008-12-17 08:40:39 +01:00
Juan RP
ef2601f4eb Add pkg metadata into /var/cache/xbps/metadata and not /xbps-metadata.
With this change it's possible to use a binary package just by unpacking
it into the destination directory.

--HG--
extra : convert_revision : 5f025a5e5d7593555fa55d08d5652c26736a139e
2008-12-17 08:27:28 +01:00
Juan RP
d586935a1a chroot.sh: fix created dirs in /usr.
--HG--
extra : convert_revision : 4ef49617035c60aedb4f2834de0d20de6a8d6e7b
2008-12-17 00:30:46 +01:00
Juan RP
dcd43cbe50 extract_funcs.sh: return if XBPS_BUILDDIR not writable.
--HG--
extra : convert_revision : 1aa11d2c19f7678ab3d668ce6afcc1abd8553f23
2008-12-16 23:44:35 +01:00
Juan RP
dc5030514b chroot.sh: create users group with GID 1000.
--HG--
extra : convert_revision : 6e0323ab1b32393a84d724242bf11a6f20b14272
2008-12-16 22:39:41 +01:00
Juan RP
9bd1471410 patch_funcs.sh: return immediately if no patches.
--HG--
extra : convert_revision : 2c87a0d74bc7a8f340213627b0b80374eb75cd44
2008-12-16 18:59:36 +01:00
Juan RP
710a7b8509 Move pkg metadata to /var/cache/xbps/$pkgname.
--HG--
extra : convert_revision : 70e1199e8f7e577e0c8fc20bb8643fe6fca31bc7
2008-12-16 10:22:24 +01:00
Juan RP
c464f084ed chroot.sh: add some missing files in /var/log.
--HG--
extra : convert_revision : 77cc4113c23fe9b00516261e12c0ae002e4831a4
2008-12-16 05:07:14 +01:00
Juan RP
32945c2e2f chroot.sh: create from scratch required files.
--HG--
extra : convert_revision : af01f1a7fcad7dd961334542b551a2dc390615a0
2008-12-16 04:53:03 +01:00
Juan RP
0aea0a1bfb chroot.sh: create a FHS compliant dirtree.
--HG--
extra : convert_revision : 7bdad80324c9e6c770e2722735e42e53bb0898a4
2008-12-16 04:43:53 +01:00
Juan RP
175eefe18d extract_funs.sh: fix for multiple distfiles.
--HG--
extra : convert_revision : 25557c3b6fda8f26ec9ac152e07a60c3afe5a23e
2008-12-16 02:17:32 +01:00
Juan RP
d005331ecc extract_funcs.sh: also accept .gz/.bz2 distfiles.
--HG--
extra : convert_revision : 97f42f27316569b9ef463ac1108caec7ce186047
2008-12-16 00:04:23 +01:00
Juan RP
b19babeff4 build_funcs.sh: collapse two if conditions into one.
--HG--
extra : convert_revision : 85676631474dc08c573cdc500b8867dbc76e0d6d
2008-12-15 09:23:08 +01:00
Juan RP
93f485a4e9 Added tmpl_vars util. Common vars that can be used in templates.
--HG--
extra : convert_revision : 68393e79e5f25d622d9142bf73b09b24ced28733
2008-12-15 07:27:38 +01:00
Juan RP
944309d934 Apply patches to {custom,only}-install templates too.
--HG--
extra : convert_revision : 81eea0b86a2fe153db432ad13dd0fbd03f6f6fbf
2008-12-15 01:19:47 +01:00
Juan RP
5c2d362169 Fix previous, it's conf_files not config_files.
--HG--
extra : convert_revision : dc8d0e29104846c5ecc066fbb68668042f4e51b5
2008-12-14 01:54:18 +01:00
Juan RP
6c9ac2ea07 Added keep_dirs and conf_files vars for templates.
These will be written in pkg metadata props file as well. For now
they don't change any behaviour, will be used in binary packages.

Convert some pkgs to use them.

--HG--
extra : convert_revision : d04f681cf80dc97ceb9e50370d5a8c0d7b52687c
2008-12-14 01:48:36 +01:00
Juan RP
2c7b9e58f7 builddep: optimize even more printing of required deps.
--HG--
extra : convert_revision : d18f0609ab1b6cc11913577c55f0a43f7886f036
2008-12-14 01:34:31 +01:00
Juan RP
9436b962df Merge branch 'master' into full-binpkgs
--HG--
extra : convert_revision : 7b927e0360aab3a5e05bd6036de0083b8ba677db
2008-12-13 09:01:23 +01:00
Juan RP
a27cfbf3c8 builddeps: improve min req deps printing.
--HG--
extra : convert_revision : 123d65cc4348fba54e3236a2f9109f4c145c6389
2008-12-13 08:59:50 +01:00
Juan RP
a31a003a63 Create binpkgs for meta-template packages.
--HG--
extra : convert_revision : fdf26fe45ee1b5ecb2d32a7e72e2b83c8ee02f5a
2008-12-13 08:44:51 +01:00
Juan RP
e817d470ab Added a new conf option: XBPS_PACKAGESDIR.
This is to specify where to store the binary packages.

--HG--
extra : convert_revision : 16d810d058b78662a33d8492caf7981e0700808e
2008-12-13 07:04:53 +01:00
Juan RP
8df4138beb binpkg: use run_rootcmd() when building the tarball.
--HG--
extra : convert_revision : c070ed6381fe27210fa7a3e39420f54ed6a19843
2008-12-13 06:11:56 +01:00
Juan RP
26f703e47f Split funcs from xbps.sh into its own files.
That way it's easier to work in certain parts and easier to
catch errors. There's a performance penalty, but this can be
fixed later.

--HG--
extra : convert_revision : c0b0e63c873bb4c078ce332dd5182a72d57c3969
2008-12-13 05:23:16 +01:00
Juan RP
23fa45a18b Reorganize the tree for easier and better handling.
- Template helpers have been moved to templates/helpers.
- Documentation to docs/.
- Common scripts have been moved to utils/sh.
- Fixed install-destdir when executed via chroot.
- Added a build-pkg target that builds a binary package.
  The package must be installed into destdir before using.
- Misc tweaks and fixes.

--HG--
extra : convert_revision : 0896e8f24bb7592116aaf77ae9c776033818a3d8
2008-12-13 03:01:24 +01:00
Juan RP
8373117030 Another checkpoint in progress for binpkgs.
--HG--
extra : convert_revision : 38f4a4106a2d61757e1feacaec5eaef01f812d59
2008-12-12 18:12:45 +01:00
Juan RP
cf2015f692 xbps-pkgdb: add function to internalize plist file.
--HG--
extra : convert_revision : 0a303377d6c17b80eb9ff36b0309247a624c3e3e
2008-10-30 08:47:00 +01:00
Juan RP
35df6d0c6e Rewrite xbps-pkgdb to use an array of dictionaries per pkg.
That way we can make it extensible in future changes.
Now it looks like this:

<key>packages_installed</key>
<array>
	<dict>
		<key>pkgname</key>
		<string>dash</string>
		<key>short_desc</key>
		<string>POSIX-compliant Unix shell ...</string>
		<key>version</key>
		<string>0.5.4</string>
	</dict>
	...
</array>

xbps list should be faster than before if a lot of packages
are installed.

--HG--
extra : convert_revision : 816e3e73a4fc72fd8e61f3825757d92ad9d5b511
2008-10-30 06:40:11 +01:00
Juan RP
c467d31a66 Simplify check_installed_pkg to avoid calling xbps-pkgdb unnecessarily.
--HG--
extra : convert_revision : 6e0f6f96a65b346e2e2e3c3253e5469d5eed8ede
2008-10-29 22:05:29 +01:00
Juan RP
de6947e0c9 Misc tweaks to messages in xbps-pkgdb.
--HG--
extra : convert_revision : 33bac6965b2efc2d212a95d15114661bd8170255
2008-10-29 20:20:22 +01:00
Juan RP
de67397983 xbps-digest: accept any number of arbitrary files in argv.
--HG--
extra : convert_revision : 42a96b8435a2508a06b48f327f25dc97e16db233
2008-10-29 18:42:23 +01:00
Juan RP
2cb592e66e Remove bash specific features to not depend on it.
--HG--
extra : convert_revision : 0ff8eac00a603d8aae549a8bfa568bb710e4b0bf
2008-10-29 18:33:55 +01:00
pancake
7d8701190d Fixes for cmpver..use strrchr and control last char
- should make util-linux work now

--HG--
extra : convert_revision : 3a02003c06ba3b84d2b8df6acef790765a7750f3
2008-10-29 17:51:29 +01:00
Juan RP
f043d3db38 Add clean_objs to all target.
--HG--
extra : convert_revision : 2e7e440048ad6a819fe40fb7fe11eba62a3b3405
2008-10-29 03:38:19 +01:00
Juan RP
5a0aac4fd2 Added some ANSI colors for messages, may be disabled.
With the -e flag those colors will be disabled. As bonus also
I removed blank lines in .xbps-filelist and other misc tweaks, fixes
I cannot remember now.

--HG--
extra : convert_revision : 5e481d0faa14518363eafc622633d645c335ed78
2008-10-29 03:20:14 +01:00
pancake
a4f4fde9cf Initial import of xbps-cmpver
--HG--
extra : convert_revision : 57260b5d7bfc45cb2e2c877fad2fdcae155c0a75
2008-10-28 16:51:58 +01:00
pancake
1732450967 Added wget package (dependency of xbps-base-chroot)
Make chroot copy etc/resolv.conf when entering
Added buggy gstreamer template (exposese some bugs of xbps.sh)
utils build now does not cleanups the dir after build

--HG--
extra : convert_revision : a36211b7dab8627f912f3b8f844d16bbcec0bc6e
2008-10-28 12:45:30 +01:00