/usr/share/doc/dpatch/examples/sample.00template is in dpatch 2.0.38.
This file is owned by root:root, with mode 0o644.
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 | #!/bin/sh
# Sample debian/patches/00template script
# era Thu May 15 23:24:07 2003
# This simply creates the equivalent of the hard-coded template.
# Adapt and hack to suit your needs.
file="$1"
shift
description="$@"
fullnameguess="$(getent passwd $(id -un) | cut -f5 -d: | cut -f1 -d,)"
domainguess=$([ -f /etc/mailname ] && cat /etc/mailname || hostname -f)
emailguess="${DEBEMAIL:-${EMAIL:-$(logname)@${domainguess}}}"
cat <<EOF
#! /bin/sh /usr/share/dpatch/dpatch-run
## ${file} by ${DEBFULLNAME:-$fullnameguess} <$emailguess>
##
## All lines beginning with \`## DP:' are a description of the patch.
## DP: ${description:-No description}
@DPATCH@
EOF
|