wok-next rev 29

Add : gettex, grub, mercurial + stuff
author Christophe Lincoln <pankso@slitaz.org>
date Tue Dec 18 14:00:16 2007 +0100 (2007-12-18)
parents 5f85fb04f6b8
children ebc6b242794b
files gettext/receipt gnupg/receipt grub/receipt grub/stuff/example-menu.lst mercurial/receipt mercurial/stuff/hgweb.config mercurial/stuff/hgwebdir.cgi mercurial/stuff/lighttpd-hg-vhost.conf
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gettext/receipt	Tue Dec 18 14:00:16 2007 +0100
     1.3 @@ -0,0 +1,34 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="gettext"
     1.7 +VERSION="0.16.1"
     1.8 +CATEGORY="extra"
     1.9 +SHORT_DESC="Utilities for the GNU Translation Project."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://www.gnu.org/software/gettext/"
    1.13 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    1.14 +
    1.15 +# Rules to configure and make the package.
    1.16 +compile_rules()
    1.17 +{
    1.18 +	cd $src
    1.19 +	./configure --prefix=/usr --infodir=/usr/share/info \
    1.20 +	--mandir=/usr/share/man $CONFIGURE_ARGS
    1.21 +	make
    1.22 +	make DESTDIR=$PWD/_pkg install
    1.23 +}
    1.24 +
    1.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.26 +genpkg_rules()
    1.27 +{
    1.28 +	mkdir -p $fs/usr/share/locale
    1.29 +	cp -a $_pkg/usr/bin $fs/usr
    1.30 +	cp -a $_pkg/usr/lib $fs/usr
    1.31 +	cp -a $_pkg/usr/include $fs/usr
    1.32 +	strip -s $fs/usr/bin/* 2>/dev/null
    1.33 +	strip -s $fs/usr/lib/*.so*
    1.34 +	cp -a $_pkg/usr/share/aclocal $fs/usr/share
    1.35 +	cp -a $_pkg/usr/share/gettext $fs/usr/share
    1.36 +	cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
    1.37 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/gnupg/receipt	Tue Dec 18 14:00:16 2007 +0100
     2.3 @@ -0,0 +1,36 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="gnupg"
     2.7 +VERSION="1.4.7"
     2.8 +CATEGORY="extra"
     2.9 +SHORT_DESC="Free implementation of the OpenPGP."
    2.10 +MAINTAINER="pankso@slitaz.org"
    2.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.12 +WEB_SITE="http://www.gnupg.org/"
    2.13 +WGET_URL="ftp://ftp.gnupg.org/gcrypt/gnupg/$TARBALL"
    2.14 +
    2.15 +# Rules to configure and make the package.
    2.16 +compile_rules()
    2.17 +{
    2.18 +	cd $src
    2.19 +	./configure --prefix=/usr --libexecdir=/usr/lib \
    2.20 +	--infodir=/usr/share/info \
    2.21 +	--mandir=/usr/share/man $CONFIGURE_ARGS
    2.22 +	make
    2.23 +	make DESTDIR=$PWD/_pkg install
    2.24 +}
    2.25 +
    2.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.27 +genpkg_rules()
    2.28 +{
    2.29 +	mkdir -p $fs/usr/share/locale
    2.30 +	cp -a $_pkg/usr/bin $fs/usr
    2.31 +	cp -a $_pkg/usr/lib $fs/usr
    2.32 +	cp -a $_pkg/usr/share/gnupg $fs/usr/share
    2.33 +	cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
    2.34 +	
    2.35 +	# Strip and chmod for gnup-zip.
    2.36 +	strip -s $fs/usr/bin/* 2>/dev/null
    2.37 +	chmod 755 $fs/usr/bin/*
    2.38 +}
    2.39 +
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/grub/receipt	Tue Dec 18 14:00:16 2007 +0100
     3.3 @@ -0,0 +1,40 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="grub"
     3.7 +VERSION="0.97"
     3.8 +CATEGORY="base-apps"
     3.9 +SHORT_DESC="GRUB boot loader."
    3.10 +MAINTAINER="pankso@slitaz.org"
    3.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.12 +WEB_SITE="http://www.gnu.org/software/grub/"
    3.13 +WGET_URL="ftp://alpha.gnu.org/gnu/grub/$TARBALL"
    3.14 +
    3.15 +# Rules to configure and make the package.
    3.16 +compile_rules()
    3.17 +{
    3.18 +	cd $src
    3.19 +	./configure --prefix=/usr --infodir=/usr/share/info \
    3.20 +	--mandir=/usr/share/man $CONFIGURE_ARGS
    3.21 +	make
    3.22 +	make DESTDIR=$PWD/_pkg install
    3.23 +}
    3.24 +
    3.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.26 +genpkg_rules()
    3.27 +{
    3.28 +	mkdir -p $fs/boot/grub $fs/usr
    3.29 +	cp -a $_pkg/usr/bin $fs/usr
    3.30 +	cp -a $_pkg/usr/sbin $fs/usr
    3.31 +	cp -a $_pkg/usr/lib $fs/usr
    3.32 +	
    3.33 +	# Permissions
    3.34 +	chmod 755 $fs/usr/sbin/grub-*
    3.35 +	chmod 655 $fs/usr/lib/grub/i386-pc/*
    3.36 +	
    3.37 +	# Strip.
    3.38 +	strip -s $fs/usr/bin/*
    3.39 +	strip -s $fs/usr/sbin/grub
    3.40 +	# Example config file (menu.lst).
    3.41 +	cp stuff/example-menu.lst $fs/boot/grub
    3.42 +}
    3.43 +
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/grub/stuff/example-menu.lst	Tue Dec 18 14:00:16 2007 +0100
     4.3 @@ -0,0 +1,37 @@
     4.4 +# /boot/grub/menu.lst: GRUB boot loader configuration.
     4.5 +#
     4.6 +
     4.7 +# By default, boot the first entry.
     4.8 +default 0
     4.9 +
    4.10 +# Boot automatically after 20 secs.
    4.11 +timeout 20
    4.12 +
    4.13 +# Change the colors.
    4.14 +color yellow/brown light-green/black
    4.15 +
    4.16 +# For booting SliTaz from a cdrom (LiveCD).
    4.17 +#
    4.18 +#title  SliTaz GNU/Linux (Cooking) (Kernel 2.6.22.9)
    4.19 +#kernel /boot/bzImage root=/dev/null vga=771
    4.20 +#initrd /boot/rootfs.gz
    4.21 +
    4.22 +# For booting SliTaz from hda1.
    4.23 +#
    4.24 +#title 	SliTaz GNU/Linux (Cooking) (Kernel 2.6.22.9)
    4.25 +#root 	(hd0,0)
    4.26 +#kernel /boot/vmlinuz-2.6.20-slitaz root=/dev/hda1
    4.27 +
    4.28 +# For booting FreeBSD
    4.29 +#
    4.30 +#title  FreeBSD
    4.31 +#root   (hd0,2,a)
    4.32 +#kernel /boot/loader
    4.33 +
    4.34 +# For booting Windows
    4.35 +#
    4.36 +#title Windows NT / Windows 95 / XP
    4.37 +#rootnoverify (hd0,0)
    4.38 +#makeactive
    4.39 +#chainloader  +1
    4.40 +
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/mercurial/receipt	Tue Dec 18 14:00:16 2007 +0100
     5.3 @@ -0,0 +1,37 @@
     5.4 +# SliTaz package receipt.
     5.5 +
     5.6 +PACKAGE="mercurial"
     5.7 +VERSION="0.9.5"
     5.8 +CATEGORY="extra"
     5.9 +SHORT_DESC="Revision tools system."
    5.10 +MAINTAINER="pankso@slitaz.org"
    5.11 +DEPENDS="python patch openssl"
    5.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    5.13 +WEB_SITE="http://www.selenic.com/mercurial/wiki/"
    5.14 +WGET_URL="http://www.selenic.com/mercurial/release/$TARBALL"
    5.15 +
    5.16 +# Rules to configure and make the package.
    5.17 +compile_rules()
    5.18 +{
    5.19 +	cd $src
    5.20 +	make install PREFIX=$PWD/_pkg/usr
    5.21 +}
    5.22 +
    5.23 +# Rules to gen a SliTaz package suitable for Tazpkg.
    5.24 +genpkg_rules()
    5.25 +{
    5.26 +	mkdir -p $fs/usr/share/examples/mercurial
    5.27 +	cp -a $_pkg/usr/bin $fs/usr
    5.28 +	cp -a $_pkg/usr/lib $fs/usr
    5.29 +	
    5.30 +	# Examples
    5.31 +	cp -a $src/hgweb.cgi $fs/usr/share/examples/mercurial
    5.32 +	cp -a stuff/hgwebdir.cgi $fs/usr/share/examples/mercurial
    5.33 +	cp -a stuff/lighttpd-hg-vhost.conf $fs/usr/share/examples/mercurial
    5.34 +	
    5.35 +	# Config file for hgweb
    5.36 +	mkdir -p $fs/etc/mercurial
    5.37 +	cp -a stuff/hgweb.config $fs/etc/mercurial
    5.38 +	
    5.39 +	chown -R root.root $fs
    5.40 +}
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/mercurial/stuff/hgweb.config	Tue Dec 18 14:00:16 2007 +0100
     6.3 @@ -0,0 +1,12 @@
     6.4 +# /etc/mercurial/hgweb.config - System-wide mercurial configuration file
     6.5 +#
     6.6 +
     6.7 +#[collections]
     6.8 +#/prefix/to/strip/off = /root/of/tree/full/of/repos
     6.9 +
    6.10 +#[paths]
    6.11 +#virtual/path = /real/path
    6.12 +
    6.13 +#[web]
    6.14 +#style = gitweb
    6.15 +#allow_archive = gz bz2
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/mercurial/stuff/hgwebdir.cgi	Tue Dec 18 14:00:16 2007 +0100
     7.3 @@ -0,0 +1,50 @@
     7.4 +#!/usr/bin/env python
     7.5 +#
     7.6 +# An example CGI script to export multiple hgweb repos, edit as necessary
     7.7 +
     7.8 +# adjust python path if not a system-wide install:
     7.9 +#import sys
    7.10 +#sys.path.insert(0, "/path/to/python/lib")
    7.11 +
    7.12 +# enable importing on demand to reduce startup time
    7.13 +from mercurial import demandimport; demandimport.enable()
    7.14 +
    7.15 +# send python tracebacks to the browser if an error occurs:
    7.16 +import cgitb
    7.17 +cgitb.enable()
    7.18 +
    7.19 +# If you'd like to serve pages with UTF-8 instead of your default
    7.20 +# locale charset, you can do so by uncommenting the following lines.
    7.21 +# Note that this will cause your .hgrc files to be interpreted in
    7.22 +# UTF-8 and all your repo files to be displayed using UTF-8.
    7.23 +#
    7.24 +#import os
    7.25 +#os.environ["HGENCODING"] = "UTF-8"
    7.26 +
    7.27 +from mercurial.hgweb.hgwebdir_mod import hgwebdir
    7.28 +from mercurial.hgweb.request import wsgiapplication
    7.29 +import mercurial.hgweb.wsgicgi as wsgicgi
    7.30 +
    7.31 +# The config file looks like this.  You can have paths to individual
    7.32 +# repos, collections of repos in a directory tree, or both.
    7.33 +#
    7.34 +# [paths]
    7.35 +# virtual/path = /real/path
    7.36 +# virtual/path = /real/path
    7.37 +#
    7.38 +# [collections]
    7.39 +# /prefix/to/strip/off = /root/of/tree/full/of/repos
    7.40 +#
    7.41 +# collections example: say directory tree /foo contains repos /foo/bar,
    7.42 +# /foo/quux/baz.  Give this config section:
    7.43 +#   [collections]
    7.44 +#   /foo = /foo
    7.45 +# Then repos will list as bar and quux/baz.
    7.46 +#
    7.47 +# Alternatively you can pass a list of ('virtual/path', '/real/path') tuples
    7.48 +# or use a dictionary with entries like 'virtual/path': '/real/path'
    7.49 +
    7.50 +def make_web_app():
    7.51 +    return hgwebdir("/etc/mercurial/hgweb.config")
    7.52 +
    7.53 +wsgicgi.launch(wsgiapplication(make_web_app))
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/mercurial/stuff/lighttpd-hg-vhost.conf	Tue Dec 18 14:00:16 2007 +0100
     8.3 @@ -0,0 +1,10 @@
     8.4 +
     8.5 +# Mercurial (hg)
     8.6 +#
     8.7 +$HTTP["host"] =~ "hg$" {
     8.8 +cgi.assign = (
     8.9 +    ".cgi" => "/usr/bin/python"
    8.10 +  )
    8.11 +  server.document-root = "/home/hg/share/"
    8.12 +  url.rewrite-once = ( "(.*)" => "/hgwebdir.cgi$1" )
    8.13 +}