MT#62899 Update packaging for Debian trixie

- Update Standards-Version to 4.7.2.
- Remove «Rules-Requires-Root: no» field, which is now the default.
- Remove «Priority: optional» field, which is now the default.
- Remove ancient conffile removal handling.
- Disable DH_VERBOSE by default, as is expected from a usual package.
- Terminate multi-lines with «# EOL» to make modifying them not cause
  unnecessary diff damage.

Change-Id: I11399af5dbe8509ce31b3ae52b9ed559bbb9a2b3
mr14.1
Guillem Jover 1 year ago
parent 8e1a41a9ec
commit a50180d762

4
debian/control vendored

@ -1,10 +1,8 @@
Source: ngcp-sems
Section: net
Priority: optional
Maintainer: Sipwise Development Team <support@sipwise.com>
Homepage: https://www.sipwise.com/
Standards-Version: 4.6.2
Rules-Requires-Root: no
Standards-Version: 4.7.2
Build-Depends:
debhelper-compat (= 13),
flite-dev,

@ -1,2 +0,0 @@
rm_conffile /etc/default/ngcp-sems 1:1.6.0-1+0~mr6.3.0.0+0~ ngcp-sems
rm_conffile /etc/init.d/ngcp-sems 1:1.6.0-1+0~mr6.3.0.0+0~ ngcp-sems

@ -7,9 +7,6 @@ case "$1" in
# add sems user
adduser --quiet --system --group --disabled-password --shell /bin/false \
--gecos "SIP Express Media Server" --home /var/run/ngcp-sems sems || true
# Remove obsolete rc.d links.
update-rc.d ngcp-sems remove
;;
abort-upgrade|abort-remove|abort-deconfigure)
exit 0

11
debian/rules vendored

@ -2,7 +2,7 @@
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE = 1
#export DH_VERBOSE = 1
EXCLUDED_MODULES = \
conf_auth \
@ -50,17 +50,20 @@ override_dh_auto_build:
cfg_target=/etc/$(APP_NAME)/ prefix=/usr \
exclude_app_modules="$(EXCLUDED_MODULES)" \
exclude_dsm_modules="$(EXCLUDED_DSM_MODULES)" \
DESTDIR=$(CURDIR)/debian/$(APP_NAME)
DESTDIR=$(CURDIR)/debian/$(APP_NAME) \
# EOL
override_dh_auto_install:
$(MAKE) -C core/ install \
DESTDIR=$(CURDIR)/debian/$(APP_NAME) \
prefix=/usr \
cfg_target=/etc/$(APP_NAME)/
cfg_target=/etc/$(APP_NAME)/ \
# EOL
$(MAKE) -C apps/ install \
exclude_app_modules="$(EXCLUDED_MODULES) $(PYTHON_MODULES)" \
exclude_dsm_modules="$(EXCLUDED_DSM_PY_MODULES)" \
DESTDIR=$(CURDIR)/debian/$(APP_NAME) \
prefix=/usr \
cfg_target=/etc/$(APP_NAME)/
cfg_target=/etc/$(APP_NAME)/ \
# EOL

Loading…
Cancel
Save