[#409] Fix more lintian warnings

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
Stanislav Bogatyrev 2022-10-27 20:21:29 +03:00 committed by Stanislav Bogatyrev
parent c640374d98
commit 43fe156f7c
4 changed files with 28 additions and 36 deletions

43
debian/control vendored
View file

@ -10,37 +10,30 @@ Vcs-Browser: https://github.com/nspcc-dev/neofs-node
Package: neofs-storage
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Depends: ${misc:Depends}
Description: NeoFS Storage node
NeoFS is a decentralized distributed object storage integrated with the
NEO Blockchain.
NeoFS Nodes are organized in a peer-to-peer network that takes care of storing
and distributing user's data.
Any Neo user may participate in the network and get paid for providing storage
resources to other users or store their data in NeoFS and pay a competitive
price for it.
NeoFS is a decentralized distributed object storage integrated with the NEO
Blockchain. NeoFS Nodes are organized in a peer-to-peer network that takes care
of storing and distributing user's data. Any Neo user may participate in the
network and get paid for providing storage resources to other users or store
their data in NeoFS and pay a competitive price for it.
Package: neofs-ir
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, neofs-locode-db
Depends: ${misc:Depends}, neofs-locode-db
Description: NeoFS InnerRing node
NeoFS is a decentralized distributed object storage integrated with the
NEO Blockchain.
NeoFS Nodes are organized in a peer-to-peer network that takes care of storing
and distributing user's data.
Any Neo user may participate in the network and get paid for providing storage
resources to other users or store their data in NeoFS and pay a competitive
price for it.
NeoFS is a decentralized distributed object storage integrated with the NEO
Blockchain. NeoFS Nodes are organized in a peer-to-peer network that takes care
of storing and distributing user's data. Any Neo user may participate in the
network and get paid for providing storage resources to other users or store
their data in NeoFS and pay a competitive price for it.
Package: neofs-cli
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Depends: ${misc:Depends}
Description: CLI tools for NeoFS
NeoFS is a decentralized distributed object storage integrated with the
NEO Blockchain.
NeoFS Nodes are organized in a peer-to-peer network that takes care of storing
and distributing user's data.
Any Neo user may participate in the network and get paid for providing storage
resources to other users or store their data in NeoFS and pay a competitive
price for it.
NeoFS is a decentralized distributed object storage integrated with the NEO
Blockchain. NeoFS Nodes are organized in a peer-to-peer network that takes care
of storing and distributing user's data. Any Neo user may participate in the
network and get paid for providing storage resources to other users or store
their data in NeoFS and pay a competitive price for it.

View file

@ -21,13 +21,13 @@ case "$1" in
USERNAME=ir
id -u neofs-ir >/dev/null 2>&1 || useradd -s /usr/sbin/nologin -d /var/lib/neofs/ir --system -M -U -c "NeoFS InnerRing node" neofs-ir
if ! dpkg-statoverride --list /etc/neofs/$USERNAME >/dev/null; then
chown -f -R root:neofs-$USERNAME /etc/neofs/$USERNAME
chown -f root:neofs-$USERNAME /etc/neofs/$USERNAME/*
chmod -f 0750 /etc/neofs/$USERNAME
chmod -f u=rwX,g=rX,o= /etc/neofs/$USERNAME/* || true
fi
USERDIR=$(getent passwd "neofs-$USERNAME" | cut -d: -f6)
if ! dpkg-statoverride --list neofs-$USERDIR >/dev/null; then
chown -f -R neofs-$USERNAME: $USERDIR
chown -f neofs-$USERNAME: $USERDIR
fi
;;

View file

@ -21,13 +21,12 @@ case "$1" in
USERNAME=storage
id -u neofs-storage >/dev/null 2>&1 || useradd -s /usr/sbin/nologin -d /srv/neofs --system -M -U -c "NeoFS Storage node" neofs-storage
if ! dpkg-statoverride --list /etc/neofs/$USERNAME >/dev/null; then
chown -f -R root:neofs-$USERNAME /etc/neofs/$USERNAME
chown -f root:neofs-$USERNAME /etc/neofs/$USERNAME/*
chmod -f 0750 /etc/neofs/$USERNAME
chmod -f u=rwX,g=rX,o= /etc/neofs/$USERNAME/* || true
fi
USERDIR=$(getent passwd "neofs-$USERNAME" | cut -d: -f6)
if ! dpkg-statoverride --list neofs-$USERDIR >/dev/null; then
chown -f -R neofs-$USERNAME: $USERDIR
chown -f neofs-$USERNAME: $USERDIR
fi
;;

10
debian/rules vendored
View file

@ -17,17 +17,17 @@ override_dh_auto_install:
bin/neofs-adm completion bash > debian/neofs-adm.bash-completion
bin/neofs-cli completion bash > debian/neofs-cli.bash-completion
install -m 0755 -d debian/neofs-cli/usr/share/fish/completions
install -m 0755 -d debian/neofs-cli/usr/share/fish/completions/
install -m 0755 -d debian/neofs-cli/usr/share/zsh/vendor-completions/
bin/neofs-adm completion fish > debian/neofs-cli/usr/share/fish/completions/neofs-adm.fish
bin/neofs-adm completion zsh > debian/neofs-cli/usr/share/zsh/vendor-completions/_neofs-adm
bin/neofs-cli completion fish > debian/neofs-cli/usr/share/fish/completions/neofs-cli.fish
bin/neofs-cli completion zsh > debian/neofs-cli/usr/share/zsh/vendor-completions/_neofs-cli
install -T config/example/ir.yaml debian/neofs-ir/etc/neofs/ir/config.yml
install -T config/example/ir-control.yaml debian/neofs-ir/etc/neofs/ir/control.yml
install -T config/example/node.yaml debian/neofs-storage/etc/neofs/storage/config.yml
install -T config/example/node-control.yaml debian/neofs-storage/etc/neofs/storage/control.yml
install -T -m 0640 config/example/ir.yaml debian/neofs-ir/etc/neofs/ir/config.yml
install -T -m 0640 config/example/ir-control.yaml debian/neofs-ir/etc/neofs/ir/control.yml
install -T -m 0640 config/example/node.yaml debian/neofs-storage/etc/neofs/storage/config.yml
install -T -m 0640 config/example/node-control.yaml debian/neofs-storage/etc/neofs/storage/control.yml
override_dh_installsystemd:
dh_installsystemd --no-enable --no-start --name=neofs-ir