summaryrefslogtreecommitdiff
blob: 9ad548804c9155375c7c2f4d134f8cc15987d192 (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
# 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.ebuild,v 1.1 2005/01/02 16:00:30 chrb Exp $

DESCRIPTION="Macrovision FLEXlm license manager and utils"
HOMEPAGE="http://www.macrovision.com/services/support/flexlm/lmgrd.shtml"
SRC_URI="ftp://ftp.globes.com/flexlm/unix/v${PV}/i86_s8/lmgrd.Z
	ftp://ftp.globes.com/flexlm/unix/v${PV}/i86_s8/lmutil.Z
	http://www.macrovision.com/services/support/flexlm/enduser.pdf"

LICENSE="Macromedia"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RESTRICT="nostrip nomirror"

DEPEND="virtual/libc"

S="${WORKDIR}"

src_unpack() {
	unpack ${A}
	cp ${DISTDIR}/enduser.pdf ${S}
}

src_install () {
	# executables
	dodir /opt/flexlm/bin
	exeinto /opt/flexlm/bin
	doexe lmgrd lmutil
	# documentation
	dodir /opt/flexlm/doc
	insinto /opt/flexlm/doc
	doins enduser.pdf
	# init files
	exeinto /etc/init.d
	newexe ${FILESDIR}/flexlm-init flexlm
	# environment
	insinto /etc/env.d
	doins ${FILESDIR}/90flexlm
	# config
	insinto /etc/conf.d/
	newins ${FILESDIR}/flexlm-conf flexlm
	# empty dir for licenses
	dodir /etc/flexlm
}

pkg_postinst() {
	id &>/dev/null flexlm || useradd -g nogroup -d /opt/flexlm -c "FlexLM server user" -s /bin/bash flexlm
	einfo "FlexLM installed. Config is in /etc/conf.d/flexlm"
	einfo "Default location for license file is /etc/flexlm/license.dat"
}