Gentoo Archives: gentoo-commits

From: "Nathan Phillip Brink (binki)" <binki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-irc/unrealircd/files: unrealircd.initd unrealircd.confd-r1
Date: Wed, 27 Jul 2011 12:41:30
Message-Id: 20110727124119.B332C2004B@flycatcher.gentoo.org
1 binki 11/07/27 12:41:19
2
3 Added: unrealircd.initd unrealircd.confd-r1
4 Log:
5 Bump to unrealircd-3.2.9_rc2 with a refactored ebuild using EAPI=4, taking advantage of a somewhat-fixed ./configure, and new initscripts.
6
7 (Portage version: 2.2.0_alpha46-r1/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-irc/unrealircd/files/unrealircd.initd
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/files/unrealircd.initd?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/files/unrealircd.initd?rev=1.1&content-type=text/plain
14
15 Index: unrealircd.initd
16 ===================================================================
17 #!/sbin/runscript
18 # Copyright 1999-2011 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/files/unrealircd.initd,v 1.1 2011/07/27 12:41:19 binki Exp $
21
22 opts="${opts} reload"
23
24 # Defaults
25 : ${UNREALIRCD_USER:=unrealircd}
26 : ${UNREALIRCD_CONF:=/etc/unrealircd/${SVCNAME}.conf}
27 : ${UNREALIRCD_PIDFILE:=/var/run/unrealircd/${SVCNAME#unreal}.pid}
28
29 depend() {
30 use dns net
31 provide ircd
32 }
33
34 start() {
35 ebegin "Starting ${SVCNAME}"
36 start-stop-daemon --start --quiet --exec /usr/bin/unrealircd \
37 --user ${UNREALIRCD_USER} --pidfile "${UNREALIRCD_PIDFILE}" -- -f "${UNREALIRCD_CONF}" ${UNREALIRCD_OPTS}
38 eend $?
39 }
40
41 stop() {
42 ebegin "Stopping ${SVCNAME}"
43 start-stop-daemon --stop --quiet --pidfile "${UNREALIRCD_PIDFILE}"
44 eend $?
45 }
46
47 reload() {
48 ebegin "Reloading ${SVCNAME}"
49 start-stop-daemon --signal HUP --quiet --pidfile "${UNREALIRCD_PIDFILE}"
50 eend $?
51 }
52
53
54
55 1.1 net-irc/unrealircd/files/unrealircd.confd-r1
56
57 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/files/unrealircd.confd-r1?rev=1.1&view=markup
58 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/unrealircd/files/unrealircd.confd-r1?rev=1.1&content-type=text/plain
59
60 Index: unrealircd.confd-r1
61 ===================================================================
62 # Copyright 1999-2011 Gentoo Foundation
63 # Distributed under the terms of the GNU General Public License v2
64 # $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/files/unrealircd.confd-r1,v 1.1 2011/07/27 12:41:19 binki Exp $
65
66 # user to run unrealircd as
67 UNREALIRCD_USER="unrealircd"
68
69 # Which configuration file to load instead of unrealircd.conf. If you
70 # want to run multiple instances of unrealircd, you must edit
71 # files::pidfile to match UNREALIRCD_PIDFILE. You should also ensure
72 # that files::tunefile is different for each unrealircd instance. See
73 # http://unrealircd.org/docs.php#filesblock.
74 #
75 # To support multiple instances of unrealircd, you may create symlinks
76 # in /etc/init.d pointing to /etc/init.d/unrealircd. It is recommended
77 # that the scheme unrealircd.${instance_name} be used. For each
78 # instance, you may make a copy of this file with the appropriate name
79 # to override default options specific to that instance.
80 UNREALIRCD_CONF="/etc/unrealircd/${SVCNAME}.conf"
81
82 # The path where unrealircd is configured to create its pidfile.
83 UNREALIRCD_PIDFILE="/var/run/unrealircd/${SVCNAME#unreal}.pid"
84
85 # extra options to pass to unrealircd ...
86 # You should not specify the -f option here; use
87 # UNREALIRCD_CONF instead.
88 #
89 # [-h servername]
90 # [-p portnumber]
91 # [-x loglevel]
92 # [-t] (to enable debug output)
93 UNREALIRCD_OPTS=""