Mercurial > gub
changeset 5422:c2e391c0b5ed
Util-linux: new package.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Mon, 27 Jul 2009 12:13:53 +0200 |
parents | 82260ec25d20 |
children | 67c805b02d58 |
files | gub/specs/gub-utils.py gub/specs/util-linux.py |
diffstat | 2 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gub/specs/gub-utils.py Mon Jul 27 12:13:53 2009 +0200 @@ -0,0 +1,11 @@ +from gub import build + +class Gub_utils (build.SdkBuild): + source = 'url://host/gub-utils-1.0.tar.gz' + def install (self): + build.SdkBuild.install (self) + self.system ('mkdir -p %(srcdir)s/%(prefix_dir)s/bin') + self.dump ('''#! /bin/bash +echo gub-build +''', + '%(srcdir)s/%(prefix_dir)s/bin/hostname')
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gub/specs/util-linux.py Mon Jul 27 12:13:53 2009 +0200 @@ -0,0 +1,13 @@ +from gub import tools +import os +if 'BOOTSTRAP' in os.environ.keys (): from gub import target as tools + +class Util_linux__tools (tools.AutoBuild): + source = 'http://www.nl.kernel.org/pub/linux/utils/util-linux-ng/v2.16/util-linux-ng-2.16.tar.gz' + def _get_build_dependencies (self): + return ['libtool'] + def configure_command (self): + return (tools.AutoBuild.configure_command (self) + + ' --disable-tls' + + ' --disable-makeinstall-chown' + + ''' CFLAGS='-DLINE_MAX=1024' ''')