wok-next rev 19843

Up dbus, pcmciautils, opus-tools; add syslinux-slitaz-repack (to substitute syslinux), syslinux-slitaz-extra-repack (to substitute syslinux-extra).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Aug 23 17:19:53 2017 +0300 (2017-08-23)
parents 133288c02003
children 0ed344a8daed
files dbus/receipt opus-tools/receipt pcmciautils/receipt syslinux-slitaz-extra-repack/receipt syslinux-slitaz-repack/receipt
line diff
     1.1 --- a/dbus/receipt	Fri Aug 18 03:02:41 2017 +0300
     1.2 +++ b/dbus/receipt	Wed Aug 23 17:19:53 2017 +0300
     1.3 @@ -43,11 +43,12 @@
     1.4  		dbus-helper)
     1.5  			copy dbus-daemon-launch-helper
     1.6  			CAT="x-window|dbus-daemon-launch-helper"
     1.7 +			DEPENDS="dbus expat"
     1.8  			;;
     1.9  		dbus)
    1.10  			copy @std
    1.11  			remove_already_packed
    1.12 -			DEPENDS="expat xorg-libX11 slitaz-base-files"
    1.13 +			DEPENDS="expat xorg-libX11   slitaz-base-files"
    1.14  			CONFIG_FILES="/etc/dbus-1/session.conf /etc/dbus-1/system.conf /etc/dbus-1/system.d/"
    1.15  			;;
    1.16  		*-dev) copy @dev;;
    1.17 @@ -77,7 +78,11 @@
    1.18  }
    1.19  
    1.20  post_install_dbus() {
    1.21 -	dbus-uuidgen --ensure
    1.22 +	# Mount /dev to fix an error:
    1.23 +	# Failed to generate UUID: Could not open /dev/urandom: Permission denied
    1.24 +	[ -z "$1" ] || mount -o bind /dev "$1/dev"
    1.25 +	chroot "$1/" dbus-uuidgen --ensure
    1.26 +	[ -z "$1" ] || umount "$1/dev"
    1.27  }
    1.28  
    1.29  pre_remove_dbus() {
     2.1 --- a/opus-tools/receipt	Fri Aug 18 03:02:41 2017 +0300
     2.2 +++ b/opus-tools/receipt	Wed Aug 23 17:19:53 2017 +0300
     2.3 @@ -1,32 +1,27 @@
     2.4 -# SliTaz package receipt.
     2.5 +# SliTaz package receipt v2.
     2.6  
     2.7  PACKAGE="opus-tools"
     2.8 -VERSION="0.1.9"
     2.9 +VERSION="0.1.10"
    2.10  CATEGORY="multimedia"
    2.11 -SHORT_DESC="Opus encoder, decoder and tiny tools."
    2.12 +SHORT_DESC="Opus encoder, decoder and tiny tools"
    2.13  MAINTAINER="pascal.bellard@slitaz.org"
    2.14  LICENSE="GPL2"
    2.15 +WEB_SITE="http://opus-codec.org/"
    2.16 +
    2.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.18 -WEB_SITE="http://opus-codec.org/"
    2.19 -WGET_URL="http://downloads.xiph.org/releases/opus/$TARBALL"
    2.20 +WGET_URL="https://archive.mozilla.org/pub/opus/$TARBALL"
    2.21  
    2.22 -DEPENDS="libogg flac"
    2.23 -BUILD_DEPENDS="libogg libogg-dev opus-dev pkg-config flac-dev"
    2.24 +BUILD_DEPENDS="libogg-dev opus-dev flac-dev"
    2.25  
    2.26  # Rules to configure and make the package.
    2.27  compile_rules()
    2.28  {
    2.29 -	cd $src
    2.30 -	CFLAGS="$CFLAGS -lm"
    2.31 -	./configure --prefix=/usr \
    2.32 -		$CONFIGURE_ARGS && \
    2.33 -	make && make DESTDIR=$DESTDIR install
    2.34 +	./configure $CONFIGURE_ARGS && make && make install
    2.35  }
    2.36  
    2.37  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.38  genpkg_rules()
    2.39  {
    2.40 -	mkdir -p $fs/usr
    2.41 -	cp -a $install/usr/bin $fs/usr
    2.42 +	copy @std
    2.43 +	DEPENDS="flac libogg opus"
    2.44  }
    2.45 -
     3.1 --- a/pcmciautils/receipt	Fri Aug 18 03:02:41 2017 +0300
     3.2 +++ b/pcmciautils/receipt	Wed Aug 23 17:19:53 2017 +0300
     3.3 @@ -1,4 +1,4 @@
     3.4 -# SliTaz package receipt.
     3.5 +# SliTaz package receipt v2.
     3.6  
     3.7  PACKAGE="pcmciautils"
     3.8  VERSION="018"
     3.9 @@ -12,35 +12,25 @@
    3.10  #WGET_URL="http://www.kernel.org/pub/linux/utils/kernel/pcmcia/$TARBALL"
    3.11  WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/utils/kernel/pcmcia/$TARBALL"
    3.12  
    3.13 -DEPENDS="sysfsutils eudev"
    3.14  BUILD_DEPENDS="sysfsutils-dev"
    3.15  
    3.16  # Rules to configure and make the package.
    3.17  compile_rules()
    3.18  {
    3.19 -	make
    3.20 +	sed -i 's|/lib/udev|/usr/lib/udev|g; s|/sbin|/usr/bin|g' Makefile
    3.21  
    3.22 -	mkdir -p $install/sbin
    3.23 -	cp -a pccardctl $install/sbin
    3.24 -
    3.25 -	mkdir -p $install/lib/udev
    3.26 -	cp -a pcmcia-check-broken-cis pcmcia-socket-startup $install/lib/udev
    3.27 -
    3.28 -	mkdir -p $install/etc/udev/rules.d
    3.29 -	cp -a $src/udev/60-pcmcia.rules $install/etc/udev/rules.d
    3.30 -
    3.31 -	mkdir -p $install/etc/pcmcia
    3.32 -	cp -a $src/config/config.opts $install/etc/pcmcia
    3.33 -
    3.34 +	make &&
    3.35 +	make DESTDIR=$install install
    3.36  }
    3.37  
    3.38  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.39  genpkg_rules()
    3.40  {
    3.41 -	copy etc/ lib/ sbin/
    3.42 +	copy @std
    3.43 +	DEPENDS="sysfsutils   eudev"
    3.44  }
    3.45  
    3.46 -post_install()
    3.47 -{
    3.48 -	tazpkg reconfigure eudev --root="$1/" --quiet
    3.49 -}
    3.50 +#post_install() {
    3.51 +#	echo "root='$1:$root'"
    3.52 +#	tazpkg reconfigure eudev --root="$1/" --quiet
    3.53 +#}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/syslinux-slitaz-extra-repack/receipt	Wed Aug 23 17:19:53 2017 +0300
     4.3 @@ -0,0 +1,29 @@
     4.4 +# SliTaz package receipt.
     4.5 +
     4.6 +PACKAGE="syslinux-slitaz-extra-repack"
     4.7 +VERSION="4.06"
     4.8 +CATEGORY="base-system"
     4.9 +SHORT_DESC="MBR/FAT/EXT3/PXE bootloader: SliTaz fork, repacked from SliTaz-5"
    4.10 +MAINTAINER="al.bobylev@gmail.com"
    4.11 +LICENSE="GPL2"
    4.12 +WEB_SITE="http://hg.slitaz.org/wok/file/tip/syslinux"
    4.13 +
    4.14 +TARBALL="syslinux-slitaz-extra-4.06.cpio"
    4.15 +WGET_URL="http://mirror1.slitaz.org/packages/5.0/syslinux-extra-4.06.tazpkg"
    4.16 +
    4.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    4.18 +compile_rules()
    4.19 +{
    4.20 +	cpio -dmF $src/$TARBALL -i
    4.21 +	lzma d $src/fs.cpio.lzma -so | cpio -idm
    4.22 +	mkdir $install
    4.23 +	cp -r $src/fs/* $install
    4.24 +}
    4.25 +
    4.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    4.27 +genpkg_rules()
    4.28 +{
    4.29 +	copy @std
    4.30 +	DEPENDS="syslinux-slitaz-repack posixovl"
    4.31 +	PROVIDE="syslinux-extra"
    4.32 +}
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/syslinux-slitaz-repack/receipt	Wed Aug 23 17:19:53 2017 +0300
     5.3 @@ -0,0 +1,41 @@
     5.4 +# SliTaz package receipt.
     5.5 +
     5.6 +PACKAGE="syslinux-slitaz-repack"
     5.7 +VERSION="4.06"
     5.8 +CATEGORY="base-system"
     5.9 +SHORT_DESC="LiveCD ISO bootloader: SliTaz fork, repacked from SliTaz-5"
    5.10 +MAINTAINER="al.bobylev@gmail.com"
    5.11 +LICENSE="GPL2"
    5.12 +WEB_SITE="http://hg.slitaz.org/wok/file/tip/syslinux"
    5.13 +
    5.14 +TARBALL="syslinux-slitaz-4.06.cpio"
    5.15 +WGET_URL="http://mirror1.slitaz.org/packages/5.0/syslinux-4.06.tazpkg"
    5.16 +
    5.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    5.18 +compile_rules()
    5.19 +{
    5.20 +	cpio -dmF $src/$TARBALL -i
    5.21 +	lzma d $src/fs.cpio.lzma -so | cpio -idm
    5.22 +	mkdir $install
    5.23 +	cp -r $src/fs/* $install
    5.24 +	sed -i 's|5\.0-RC4|6.0|' $install/boot/isolinux/isolinux.cfg
    5.25 +}
    5.26 +
    5.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    5.28 +genpkg_rules()
    5.29 +{
    5.30 +	copy @std
    5.31 +	CONFIG_FILES="/boot/isolinux/i18n.cfg /boot/isolinux/isolinux.cfg \
    5.32 +	/boot/isolinux/kbd"
    5.33 +	TAGS="boot"
    5.34 +	DEPENDS="ipxe memtest"
    5.35 +	PROVIDE="syslinux"
    5.36 +}
    5.37 +
    5.38 +# Pre and post install commands for Tazpkg.
    5.39 +post_install() {
    5.40 +	sed -i "/MENU TITLE SliTaz GNU\/Linux/ s| [0-9X]*$| $(date +%Y%m%d)|" \
    5.41 +		"$1/boot/isolinux/isolinux.cfg"
    5.42 +	sed '/MENU TITLE/!d;s/MENU TITLE //' > $1/etc/slitaz-version \
    5.43 +		< "$1/boot/isolinux/isolinux.cfg"
    5.44 +}