wok-4.x diff slitaz-users/receipt @ rev 89
Add : Xorg server (1.2) with Xvesa and Xephyr
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Jan 02 22:26:13 2008 +0100 (2008-01-02) |
parents | |
children | cdac43c3f44f |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/slitaz-users/receipt Wed Jan 02 22:26:13 2008 +0100 1.3 @@ -0,0 +1,44 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="slitaz-users" 1.7 +VERSION="1.0" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="Config tree for the base system." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +WEB_SITE="http://www.slitaz.org/" 1.13 +WGET_URL="http://download.tuxfamily.org/slitaz/sources/base-files/$TARBALL" 1.14 + 1.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.16 +genpkg_rules() 1.17 +{ 1.18 + # Copy all rootfs from the stuff and set permissions. 1.19 + cp -a $src/rootfs/* $fs 1.20 +} 1.21 + 1.22 +pre_install() 1.23 +{ 1.24 + local root 1.25 + local i 1.26 + root=$1/etc 1.27 + while read file line; do 1.28 + grep -qs "$line" $file || echo "$line" >> $file 1.29 + done <<EOT 1.30 +$root/passwd "root:x:0:0:root:/root:/bin/sh" 1.31 +$root/group "root:x:0:" 1.32 +$root/shadow "root:\$1\$EbR327ag\$7NFmnOi7JQc5/lG0JLiU8/:13525:0:99999:7:::" 1.33 +$root/gshadow "root:*::" 1.34 +EOT 1.35 + for i in $(cd fs/home ; ls); do 1.36 + # get uid in $3 and gid in $4 1.37 + set -- $(ls -ldn fs/home/$i) 1.38 + while read file line; do 1.39 + grep -qs "$line" $file || echo "$line" >> $file 1.40 + done <<EOT 1.41 +$root/passwd "$i:x:$3:$4:Linux User,,,:/home/$i:/bin/ash" 1.42 +$root/group "$i:x:$4:" 1.43 +$root/shadow "$i::13646:0:99999:7:::" 1.44 +$root/gshadow "$i:!::" 1.45 +EOT 1.46 + done 1.47 +}