This file is indexed.

/usr/bin/debianize-vdrplugin is in vdr-dev 2.2.0-5build1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/sh

detect_plugin_name()
{
    local PATTERN='.*\/\(.*\)-\([0-9][0-9a-zA-Z+.~-]*\)$'
    if pwd | grep -q -E ".*\/.*-[0-9][0-9a-zA-Z+.~-]*$" ; then
        PLUGIN=`pwd | sed "s/$PATTERN/\1/"`
        VERSION=`pwd | sed "s/$PATTERN/\2/"`
    else
        echo "debianize-vdrplugin expects the upstream sources to be extracted in a"
        echo "directory named:  <PLUGIN-NAME>-<VERSION>"
        echo 
        echo "e.g.: coolplugin-0.0.1"
        echo 
        echo "The upsteam tarball should be named: vdr-<PLUGIN-NAME>-<VERSION>.tar.gz"
        echo 
        echo "e.g.: vdr-coolplugin-0.0.1.tar.gz"
        echo 
        exit 1
    fi
}

create_orig_tarball()
{
    local tarball

    ORIGTARBALL="../vdr-plugin-$PLUGIN"_"$VERSION.orig.tar.gz"

    if [ -e $ORIGTARBALL ] ; then
        return
    fi

    for tarball in `find ../ -regex ".*$PLUGIN-$VERSION.t.*\(gz\|bz2\)"`; do
        ln -sf `basename $tarball` $ORIGTARBALL
        return
    done
}

check_dh_make()
{
    if [ ! -x /usr/bin/dh_make ] ; then
        echo "If you want to use this script, please install the package dh-make!"
        exit 1
    fi
}

replace_vdr_version()
{
    VDRVERSION=`dpkg -s vdr-dev | awk '/Version/ { print $2 }'`
    perl -pi -e "s/#VDRVERSION#/$VDRVERSION/g" debian/control
}

replace_plugin_name()
{
    perl -pi -e "s/#PLUGIN#/$PLUGIN/g" debian/install
    perl -pi -e "s/#PLUGIN#/$PLUGIN/g" debian/links.ex
}

#
# main()
#

check_dh_make
detect_plugin_name
create_orig_tarball

dh_make="/usr/bin/dh_make -d -s -t /usr/share/vdr-dev/plugin-template -p vdr-plugin-$PLUGIN"
if [ ! -e $ORIGTARBALL ] ; then
    dh_make="$dh_make -n"
fi

$dh_make

if [ "$?" -eq "0" ]; then
    replace_vdr_version
    replace_plugin_name
fi

if [ ! -d debian/source ]; then
  mkdir debian/source
  echo "3.0 (quilt)" >debian/source/format
fi