From: | "Sven Wegener (swegener)" <swegener@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-dns/avahi/files: autoipd-openrc.sh |
Date: | Sat, 19 Apr 2008 19:52:47 |
Message-Id: | E1JnJ6y-0004du-Ix@stork.gentoo.org |
1 | swegener 08/04/19 19:52:36 |
2 | |
3 | Added: autoipd-openrc.sh |
4 | Log: |
5 | Adjust dependencies for split qt-4 packages, bug #217204. Add openrc-compatible autoipd.sh. |
6 | (Portage version: 2.1.5_rc5) |
7 | |
8 | Revision Changes Path |
9 | 1.1 net-dns/avahi/files/autoipd-openrc.sh |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/avahi/files/autoipd-openrc.sh?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/avahi/files/autoipd-openrc.sh?rev=1.1&content-type=text/plain |
13 | |
14 | Index: autoipd-openrc.sh |
15 | =================================================================== |
16 | # Copyright (C) 2004-2008 Gentoo Foundation |
17 | # Distributed under the terms of the GNU General Public License v2 |
18 | # Contributed by Sven Wegener (swegener@g.o) |
19 | |
20 | _config_vars="$_config_vars autoipd" |
21 | |
22 | autoipd_depend() { |
23 | program /usr/sbin/avahi-autoipd |
24 | after interface |
25 | } |
26 | |
27 | autoipd_start() { |
28 | _exists true || return 1 |
29 | |
30 | eval args=\$autoipd_${IFVAR} |
31 | |
32 | ebegin "Starting avahi-autoipd" |
33 | /usr/sbin/avahi-autoipd --daemonize --syslog --wait ${args} "${IFACE}" |
34 | eend "${?}" || return 1 |
35 | |
36 | _show_address |
37 | |
38 | return 0 |
39 | } |
40 | |
41 | autoipd_stop() { |
42 | avahi-autoipd --check --syslog "${IFACE}" || return 0 |
43 | |
44 | ebegin "Stopping avahi-autoipd" |
45 | /usr/sbin/avahi-autoipd --kill --syslog "${IFACE}" |
46 | eend "${?}" |
47 | } |
48 | |
49 | |
50 | |
51 | -- |
52 | gentoo-commits@l.g.o mailing list |