Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/hamachi: hamachi-0.9.9.9_p20-r3.ebuild ChangeLog
Date: Thu, 30 Jul 2009 10:10:14
Message-Id: E1MWSaR-00057b-V7@stork.gentoo.org
1 ssuominen 09/07/30 10:10:11
2
3 Modified: ChangeLog
4 Added: hamachi-0.9.9.9_p20-r3.ebuild
5 Log:
6 Make init script POSIX wrt #279058, thanks to Michał Górny.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.10 net-misc/hamachi/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/hamachi/ChangeLog?rev=1.10&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/hamachi/ChangeLog?rev=1.10&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/hamachi/ChangeLog?r1=1.9&r2=1.10
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/hamachi/ChangeLog,v
19 retrieving revision 1.9
20 retrieving revision 1.10
21 diff -u -r1.9 -r1.10
22 --- ChangeLog 10 Sep 2008 15:58:53 -0000 1.9
23 +++ ChangeLog 30 Jul 2009 10:10:11 -0000 1.10
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-misc/hamachi
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/hamachi/ChangeLog,v 1.9 2008/09/10 15:58:53 darkside Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/hamachi/ChangeLog,v 1.10 2009/07/30 10:10:11 ssuominen Exp $
30 +
31 +*hamachi-0.9.9.9_p20-r3 (30 Jul 2009)
32 +
33 + 30 Jul 2009; Samuli Suominen <ssuominen@g.o>
34 + +hamachi-0.9.9.9_p20-r3.ebuild, +files/hamachi.initd.2:
35 + Make init script POSIX wrt #279058, thanks to Michał Górny.
36
37 10 Sep 2008; Jeremy Olexa <darkside@g.o>
38 hamachi-0.9.9.9_p20-r2.ebuild:
39
40
41
42 1.1 net-misc/hamachi/hamachi-0.9.9.9_p20-r3.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/hamachi/hamachi-0.9.9.9_p20-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/hamachi/hamachi-0.9.9.9_p20-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: hamachi-0.9.9.9_p20-r3.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-misc/hamachi/hamachi-0.9.9.9_p20-r3.ebuild,v 1.1 2009/07/30 10:10:11 ssuominen Exp $
52
53 inherit eutils linux-info
54
55 # gHamachi GUI
56
57 MY_PV=${PV/_p/-}
58 MY_P=${PN}-${MY_PV}-lnx
59
60 DESCRIPTION="Hamachi is a secure mediated peer to peer."
61 HOMEPAGE="http://hamachi.cc"
62 LICENSE="as-is"
63 SRC_URI=" !pentium? ( http://files.hamachi.cc/linux/${MY_P}.tar.gz )
64 pentium? ( http://files.hamachi.cc/linux/${MY_P}-pentium.tar.gz )"
65 SLOT="0"
66 KEYWORDS="-* ~amd64 ~x86"
67 IUSE="pentium"
68 RESTRICT="strip mirror"
69
70 # Set workdir for both hamachi versions
71 if use pentium; then
72 S=${WORKDIR}/${MY_P}-pentium
73 else
74 S=${WORKDIR}/${MY_P}
75 fi
76
77 pkg_preinst() {
78 # Add group "hamachi" & user "hamachi"
79 enewgroup ${PN}
80 enewuser ${PN} -1 -1 /dev/null ${PN}
81 }
82
83 pkg_setup() {
84 einfo "Checking your kernel configuration for TUN/TAP support."
85 CONFIG_CHECK="TUN"
86 check_extra_config
87 }
88
89 src_unpack() {
90 # Unpack the correct Hamachi version
91 if use !pentium; then
92 unpack ${MY_P}.tar.gz
93 else
94 unpack ${MY_P}-pentium.tar.gz
95 fi
96 }
97
98 src_compile() {
99 # Compile Tuncfg
100 make -sC "${S}"/tuncfg || die "Compiling of tunecfg failed"
101 }
102
103 src_install() {
104 # Hamachi
105 einfo "Installing Hamachi"
106 insinto /usr/bin
107 insopts -m0755
108 doins hamachi
109 dosym /usr/bin/hamachi /usr/bin/hamachi-init
110
111 # Tuncfg
112 einfo "Installing Tuncfg"
113 insinto /usr/sbin
114 insopts -m0700
115 doins tuncfg/tuncfg
116
117 # Create log directory
118 dodir /var/log/${PN}
119
120 # Config files
121 einfo "Installing config files"
122 newinitd "${FILESDIR}"/tuncfg.initd.2 tuncfg
123 newconfd "${FILESDIR}"/hamachi.confd hamachi
124 newinitd "${FILESDIR}"/hamachi.initd hamachi
125
126 # Docs
127 dodoc CHANGES README LICENSE LICENSE.openssh LICENSE.openssl LICENSE.tuncfg
128
129 }
130
131 pkg_postinst() {
132 if use pentium; then
133 einfo "Remember, you set the pentium USE flag!"
134 einfo So, you installed the version for older x86 systems!
135 einfo If your CPU is greater than Intel Pentium / AMD K6,
136 einfo remove the pentium USE flag and try this version!
137 fi
138
139 if use !pentium; then
140 ewarn "If you are seeing 'illegal instruction' error when trying"
141 ewarn "to run Hamachi client, set the pentium USE flag!"
142 ewarn "It enables binaries built specifically for older"
143 ewarn "x86 platforms, like Intel Pentium or AMD K6,"
144 ewarn "with all optimizations turned off."
145 fi
146
147 einfo "To start Hamachi just type:"
148 einfo "/etc/init.d/hamachi start"
149
150 # added for bug #218481
151 einfo "If the 'hamachi' command shows no output, use the following command"
152 einfo "to extract the hamachi executable either with app-arch/upx or"
153 einfo "app-arch/upx-ucl:"
154 einfo "/opt/bin/upx -d /usr/bin/hamachi"
155 }