~ubuntu-branches/debian/sid/pion/sid

« back to all changes in this revision

Viewing changes to debian/repack.sh

  • Committer: Package Import Robot
  • Author(s): Roberto C. Sanchez
  • Date: 2013-07-06 18:04:35 UTC
  • Revision ID: package-import@ubuntu.com-20130706180435-015epu3jx1s674qv
Tags: 5.0.1+dfsg-1
* Acknowledge NMU, thanks to Matthias Klose
* New upstream release (Closes: #701336, #708802)
* Source package renamed as a result of upstream changes: pion-net -> pion
* Binary packages renamed:
  + libpion-net-4.0 and libpion-common-4.0 -> libpion-5.0
  + libpion-net-dev and libpion-common-dev -> libpion-dev
* Update watch file
* Update copyright information
* Update to Standards-Version 3.9.4 (no changes)
* Enable compilation with hardening flags
* Add dependencies:
  + liblog4cpp5-dev for libpion-dev (Closes: #678433) (LP: #881632)
  + libssl-dev for libpion-dev (Closes: #678435)
* Ship headers for the plugins (LP: #1012022)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# Repackage upstream source to exclude non-distributable files
 
4
# should be called as "repack sh --upstream-source <ver> <downloaded file>
 
5
# (for example, via uscan)
 
6
 
 
7
set -e
 
8
set -u
 
9
 
 
10
FILE=$3
 
11
PKG=`dpkg-parsechangelog|grep ^Source:|sed 's/^Source: //'`
 
12
VER="$2+dfsg"
 
13
 
 
14
printf "\nRepackaging $FILE\n"
 
15
 
 
16
DIR=`mktemp -d ./tmpRepackXXXXXX`
 
17
trap "rm -rf $DIR" QUIT INT EXIT
 
18
 
 
19
tar xzf $FILE -C $DIR
 
20
 
 
21
TARGET=`echo $FILE |sed 's/_\(.*\)\.orig/_\1+dfsg.orig/'`
 
22
REPACK=`basename $TARGET`
 
23
 
 
24
UP_DIR=`ls -1 $DIR`
 
25
 
 
26
(
 
27
    set -e
 
28
    set -u
 
29
 
 
30
    cd $DIR
 
31
 
 
32
    rm -rv $UP_DIR/build/*.dll
 
33
 
 
34
    REPACK_DIR="$PKG-$VER.orig"
 
35
    mv $UP_DIR $REPACK_DIR
 
36
    tar -c $REPACK_DIR | gzip -9 > $REPACK
 
37
)
 
38
 
 
39
rm -v $FILE
 
40
mv $DIR/$REPACK $TARGET
 
41
 
 
42
echo "*** $FILE repackaged as $TARGET"
 
43