Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 444052 - Version bump: net-misc/logmein-hamachi-2.1.0.81
Summary: Version bump: net-misc/logmein-hamachi-2.1.0.81
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Simone Scanzoni
URL:
Whiteboard:
Keywords: REVIEWED
Depends on:
Blocks:
 
Reported: 2012-11-20 15:04 UTC by V_Duke_
Modified: 2012-11-22 19:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description V_Duke_ 2012-11-20 15:04:34 UTC
binary files required for "net-misc/logmein-hamachi-2.1.0.76-r1" ebuild have been removed from the hosting website:

https://secure.logmein.com/labs/logmein-hamachi-2.1.0.76-x86.tgz
https://secure.logmein.com/labs/logmein-hamachi-2.1.0.76-x64.tgz

ebuild should get updated with the new hamachi release
(currently) : version 2.1.0.81
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-20 15:06:46 UTC
Please don't do that.
Comment 2 V_Duke_ 2012-11-20 15:16:15 UTC
Portage 2.1.11.31 (default/linux/x86/10.0/desktop, gcc-4.5.4, glibc-2.15-r3, 3.5.7-gentoo i686)
=================================================================
System uname: Linux-3.5.7-gentoo-i686-AMD_Sempron-tm-_Processor_2800+-with-gentoo-2.1
Timestamp of tree: Tue, 20 Nov 2012 13:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://files.gentoo.gr http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.cc.uoc.gr/mirrors/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gr.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv icu ipv6 jpeg lcms ldap libnotify lxde mad mng modules mp3 mp4 mpeg mudflap ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support qt4 readline sdl session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 x86 xcb xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON




===================
PORTAGE LOG
===================
>>> Downloading 'https://secure.logmein.com/labs/logmein-hamachi-2.1.0.76-x86.tgz'
--2012-11-20 17:07:26--  https://secure.logmein.com/labs/logmein-hamachi-2.1.0.76-x86.tgz
Resolving secure.logmein.com... 77.242.192.193
Connecting to secure.logmein.com|77.242.192.193|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-11-20 17:07:26 ERROR 404: Not Found.

!!! Couldn't download 'logmein-hamachi-2.1.0.76-x86.tgz'. Aborting.
 * Fetch failed for 'net-misc/logmein-hamachi-2.1.0.76-r1', Log file:
 *  '/var/tmp/portage/net-misc/logmein-hamachi-2.1.0.76-r1/temp/build.log'
Comment 3 Simone Scanzoni 2012-11-20 15:48:19 UTC
(In reply to comment #1)
> Please don't do that.

Why not? If you are concerned about not being able to access unattended systems it was cleared later that change won't affect linux systems ( http://b.logme.in/2012/11/07/changes-to-hamachi-on-november-19th/#comment-2839 ).

Meanwhile I'm going to test the new version.
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2012-11-20 15:49:35 UTC
(In reply to comment #3)
> (In reply to comment #1)
> > Please don't do that.
> 
> Why not? If you are concerned about not being able to access unattended
> systems it was cleared later that change won't affect linux systems (
> http://b.logme.in/2012/11/07/changes-to-hamachi-on-november-19th/#comment-
> 2839 ).
> 
> Meanwhile I'm going to test the new version.

Jer was not referring to the bump but to not CC arches like the reporter did ;)
Comment 5 V_Duke_ 2012-11-22 14:37:27 UTC
OK, I have manually fixed it and seems to be working as expected! 
Though, I have almost no idea about .ebuild files, and my knowledge of shell-scripting is limited. So the best I can do is describe how I did it.

I just manually copied the latest archive files (from logmein-hamachi-2.1.0.81-x86.tgz) to the location specified by the old .ebuild script:
/opt/logmein-hamachi/bin/ (for hamachid, dnsup, dnsdown)
/opt/logmein-hamachi/  (for the rest)

copied hamachi-init script to
/etc/init.d/

Now, the hamachi-init script uses lsb (Linux Standard Base). To my knowledge, gentoo does not support lsb, so this script had to be edited. Specifically, the method to start the daemon was edited and also commented out the lines for log output. the script must also be added to default runlevel.

lastly, a soft symbolic link was made:
ln -fs /opt/logmein-hamachi/bin/hamachid /usr/bin/hamachi

So the usage is as the previous versions:
>hamachi start
>hamachi login
>hamachi join []
...



the edited scirpt:

===========================
/etc/init.d/hamachi-init
===========================
#! /bin/sh
### BEGIN INIT INFO
# Provides:          logmein-hamachi
# Required-Start:    $local_fs $network
# Required-Stop:     $local_fs $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start/stop logmein-hamachi engine
### END INIT INFO
#
# Author: LogMeIn, Inc. <hamachilinux-feedback@logmein.com>
#

PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="LogMeIn Hamachi VPN tunneling engine"
NAME=logmein-hamachi
DAEMON=/opt/logmein-hamachi/bin/hamachid
DNAME=hamachid
PIDFILE=/var/run/logmein-hamachi/hamachid.pid
SCRIPTNAME=/etc/init.d/$NAME

# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 5

# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME

# Define LSB log_* functions. Depend on lsb-base (>= 3.0-6)
. /etc/init.d/functions.sh

# start the daemon/service

do_start()
{
    # Return
    #   0 if daemon has been started
    #   1 if daemon was already running
    #   2 if daemon could not be started

    start-stop-daemon --start -p $PIDFILE -x $DAEMON

    return "$?"
}

# stop the daemon/service

do_stop()
{
    # Return
    #   0 if daemon has been stopped
    #   1 if daemon was already stopped
    #   2 if daemon could not be stopped
    #   other if a failure occurred

    # killproc -p $PIDFILE $DAEMON
    killall $DNAME

# it needs some time for the engine to close all things and exit 
sleep 3
    RETVAL="$?"
    # [ "$RETVAL" = 2 ] && return 2

    # remove pidfile if daemon could not delete on exit.
    rm -f $PIDFILE

    return "$RETVAL"
}

case "$1" in
  start)
    echo -n "Starting $DESC $NAME"

    do_start

#    case "$?" in
#        0|1) log_success_msg ;;
#        *)   log_failure_msg ;;
#    esac
    ;;
  stop)
    echo -n "Stopping $DESC $NAME"

    do_stop

#    case "$?" in
#        0|1) log_success_msg ;;
#        2)   log_failure_msg ;;
#    esac
    ;;
  restart|force-reload)
    echo -n "Restarting $DESC $NAME"


    do_stop
    case "$?" in
      0|1)
        sleep 1
        do_start

#        case "$?" in
#            0) log_success_msg ;;
#            1) log_failure_msg ;; # Old process is still running
#            *) log_failure_msg ;; # Failed to start
#        esac
        ;;
      *)
          # Failed to stop
#        log_failure_msg
        ;;
    esac
    ;;
  *)

#    log_warning_msg "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
    exit 3
    ;;
esac

:
Comment 6 Simone Scanzoni 2012-11-22 15:40:06 UTC
Message to the proxy-maint team:
I'm the proxy maintainer of net-misc/logmein-hamachi . It can be bumped to 2.1.0.81 without changes from logmein-hamachi-2.1.0.76-r1 . Older versions aren't available any more, so they should be removed.
Thanks!
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2012-11-22 15:47:30 UTC
(In reply to comment #6)
> Message to the proxy-maint team:
> I'm the proxy maintainer of net-misc/logmein-hamachi . It can be bumped to
> 2.1.0.81 without changes from logmein-hamachi-2.1.0.76-r1 . Older versions
> aren't available any more, so they should be removed.
> Thanks!

ok I will do it tonight
Comment 8 Markos Chandras (RETIRED) gentoo-dev 2012-11-22 19:30:14 UTC
Bumped