wok view slitaz-users/receipt @ rev 178

Removed cat base-apps and dispatch pkgs
author Christophe Lincoln <pankso@slitaz.org>
date Sat Feb 02 01:23:02 2008 +0100 (2008-02-02)
parents e17dfeb82a2c
children dbd9d5cecd6b
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-users"
4 VERSION="1.0"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz users."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.slitaz.org/"
10 WGET_URL="http://download.tuxfamily.org/slitaz/sources/base-files/$TARBALL"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 # Copy all rootfs from the stuff and set permissions.
16 cp -a $src/rootfs/* $fs
17 }
19 pre_install()
20 {
21 local root
22 local i
23 root=$1/etc
24 while read file line; do
25 grep -qs "$line" $file || echo "$line" >> $file
26 done <<EOT
27 $root/passwd "root:x:0:0:root:/root:/bin/sh"
28 $root/group "root:x:0:"
29 $root/shadow "root:\$1\$EbR327ag\$7NFmnOi7JQc5/lG0JLiU8/:13525:0:99999:7:::"
30 $root/gshadow "root:*::"
31 EOT
32 for i in $(cd $fs/home ; ls); do
33 # get uid in $3 and gid in $4
34 set -- $(ls -ldn $fs/home/$i)
35 while read file line; do
36 grep -qs "$line" $file || echo "$line" >> $file
37 done <<EOT
38 $root/passwd "$i:x:$3:$4:Linux User,,,:/home/$i:/bin/ash"
39 $root/group "$i:x:$4:"
40 $root/shadow "$i::13646:0:99999:7:::"
41 $root/gshadow "$i:!::"
42 EOT
43 done
44 }