# HG changeset patch # User Pascal Bellard # Date 1220172047 0 # Node ID 1e551bfbe671eb60cbfd5fda720230ce04819d10 # Parent 24cffdc5d96157822c93c4365bd8ad92a1e4d99e bristuff related packages: VERSION="bristuff" diff -r 24cffdc5d961 -r 1e551bfbe671 asterisk-dev/receipt --- a/asterisk-dev/receipt Fri Aug 29 15:41:08 2008 +0000 +++ b/asterisk-dev/receipt Sun Aug 31 08:40:47 2008 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="asterisk-dev" -VERSION= +VERSION="bristuff" CATEGORY="system" SHORT_DESC="Open Source PBX and telephony toolkit development files." MAINTAINER="pascal.bellard@slitaz.org" @@ -12,17 +12,15 @@ get_version() { eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh) - VERSION=$AST_VER + VERSION=$WANTED-$AST_VER } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - if [ -d taz/$PACKAGE-/fs ]; then - get_version - sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" receipt - mv taz/$PACKAGE- taz/$PACKAGE-$VERSION - fi + get_version + [ -d taz/$PACKAGE-$WANTED/fs ] && \ + mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) while read file; do dir=$(dirname $file) diff -r 24cffdc5d961 -r 1e551bfbe671 asterisk-sound-fr/receipt --- a/asterisk-sound-fr/receipt Fri Aug 29 15:41:08 2008 +0000 +++ b/asterisk-sound-fr/receipt Sun Aug 31 08:40:47 2008 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="asterisk-sound-fr" -VERSION= +VERSION="bristuff" CATEGORY="system" SHORT_DESC="Open Source PBX and telephony toolkit sound files (fr)." MAINTAINER="pascal.bellard@slitaz.org" @@ -13,17 +13,15 @@ get_version() { eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh) - VERSION=$AST_VER + VERSION=$WANTED-$AST_VER } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - if [ -d taz/$PACKAGE-/fs ]; then - get_version - sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" receipt - mv taz/$PACKAGE- taz/$PACKAGE-$VERSION - fi + get_version + [ -d taz/$PACKAGE-$WANTED/fs ] && \ + mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) while read file; do dir=$(dirname $file) diff -r 24cffdc5d961 -r 1e551bfbe671 asterisk-sound/receipt --- a/asterisk-sound/receipt Fri Aug 29 15:41:08 2008 +0000 +++ b/asterisk-sound/receipt Sun Aug 31 08:40:47 2008 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="asterisk-sound" -VERSION= +VERSION="bristuff" CATEGORY="system" SHORT_DESC="Open Source PBX and telephony toolkit sound files (en)." MAINTAINER="pascal.bellard@slitaz.org" @@ -13,17 +13,15 @@ get_version() { eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh) - VERSION=$AST_VER + VERSION=$WANTED-$AST_VER } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - if [ -d taz/$PACKAGE-/fs ]; then - get_version - sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" receipt - mv taz/$PACKAGE- taz/$PACKAGE-$VERSION - fi + get_version + [ -d taz/$PACKAGE-$WANTED/fs ] && \ + mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) while read file; do dir=$(dirname $file) diff -r 24cffdc5d961 -r 1e551bfbe671 asterisk/receipt --- a/asterisk/receipt Fri Aug 29 15:41:08 2008 +0000 +++ b/asterisk/receipt Sun Aug 31 08:40:47 2008 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="asterisk" -VERSION= +VERSION="bristuff" CATEGORY="system" SHORT_DESC="Open Source PBX and telephony toolkit." MAINTAINER="pascal.bellard@slitaz.org" @@ -16,17 +16,15 @@ get_version() { eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh) - VERSION=$AST_VER + VERSION=$WANTED-$AST_VER } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - if [ -d taz/$PACKAGE-/fs ]; then - get_version - sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" receipt - mv taz/$PACKAGE- taz/$PACKAGE-$VERSION - fi + get_version + [ -d taz/$PACKAGE-$WANTED/fs ] && \ + mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) while read file; do dir=$(dirname $file) diff -r 24cffdc5d961 -r 1e551bfbe671 zaptel-dev/receipt --- a/zaptel-dev/receipt Fri Aug 29 15:41:08 2008 +0000 +++ b/zaptel-dev/receipt Sun Aug 31 08:40:47 2008 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="zaptel-dev" -VERSION= +VERSION="bristuff" CATEGORY="system" SHORT_DESC="Zapata Telephony Interface Driver devel files." MAINTAINER="pascal.bellard@slitaz.org" @@ -12,17 +12,15 @@ get_version() { eval $(grep ^ZAP_VER= $WOK/$WANTED/$WANTED-*/download.sh) - VERSION=$ZAP_VER + VERSION=$WANTED-$ZAP_VER } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - if [ -d taz/$PACKAGE-/fs ]; then - get_version - sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" receipt - mv taz/$PACKAGE- taz/$PACKAGE-$VERSION - fi + get_version + [ -d taz/$PACKAGE-$WANTED/fs ] && \ + mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) while read file; do dir=$(dirname $file) diff -r 24cffdc5d961 -r 1e551bfbe671 zaptel-perl/receipt --- a/zaptel-perl/receipt Fri Aug 29 15:41:08 2008 +0000 +++ b/zaptel-perl/receipt Sun Aug 31 08:40:47 2008 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="zaptel-perl" -VERSION= +VERSION="bristuff" CATEGORY="system" SHORT_DESC="Zapata Telephony Interface Driver, PERL modules." MAINTAINER="pascal.bellard@slitaz.org" @@ -13,17 +13,15 @@ get_version() { eval $(grep ^ZAP_VER= $WOK/$WANTED/$WANTED-*/download.sh) - VERSION=$ZAP_VER + VERSION=$WANTED-$ZAP_VER } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - if [ -d taz/$PACKAGE-/fs ]; then - get_version - sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" receipt - mv taz/$PACKAGE- taz/$PACKAGE-$VERSION - fi + get_version + [ -d taz/$PACKAGE-$WANTED/fs ] && \ + mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) while read file; do dir=$(dirname $file) diff -r 24cffdc5d961 -r 1e551bfbe671 zaptel/receipt --- a/zaptel/receipt Fri Aug 29 15:41:08 2008 +0000 +++ b/zaptel/receipt Sun Aug 31 08:40:47 2008 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="zaptel" -VERSION= +VERSION="bristuff" CATEGORY="system" SHORT_DESC="Zapata Telephony Interface Driver." MAINTAINER="pascal.bellard@slitaz.org" @@ -13,17 +13,15 @@ get_version() { eval $(grep ^ZAP_VER= $WOK/$WANTED/$WANTED-*/download.sh) - VERSION=$ZAP_VER + VERSION=$WANTED-$ZAP_VER } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - if [ -d taz/$PACKAGE-/fs ]; then - get_version - sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" receipt - mv taz/$PACKAGE- taz/$PACKAGE-$VERSION - fi + get_version + [ -d taz/$PACKAGE-$WANTED/fs ] && \ + mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION kver=$(grep "kernel version" ../linux/linux-*/.config) kver=${kver##* } EXTRAVERSION=_$kver @@ -43,7 +41,7 @@ $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <