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

Contents of /net-misc/logmein-hamachi/logmein-hamachi-2.1.0.139.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Mar 28 11:18:21 2015 UTC (4 years, 11 months ago) by dlan
Branch: MAIN
CVS Tags: HEAD
version bump, proxy for Simone

(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)

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

  ViewVC Help
Powered by ViewVC 1.1.20