/[gentoo-x86]/app-admin/flexlm/flexlm-9.5-r2.ebuild
Gentoo

Contents of /app-admin/flexlm/flexlm-9.5-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu May 31 02:29:01 2012 UTC (11 months, 3 weeks ago) by zmedico
Branch: MAIN
Changes since 1.1: +2 -2 lines
inherit user for enewgroup and enewuser

(Portage version: 2.2.0_alpha108_p8/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/flexlm/flexlm-9.5-r2.ebuild,v 1.1 2012/04/16 10:37:21 pacho Exp $
4
5 EAPI=4
6 inherit eutils user
7
8 DESCRIPTION="Macrovision FLEXlm license manager and utils"
9 HOMEPAGE="http://www.macrovision.com/services/support/flexlm/lmgrd.shtml"
10 SRC_URI="http://www.macrovision.com/services/support/flexlm/enduser.pdf
11 x86? (
12 mirror://gentoo/lmgrd-x86.Z
13 mirror://gentoo/lmutil-x86.Z
14 )
15 amd64? (
16 mirror://gentoo/lmgrd-amd64.Z
17 mirror://gentoo/lmutil-amd64.Z
18 )"
19
20 LICENSE="as-is"
21 SLOT="0"
22 KEYWORDS="-* ~amd64 ~x86"
23 IUSE=""
24 RESTRICT="strip"
25
26 S="${WORKDIR}"
27
28 src_unpack() {
29 unpack ${A}
30
31 mv lmutil-${ARCH} lmutil
32 mv lmgrd-${ARCH} lmgrd
33
34 cp "${DISTDIR}"/enduser.pdf "${S}"
35 }
36
37 src_install () {
38 # executables
39 dodir /opt/flexlm/bin
40 exeinto /opt/flexlm/bin
41 doexe lmgrd lmutil
42
43 dosym lmutil /opt/flexlm/bin/lmcksum
44 dosym lmutil /opt/flexlm/bin/lmdiag
45 dosym lmutil /opt/flexlm/bin/lmdown
46 dosym lmutil /opt/flexlm/bin/lmhostid
47 dosym lmutil /opt/flexlm/bin/lmremove
48 dosym lmutil /opt/flexlm/bin/lmreread
49 dosym lmutil /opt/flexlm/bin/lmstat
50 dosym lmutil /opt/flexlm/bin/lmver
51
52 # documentation
53 dodoc enduser.pdf
54
55 # init files
56 newinitd "${FILESDIR}"/flexlm-init flexlm
57 newconfd "${FILESDIR}"/flexlm-conf flexlm
58
59 # environment
60 doenvd "${FILESDIR}"/90flexlm
61
62 # empty dir for licenses
63 keepdir /etc/flexlm
64
65 # log dir
66 dodir /var/log/flexlm
67 }
68
69 pkg_postinst() {
70 enewgroup flexlm
71 enewuser flexlm -1 /bin/bash /opt/flexlm flexlm
72
73 # See bug 383787
74 chown flexlm /var/log/flexlm || die
75
76 elog "FlexLM installed. Config is in /etc/conf.d/flexlm"
77 elog "Default location for license file is /etc/flexlm/license.dat"
78 }

  ViewVC Help
Powered by ViewVC 1.1.13