[#2] Update deb packages

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
Denis Kirillov 2022-12-16 11:54:19 +03:00 committed by Alex Vanin
parent 31d396a125
commit de309e3264
16 changed files with 51 additions and 49 deletions

4
debian/changelog vendored
View file

@ -1,5 +1,5 @@
neofs-http-gw (0.0.0) stable; urgency=medium frostfs-http-gw (0.0.0) stable; urgency=medium
* Please see CHANGELOG.md * Please see CHANGELOG.md
-- NeoSPCC <tech@nspcc.ru> Wed, 24 Aug 2022 18:29:49 +0300 -- TrueCloudLab <tech@frostfs.info> Wed, 24 Aug 2022 18:29:49 +0300

16
debian/control vendored
View file

@ -1,15 +1,15 @@
Source: neofs-http-gw Source: frostfs-http-gw
Section: neofs Section: frostfs
Priority: optional Priority: optional
Maintainer: NeoSPCC <tech@nspcc.ru> Maintainer: TrueCloudLab <tech@frostfs.info>
Build-Depends: debhelper-compat (= 13), dh-sysuser, git, devscripts Build-Depends: debhelper-compat (= 13), dh-sysuser, git, devscripts
Standards-Version: 4.5.1 Standards-Version: 4.5.1
Homepage: https://fs.neo.org/ Homepage: https://frostfs.info/
Vcs-Git: https://github.com/nspcc-dev/neofs-http-gw.git Vcs-Git: https://github.com/TrueCloudLab/frostfs-http-gw.git
Vcs-Browser: https://github.com/nspcc-dev/neofs-http-gw Vcs-Browser: https://github.com/TrueCloudLab/frostfs-http-gw
Package: neofs-http-gw Package: frostfs-http-gw
Architecture: any Architecture: any
Depends: ${misc:Depends} Depends: ${misc:Depends}
Description: NeoFS HTTP Gateway bridges NeoFS internal protocol and HTTP standard. Description: FrostFS HTTP Gateway bridges FrostFS internal protocol and HTTP standard.

8
debian/copyright vendored
View file

@ -1,11 +1,13 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: neofs-http-gw Upstream-Name: frostfs-http-gw
Upstream-Contact: tech@nspcc.ru Upstream-Contact: tech@frostfs.info
Source: https://github.com/nspcc-dev/neofs-http-gw Source: https://github.com/TrueCloudLab/frostfs-http-gw
Files: * Files: *
Copyright: 2018-2022 NeoSPCC (@nspcc-dev), contributors of neofs-http-gw project Copyright: 2018-2022 NeoSPCC (@nspcc-dev), contributors of neofs-http-gw project
(https://github.com/nspcc-dev/neofs-http-gw/blob/master/CREDITS.md) (https://github.com/nspcc-dev/neofs-http-gw/blob/master/CREDITS.md)
2022 True Cloud Lab (@TrueCloudLab), contributors of frostfs-http-gw project
(https://github.com/TrueCloudLab/frostfs-http-gw/blob/master/CREDITS.md)
License: GPL-3 License: GPL-3

2
debian/frostfs-http-gw.dirs vendored Normal file
View file

@ -0,0 +1,2 @@
etc/frostfs
srv/frostfs_cache

2
debian/frostfs-http-gw.install vendored Normal file
View file

@ -0,0 +1,2 @@
bin/frostfs-http-gw usr/bin
config/config.yaml etc/frostfs/http

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# postinst script for neofs-http-gw # postinst script for frostfs-http-gw
# #
# see: dh_installdeb(1) # see: dh_installdeb(1)
@ -21,16 +21,16 @@ set -e
case "$1" in case "$1" in
configure) configure)
USERNAME=http USERNAME=http
id -u neofs-$USERNAME >/dev/null 2>&1 || useradd -s /usr/sbin/nologin -d /srv/neofs_cache --system -M -U -c "NeoFS HTTP gateway" neofs-$USERNAME id -u frostfs-$USERNAME >/dev/null 2>&1 || useradd -s /usr/sbin/nologin -d /srv/frostfs_cache --system -M -U -c "FrostFS HTTP gateway" frostfs-$USERNAME
if ! dpkg-statoverride --list /etc/neofs/$USERNAME >/dev/null; then if ! dpkg-statoverride --list /etc/frostfs/$USERNAME >/dev/null; then
chown -f root:neofs-$USERNAME /etc/neofs/$USERNAME chown -f root:frostfs-$USERNAME /etc/frostfs/$USERNAME
chown -f root:neofs-$USERNAME /etc/neofs/$USERNAME/config.yaml || true chown -f root:frostfs-$USERNAME /etc/frostfs/$USERNAME/config.yaml || true
chmod -f 0750 /etc/neofs/$USERNAME chmod -f 0750 /etc/frostfs/$USERNAME
chmod -f 0640 /etc/neofs/$USERNAME/config.yaml || true chmod -f 0640 /etc/frostfs/$USERNAME/config.yaml || true
fi fi
USERDIR=$(getent passwd "neofs-$USERNAME" | cut -d: -f6) USERDIR=$(getent passwd "frostfs-$USERNAME" | cut -d: -f6)
if ! dpkg-statoverride --list neofs-$USERDIR >/dev/null; then if ! dpkg-statoverride --list frostfs-$USERDIR >/dev/null; then
chown -f neofs-$USERNAME: $USERDIR chown -f frostfs-$USERNAME: $USERDIR
fi fi
;; ;;

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# postrm script for neofs-http-gw # postrm script for frostfs-http-gw
# #
# see: dh_installdeb(1) # see: dh_installdeb(1)
@ -21,7 +21,7 @@ set -e
case "$1" in case "$1" in
purge) purge)
rm -rf /srv/neofs_cache rm -rf /srv/frostfs_cache
;; ;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# preinst script for neofs-http-gw # preinst script for frostfs-http-gw
# #
# see: dh_installdeb(1) # see: dh_installdeb(1)

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# prerm script for neofs-http-gw # prerm script for frostfs-http-gw
# #
# see: dh_installdeb(1) # see: dh_installdeb(1)

16
debian/frostfs-http-gw.service vendored Normal file
View file

@ -0,0 +1,16 @@
[Unit]
Description=FrostFS HTTP Gateway
Requires=network.target
[Service]
Type=simple
ExecStart=/usr/bin/frostfs-http-gw --config /etc/frostfs/http/config.yaml
User=frostfs-http
Group=frostfs-http
WorkingDirectory=/srv/frostfs_cache
Restart=always
RestartSec=5
PrivateTmp=true
[Install]
WantedBy=multi-user.target

View file

@ -1,2 +0,0 @@
etc/neofs
srv/neofs_cache

View file

@ -1,2 +0,0 @@
bin/neofs-http-gw usr/bin
config/config.yaml etc/neofs/http

View file

@ -1,16 +0,0 @@
[Unit]
Description=NeoFS HTTP Gateway
Requires=network.target
[Service]
Type=simple
ExecStart=/usr/bin/neofs-http-gw --config /etc/neofs/http/config.yaml
User=neofs-http
Group=neofs-http
WorkingDirectory=/srv/neofs_cache
Restart=always
RestartSec=5
PrivateTmp=true
[Install]
WantedBy=multi-user.target

2
debian/rules vendored
View file

@ -2,7 +2,7 @@
# Do not try to strip Go binaries and do not run test # Do not try to strip Go binaries and do not run test
export DEB_BUILD_OPTIONS := nostrip nocheck export DEB_BUILD_OPTIONS := nostrip nocheck
SERVICE = neofs-http-gw SERVICE = frostfs-http-gw
%: %:
dh $@ dh $@