summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/flexlm/flexlm-9.2.1.ebuild')
-rw-r--r--app-admin/flexlm/flexlm-9.2.1.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/app-admin/flexlm/flexlm-9.2.1.ebuild b/app-admin/flexlm/flexlm-9.2.1.ebuild
new file mode 100644
index 000000000000..f2ff30adf6db
--- /dev/null
+++ b/app-admin/flexlm/flexlm-9.2.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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"
+KEYWORDS="~x86"
+DEPEND="virtual/glibc"
+S=${WORKDIR}
+RESTRICT="nostrip"
+SLOT="0"
+
+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"
+}