Skip to content
Snippets Groups Projects
Commit 031d5074 authored by Yavor Doganov's avatar Yavor Doganov
Browse files

Make /etc/GNUstep/gdomap_probes a proper conffile.

* debian/gdomap_probes: New file; make /etc/GNUstep/gdomap_probes a
  proper conffile and stop creating it in postinst.
* debian/gnustep-base-runtime.install: Add gdomap_probes.
* debian/gnustep-base-runtime.gdomap.default: Pass -c
  /etc/GNUstep/gdomap_probes while still keeping the -p option; there's
  a comment how to enable probing.
* debian/gnustep-base-runtime.postrm: Delete.
* debian/gnustep-base-runtime.postinst: Likewise.
parent af575bee
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,14 @@ gnustep-base (1.30.0-10) UNRELEASED; urgency=medium
Forwarded: not-needed. This was fixed in a different way upstream but
it's not worth cherry-picking it unless the tzdata turmoil continues.
* debian/patches/no-etc-timezone.patch: Mark as forwarded.
* debian/gdomap_probes: New file; make /etc/GNUstep/gdomap_probes a
proper conffile and stop creating it in postinst.
* debian/gnustep-base-runtime.install: Add gdomap_probes.
* debian/gnustep-base-runtime.gdomap.default: Pass -c
/etc/GNUstep/gdomap_probes while still keeping the -p option; there's
a comment how to enable probing.
* debian/gnustep-base-runtime.postrm: Delete.
* debian/gnustep-base-runtime.postinst: Likewise.
-- Yavor Doganov <yavor@gnu.org> Fri, 24 Jan 2025 18:59:56 +0200
......
# Addresses to probe for the GNUstep name service. If this file does
# not contain any valid addresses, the local networks are probed.
# Note that for security reasons probing is disabled so if you want to
# enable it you must remove the "-p" option in /etc/default/gdomap
# and restart the gdomap daemon.
127.0.0.1
# Defaults for the gdomap init script.
# See gdomap(8) for details.
GDOMAP_ARGS="-p -j /var/run/gdomap"
GDOMAP_ARGS="-p -c /etc/GNUstep/gdomap_probes -j /var/run/gdomap"
# Install helper script which is used both by the init script and the
# systemd unit.
debian/gdomap-helper usr/libexec
debian/gdomap_probes etc/GNUstep
usr/bin
#! /bin/sh
set -e
setup_config()
{
f=/etc/GNUstep/gdomap_probes
if [ ! -f $f ]; then
if [ ! -d /etc/GNUstep ]; then mkdir /etc/GNUstep; fi
cat > $f <<EOF
# Addresses to probe for GNUstep name service.
# If this file does not contain any valid addresses, the local networks
# are probed.
EOF
for ip in `hostname -i`; do
echo $ip >> $f
done
fi
}
case "$1" in
configure)
setup_config
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 0
;;
esac
#DEBHELPER#
exit 0
#! /bin/sh
set -e
case "$1" in
purge)
rm -f /etc/GNUstep/gdomap_probes
rmdir /etc/GNUstep 2>/dev/null || true
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
:
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 0
esac
#DEBHELPER#
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment