summaryrefslogtreecommitdiff
blob: 4bfea91690a4003998bd1e34f0b2647943d98e35 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="1"
inherit versionator eutils

MAJOR_PV="$(get_version_component_range 1-3)"
FULL_PV="${MAJOR_PV}-$(get_version_component_range 4)"
DESCRIPTION="The X2Go usb mount tool"
HOMEPAGE="http://x2go.berlios.de"
SRC_URI="http://x2go.obviously-nice.de/deb/pool-lenny/${PN}/${PN}_${FULL_PV}_all.deb"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

S=${WORKDIR}/${PN}-${MAJOR_PV}.orig

src_unpack(){
unpack ${A}
        cd "${S}"

        tar xozf data.tar.gz || die "failure unpacking data.tar.gz"
}

src_install(){
    dosbin usr/sbin/*
    
    insinto /etc/udev/rules.d/
    doins etc/udev/rules.d/z60_x2gousb.rules
}