/[gentoo-x86]/net-misc/hamachi/hamachi-0.9.9.9_p20-r4.ebuild
Gentoo

Contents of /net-misc/hamachi/hamachi-0.9.9.9_p20-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Jul 11 10:01:26 2010 UTC (9 years, 6 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Revbump. Fixes multiple issues. Bug #261745. Thanks to René Kjellerup <rk.katana.steel@gmail.com>
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/hamachi/hamachi-0.9.9.9_p20-r4.ebuild,v 1.3 2009/09/08 17:11:21 ikelos Exp $
4
5 inherit eutils linux-info
6
7 # gHamachi GUI
8
9 MY_PV=${PV/_p/-}
10 MY_P=${PN}-${MY_PV}-lnx
11
12 DESCRIPTION="Hamachi is a secure mediated peer to peer."
13 HOMEPAGE="http://hamachi.cc"
14 LICENSE="as-is"
15 SRC_URI="sse? ( http://files.hamachi.cc/linux/${MY_P}.tar.gz )
16 !sse? ( http://files.hamachi.cc/linux/${MY_P}-pentium.tar.gz )"
17 SLOT="0"
18 KEYWORDS="-* ~amd64 ~x86"
19 IUSE="sse"
20 RESTRICT="strip mirror"
21
22 # Set workdir for both hamachi versions
23 if use sse; then
24 S=${WORKDIR}/${MY_P}
25 else
26 S=${WORKDIR}/${MY_P}-pentium
27 fi
28
29 pkg_preinst() {
30 # Add group "hamachi" & user "hamachi"
31 enewgroup ${PN}
32 enewuser ${PN} -1 -1 /dev/null ${PN}
33 }
34
35 pkg_setup() {
36 einfo "Checking your kernel configuration for TUN/TAP support."
37 CONFIG_CHECK="~TUN"
38 check_extra_config
39 }
40
41 src_compile() {
42 # Compile Tuncfg
43 make -sC "${S}"/tuncfg || die "Compiling of tunecfg failed"
44 }
45
46 src_install() {
47 # Hamachi
48 einfo "Installing Hamachi"
49 insinto /usr/bin
50 insopts -m0755
51 doins hamachi
52 dosym /usr/bin/hamachi /usr/bin/hamachi-init
53
54 # Tuncfg
55 einfo "Installing Tuncfg"
56 insinto /usr/sbin
57 insopts -m0700
58 doins tuncfg/tuncfg
59
60 # Create log directory
61 dodir /var/log/${PN}
62
63 # Config files
64 einfo "Installing config files"
65 newinitd "${FILESDIR}"/tuncfg.initd tuncfg
66 newconfd "${FILESDIR}"/hamachi.confd hamachi
67 newinitd "${FILESDIR}"/hamachi.initd.2 hamachi
68
69 # Docs
70 dodoc CHANGES README LICENSE LICENSE.openssh LICENSE.openssl LICENSE.tuncfg
71
72 }
73
74 pkg_postinst() {
75 einfo "To start Hamachi just type:"
76 einfo "/etc/init.d/hamachi start"
77
78 # added for bug #218481
79 einfo "If the 'hamachi' command shows no output, use the following command"
80 einfo "to extract the hamachi executable either with app-arch/upx or"
81 einfo "app-arch/upx-ucl:"
82 einfo "/opt/bin/upx -d /usr/bin/hamachi"
83 }

  ViewVC Help
Powered by ViewVC 1.1.20