Subversion Repositories oidentd

Compare Revisions

Ignore whitespace Rev 32 → Rev 33

/trunk/debian/changelog
4,8 → 4,11
* Drop build dependency on libcap-ng-dev, which is no longer needed.
* Change connection limit in default /etc/default/oidentd to 10 (Closes:
#697030, LP: #1094773).
* Add systemd service and socket units (like upstream's, but with
support for the same options as the init script). Depend on iproute2
to let scripts be short.
 
-- Magnus Holmgren <holmgren@debian.org> Mon, 09 Sep 2019 23:17:33 +0200
-- Magnus Holmgren <holmgren@debian.org> Mon, 09 Sep 2019 23:34:32 +0200
 
oidentd (2.3.2-1) unstable; urgency=low
 
/trunk/debian/control
1,6 → 1,6
Source: oidentd
Section: net
Priority: optional
Priority: optional
Build-Depends: debhelper (>= 10),
bison, flex, libnetfilter-conntrack-dev
Maintainer: Magnus Holmgren <holmgren@debian.org>
12,7 → 12,7
Package: oidentd
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, netbase, adduser,
iproute2 | net-tools, lsb-base (>= 3.0-6)
iproute2, lsb-base (>= 3.0-6)
Provides: ident-server
Replaces: ident-server
Conflicts: ident-server, logcheck-database (<= 1.3.3)
/trunk/debian/init
26,15 → 26,7
. /lib/lsb/init-functions
 
if [ "${OIDENT_BEHIND_PROXY}" = "yes" ]; then
# If we have a default router, then allow it to proxy auth requests to us
if [ -x /bin/netstat ] && [ -x /usr/bin/awk ]; then
GATEWAY=`netstat -nr | awk '/^0.0.0.0/{print $2;}'`
elif [ -x /bin/ip ] && [ -x /usr/bin/awk ]; then
GATEWAY=`ip route show 0.0.0.0/0 | awk '/^default via /{print $3}'`
fi
if [ -n "${GATEWAY}" ]; then
OIDENT_OPTIONS="${OIDENT_OPTIONS} -P ${GATEWAY}"
fi
OIDENT_OPTIONS="${OIDENT_OPTIONS} -P `ip route show to exact 0/0 | awk '{print $3}'`"
fi
 
 
/trunk/debian/oidentd.service
0,0 → 1,15
[Unit]
Description=RFC 1413 compliant ident daemon
After=network.target
 
[Service]
Environment=OIDENT_USER=nobody OIDENT_GROUP=nogroup
EnvironmentFile=-/etc/default/oidentd
ExecStart=/bin/sh -c "exec /usr/sbin/oidentd -S ${OIDENT_OPTIONS} -u \"${OIDENT_USER}\" -g \"${OIDENT_GROUP}\" \
`[ \"${OIDENT_BEHIND_PROXY}\" = \"yes\" ] && ip route show to exact 0/0 | awk '{print \"-P \" $3}'`"
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
Type=forking
 
[Install]
WantedBy=multi-user.target
/trunk/debian/oidentd.socket
0,0 → 1,10
[Unit]
Conflicts=oidentd.service
Description=RFC 1413 compliant ident socket
 
[Socket]
Accept=true
ListenStream=113
 
[Install]
WantedBy=sockets.target
/trunk/debian/oidentd@.service
0,0 → 1,10
[Unit]
Description=RFC 1413 compliant per-connection ident daemon
 
[Service]
Environment=OIDENT_USER=nobody OIDENT_GROUP=nogroup
EnvironmentFile=-/etc/default/oidentd
ExecStart=/bin/sh -c "exec /usr/sbin/oidentd -IS ${OIDENT_OPTIONS} -u \"${OIDENT_USER}\" -g \"${OIDENT_GROUP}\" \
`[ \"${OIDENT_BEHIND_PROXY}\" = \"yes\" ] && ip route show to exact 0/0 | awk '{print \"-P \" $3}'`"
StandardInput=socket
StandardError=syslog