wok view slitaz-hacker/receipt @ rev 696

openbox + obconf: add French translation...
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 27 12:33:20 2008 +0200 (2008-04-27)
parents eb9854374fce
children 55797d71e25f
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-hacker"
4 VERSION="1.4"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz user hacker."
7 DEPENDS="slitaz-base-files lxappearance"
8 MAINTAINER="pankso@slitaz.org"
9 WEB_SITE="http://www.slitaz.org/"
11 # Rules to gen a SliTaz package suitable for Tazpkg.
12 genpkg_rules()
13 {
14 # /home/hacker directories.
15 #
16 mkdir -p \
17 $fs/home/hacker/Documents \
18 $fs/home/hacker/Downloads \
19 $fs/home/hacker/Music \
20 $fs/home/hacker/.local/bin \
21 $fs/home/hacker/.local/share \
22 $fs/home/hacker/.mozilla/plugins
23 cp -a stuff/hacker $fs/home
24 # Change permissions.
25 #
26 echo -n "Chmodig all files in $fs/home/hacker..."
27 chown -R 500.500 $fs/home/hacker
28 status
29 }
31 pre_install()
32 {
33 local root
34 root=$1
35 # Go for echoing on configuration files if any hacker was found.
36 #
37 if ! grep -q hacker $root/etc/passwd; then
38 echo -n "Configuring $root/etc..."
39 echo 'hacker:x:500:500:Linux User,,,:/home/hacker:/bin/ash' >> $root/etc/passwd
40 echo 'hacker::13646:0:99999:7:::' >> $root/etc/shadow
41 echo 'hacker:x:500:' >> $root/etc/group
42 echo 'hacker:!::' >> $root/etc/gshadow
43 status
44 else
45 echo "Hacker is already in : $root/etc/passwd"
46 fi
47 # Hacker can listen to music
48 #
49 if grep -q audio $root/etc/group; then
50 if ! grep -q "audio:x:20:hacker" $root/etc/group; then
51 sed -i s/'audio:x:20:'/'audio:x:20:hacker'/ $root/etc/group
52 fi
53 fi
54 }