summaryrefslogtreecommitdiff
blob: 35dbc63ed92dff3871c1a0c9cd879a6eb1559db2 (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
63
64
65
66
67
68
69
70
71
72
73
74
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/flexlm/flexlm-9.5-r1.ebuild,v 1.1 2005/08/11 08:42:25 eradicator Exp $

inherit eutils

DESCRIPTION="Macrovision FLEXlm license manager and utils"
HOMEPAGE="http://www.macrovision.com/services/support/flexlm/lmgrd.shtml"
SRC_URI="http://www.macrovision.com/services/support/flexlm/enduser.pdf
	 x86? ( http://dev.gentoo.org/~eradicator/flexlm/lmgrd-x86-${PV}.Z
	          http://dev.gentoo.org/~eradicator/flexlm/lmutil-x86-${PV}.Z )
	 amd64? ( http://dev.gentoo.org/~eradicator/flexlm/lmgrd-amd64-${PV}.Z
	          http://dev.gentoo.org/~eradicator/flexlm/lmutil-amd64-${PV}.Z )"

# The ones in eradicator's devspace were originally:
# ftp://ftp.globes.com/flexlm/unix/v${PV}/i86_s8/lmgrd.Z
# ftp://ftp.globes.com/flexlm/unix/v${PV}/i86_s8/lmutil.Z
# ftp://ftp.globes.com/flexlm/unix/v${PV}/amd64_s8/lmgrd.Z
# ftp://ftp.globes.com/flexlm/unix/v${PV}/amd64_s8/lmutil.Z

LICENSE="Macromedia"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
RESTRICT="nostrip"

DEPEND="virtual/libc"

S="${WORKDIR}"

src_unpack() {
	unpack ${A}

	mv lmutil-${ARCH}-${PV} lmutil
	mv lmgrd-${ARCH}-${PV} lmgrd

	cp ${DISTDIR}/enduser.pdf ${S}
}

src_install () {
	# executables
	dodir /opt/flexlm/bin
	exeinto /opt/flexlm/bin
	doexe lmgrd lmutil

	dosym lmutil /opt/flexlm/bin/lmcksum
	dosym lmutil /opt/flexlm/bin/lmdiag
	dosym lmutil /opt/flexlm/bin/lmdown
	dosym lmutil /opt/flexlm/bin/lmhostid
	dosym lmutil /opt/flexlm/bin/lmremove
	dosym lmutil /opt/flexlm/bin/lmreread
	dosym lmutil /opt/flexlm/bin/lmstat
	dosym lmutil /opt/flexlm/bin/lmver

	# documentation
	dodoc enduser.pdf

	# init files
	newinitd ${FILESDIR}/flexlm-init flexlm
	newconfd ${FILESDIR}/flexlm-conf flexlm

	# environment
	doenvd ${FILESDIR}/90flexlm

	# empty dir for licenses
	keepdir /etc/flexlm
}

pkg_postinst() {
	enewgroup flexlm
	enewuser flexlm -1 /bin/bash /opt/flexlm flexlm -c "FlexLM server user"
	einfo "FlexLM installed. Config is in /etc/conf.d/flexlm"
	einfo "Default location for license file is /etc/flexlm/license.dat"
}