This file is indexed.

/usr/bin/lua-create-gitbuildpackage-layout is in dh-lua 24.

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
#!/bin/sh
# Copyright: © 2012 Enrico Tassi <gareuselesinge@debian.org>
# License: MIT

if [ -z "$1" -o "$1" = "-h" -o "$1" = "--help" ]; then
	echo Give as a unique argument the name of the source package
	echo that will be the name of the root directory of the package.
	exit 1
fi

PKG=$1

mkdir $PKG/
cd $PKG
git init
git remote add origin ssh://git.debian.org/git/pkg-lua/$PKG.git
[ ! -z "$DEBFULLNAME" ] && git config user.name "$DEBFULLNAME"
[ ! -z "$DEBEMAIL" ] && git config user.email "<$DEBEMAIL>"
cd ..
mkdir $PKG/debian
mkdir $PKG/debian/patches
mkdir $PKG/debian/source
mkdir $PKG/debian/tests

cat > $PKG//debian/watch <<EOT
# test this watch file using:
# uscan --watchfile debian/watch --upstream-version 0.0.1 --package $PKG
#
version=3
http://...  /.../$PKG-([\d\.]*).tar.gz
EOT
echo '3.0 (quilt)' > $PKG/debian/source/format
touch $PKG/debian/patches/series
cp /usr/share/dh-lua/template/dh-lua.conf $PKG/debian/
cp /usr/share/dh-lua/template/rules $PKG/debian/
cp /usr/share/dh-lua/template/copyright $PKG/debian/
cp /usr/share/dh-lua/template/control $PKG/debian/
cp /usr/share/dh-lua/template/compat $PKG/debian/
cp /usr/share/dh-lua/template/tests.control $PKG/debian/tests/control
cp /usr/share/dh-lua/template/tests.dh-lua-tests $PKG/debian/tests/dh-lua-tests
chmod a+x $PKG/debian/rules
cd $PKG
git add debian/
cd ..

cat > init-repo-$PKG.sh <<EOT
cd /git/pkg-lua/
umask 002
mkdir $PKG.git
cd $PKG.git
git --bare init --shared
echo "Repository for the $PKG package" > description
mv hooks/post-update.sample hooks/post-update
chmod a+x hooks/post-update
EOT

echo "Now run: scp init-repo-$PKG.sh git.debian.org: && ssh git.debian.org sh init-repo-$PKG.sh"