From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-proxy/c-icap/files: c-icap.conf c-icap.init.3 |
Date: | Fri, 28 Dec 2012 12:42:58 |
Message-Id: | 20121228124246.D964A2171E@flycatcher.gentoo.org |
1 | flameeyes 12/12/28 12:42:46 |
2 | |
3 | Added: c-icap.conf c-icap.init.3 |
4 | Log: |
5 | Remove old; bump to use new init script (and conf file) that will properly 'use logger' if needed. |
6 | |
7 | (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-proxy/c-icap/files/c-icap.conf |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/c-icap/files/c-icap.conf?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/c-icap/files/c-icap.conf?rev=1.1&content-type=text/plain |
14 | |
15 | Index: c-icap.conf |
16 | =================================================================== |
17 | # $Header: /var/cvsroot/gentoo-x86/net-proxy/c-icap/files/c-icap.conf,v 1.1 2012/12/28 12:42:46 flameeyes Exp $ |
18 | |
19 | # Use this to change the configuration file to use for c-icap. |
20 | configfile=/etc/c-icap/c-icap.conf |
21 | |
22 | # Use this to set any extra option for the daemon. Do not use the -f |
23 | # option here. |
24 | EXTRA_OPTS="" |
25 | |
26 | # If you enabled LDAP support, and you'd like to access tables stored |
27 | # in the local LDAP instance, you want to uncomment the following |
28 | # line. |
29 | #rc_need="slapd" |
30 | |
31 | |
32 | |
33 | 1.1 net-proxy/c-icap/files/c-icap.init.3 |
34 | |
35 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/c-icap/files/c-icap.init.3?rev=1.1&view=markup |
36 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/c-icap/files/c-icap.init.3?rev=1.1&content-type=text/plain |
37 | |
38 | Index: c-icap.init.3 |
39 | =================================================================== |
40 | #!/sbin/runscript |
41 | # Copyright 1999-2012 Gentoo Foundation |
42 | # Distributed under the terms of the GNU General Public License v2 |
43 | # $Header: /var/cvsroot/gentoo-x86/net-proxy/c-icap/files/c-icap.init.3,v 1.1 2012/12/28 12:42:46 flameeyes Exp $ |
44 | |
45 | : ${configfile:=/etc/c-icap/c-icap.conf} |
46 | |
47 | get_config() { |
48 | local value=$(awk '$1 == "'$1'" { print $2 }' ${configfile}) |
49 | echo ${value:-$2} |
50 | } |
51 | |
52 | command="/usr/libexec/c-icap" |
53 | command_arguments="${EXTRA_OPTS} -f ${configfile}" |
54 | pidfile=$(get_config PidFile /var/run/c-icap/c-icap.pid) |
55 | |
56 | depend() { |
57 | need localmount |
58 | config ${configfile} |
59 | [ "$(get_config Logger file_logger)" = "sys_logger" ] && use logger |
60 | } |
61 | |
62 | start_pre() { |
63 | local cmdsocket=$(get_config CommandsSocket /var/run/c-icap/c-icap.ctl) |
64 | |
65 | checkpath -d "$(dirname "${cmdsocket}")" "$(dirname "${pidfile}")" |
66 | } |