wok-current view slitaz-base-files/receipt @ rev 23783

updated xvidcore and xvidcore-dev (1.3.5 -> 1.3.7)
author Hans-G?nter Theisgen
date Thu May 21 14:35:48 2020 +0100 (2020-05-21)
parents 73a636bdc14e
children a8546de77bcc
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-base-files"
4 VERSION="339"
5 CATEGORY="base-system"
6 SHORT_DESC="Linux tree and the necessary files for the base system."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.slitaz.org/"
11 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
12 HOST_ARCH="i486 arm"
14 DEPENDS="gettext-base"
16 CONFIG_FILES="\
17 /etc/adduser.conf \
18 /etc/passwd \
19 /etc/fstab \
20 /etc/issue \
21 /etc/hosts \
22 /etc/host.conf \
23 /etc/hostname \
24 /etc/group \
25 /etc/gshadow \
26 /etc/shadow \
27 /etc/daemons.conf \
28 /etc/nsswitch.conf \
29 /etc/networks \
30 /etc/profile \
31 /etc/securetty \
32 /etc/services \
33 /etc/shells \
34 /etc/motd \
35 /etc/slitaz-release \
36 /etc/slitaz/slitaz.conf \
37 /etc/sysctl.conf"
39 # Rules to configure and make the package.
40 compile_rules()
41 {
42 make DESTDIR=$DESTDIR install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p \
49 $fs/bin \
50 $fs/dev \
51 $fs/home \
52 $fs/media/cdrom \
53 $fs/media/flash \
54 $fs/media/usbdisk \
55 $fs/mnt \
56 $fs/proc \
57 $fs/root \
58 $fs/run \
59 $fs/sbin \
60 $fs/sys \
61 $fs/tmp \
62 $fs/usr/bin \
63 $fs/usr/games \
64 $fs/usr/lib \
65 $fs/usr/sbin \
66 $fs/usr/share/doc \
67 $fs/var/cache \
68 $fs/var/games \
69 $fs/var/lib \
70 $fs/var/lock \
71 $fs/var/log/slitaz \
72 $fs/var/spool \
73 $fs/var/tmp \
74 $fs/var/run
76 # Daemons may store the pid files in /var/run
77 # from 5.0 /var/run is mounted as tmpfs
78 #ln -s /run $fs/var/run
80 # Copy all installed files and set permissions.
81 cp -a $install/* $fs
83 chown -R root.root $fs/*
84 chmod 1777 $fs/tmp
85 chmod 640 $fs/etc/shadow
86 chmod 640 $fs/etc/gshadow
87 chmod 0750 $fs/root
89 # Populate /dev with $fs/sbin/mktazdevs.sh.
90 $fs/sbin/mktazdevs.sh $fs/dev
92 # Create /etc/mtab symlink.
93 cd $fs/etc
94 ln -s /proc/mounts mtab
96 # Fix httphelper link
97 cd $fs/usr/lib/slitaz
98 ln -s httphelper.sh httphelper
100 # Update copyright year
101 grep -rl 'copy; 2' $fs/var/www | xargs \
102 sed -i "s/copy; [0-9]*/copy; $(date +%Y)/"
103 }
105 # Pre and post install to backup all /etc/settings
106 #
107 pre_install()
108 {
109 # cp -a "$1/etc" "$1/tmp/etc.bak" 2>/dev/null
110 [ -x "$1/usr/bin/sudo" ] && mv "$1/usr/bin/sudo" "$1/usr/bin/sudo.orig"
111 # Remove old /var/run symlink
112 [ -h "$1/var/run" ] && rm -f "$1/var/run"
113 :
114 }
116 post_install()
117 {
118 # if cp -a "$1/tmp/etc.bak"/* "$1/etc"; then
119 # rm -r "$1/tmp/etc.bak"
120 # fi 2>/dev/null
122 [ -x "$1/usr/bin/sudo.orig" ] && mv -f "$1/usr/bin/sudo.orig" "$1/usr/bin/sudo"
124 # Reset permission.
125 chmod 640 "$1/etc/shadow"
126 chmod 640 "$1/etc/gshadow"
128 if ! grep -q audio "$1/etc/group"; then
129 chroot "$1/" /bin/addgroup -g 20 audio
130 fi
131 sed -i "s|content: \"20..\"|content: \"$(date +%Y)\"|" \
132 $1/usr/share/doc/slitaz-doc.css
133 }
135 pre_remove()
136 {
137 # We can not remove this package!
138 exit 1
139 }