wok-current view coreutils-operations/receipt @ rev 18077

Rebuild Python packages to remove "*.pyc" files from package.lists (part 1).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 22 17:34:18 2015 +0300 (2015-05-22)
parents 2b9f96603415
children bb8fe72f8f3a
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-operations"
4 VERSION="8.12"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU utilities that perform basic operations."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.gnu.org/software/coreutils/"
10 WANTED="coreutils"
12 DEPENDS="glibc-base acl"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 #
16 # This is a special package for installed system or developer. We only take
17 # a few things, as Busybox provides all the basic utilities, but not for compiling.
18 # But DO NOT erase a Busybox applet, remove it before with pre_install rules.
19 #
20 genpkg_rules()
21 {
22 mkdir -p $fs/bin
23 #cp -a $install/usr/bin/cp $fs/bin
24 cp -a $install/usr/bin/dd $fs/bin
25 cp -a $install/usr/bin/mv $fs/bin
26 cp -a $install/usr/bin/ln $fs/bin
27 #cp -a $install/usr/bin/rm $fs/bin
29 mkdir -p $fs/usr/bin
30 cp -a $install/usr/bin/install $fs/usr/bin
31 cp -a $install/usr/bin/shred $fs/usr/bin
32 }
34 # Pre and post install commands for Tazpkg.
35 # We must remove all Busybox symlink before installing.
36 #
37 pre_install()
38 {
39 local root
40 root=$1
41 echo "Processing pre-install commands..."
42 echo -n "Removing all Busybox replaced utils... "
43 rm -f $root/bin/dd $root/bin/mv $root/bin/ln
44 rm -f $root/usr/bin/install $root/usr/bin/shred
45 # Dont remove cp/rm or the installation will fail because tazpkg use
46 # cp and rm during the process.
47 #
48 #rm -f $root/bin/cp $root/bin/rm
49 status
50 }
52 post_remove()
53 {
54 # use busybox ln applet directly since /bin/ln
55 # in this package is remove already
56 /bin/busybox ln -fs /bin/busybox $1/bin/cp
57 /bin/busybox ln -fs /bin/busybox $1/bin/dd
58 /bin/busybox ln -fs /bin/busybox $1/bin/mv
59 /bin/busybox ln -fs /bin/busybox $1/bin/ln
60 /bin/busybox ln -fs /bin/busybox $1/bin/rm
61 /bin/busybox ln -fs /bin/busybox $1/usr/bin/install
62 /bin/busybox ln -fs /bin/busybox $1/usr/bin/shred
63 }