diff options
author | Alin Năstac <mrness@gentoo.org> | 2008-01-07 20:17:04 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2008-01-07 20:17:04 +0000 |
commit | 608b5e04457c9beac85db4cbe92a6179bf442f3c (patch) | |
tree | aab2075daa4f610c8c7d6f52a390e0d80dec2df7 /net-proxy/polipo | |
parent | newer revision stable (diff) | |
download | gentoo-2-608b5e04457c9beac85db4cbe92a6179bf442f3c.tar.gz gentoo-2-608b5e04457c9beac85db4cbe92a6179bf442f3c.tar.bz2 gentoo-2-608b5e04457c9beac85db4cbe92a6179bf442f3c.zip |
Make init script compatible with POSIX shells, thanks to Fabrizio Montesi <famontesi@gmail.com> (#204729).
(Portage version: 2.1.3.19)
Diffstat (limited to 'net-proxy/polipo')
-rw-r--r-- | net-proxy/polipo/ChangeLog | 10 | ||||
-rw-r--r-- | net-proxy/polipo/files/polipo.initd | 14 |
2 files changed, 15 insertions, 9 deletions
diff --git a/net-proxy/polipo/ChangeLog b/net-proxy/polipo/ChangeLog index f2917671c2b9..138740a12d95 100644 --- a/net-proxy/polipo/ChangeLog +++ b/net-proxy/polipo/ChangeLog @@ -1,10 +1,18 @@ # ChangeLog for net-proxy/polipo # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/ChangeLog,v 1.26 2008/01/01 16:14:43 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/ChangeLog,v 1.27 2008/01/07 20:17:04 mrness Exp $ + + 07 Jan 2008; Alin Năstac <mrness@gentoo.org> files/polipo.initd: + Make init script compatible with POSIX shells, thanks to Fabrizio Montesi + <famontesi@gmail.com> (#204729). 01 Jan 2008; Markus Meier <maekke@gentoo.org> polipo-1.0.3.ebuild: x86 stable, bug #203753 + 07 Jan 2008; Alin Năstac <mrness@gentoo.org> files/polipo.initd: + Make init script compatible with POSIX shells, thanks to Fabrizio Montesi + <famontesi@gmail.com> (#204729). + 04 Nov 2007; Alin Năstac <mrness@gentoo.org> polipo-1.0.2-r1.ebuild, polipo-1.0.3.ebuild: Remove useless pkg_preinst function. diff --git a/net-proxy/polipo/files/polipo.initd b/net-proxy/polipo/files/polipo.initd index de3532133ee4..8742a9778e59 100644 --- a/net-proxy/polipo/files/polipo.initd +++ b/net-proxy/polipo/files/polipo.initd @@ -1,32 +1,32 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/files/polipo.initd,v 1.4 2007/06/17 07:00:10 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/files/polipo.initd,v 1.5 2008/01/07 20:17:04 mrness Exp $ depend() { need net } checkconfig() { - polipo -v | ( + { polipo -v || return 1 ; } | { local retvalue=0 local name type value desc while read name type value desc ; do case ${name} in configFile) - if [[ "${value}" == "(none)" ]]; then + if [ "${value}" = "(none)" ] ; then eerror "Unable to read configuration file /etc/polipo/config" retvalue=1 fi ;; daemonise) - if [[ "${value}" != "false" ]]; then + if [ "${value}" != "false" ] ; then eerror "Configuration option not supported by this init script: ${name}=${value}" retvalue=1 fi ;; pidFile) - if [[ "${value}" != "(none)" ]]; then + if [ "${value}" != "(none)" ] ; then eerror "Configuration option not supported by this init script: ${name}=${value}" retvalue=1 fi @@ -34,9 +34,7 @@ checkconfig() { esac done return ${retvalue} - ) - [[ ${PIPESTATUS[0]} == 0 && ${PIPESTATUS[1]} == 0 ]] - return $? + } } start() { |