~ubuntu-branches/ubuntu/raring/ntop/raring

« back to all changes in this revision

Viewing changes to debian/get-orig-source.sh

  • Committer: Package Import Robot
  • Author(s): Ludovico Cavedon
  • Date: 2012-06-27 00:24:42 UTC
  • mfrom: (5.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20120627002442-kn4y162mek0rn7vi
Tags: 3:4.99.3+ndpi5517+dfsg1-1
* Imported Upstream version 4.99.3 and nDPI r5517.
* get-orig-source.sh: incude nDPI in the orig tarball.
* No longer suggest ntop-graphs and update NEWS about that.
* Update copyright for the new jqPlot library.
* Refresh patches.
* Enable hardening flags.
* Add install-jqplot.patch to install jqPlot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
 
3
set -e
 
4
 
3
5
DEB_UPSTREAM_VERSION=$1
4
6
DEB_SOURCE_VERSION=$2
5
7
NDPI_REV=$3
21
23
    # remove binary-onyl files from MaxMind
22
24
    rm ntop-$UPSTREAM_DIR/3rd_party/Geo*.dat.gz
23
25
 
24
 
    # Remove non-free Highcharts JS library.
25
 
    rm ntop-$UPSTREAM_DIR/html/exporting.js
26
 
    rm ntop-$UPSTREAM_DIR/html/highcharts.js
27
 
 
28
26
    # remove non-DFSG-compliant part of ntop.h
29
27
    ed ntop-$UPSTREAM_DIR/ntop.h > /dev/null <<EOF
30
28
/Declaration of POSIX directory browsing functions and types for Win32.
34
32
 
35
33
    mv ntop-$UPSTREAM_DIR ntop-$DEB_SOURCE_VERSION
36
34
 
 
35
    cd ntop-$DEB_SOURCE_VERSION
 
36
 
 
37
    rm -fr nDPI
 
38
    svn export -r $NDPI_REV https://svn.ntop.org/svn/ntop/trunk/nDPI/
 
39
    cd ..
 
40
 
37
41
    GZIP=--best tar -cz --owner root --group root --mode a+rX \
38
42
        -f ntop_$DEB_SOURCE_VERSION.orig.tar.gz ntop-$DEB_SOURCE_VERSION
39
43
 
41
45
 
42
46
    rm -fr ntop-$DEB_SOURCE_VERSION
43
47
fi
44
 
 
45
 
if [ ! -f ../ntop_$DEB_SOURCE_VERSION.orig-nDPI.tar.gz ]; then
46
 
    rm -fr nDPI
47
 
    svn export -r $NDPI_REV https://svn.ntop.org/svn/ntop/trunk/nDPI/
48
 
    GZIP=--best tar -cz --owner root --group root --mode a+rX \
49
 
        -f ../ntop_$DEB_SOURCE_VERSION.orig-nDPI.tar.gz nDPI
50
 
fi