# HG changeset patch # User Christophe Lincoln # Date 1396426084 -7200 # Node ID ac2ee8823dfa49c71b366a2776feda50c0b2e7cc # Parent 14fa6943c56559bf68a57a6feab8c68811bcc88a ARM: add libtirpc, libcap, rpcbind (we want pkgs for a NAS) diff -r 14fa6943c565 -r ac2ee8823dfa gst-plugins-base/receipt --- a/gst-plugins-base/receipt Wed Apr 02 00:09:26 2014 +0200 +++ b/gst-plugins-base/receipt Wed Apr 02 10:08:04 2014 +0200 @@ -10,20 +10,25 @@ TARBALL="$PACKAGE-$VERSION.tar.xz" WEB_SITE="http://gstreamer.freedesktop.org/" WGET_URL="$WEB_SITE/src/$PACKAGE/$TARBALL" +#HOST_ARCH="i486 arm" + LOCALES="da de es fr id it pt_BR ru zh_CN" +DEPENDS="gstreamer pango alsa-lib libogg libtheora libtheora-enc \ +libvorbis vorbis-tools udev xorg-libXv xorg-libXvMC cdparanoia-III orc" +BUILD_DEPENDS="gstreamer-dev pango-dev alsa-lib-dev libogg-dev \ +libtheora-dev libtheora-enc libvorbis-dev udev-dev xorg-libXv-dev \ +xorg-libXvMC-dev util-linux-uuid-dev" -DEPENDS="gstreamer pango -alsa-lib libogg libtheora libtheora-enc libvorbis vorbis-tools udev -xorg xorg-libXv xorg-libXvMC cdparanoia-III orc" -BUILD_DEPENDS="gstreamer-dev pango-dev gobject-introspection-dev \ -alsa-lib-dev libogg-dev libtheora-dev libtheora-enc libvorbis-dev udev-dev \ -xorg-dev xorg-libXv-dev xorg-libXvMC-dev cdparanoia-III-dev orc-dev \ -util-linux-uuid-dev" +# Handle cross compilation +case "$ARCH" in + i?86) BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev orc-dev \ +gobject-introspection-dev xorg-dev" ;; +esac # Rules to configure and make the package. compile_rules() { - cd $src + export CPPFLAGS="-I/cross/$ARCH/sysroot/usr/include" ./configure \ --prefix=/usr \ --sysconfdir=/etc \ diff -r 14fa6943c565 -r ac2ee8823dfa gstreamer-dev/receipt --- a/gstreamer-dev/receipt Wed Apr 02 00:09:26 2014 +0200 +++ b/gstreamer-dev/receipt Wed Apr 02 10:08:04 2014 +0200 @@ -9,8 +9,9 @@ LICENSE="LGPL2" WANTED="gstreamer" WEB_SITE="http://gstreamer.freedesktop.org/" +HOST_ARCH="i486 arm" -DEPENDS="gstreamer glib-dev libgio-dev libxml2-dev pkg-config" +DEPENDS="gstreamer glib-dev libgio-dev libxml2-dev" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() @@ -19,9 +20,13 @@ cp -a $install/usr/include $fs/usr cp -a $install/usr/lib/pkgconfig $fs/usr/lib cp -a $install/usr/lib/*.*a $fs/usr/lib/ - cp -a $install/usr/lib/gstreamer-$SERIES/*.*a $fs/usr/lib/gstreamer-$SERIES + cp -a $install/usr/lib/gstreamer-$SERIES/*.*a \ + $fs/usr/lib/gstreamer-$SERIES + [ -d "$install/usr/lib/girepository-1.0" ] && \ + cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib + [ -d "$install/usr/share/gir-1.0" ] && \ + cp -a $install/usr/share/gir-1.0 $fs/usr/share cp -a $install/usr/share/aclocal $fs/usr/share - cp -a $install/usr/share/gir-1.0 $fs/usr/share cd $fs/usr/include ln -s gstreamer-$SERIES/gst gst } diff -r 14fa6943c565 -r ac2ee8823dfa gstreamer/receipt --- a/gstreamer/receipt Wed Apr 02 00:09:26 2014 +0200 +++ b/gstreamer/receipt Wed Apr 02 10:08:04 2014 +0200 @@ -10,16 +10,24 @@ TARBALL="$PACKAGE-$VERSION.tar.xz" WEB_SITE="http://gstreamer.freedesktop.org/" WGET_URL="$WEB_SITE/src/$PACKAGE/$TARBALL" +HOST_ARCH="i486 arm" + LOCALES="da de es fr id it pt_BR ru zh_CN" +DEPENDS="glib libgio libxml2" +BUILD_DEPENDS="glib-dev libgio-dev libxml2-dev" -DEPENDS="glib libgio libxml2" -BUILD_DEPENDS="glib-dev libgio-dev libxml2-dev gobject-introspection-dev -intltool pkg-config bison flex python python-dev m4 valgrind" +# Handle cross compilation +case "$ARCH" in + i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev \ +python-dev bison flex m4 valgrind" + origin="http://www.slitaz.org" ;; + arm*) + origin="http://arm.slitaz.org" +esac # Rules to configure and make the package. compile_rules() { - cd $src ./configure \ --sysconfdir=/etc \ --localstatedir=/var \ @@ -29,7 +37,7 @@ --disable-examples \ --disable-debug \ --with-package-name="GStreamer ($SERIES)" \ - --with-package-origin="http://www.slitaz.org/" \ + --with-package-origin="$origin" \ $CONFIGURE_ARGS && make $MAKEFLAGS && make install } @@ -38,11 +46,10 @@ genpkg_rules() { mkdir -p $fs/usr/lib/gstreamer-$SERIES $fs/usr/bin $fs/usr/share/locale - mv $install/usr/bin/*-$SERIES $fs/usr/bin - mv $install/usr/lib/*.so* $fs/usr/lib - mv $install/usr/lib/gstreamer-$SERIES/*.so $fs/usr/lib/gstreamer-$SERIES - mv $install/usr/lib/gstreamer-$SERIES/gst-* $fs/usr/lib/gstreamer-$SERIES - mv $install/usr/lib/girepository-1.0 $fs/usr/lib + cp -a $install/usr/bin/*-$SERIES $fs/usr/bin + cp -a $install/usr/lib/*.so* $fs/usr/lib + cp -a $install/usr/lib/gstreamer-$SERIES/*.so $fs/usr/lib/gstreamer-$SERIES + cp -a $install/usr/lib/gstreamer-$SERIES/gst-* $fs/usr/lib/gstreamer-$SERIES for locale in $LOCALES; do mv $install/usr/share/locale/$locale $fs/usr/share/locale done diff -r 14fa6943c565 -r ac2ee8823dfa libcap-dev/receipt --- a/libcap-dev/receipt Wed Apr 02 00:09:26 2014 +0200 +++ b/libcap-dev/receipt Wed Apr 02 10:08:04 2014 +0200 @@ -8,6 +8,7 @@ LICENSE="BSD" WANTED="libcap" WEB_SITE="http://sites.google.com/site/fullycapable/" +HOST_ARCH="i486 arm" DEPENDS="libcap" diff -r 14fa6943c565 -r ac2ee8823dfa libcap/receipt --- a/libcap/receipt Wed Apr 02 00:09:26 2014 +0200 +++ b/libcap/receipt Wed Apr 02 10:08:04 2014 +0200 @@ -9,29 +9,25 @@ TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://sites.google.com/site/fullycapable/" WGET_URL="http://ftp.df.lth.se/pub/linux/libs/security/linux-privs/libcap2/$TARBALL" +HOST_ARCH="i486 arm" -DEPENDS="linux glibc-base attr" -BUILD_DEPENDS="slitaz-toolchain gperf pam pam-dev attr-dev perl" +DEPENDS="attr" +BUILD_DEPENDS="gperf pam-dev attr-dev" + +# Handle cross compilation. +case "$ARCH" in + i?86) BUILD_DEPENDS="$BUILD_DEPENDS perl" ;; + arm*) ARCH_ARGS="CC=$HOST_SYSTEM-gcc BUILD_CC=gcc" ;; +esac # Rules to configure and make the package. compile_rules() { -# if [ ! -d $WOK/linux/taz ]; then -# if [ -x /usr/bin/cook ]; then -# cook linux -# else -# tazwok cook linux -# fi -# fi - cd $src -# sed -i -e s/'\\n'/"' -e '1i"/g -e 's/| indent -kr//' libcap/Makefile -# mkdir -p libcap/include/attr -# ln -s $WOK/linux/$(ls $WOK/linux/taz)/include/linux/xattr.h \ -# libcap/include/attr/ - - # Linux headers are now sanitized properly for userspace, so patch libcap - # Based on http://bugs.gentoo.org/265304 and http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg183775.html - [ $(grep -c "#define __user" < libcap/include/sys/capability.h) -eq 0 ] || patch -p1 << EOP + # Linux headers are now sanitized properly for userspace, so patch + # libcap. Based on http://bugs.gentoo.org/265304 and + # http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg183775.html + [ $(grep -c "#define __user" < libcap/include/sys/capability.h) -eq 0 ] \ + || patch -p1 << EOP --- libcap-2.16/libcap/include/sys/capability.h.orig 2009-03-05 11:19:00.000000000 -0300 +++ libcap-2.16/libcap/include/sys/capability.h 2009-03-05 11:19:38.000000000 -0300 @@ -22,18 +22,6 @@ extern "C" { @@ -54,9 +50,9 @@ /* EOP - - sed -i -e 's/\} __user \*cap_user_/\} \*cap_user_/g' libcap/include/linux/capability.h - make DYNAMIC=yes && + sed -i -e 's/\} __user \*cap_user_/\} \*cap_user_/g' \ + libcap/include/linux/capability.h + make DYNAMIC=yes ${ARCH_ARGS} && make RAISE_SETCAP=no DESTDIR=$DESTDIR install } diff -r 14fa6943c565 -r ac2ee8823dfa libtirpc-dev/receipt --- a/libtirpc-dev/receipt Wed Apr 02 00:09:26 2014 +0200 +++ b/libtirpc-dev/receipt Wed Apr 02 10:08:04 2014 +0200 @@ -8,13 +8,13 @@ LICENSE="BSD" WEB_SITE="http://libtirpc.sourceforge.net/" WANTED="libtirpc" - -DEPENDS="libtirpc" +HOST_ARCH="i486 arm" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/*a $fs/usr/lib + cp -a $install/usr/lib/pkgconfig $fs/usr/lib cp -a $install/usr/include $fs/usr } diff -r 14fa6943c565 -r ac2ee8823dfa libtirpc/receipt --- a/libtirpc/receipt Wed Apr 02 00:09:26 2014 +0200 +++ b/libtirpc/receipt Wed Apr 02 10:08:04 2014 +0200 @@ -9,16 +9,13 @@ TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://libtirpc.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" +HOST_ARCH="i486 arm" # Rules to configure and make the package. compile_rules() { - cd $src - ./configure --prefix=/usr --infodir=/usr/share/info \ - --mandir=/usr/share/man \ - $CONFIGURE_ARGS && - make && - make DESTDIR=$DESTDIR install + ./configure $CONFIGURE_ARGS && + make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -26,6 +23,5 @@ { mkdir -p $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib - cp -a $install/usr/lib/pkgconfig $fs/usr/lib cp -a $install/etc $fs } diff -r 14fa6943c565 -r ac2ee8823dfa nfs-utils/receipt --- a/nfs-utils/receipt Wed Apr 02 00:09:26 2014 +0200 +++ b/nfs-utils/receipt Wed Apr 02 10:08:04 2014 +0200 @@ -11,19 +11,30 @@ WGET_URL="$SF_MIRROR/nfs/$PACKAGE/$VERSION/$TARBALL" CONFIG_FILES="/etc/exports" TAGS="filesystem" +HOST_ARCH="i486 arm" -DEPENDS="libtirpc libwrap util-linux-blkid util-linux-uuid rpcbind linux-nfsd" -BUILD_DEPENDS="libtirpc-dev util-linux-blkid-dev libcap-dev libwrap-dev \ +DEPENDS="libtirpc libwrap libcap util-linux-blkid util-linux-uuid rpcbind" +BUILD_DEPENDS="libtirpc-dev libcap-dev libwrap-dev util-linux-blkid-dev \ util-linux-uuid-dev util-linux-blkid" +# Handle SliTaz arch. +case "$SLITAZ_ARCH" in + i?86) DEPENDS="$DEPENDS linux-nfsd" ;; +esac + +# Handle cross compilation. +case "$ARCH" in + arm*) ARCH_ARGS="--with-tirpcinclude=/cross/arm/sysroot/usr/include/tirpc" ;; +esac + # Rules to configure and make the package. compile_rules() { - cd $src + sh autogen.sh ./configure --prefix=/usr --infodir=/usr/share/info \ --disable-nfsv4 --disable-gss \ --mandir=/usr/share/man \ - $CONFIGURE_ARGS && + $CONFIGURE_ARGS ${ARCH_ARGS} && make && make DESTDIR=$DESTDIR install } diff -r 14fa6943c565 -r ac2ee8823dfa rpcbind/receipt --- a/rpcbind/receipt Wed Apr 02 00:09:26 2014 +0200 +++ b/rpcbind/receipt Wed Apr 02 10:08:04 2014 +0200 @@ -9,18 +9,22 @@ TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://rpcbind.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" +HOST_ARCH="i486 arm" + DEPENDS="libtirpc" BUILD_DEPENDS="libtirpc-dev" +# Handle cross compilation. +case "$ARCH" in + arm*) export CPPFLAGS="-I/cross/$ARCH/sysroot/usr/include/tirpc" ;; +esac + # Rules to configure and make the package. compile_rules() { - cd $src - ./configure --prefix=/usr --infodir=/usr/share/info \ - --mandir=/usr/share/man \ - $CONFIGURE_ARGS && - make && - make DESTDIR=$DESTDIR install + ./configure \ + $CONFIGURE_ARGS && + make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 14fa6943c565 -r ac2ee8823dfa tuxmath/receipt --- a/tuxmath/receipt Wed Apr 02 00:09:26 2014 +0200 +++ b/tuxmath/receipt Wed Apr 02 10:08:04 2014 +0200 @@ -10,17 +10,16 @@ TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="http://tux4kids.alioth.debian.org" WGET_URL="https://alioth.debian.org/frs/download.php/3571/$TARBALL" + DEPENDS="libt4k_common libsdl librsvg libsdl-image libsdl-mixer libsdl-ttf \ libsdl-net libsdl-pango" BUILD_DEPENDS="libt4k_common-dev libsdl-dev librsvg-dev libsdl-image-dev \ libsdl-mixer-dev libsdl-ttf-dev libsdl-net-dev libsdl-pango-dev wget" TAGS="education" - # Rules to configure and make the package. compile_rules() { - cd $src #patch -p1 -i $stuff/SDL_extras.c.patch ./configure LIBS="-lt4k_common" \ --prefix=/usr \