debian: overrides some irrelevant lintian warnings

This commit is contained in:
Travis Cross 2012-05-06 23:26:37 +00:00
parent 8bbfe99e19
commit c7426963b7
2 changed files with 64 additions and 4 deletions

1
debian/.gitignore vendored
View File

@ -10,6 +10,7 @@
/freeswitch-conf-*.install /freeswitch-conf-*.install
/freeswitch-music-*.install /freeswitch-music-*.install
/freeswitch-sounds-*.install /freeswitch-sounds-*.install
/*.lintian-overrides
/*.log /*.log
/*.substvars /*.substvars
/*.debhelper /*.debhelper

67
debian/bootstrap.sh vendored
View File

@ -487,6 +487,39 @@ print_mod_install () {
EOF EOF
} }
print_common_overrides () {
m="$1"
cat <<EOF
# The long file names are caused by appending the nightly information.
# Since one of these packages will never end up on a Debian CD, the
# related problems with long file names will never come up here.
${m}: package-has-long-file-name
EOF
}
print_mod_overrides () {
print_common_overrides "$1"
cat <<EOF
# We're definitely not doing this. Nothing in FreeSWITCH has a more
# restrictive license than LGPL or MPL.
${m}: possible-gpl-code-linked-with-openssl
EOF
}
print_conf_overrides () {
print_common_overrides "$1"
}
print_sound_overrides () {
print_common_overrides "$1"
}
print_music_overrides () {
print_common_overrides "$1"
}
print_conf_control () { print_conf_control () {
cat <<EOF cat <<EOF
Package: freeswitch-conf-${conf//_/-} Package: freeswitch-conf-${conf//_/-}
@ -564,6 +597,12 @@ geninstall_per_mod () {
test -f $f.tmpl && cat $f.tmpl >> $f test -f $f.tmpl && cat $f.tmpl >> $f
} }
genoverrides_per_mod () {
local f=freeswitch-${module_name//_/-}.lintian-overrides
(print_edit_warning; print_mod_overrides freeswitch-${module_name//_/-}) > $f
test -f $f.tmpl && cat $f.tmpl >> $f
}
genmodules_per_cat () { genmodules_per_cat () {
echo "## $category" >> modules_.conf echo "## $category" >> modules_.conf
} }
@ -574,17 +613,25 @@ genmodules_per_mod () {
genconf () { genconf () {
print_conf_control >> control print_conf_control >> control
local f=freeswitch-conf-${conf//_/-}.install local p=freeswitch-conf-${conf//_/-}
local f=$p.install
(print_edit_warning; print_conf_install) > $f (print_edit_warning; print_conf_install) > $f
test -f $f.tmpl && cat $f.tmpl >> $f test -f $f.tmpl && cat $f.tmpl >> $f
local f=$p.lintian-overrides
(print_edit_warning; print_conf_overrides "$p") > $f
test -f $f.tmpl && cat $f.tmpl >> $f
} }
genmusic () { genmusic () {
rate="$1" rate_k="${rate%%000}k" rate="$1" rate_k="${rate%%000}k"
print_music_control >> control print_music_control >> control
local f=freeswitch-music-default-${rate_k}.install local p=freeswitch-music-default-${rate_k}
local f=$p.install
(print_edit_warning; print_music_install) > $f (print_edit_warning; print_music_install) > $f
test -f $f.tmpl && cat $f.tmpl >> $f test -f $f.tmpl && cat $f.tmpl >> $f
local f=$p.lintian-overrides
(print_edit_warning; print_music_overrides "$p") > $f
test -f $f.tmpl && cat $f.tmpl >> $f
unset rate rate_k unset rate rate_k
} }
@ -594,9 +641,13 @@ gensound () {
country=$(echo $sound | cut -d/ -f2) country=$(echo $sound | cut -d/ -f2)
speaker=$(echo $sound | cut -d/ -f3) speaker=$(echo $sound | cut -d/ -f3)
print_sound_control >> control print_sound_control >> control
local f=freeswitch-sounds-${sound//\//-}-${rate_k}.install local p=freeswitch-sounds-${sound//\//-}-${rate_k}
local f=$p.install
(print_edit_warning; print_sound_install) > $f (print_edit_warning; print_sound_install) > $f
test -f $f.tmpl && cat $f.tmpl >> $f test -f $f.tmpl && cat $f.tmpl >> $f
local f=$p.lintian-overrides
(print_edit_warning; print_sound_overrides "$p") > $f
test -f $f.tmpl && cat $f.tmpl >> $f
unset rate rate_k sound sound_path language country speaker unset rate rate_k sound sound_path language country speaker
} }
@ -752,6 +803,14 @@ map_confs 'genconf'
(echo "### modules"; echo) >> control (echo "### modules"; echo) >> control
map_modules "mod_filter" \ map_modules "mod_filter" \
"gencontrol_per_cat genmodules_per_cat" \ "gencontrol_per_cat genmodules_per_cat" \
"gencontrol_per_mod geninstall_per_mod genmodules_per_mod" "gencontrol_per_mod geninstall_per_mod genoverrides_per_mod genmodules_per_mod"
grep -e '^Package:' control | while xread l; do
m="${l#*: }"
f=$m.lintian-overrides
if [ ! -s $f ] || ! grep -e 'package-has-long-file-name' $f >/dev/null; then
(print_edit_warning; print_common_overrides "$m") >> $f
fi
done
touch .stamp-bootstrap touch .stamp-bootstrap