[enh] removing latest lintian exceptions, no Error, no Warnings !

This commit is contained in:
Benjamin Sonntag 2018-06-24 19:40:22 +02:00
parent 7945034004
commit 144ff1e27a
6 changed files with 29 additions and 43 deletions

View File

@ -56,7 +56,8 @@ install-alternc: install-common
# Web Panel # Web Panel
test -d $(DESTDIR)/usr/share/alternc/panel || mkdir $(DESTDIR)/usr/share/alternc/panel test -d $(DESTDIR)/usr/share/alternc/panel || mkdir $(DESTDIR)/usr/share/alternc/panel
cp -r bureau/* $(DESTDIR)/usr/share/alternc/panel cp -r bureau/* $(DESTDIR)/usr/share/alternc/panel
sed -i -e "s/@@REPLACED_DURING_BUILD@@/${MAJOR}/" $(DESTDIR)/usr/share/alternc/panel/class/local.php sed -i -e "s/@@REPLACED_DURING_BUILD@@/${MAJOR}/" $(DESTDIR)/usr/share/alternc/panel/class/local.php $(DESTDIR)/usr/share/alternc/install/alternc.install
help2man -n --no-discard-stderr --section 8 $(DESTDIR)/usr/share/alternc/install/alternc.install -o $(DESTDIR)/usr/share/man/man8/alternc.install.8
chown -R root:root $(DESTDIR)/usr/share/alternc/panel chown -R root:root $(DESTDIR)/usr/share/alternc/panel
chmod -R 644 $(DESTDIR)/usr/share/alternc/panel chmod -R 644 $(DESTDIR)/usr/share/alternc/panel
chmod -R a+X $(DESTDIR)/usr/share/alternc/panel chmod -R a+X $(DESTDIR)/usr/share/alternc/panel

View File

@ -1,22 +0,0 @@
alternc-slave: setuid-binary usr/lib/alternc/mem_add 4750 root/www-data
alternc-slave: setuid-binary usr/lib/alternc/mem_del 4750 root/www-data
alternc-slave: setuid-binary usr/lib/alternc/quota_edit 4750 root/www-data
alternc-slave: setuid-binary usr/lib/alternc/quota_get 4750 root/www-data
alternc-slave: executable-is-not-world-readable usr/lib/alternc/fixperms.sh 0750 != 0755
alternc-slave: executable-is-not-world-readable usr/lib/alternc/mem_add 4750
alternc-slave: executable-is-not-world-readable usr/lib/alternc/mem_del 4750
alternc-slave: executable-is-not-world-readable usr/lib/alternc/quota_delete 0750 != 0755
alternc-slave: executable-is-not-world-readable usr/lib/alternc/quota_get 4750
alternc-slave: executable-is-not-world-readable usr/lib/alternc/quota_edit 4750
alternc-slave: executable-is-not-world-readable usr/lib/alternc/quota_edit.sh 0750 != 0755
alternc-slave: executable-is-not-world-readable usr/lib/alternc/quota_get.sh 0750 != 0755
alternc-slave: executable-is-not-world-readable usr/lib/alternc/quota_init 0750 != 0755
alternc-slave: executable-is-not-world-readable usr/lib/alternc/rawstat.daily 0750 != 0755
alternc-slave: executable-is-not-world-readable usr/lib/alternc/sendmail 0750 != 0755
alternc-slave: executable-is-not-world-readable usr/lib/alternc/slave_dns 0750 != 0755
alternc-slave: executable-is-not-world-readable usr/lib/alternc/spoolsize.php 0750 != 0755
alternc-slave: executable-is-not-world-readable usr/lib/alternc/sqlbackup.sh 0750 != 0755
alternc-slave: executable-is-not-world-readable usr/lib/alternc/update_domains.sh 0750 != 0755
alternc-slave: executable-is-not-world-readable usr/lib/alternc/functions_hosting.sh 0750 != 0755
alternc-slave: executable-is-not-world-readable usr/lib/alternc/functions_dns.sh 0750 != 0755
alternc-slave: non-standard-dir-in-var var/backups/

View File

@ -1,6 +0,0 @@
alternc: non-standard-dir-perm var/lib/alternc/backups/ 0700 != 0755
alternc: setuid-binary usr/lib/alternc/quota_edit 4750 root/www-data
alternc: setuid-binary usr/lib/alternc/quota_get 4750 root/www-data
alternc: setuid-binary usr/lib/alternc/mem_add 4750 root/www-data
alternc: setuid-binary usr/lib/alternc/mem_del 4750 root/www-data
alternc: setuid-binary usr/lib/alternc/db_create 4750 root/www-data

1
debian/control vendored
View File

@ -3,6 +3,7 @@ Section: admin
Priority: optional Priority: optional
Maintainer: Benjamin Sonntag <benjamin@sonntag.fr> Maintainer: Benjamin Sonntag <benjamin@sonntag.fr>
Build-Depends-Indep: perl Build-Depends-Indep: perl
, help2man
, findutils (>= 4.1.7) , findutils (>= 4.1.7)
, gettext (>= 0.10.40-5) , gettext (>= 0.10.40-5)
Build-Depends: debhelper (>= 9) Build-Depends: debhelper (>= 9)

4
debian/rules vendored
View File

@ -17,10 +17,6 @@ override_dh_install:
$(MAKE) install-slave DESTDIR=$(CURDIR)/debian/alternc-slave $(MAKE) install-slave DESTDIR=$(CURDIR)/debian/alternc-slave
$(MAKE) install-api DESTDIR=$(CURDIR)/debian/alternc-api $(MAKE) install-api DESTDIR=$(CURDIR)/debian/alternc-api
override_dh_fixperms:
dh_fixperms
chmod 700 debian/alternc/var/lib/alternc/backups
%: %:
dh $@ dh $@

View File

@ -22,21 +22,28 @@
# Purpose of file: Main install script, launch it anytime ;) # Purpose of file: Main install script, launch it anytime ;)
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Somes check before start operations
if [ `id -u` -ne 0 ]; then
echo "must be launched as root"
exit 1
fi
usage(){ usage(){
declare -a out declare -a out
[[ $# -ne 0 ]] && out+=("\e[31mWarning: $@ \e[0m") [[ $# -ne 0 ]] && out+=("\e[31mWarning: $@ \e[0m")
out+=(" out+=("
Usage: ${BASH_SOURCE[0]} [options] Usage: alternc.install [-n] [-f] [-s]
-n|--no-fixperms Skip the -often long- fixperms action or alternc.install [-h] [-v]
-f|--force Force the execution even if some files changed Launch the template installation and service configuration process of AlternC.
-s|--slave Mandatory on instances runnning the alternc-slave module
-h|--help This help This script should be launched by root after an AlternC package or plugin
installation or upgrade.
It should be harmless to launch it anytime, (it will restart services though).
Options:
-n, --no-fixperms Skip the -often long- fixperms action
-f, --force Force the execution even if some files changed
-s, --slave Mandatory on instances runnning the alternc-slave module
-h, --help This help
-v, --version Show AlternC version
AlternC is a free software distributed under GPL-v2+ license.
For more information see https://alternc.com/
") ")
echo -e "${out[@]}" echo -e "${out[@]}"
exit 2 exit 2
@ -45,6 +52,9 @@ for i in $*; do
case "$i" in case "$i" in
-h|--help) -h|--help)
usage; shift;; usage; shift;;
-v|--version)
echo "AlternC - hosting software control panel, version @@REPLACED_DURING_BUILD@@"
exit 2;;
-n|--no-fixperms) -n|--no-fixperms)
export nofixperms=1; shift;; export nofixperms=1; shift;;
-f|--force) -f|--force)
@ -58,6 +68,12 @@ for i in $*; do
esac esac
done done
# Somes check before start operations
if [ `id -u` -ne 0 ]; then
echo "must be launched as root"
exit 1
fi
. /usr/lib/alternc/functions.sh . /usr/lib/alternc/functions.sh
# Lock the jobs ! # Lock the jobs !