# HG changeset patch # User Christophe Lincoln # Date 1197982816 -3600 # Node ID 3169dbe810b01192cbedad3c40096fea53bc938e # Parent 5f85fb04f6b86ff8a32dc31f847d6e93f2034db1 Add : gettex, grub, mercurial + stuff diff -r 5f85fb04f6b8 -r 3169dbe810b0 gettext/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gettext/receipt Tue Dec 18 14:00:16 2007 +0100 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="gettext" +VERSION="0.16.1" +CATEGORY="extra" +SHORT_DESC="Utilities for the GNU Translation Project." +MAINTAINER="pankso@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.gnu.org/software/gettext/" +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr --infodir=/usr/share/info \ + --mandir=/usr/share/man $CONFIGURE_ARGS + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/locale + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib $fs/usr + cp -a $_pkg/usr/include $fs/usr + strip -s $fs/usr/bin/* 2>/dev/null + strip -s $fs/usr/lib/*.so* + cp -a $_pkg/usr/share/aclocal $fs/usr/share + cp -a $_pkg/usr/share/gettext $fs/usr/share + cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale +} diff -r 5f85fb04f6b8 -r 3169dbe810b0 gnupg/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gnupg/receipt Tue Dec 18 14:00:16 2007 +0100 @@ -0,0 +1,36 @@ +# SliTaz package receipt. + +PACKAGE="gnupg" +VERSION="1.4.7" +CATEGORY="extra" +SHORT_DESC="Free implementation of the OpenPGP." +MAINTAINER="pankso@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://www.gnupg.org/" +WGET_URL="ftp://ftp.gnupg.org/gcrypt/gnupg/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr --libexecdir=/usr/lib \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man $CONFIGURE_ARGS + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/locale + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib $fs/usr + cp -a $_pkg/usr/share/gnupg $fs/usr/share + cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale + + # Strip and chmod for gnup-zip. + strip -s $fs/usr/bin/* 2>/dev/null + chmod 755 $fs/usr/bin/* +} + diff -r 5f85fb04f6b8 -r 3169dbe810b0 grub/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/grub/receipt Tue Dec 18 14:00:16 2007 +0100 @@ -0,0 +1,40 @@ +# SliTaz package receipt. + +PACKAGE="grub" +VERSION="0.97" +CATEGORY="base-apps" +SHORT_DESC="GRUB boot loader." +MAINTAINER="pankso@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.gnu.org/software/grub/" +WGET_URL="ftp://alpha.gnu.org/gnu/grub/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr --infodir=/usr/share/info \ + --mandir=/usr/share/man $CONFIGURE_ARGS + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/boot/grub $fs/usr + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/sbin $fs/usr + cp -a $_pkg/usr/lib $fs/usr + + # Permissions + chmod 755 $fs/usr/sbin/grub-* + chmod 655 $fs/usr/lib/grub/i386-pc/* + + # Strip. + strip -s $fs/usr/bin/* + strip -s $fs/usr/sbin/grub + # Example config file (menu.lst). + cp stuff/example-menu.lst $fs/boot/grub +} + diff -r 5f85fb04f6b8 -r 3169dbe810b0 grub/stuff/example-menu.lst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/grub/stuff/example-menu.lst Tue Dec 18 14:00:16 2007 +0100 @@ -0,0 +1,37 @@ +# /boot/grub/menu.lst: GRUB boot loader configuration. +# + +# By default, boot the first entry. +default 0 + +# Boot automatically after 20 secs. +timeout 20 + +# Change the colors. +color yellow/brown light-green/black + +# For booting SliTaz from a cdrom (LiveCD). +# +#title SliTaz GNU/Linux (Cooking) (Kernel 2.6.22.9) +#kernel /boot/bzImage root=/dev/null vga=771 +#initrd /boot/rootfs.gz + +# For booting SliTaz from hda1. +# +#title SliTaz GNU/Linux (Cooking) (Kernel 2.6.22.9) +#root (hd0,0) +#kernel /boot/vmlinuz-2.6.20-slitaz root=/dev/hda1 + +# For booting FreeBSD +# +#title FreeBSD +#root (hd0,2,a) +#kernel /boot/loader + +# For booting Windows +# +#title Windows NT / Windows 95 / XP +#rootnoverify (hd0,0) +#makeactive +#chainloader +1 + diff -r 5f85fb04f6b8 -r 3169dbe810b0 mercurial/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mercurial/receipt Tue Dec 18 14:00:16 2007 +0100 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="mercurial" +VERSION="0.9.5" +CATEGORY="extra" +SHORT_DESC="Revision tools system." +MAINTAINER="pankso@slitaz.org" +DEPENDS="python patch openssl" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.selenic.com/mercurial/wiki/" +WGET_URL="http://www.selenic.com/mercurial/release/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + make install PREFIX=$PWD/_pkg/usr +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/examples/mercurial + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib $fs/usr + + # Examples + cp -a $src/hgweb.cgi $fs/usr/share/examples/mercurial + cp -a stuff/hgwebdir.cgi $fs/usr/share/examples/mercurial + cp -a stuff/lighttpd-hg-vhost.conf $fs/usr/share/examples/mercurial + + # Config file for hgweb + mkdir -p $fs/etc/mercurial + cp -a stuff/hgweb.config $fs/etc/mercurial + + chown -R root.root $fs +} diff -r 5f85fb04f6b8 -r 3169dbe810b0 mercurial/stuff/hgweb.config --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mercurial/stuff/hgweb.config Tue Dec 18 14:00:16 2007 +0100 @@ -0,0 +1,12 @@ +# /etc/mercurial/hgweb.config - System-wide mercurial configuration file +# + +#[collections] +#/prefix/to/strip/off = /root/of/tree/full/of/repos + +#[paths] +#virtual/path = /real/path + +#[web] +#style = gitweb +#allow_archive = gz bz2 diff -r 5f85fb04f6b8 -r 3169dbe810b0 mercurial/stuff/hgwebdir.cgi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mercurial/stuff/hgwebdir.cgi Tue Dec 18 14:00:16 2007 +0100 @@ -0,0 +1,50 @@ +#!/usr/bin/env python +# +# An example CGI script to export multiple hgweb repos, edit as necessary + +# adjust python path if not a system-wide install: +#import sys +#sys.path.insert(0, "/path/to/python/lib") + +# enable importing on demand to reduce startup time +from mercurial import demandimport; demandimport.enable() + +# send python tracebacks to the browser if an error occurs: +import cgitb +cgitb.enable() + +# If you'd like to serve pages with UTF-8 instead of your default +# locale charset, you can do so by uncommenting the following lines. +# Note that this will cause your .hgrc files to be interpreted in +# UTF-8 and all your repo files to be displayed using UTF-8. +# +#import os +#os.environ["HGENCODING"] = "UTF-8" + +from mercurial.hgweb.hgwebdir_mod import hgwebdir +from mercurial.hgweb.request import wsgiapplication +import mercurial.hgweb.wsgicgi as wsgicgi + +# The config file looks like this. You can have paths to individual +# repos, collections of repos in a directory tree, or both. +# +# [paths] +# virtual/path = /real/path +# virtual/path = /real/path +# +# [collections] +# /prefix/to/strip/off = /root/of/tree/full/of/repos +# +# collections example: say directory tree /foo contains repos /foo/bar, +# /foo/quux/baz. Give this config section: +# [collections] +# /foo = /foo +# Then repos will list as bar and quux/baz. +# +# Alternatively you can pass a list of ('virtual/path', '/real/path') tuples +# or use a dictionary with entries like 'virtual/path': '/real/path' + +def make_web_app(): + return hgwebdir("/etc/mercurial/hgweb.config") + +wsgicgi.launch(wsgiapplication(make_web_app)) diff -r 5f85fb04f6b8 -r 3169dbe810b0 mercurial/stuff/lighttpd-hg-vhost.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mercurial/stuff/lighttpd-hg-vhost.conf Tue Dec 18 14:00:16 2007 +0100 @@ -0,0 +1,10 @@ + +# Mercurial (hg) +# +$HTTP["host"] =~ "hg$" { +cgi.assign = ( + ".cgi" => "/usr/bin/python" + ) + server.document-root = "/home/hg/share/" + url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" ) +}