1 |
ssuominen 09/07/31 09:26:18 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: hamachi-0.9.9.9_p20-r4.ebuild |
5 |
Removed: hamachi-0.9.9.9_p20-r3.ebuild |
6 |
Log: |
7 |
Revision bump for pebcak. |
8 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.11 net-misc/hamachi/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/hamachi/ChangeLog?rev=1.11&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/hamachi/ChangeLog?rev=1.11&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/hamachi/ChangeLog?r1=1.10&r2=1.11 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/hamachi/ChangeLog,v |
20 |
retrieving revision 1.10 |
21 |
retrieving revision 1.11 |
22 |
diff -u -r1.10 -r1.11 |
23 |
--- ChangeLog 30 Jul 2009 10:10:11 -0000 1.10 |
24 |
+++ ChangeLog 31 Jul 2009 09:26:18 -0000 1.11 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-misc/hamachi |
27 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/hamachi/ChangeLog,v 1.10 2009/07/30 10:10:11 ssuominen Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/hamachi/ChangeLog,v 1.11 2009/07/31 09:26:18 ssuominen Exp $ |
30 |
+ |
31 |
+*hamachi-0.9.9.9_p20-r4 (31 Jul 2009) |
32 |
+ |
33 |
+ 31 Jul 2009; Samuli Suominen <ssuominen@g.o> |
34 |
+ -hamachi-0.9.9.9_p20-r3.ebuild, +hamachi-0.9.9.9_p20-r4.ebuild: |
35 |
+ Revision bump for pebcak. |
36 |
|
37 |
*hamachi-0.9.9.9_p20-r3 (30 Jul 2009) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 net-misc/hamachi/hamachi-0.9.9.9_p20-r4.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/hamachi/hamachi-0.9.9.9_p20-r4.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-r4.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: hamachi-0.9.9.9_p20-r4.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-r4.ebuild,v 1.1 2009/07/31 09:26:18 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 tuncfg |
123 |
newconfd "${FILESDIR}"/hamachi.confd hamachi |
124 |
newinitd "${FILESDIR}"/hamachi.initd.2 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 |
} |