# HG changeset patch # User Pascal Bellard # Date 1238326474 0 # Node ID 4e225981004f983fb82146c67841077f78f3cf68 # Parent d5075dd7430c6bc4a62d5d4d740f280a99805332 declare /etc/filesystems diff -r d5075dd7430c -r 4e225981004f linux-cifs/receipt --- a/linux-cifs/receipt Fri Mar 27 22:07:54 2009 +0000 +++ b/linux-cifs/receipt Sun Mar 29 11:34:34 2009 +0000 @@ -7,13 +7,14 @@ MAINTAINER="pascal.bellard@slitaz.org" WANTED="linux" WEB_SITE="http://www.kernel.org/" +CONFIG_FILES="/etc/filesystems" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { local path path=lib/modules/$VERSION-slitaz/kernel - mkdir -p $fs/$path + mkdir -p $fs/$path $fs/etc export src export _pkg $src/list_modules.sh fs/cifs | while read module; do @@ -21,18 +22,19 @@ [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $_pkg/$path/$module $fs/$dir done + touch $fs/etc/filesystems } # Post install/remove commands for Tazpkg. post_install() { - grep -qs ^cifs$ $1/etc/filesystems || \ - echo "cifs" >> $1/etc/filesystems + grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ + echo "${PACKAGE#*-}" >> $1/etc/filesystems depmod -a -b "$1/" $VERSION-slitaz } post_remove() { - sed -i '/^cifs$/d' $1/etc/filesystems + sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems depmod -a $VERSION-slitaz } diff -r d5075dd7430c -r 4e225981004f linux-hfsplus/receipt --- a/linux-hfsplus/receipt Fri Mar 27 22:07:54 2009 +0000 +++ b/linux-hfsplus/receipt Sun Mar 29 11:34:34 2009 +0000 @@ -7,13 +7,14 @@ MAINTAINER="pascal.bellard@slitaz.org" WANTED="linux" WEB_SITE="http://www.kernel.org/" +CONFIG_FILES="/etc/filesystems" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { local path path=lib/modules/$VERSION-slitaz/kernel - mkdir -p $fs/$path + mkdir -p $fs/$path $fs/etc export src export _pkg $src/list_modules.sh fs/hfsplus | while read module; do @@ -21,6 +22,7 @@ [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $_pkg/$path/$module $fs/$dir done + touch $fs/etc/filesystems } # Post install/remove commands for Tazpkg. diff -r d5075dd7430c -r 4e225981004f linux-jfs/receipt --- a/linux-jfs/receipt Fri Mar 27 22:07:54 2009 +0000 +++ b/linux-jfs/receipt Sun Mar 29 11:34:34 2009 +0000 @@ -7,13 +7,14 @@ MAINTAINER="pascal.bellard@slitaz.org" WANTED="linux" WEB_SITE="http://www.kernel.org/" +CONFIG_FILES="/etc/filesystems" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { local path path=lib/modules/$VERSION-slitaz/kernel - mkdir -p $fs/$path + mkdir -p $fs/$path $fs/etc export src export _pkg $src/list_modules.sh fs/jfs | while read module; do @@ -21,18 +22,19 @@ [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $_pkg/$path/$module $fs/$dir done + touch $fs/etc/filesystems } # Post install/remove commands for Tazpkg. post_install() { - grep -qs ^jfs$ $1/etc/filesystems || \ - echo "jfs" >> $1/etc/filesystems + grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ + echo "${PACKAGE#*-}" >> $1/etc/filesystems depmod -a -b "$1/" $VERSION-slitaz } post_remove() { - sed -i '/^jfs$/d' $1/etc/filesystems + sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems depmod -a $VERSION-slitaz } diff -r d5075dd7430c -r 4e225981004f linux-ncpfs/receipt --- a/linux-ncpfs/receipt Fri Mar 27 22:07:54 2009 +0000 +++ b/linux-ncpfs/receipt Sun Mar 29 11:34:34 2009 +0000 @@ -7,13 +7,14 @@ MAINTAINER="pascal.bellard@slitaz.org" WANTED="linux" WEB_SITE="http://www.kernel.org/" +CONFIG_FILES="/etc/filesystems" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { local path path=lib/modules/$VERSION-slitaz/kernel - mkdir -p $fs/$path + mkdir -p $fs/$path $fs/etc export src export _pkg $src/list_modules.sh fs/ncpfs | while read module; do @@ -26,13 +27,13 @@ # Post install/remove commands for Tazpkg. post_install() { - grep -qs ^ncpfs$ $1/etc/filesystems || \ - echo "ncpfs" >> $1/etc/filesystems + grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ + echo "${PACKAGE#*-}" >> $1/etc/filesystems depmod -a -b "$1/" $VERSION-slitaz } post_remove() { - sed -i '/^ncpfs$/d' $1/etc/filesystems + sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems depmod -a $VERSION-slitaz } diff -r d5075dd7430c -r 4e225981004f linux-reiserfs/receipt --- a/linux-reiserfs/receipt Fri Mar 27 22:07:54 2009 +0000 +++ b/linux-reiserfs/receipt Sun Mar 29 11:34:34 2009 +0000 @@ -7,13 +7,14 @@ MAINTAINER="pascal.bellard@slitaz.org" WANTED="linux" WEB_SITE="http://www.kernel.org/" +CONFIG_FILES="/etc/filesystems" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { local path path=lib/modules/$VERSION-slitaz/kernel - mkdir -p $fs/$path + mkdir -p $fs/$path $fs/etc export src export _pkg $src/list_modules.sh fs/reiserfs | while read module; do @@ -21,18 +22,19 @@ [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $_pkg/$path/$module $fs/$dir done + touch $fs/etc/filesystems } # Post install/remove commands for Tazpkg. post_install() { - grep -qs ^reiserfs$ $1/etc/filesystems || \ - echo "reiserfs" >> $1/etc/filesystems + grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ + echo "${PACKAGE#*-}" >> $1/etc/filesystems depmod -a -b "$1/" $VERSION-slitaz } post_remove() { - sed -i '/^reiserfs$/d' $1/etc/filesystems + sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems depmod -a $VERSION-slitaz } diff -r d5075dd7430c -r 4e225981004f ntfs-3g/receipt --- a/ntfs-3g/receipt Fri Mar 27 22:07:54 2009 +0000 +++ b/ntfs-3g/receipt Sun Mar 29 11:34:34 2009 +0000 @@ -9,6 +9,7 @@ TARBALL="$PACKAGE-$VERSION.tgz" WEB_SITE="http://www.ntfs-3g.org/" WGET_URL="$WEB_SITE/$TARBALL" +CONFIG_FILES="/etc/filesystems" # Rules to configure and make the package. compile_rules() @@ -17,30 +18,31 @@ sed -i 's/\terr = ntfs_open\(.*\);/\tntfs_log_clear_levels((u32) -1); if (err = ntfs_open\1) goto err2;/' \ src/ntfs-3g.c ./configure --prefix=/usr \ - --mandir=/usr/share/man $CONFIGURE_ARGS - make + --mandir=/usr/share/man $CONFIGURE_ARGS && + make && make DESTDIR=$PWD/_pkg install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/lib $fs/usr/lib + mkdir -p $fs/lib $fs/usr/lib $fs/etc cp -a $_pkg/bin $fs/ cp -a $_pkg/sbin $fs/ cp -a $_pkg/lib/*.so* $fs/lib cp -a $_pkg/usr/lib/*.so* $fs/usr/lib cp -a $_pkg/usr/bin $fs/usr + touch $fs/etc/filesystems } # Pre remove and post install commands for Tazpkg. pre_remove() { - sed -i '/^ntfs-3g$/d' $1/etc/filesystems + sed -i '/^$PACKAGE$/d' $1/etc/filesystems } post_install() { - grep -qs ^ntfs-3g$ $1/etc/filesystems || \ - echo "ntfs-3g" >> $1/etc/filesystems + grep -qs ^$PACKAGE$ $1/etc/filesystems || \ + echo "$PACKAGE" >> $1/etc/filesystems } diff -r d5075dd7430c -r 4e225981004f squashfs/receipt --- a/squashfs/receipt Fri Mar 27 22:07:54 2009 +0000 +++ b/squashfs/receipt Sun Mar 29 11:34:34 2009 +0000 @@ -11,6 +11,7 @@ DEPENDS="zlib squashfs-module" BUILD_DEPENDS="zlib-dev patch lzma" PROVIDE="cromfs-or-squashfs" +CONFIG_FILES="/etc/filesystems" # Download a source tarball . /etc/tazwok.conf @@ -179,17 +180,19 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { + mkdir $fs/etc + touch $fs/etc/filesystems cp -a $_pkg/usr $_pkg/sbin $fs } # Pre remove and post install commands for Tazpkg. pre_remove() { - sed -i '/^squashfs$/d' $1/etc/filesystems + sed -i '/^$PACKAGE$/d' $1/etc/filesystems } post_install() { - grep -qs ^squashfs$ $1/etc/filesystems || \ - echo "squashfs" >> $1/etc/filesystems + grep -qs ^$PACKAGE$ $1/etc/filesystems || \ + echo "$PACKAGE" >> $1/etc/filesystems }