/[gentoo-x86]/net-misc/logmein-hamachi/logmein-hamachi-2.1.0.68-r1.ebuild
Gentoo

Contents of /net-misc/logmein-hamachi/logmein-hamachi-2.1.0.68-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri Aug 17 11:54:58 2012 UTC (2 years ago) by titanofold
Branch: MAIN
Fixes bug 430234. Per Simone Scanzoni.

(Portage version: 2.1.10.65/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20