blob: 315089ff3f6503de04900fb34c25a01a1a5f3bdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/logmein-hamachi/logmein-hamachi-2.0.1.15.ebuild,v 1.1 2011/06/13 09:00:21 hwoarang Exp $
inherit eutils linux-info
DESCRIPTION="LogMeIn Hamachi VPN tunneling engine"
HOMEPAGE="https://secure.logmein.com/products/hamachi2"
SRC_URI="x86? ( https://secure.logmein.com/labs/${P}-x86.tgz )
amd64? ( https://secure.logmein.com/labs/${P}-x64.tgz )"
LICENSE="LogMeIn"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
RDEPEND="!net-misc/hamachi"
RESTRICT="mirror"
QA_PRESTRIPPED="/opt/${PN}/bin/hamachid"
pkg_setup() {
einfo "Checking your kernel configuration for TUN/TAP support."
CONFIG_CHECK="~TUN"
check_extra_config
}
src_unpack() {
unpack ${A}
mv ${P}-$(use x86 && echo x86 || echo x64) "${S}" || die
}
src_install() {
into /opt/${PN}
dobin hamachid dnsup dnsdown || die
dosym /opt/${PN}/bin/hamachid /usr/bin/hamachi || die "Couldn't create hamachi symlink"
dodir /var/run/${PN} || die
# Config and log directory
dodir /var/lib/${PN} || die
newconfd "${FILESDIR}"/${PN}.confd ${PN} || die
newinitd "${FILESDIR}"/${PN}.initd ${PN} || die
dodoc CHANGES README || die
}
pkg_postinst() {
elog "LogMeIn Hamachi2 is installed."
elog "Consult the README file on how to configure your client."
elog "You can run the client 'hamachi' as root,"
elog "or as a user if you add a line:"
elog "Ipc.User <login name>"
elog "to the file '/var/lib/${PN}/h2-engine-override.cfg'"
elog "and restart the daemon with"
elog "/etc/init.d/${PN} restart"
elog "To enable auto-login when the service starts set a nickname in"
elog "/etc/conf.d/${PN}"
elog "Running 'hamachi' without arguments may crash the daemon."
}
|