wok-current annotate cookutils/receipt @ rev 24885
updated mcabber (0.9.10 -> 1.1.2)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 01 07:52:41 2022 +0100 (2022-04-01) |
parents | 7e911016a644 |
children | 715a7620dc23 |
rev | line source |
---|---|
pankso@9812 | 1 # SliTaz package receipt. |
pankso@9812 | 2 |
pankso@9812 | 3 PACKAGE="cookutils" |
al@19823 | 4 VERSION="887" |
pankso@9812 | 5 CATEGORY="base-system" |
pankso@9812 | 6 SHORT_DESC="SliTaz packages builder new generation." |
pankso@9812 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15022 | 8 LICENSE="GPL3" |
al@19252 | 9 WEB_SITE="http://www.slitaz.org/" |
pankso@9812 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@13892 | 11 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz" |
pankso@9812 | 12 TAGS="slitaz" |
pankso@12778 | 13 HOST_ARCH="i486 arm" |
pascal@19787 | 14 CONFIG_FILES="/etc/slitaz/cook.site /etc/slitaz/cook.conf" |
pankso@9812 | 15 |
al@18550 | 16 DEPENDS="sdft" |
al@19252 | 17 SPLIT="cookutils-daemon" |
pascal@14173 | 18 |
pascal@24066 | 19 current_version() |
pascal@24066 | 20 { |
pascal@24069 | 21 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \ |
pascal@24069 | 22 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \ |
pascal@24066 | 23 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||' |
pascal@24066 | 24 } |
pascal@24066 | 25 |
pankso@9812 | 26 # Rules to configure and make the package. |
pankso@9812 | 27 compile_rules() |
pankso@9812 | 28 { |
pascal@20655 | 29 sed -i 's|\. receipt|. ./receipt|' cook |
pascal@23898 | 30 sed -i 's,grep -q ^aufs /proc/modules,grep "^nodev.aufs\$" /proc/filesystems,' cook |
al@20666 | 31 patch -p1 -i $stuff/pkgdb-absolute.patch |
al@20667 | 32 patch -p1 -i $stuff/pkgdb-no-parallel.patch |
pascal@21780 | 33 patch -p1 -i $stuff/cook-newest.patch |
pascal@23649 | 34 patch -p1 -i $stuff/wanted-version.patch |
pascal@24166 | 35 patch -p1 -i $stuff/avoid-gawk-warning.patch |
pascal@24166 | 36 patch -p1 -i $stuff/avoid-hard-link-exist-error.patch |
pascal@21793 | 37 sed -i 's|preinit core-4in1|preinit core-4in1 core-5in1|' cookiso |
pankso@9812 | 38 mkdir -p $DESTDIR/usr/bin $DESTDIR/etc/slitaz |
pankso@9812 | 39 make DESTDIR=$DESTDIR install |
pascal@22678 | 40 sed -i 's|://mirror.switch.ch/ftp/mirror|s://ftp.gnu.org|' $DESTDIR/etc/slitaz/cook.conf |
pankso@9812 | 41 } |
pankso@9812 | 42 |
pankso@9812 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@9812 | 44 genpkg_rules() |
pankso@9812 | 45 { |
pankso@9812 | 46 mkdir -p $fs |
pascal@23927 | 47 cp $stuff/cookutils-doc.desktop $install/usr/share/applications |
pankso@9812 | 48 cp -a $install/* $fs |
pascal@22986 | 49 cp $stuff/check-wok $fs/usr/bin |
pascal@22986 | 50 chmod 755 $fs/usr/bin/check-wok |
mojo@13856 | 51 #Symlink cooker to busybox httpd server root |
mojo@13856 | 52 cd $fs/var/www |
mojo@13856 | 53 ln -s cgi-bin/cooker |
al@19161 | 54 # Daemon goes in cookutils-daemon |
pankso@9826 | 55 rm -rf $fs/etc/init.d |
pankso@9812 | 56 } |
pascal@12966 | 57 |
pascal@12966 | 58 # Pre and post install commands for Tazpkg. |
pascal@22678 | 59 pre_install() |
pascal@22678 | 60 { |
pascal@22678 | 61 cp $1/etc/slitaz/cook.conf $1/etc/slitaz/cook.conf.old 2> /dev/null |
pascal@22678 | 62 } |
pascal@22678 | 63 |
pascal@12966 | 64 post_install() |
pascal@12966 | 65 { |
pascal@22678 | 66 MD5="$(sed '/^SETUP_MD5/!d;s|.*="\(.*\)".*|\1|' \ |
pascal@24015 | 67 $1/etc/slitaz/cook.conf.old 2> /dev/null)" |
pascal@22678 | 68 sed -i "s|^SETUP_MD5=\"\"|SETUP_MD5=\"$MD5\"|" $1/etc/slitaz/cook.conf |
pascal@22678 | 69 [ -z "$MD5" ] && case "$(cat "$1/etc/hostname" 2> /dev/null)" in |
pascal@12966 | 70 tank*) |
pascal@18730 | 71 if ! chroot "$1/" tazpkg list | grep -q aufs ; then |
pascal@18730 | 72 tazpkg get-install aufs --root="$1/" |
pascal@18730 | 73 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf" |
pascal@12966 | 74 fi ;; |
pascal@12966 | 75 esac |
pascal@12966 | 76 } |