public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-misc/logmein-hamachi/files: logmein-hamachi.initd
@ 2011-08-24 11:07 Markos Chandras (hwoarang)
  0 siblings, 0 replies; 3+ messages in thread
From: Markos Chandras (hwoarang) @ 2011-08-24 11:07 UTC (permalink / raw
  To: gentoo-commits

hwoarang    11/08/24 11:07:13

  Modified:             logmein-hamachi.initd
  Log:
  Version bump. Bug #378969. Thanks to Simone Scanzoni <nonno.cicala@libero.it> for the new initd file
  
  (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)

Revision  Changes    Path
1.2                  net-misc/logmein-hamachi/files/logmein-hamachi.initd

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/logmein-hamachi/files/logmein-hamachi.initd?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/logmein-hamachi/files/logmein-hamachi.initd?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/logmein-hamachi/files/logmein-hamachi.initd?r1=1.1&r2=1.2

Index: logmein-hamachi.initd
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/logmein-hamachi/files/logmein-hamachi.initd,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- logmein-hamachi.initd	15 Jan 2011 21:13:25 -0000	1.1
+++ logmein-hamachi.initd	24 Aug 2011 11:07:13 -0000	1.2
@@ -48,9 +48,15 @@
 
 	ebegin "Stopping hamachi"
 
-	/usr/bin/hamachi logout >> /dev/null
+	/usr/bin/hamachi logout
 	start-stop-daemon --quiet --stop --exec "${DAEMON}" \
 		--pidfile "${PIDFILE}"
 
 	eend $?
 }
+
+status() {
+        service_started "${SVCNAME}" || return 1
+        /usr/bin/hamachi
+        /usr/bin/hamachi list
+}






^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-commits] gentoo-x86 commit in net-misc/logmein-hamachi/files: logmein-hamachi.initd
@ 2012-10-15 18:22 Markos Chandras (hwoarang)
  0 siblings, 0 replies; 3+ messages in thread
From: Markos Chandras (hwoarang) @ 2012-10-15 18:22 UTC (permalink / raw
  To: gentoo-commits

hwoarang    12/10/15 18:22:42

  Modified:             logmein-hamachi.initd
  Log:
  New initd file. Thanks to Simone Scanzoni <nonno.cicala@libero.it>. Fixes bug #438336. Remove old ebuilds
  
  (Portage version: 2.1.11.26/cvs/Linux x86_64)

Revision  Changes    Path
1.3                  net-misc/logmein-hamachi/files/logmein-hamachi.initd

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/logmein-hamachi/files/logmein-hamachi.initd?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/logmein-hamachi/files/logmein-hamachi.initd?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/logmein-hamachi/files/logmein-hamachi.initd?r1=1.2&r2=1.3

Index: logmein-hamachi.initd
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/logmein-hamachi/files/logmein-hamachi.initd,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- logmein-hamachi.initd	24 Aug 2011 11:07:13 -0000	1.2
+++ logmein-hamachi.initd	15 Oct 2012 18:22:42 -0000	1.3
@@ -1,5 +1,5 @@
 #!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 DAEMON=/opt/logmein-hamachi/bin/hamachid
@@ -9,6 +9,15 @@
 	need net
 }
 
+checktun() {
+	[ $(uname -s) = "Linux" ] || return 0
+        [ -e /dev/net/tun ] && return 0
+        modprobe tun && return 0
+
+	eerror "TUN/TAP support is not available in the running kernel"
+	return 1
+}
+
 start()
 {
 	# returns
@@ -16,6 +25,8 @@
 	#   1 if daemon was already running
 	#   2 if daemon could not be started
 
+	checktun || return 2
+
 	ebegin "Starting hamachi"
 
 	start-stop-daemon --quiet --start --exec "${DAEMON}" \





^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-commits] gentoo-x86 commit in net-misc/logmein-hamachi/files: logmein-hamachi.initd
@ 2013-01-09 10:47 Sergey Popov (pinkbyte)
  0 siblings, 0 replies; 3+ messages in thread
From: Sergey Popov (pinkbyte) @ 2013-01-09 10:47 UTC (permalink / raw
  To: gentoo-commits

pinkbyte    13/01/09 10:47:19

  Modified:             logmein-hamachi.initd
  Log:
  Properly create /var/run/... directory in initscript, wrt bug #450872. Drop old versions
  
  (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, unsigned Manifest commit)

Revision  Changes    Path
1.4                  net-misc/logmein-hamachi/files/logmein-hamachi.initd

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/logmein-hamachi/files/logmein-hamachi.initd?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/logmein-hamachi/files/logmein-hamachi.initd?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/logmein-hamachi/files/logmein-hamachi.initd?r1=1.3&r2=1.4

Index: logmein-hamachi.initd
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/logmein-hamachi/files/logmein-hamachi.initd,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- logmein-hamachi.initd	15 Oct 2012 18:22:42 -0000	1.3
+++ logmein-hamachi.initd	9 Jan 2013 10:47:19 -0000	1.4
@@ -1,5 +1,5 @@
 #!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 DAEMON=/opt/logmein-hamachi/bin/hamachid
@@ -18,6 +18,10 @@
 	return 1
 }
 
+start_pre() {
+	checkpath -d /var/run/logmein-hamachi
+}
+
 start()
 {
 	# returns





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-09 10:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-15 18:22 [gentoo-commits] gentoo-x86 commit in net-misc/logmein-hamachi/files: logmein-hamachi.initd Markos Chandras (hwoarang)
  -- strict thread matches above, loose matches on Subject: below --
2013-01-09 10:47 Sergey Popov (pinkbyte)
2011-08-24 11:07 Markos Chandras (hwoarang)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox