wok annotate glibc-base/receipt @ rev 2256
Add squirrelmail-notes
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 15 22:52:54 2009 +0000 (2009-02-15) |
parents | 73016cb6e50c |
children | 4a057e1fc620 |
rev | line source |
---|---|
pankso@2 | 1 # SliTaz package receipt. |
pankso@2 | 2 |
pankso@2 | 3 PACKAGE="glibc-base" |
pankso@528 | 4 VERSION="2.7" |
pankso@2 | 5 CATEGORY="base-system" |
pankso@2 | 6 SHORT_DESC="GNU libc minimal libraries for SliTaz based system." |
pascal@1064 | 7 WEB_SITE="http://gcc.gnu.org/" |
pankso@2 | 8 WANTED="glibc" |
pankso@2 | 9 MAINTAINER="pankso@slitaz.org" |
pankso@2 | 10 |
pankso@2 | 11 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2 | 12 # |
pankso@2 | 13 # Full glibc is very long to compile (see package glibc for more |
pankso@2 | 14 # informations). You can use the precompiled package available on |
pankso@2 | 15 # SliTaz mirror to build a distro without recompiling glibc. |
pankso@2 | 16 # |
pankso@2 | 17 genpkg_rules() |
pankso@2 | 18 { |
pankso@2 | 19 # Mkdir's. |
pankso@2 | 20 for dir in `cat stuff/mkdir.list` |
pankso@2 | 21 do |
pankso@2 | 22 mkdir -p ${fs}$dir |
pankso@2 | 23 done |
pankso@2 | 24 # Copy all files specified in stuff/files.list. We get the files |
pankso@2 | 25 # from glibc package. |
pankso@2 | 26 for file in `cat stuff/wanted-files.list` |
pankso@2 | 27 do |
pankso@2 | 28 cp -a ${_pkg}$file ${fs}$file |
pankso@2 | 29 done |
pankso@528 | 30 |
pankso@600 | 31 # Gen locale files (see also locale-pack). |
pankso@597 | 32 # |
pankso@600 | 33 mkdir -p $fs/usr/lib/locale |
pankso@600 | 34 localedef -i fr_FR -c -f ISO-8859-1 $fs/usr/lib/locale/fr_FR |
pankso@2 | 35 } |
pankso@528 | 36 |
pankso@528 | 37 # Call ldconfig and remove old glibc-2.3.6 files. |
pankso@528 | 38 post_install() |
pankso@528 | 39 { |
pankso@528 | 40 local root |
pankso@528 | 41 root=$1 |
pankso@528 | 42 ldconfig |
pankso@528 | 43 rm -f $root/lib/*2.3.6.so |
pankso@528 | 44 rm -f $root/usr/lib/locale/locale-archive |
pankso@528 | 45 } |