Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[evol] added asterisk-sounds-wav-fr-ca
git-svn-id: https://rcs.lan.proformatique.com/svn/xivo/trunk@8373 dc85baef-7018-0410-bfbd-8a639da648bb
- Loading branch information
Marc Dequènes (Duck)
committed
Jun 15, 2010
1 parent
658cd15
commit 8e37c34
Showing
5 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/make -f | ||
# -*- mode: makefile; coding: utf-8 -*- | ||
# | ||
# $Revision: 8077 $ | ||
# $Date: 2010-05-06 16:12:24 +0200 (Thu, 06 May 2010) $ | ||
|
||
include $(NONO_MK)/autobuild.mk | ||
include $(NONO_MK)/autobuild-classic.mk | ||
|
||
DEB_PKG = "asterisk-sounds-wav-fr-ca" | ||
TARBALL_DIR := $(shell mktemp -d) | ||
|
||
SRCVER = $(shell cat $(MODULE_PATH)/SOURCE-VERSION) | ||
TARBALL_NAME = "asterisk-sounds-wav-fr-ca_$(SRCVER).orig.tar.gz" | ||
UPSTREAM_VER = $(SRCVER)+pf.xivo.$(MAINREV)~svn$(SVNREV) | ||
|
||
|
||
default: | ||
|
||
prepare-tarball:: | ||
cp $(MODULE_PATH)/tarballs/$(TARBALL_NAME) ${TARBALL_DIR} | ||
@cp -a $(MODULE_PATH)/patches ${TARBALL_DIR} | ||
|
||
clean-tarball:: | ||
@rm -rf ${TARBALL_DIR} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.4.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
#!/bin/bash | ||
|
||
. sources.pkg | ||
|
||
########################################################################## | ||
|
||
usage() | ||
{ | ||
echo "Usage: $0 <version>" | ||
} | ||
|
||
UPVERSION=$1 | ||
if [ -z "${UPVERSION}" ]; then | ||
usage | ||
exit 1 | ||
fi | ||
|
||
if [ -n "${DFSG_EXCLUDE_PATTERNS}" ]; then | ||
FILENAME="${PKG_NAME}_${UPVERSION}+dfsg.orig.tar.gz" | ||
else | ||
FILENAME="${PKG_NAME}_${UPVERSION}.orig.tar.gz" | ||
fi | ||
|
||
mkdir -p ${DEST_PATH} | ||
|
||
if [ -e "${DEST_PATH}/${FILENAME}" ]; then | ||
echo "A tarball already exist for this version ; remove it if you want to regenerate." | ||
exit 0 | ||
fi | ||
|
||
UPFILENAME="${PKG_NAME}_${UPVERSION}.orig.tar.gz" | ||
URL="${BASE_URL}/${TARBALL_PREFIX}${UPVERSION}.tar.gz" | ||
|
||
echo "Downloading ${UPFILENAME} from ${URL}" | ||
wget -nv -T10 -t3 -O ${DEST_PATH}/${UPFILENAME} ${URL} | ||
if [ $? != 0 ]; then | ||
rm -f ${DEST_PATH}/${UPFILENAME} | ||
echo "Could not find tarball." | ||
exit 2 | ||
fi | ||
|
||
if [ -n "${DFSG_EXCLUDE_PATTERNS}" ]; then | ||
echo "Repacking as DFSG-free..." | ||
DIR="${DEST_PATH}/${PKG_NAME}-${UPVERSION}.tmp" | ||
rm -rf ${DIR} | ||
mkdir -p ${DIR} | ||
( | ||
cd ${DIR} | ||
tar xfz ../${UPFILENAME} | ||
if [ -e "${SRC_DIR_PREFIX}${UPVERSION}" ]; then | ||
( | ||
cd ${SRC_DIR_PREFIX}${UPVERSION} | ||
rm -rf ${DFSG_EXCLUDE_PATTERNS} | ||
) | ||
tar cfz ../${FILENAME} ${SRC_DIR_PREFIX}${UPVERSION} | ||
else | ||
echo "Source tarball layout changed. Check by yourself in '${DEST_PATH}/${PKG_NAME}-${UPVERSION}.tmp/'." | ||
exit 2 | ||
fi | ||
) | ||
rm -rf ${DIR} | ||
rm -f ${DEST_PATH}/${UPFILENAME} | ||
else | ||
if [ "${UPFILENAME}" != "${FILENAME}" ]; then | ||
mv ${DEST_PATH}/${UPFILENAME} ${DEST_PATH}/${FILENAME} | ||
fi | ||
fi | ||
|
||
echo "Done !" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DEST_PATH=tarballs | ||
BASE_URL="http://downloads.asterisk.org/pub/telephony/sounds/releases/" | ||
TARBALL_PREFIX="asterisk-core-sounds-fr-wav-" | ||
SRC_DIR_PREFIX= | ||
PKG_NAME="asterisk-sounds-wav-fr-ca" | ||
DFSG_EXCLUDE_PATTERNS= |
Binary file added
BIN
+15.1 MB
asterisk-sounds-wav-fr-ca/tarballs/asterisk-sounds-wav-fr-ca_1.4.19.orig.tar.gz
Binary file not shown.