~vanvugt/+junk/mediatomb

« back to all changes in this revision

Viewing changes to debian/mediatomb-get-orig-source

  • Committer: Bazaar Package Importer
  • Author(s): Andres Mejia
  • Date: 2008-03-02 13:09:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080302130916-zlljdze3kt7vuq4b
Tags: 0.11.0-1
* New upstream release.
* Include message about which inotify headers will be used when enabling
  inotify runtime support.
* Fixed error with use of INTERFACE in init script. Also removed use of -m
  option.
* Including new config.xml options.
* Added more build dependencies for new upstream release.
* Removed build dependency of libid3-dev, taglib is now preferred.
* mediatomb.xpm and manpage.xml is now included in orig tarball.
* inotify patch is not needed anymore.
* md5 patch has been committed upstream and is no longer needed. Also removed
  README.Debian.
* TwinHelix PNG fix is now used. Removed from TODO.
* Adding dependency of iceweasel for mediatomb package.
* Updated copyright file.
* Updated watch file.
* Updated rules file for proper configure options.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# generate it into an orig source tarball for Debian.
5
5
 
6
6
# Common variables used to ease maintenance of this script
7
 
MEDIATOMB_TARBALL="mediatomb-0.10.0.tar.gz"
8
 
MEDIATOMB_VERSION="0.10.0"
9
 
MEDIATOMB_TARBALL_CHECKSUM="2436c73de4ac5f3ba1575f7ee93a0430"
 
7
MEDIATOMB_TARBALL="mediatomb-0.11.0.tar.gz"
 
8
MEDIATOMB_VERSION="0.11.0"
 
9
MEDIATOMB_TARBALL_CHECKSUM="661f08933830d920de21436fe122fb15"
10
10
 
11
11
USAGE="\n\
12
12
This script is used to generate the orig tarball used in building\n\
13
 
Debian packages for mediatomb-$MEDIATOMB_VERSION.dfsg1.\n\
 
13
Debian packages for mediatomb-$MEDIATOMB_VERSION.\n\
14
14
Usage: mediatomb-get-orig-source [OPTION]\n\
15
15
\n\
16
16
 -h, --help                 Display this help message.\n\
17
 
 --remove-upstream-tarball    Remove the upstream source tarball.\n\
18
 
 --remove-orig-dir            Remove the generated orig directory.\n"
 
17
 --remove-upstream-tarball    Remove the upstream source tarball.\n"
19
18
 
20
19
while [ "$#" -gt "0" ]
21
20
do
28
27
            REMOVE_UPSTREAM_TARBALL=1
29
28
            shift
30
29
            ;;
31
 
        --remove-orig-dir)
32
 
            REMOVE_ORIG_DIR=1
33
 
            shift
34
 
            ;;
35
30
    esac
36
31
done
37
32
 
49
44
    echo "Checksum verified. Checksum is $COMPUTED_CHECKSUM."
50
45
fi
51
46
 
52
 
echo -n "Unpacking upstream tarball..."
53
 
tar -xzf $MEDIATOMB_TARBALL
54
 
echo "done."
55
 
 
56
 
echo -n "Removing problematic files from upstream tarball..."
57
 
rm mediatomb-$MEDIATOMB_VERSION/tombupnp/upnp/src/inc/upnp_md5.h
58
 
rm mediatomb-$MEDIATOMB_VERSION/tombupnp/upnp/src/uuid/upnp_md5.c
59
 
echo "done."
60
 
 
61
 
echo -n "Generating orig source tarball..."
62
 
tar -czf mediatomb_$MEDIATOMB_VERSION.dfsg1.orig.tar.gz \
63
 
    mediatomb-$MEDIATOMB_VERSION
64
 
echo "done."
65
 
 
66
 
if [ $REMOVE_ORIG_DIR ]; then
67
 
    echo -n "Removing unpacked upstream source directory..."
68
 
    rm -rf mediatomb-$MEDIATOMB_VERSION
69
 
    echo "done."
70
 
fi
 
47
echo -n "Copying tarball..."
 
48
cp $MEDIATOMB_TARBALL mediatomb_$MEDIATOMB_VERSION.orig.tar.gz
 
49
echo "done."
71
50
if [ $REMOVE_UPSTREAM_TARBALL ]; then
72
 
    echo -n "Removing upstream source tarball..."
73
 
    rm $MEDIATOMB_TARBALL
74
 
    echo "done."
 
51
        echo -n "Removing upstream tarball..."
 
52
        rm $MEDIATOMB_TARBALL
 
53
        echo "done."
75
54
fi