From 44c525075c1220b235ca75031ab2fb0c136df1db Mon Sep 17 00:00:00 2001 From: "Juergen \"George\" Sawinski" Date: Wed, 28 Jul 2004 09:57:36 +0000 Subject: [PATCH] Juergen Sawinski: -add jsaw/flexlm (FlexLM licence manager, commercial package) [2004072217315818453] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@3670 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/jsaw/flexlm/config.in | 30 ++++++++++++++++++ package/jsaw/flexlm/config.txt | 24 +++++++++++++++ package/jsaw/flexlm/flexlm.conf | 54 +++++++++++++++++++++++++++++++++ package/jsaw/flexlm/flexlm.desc | 50 ++++++++++++++++++++++++++++++ package/jsaw/flexlm/flexlm.init | 39 ++++++++++++++++++++++++ package/jsaw/flexlm/flexlm.txt | 27 +++++++++++++++++ 6 files changed, 224 insertions(+) create mode 100644 package/jsaw/flexlm/config.in create mode 100644 package/jsaw/flexlm/config.txt create mode 100644 package/jsaw/flexlm/flexlm.conf create mode 100644 package/jsaw/flexlm/flexlm.desc create mode 100644 package/jsaw/flexlm/flexlm.init create mode 100644 package/jsaw/flexlm/flexlm.txt diff --git a/package/jsaw/flexlm/config.in b/package/jsaw/flexlm/config.in new file mode 100644 index 000000000..566e23c22 --- /dev/null +++ b/package/jsaw/flexlm/config.in @@ -0,0 +1,30 @@ +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/jsaw/flexlm/config.in +# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +if pkgcheck flexlm X +then + case "$arch" in + x86) pkgfork flexlm flexlm-x86 ;; + esac + + pkgremove flexlm +fi diff --git a/package/jsaw/flexlm/config.txt b/package/jsaw/flexlm/config.txt new file mode 100644 index 000000000..2a25269a5 --- /dev/null +++ b/package/jsaw/flexlm/config.txt @@ -0,0 +1,24 @@ +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/jsaw/flexlm/config.txt +# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +# Enter one config file per line +# (lmgrd is started for all files with "lmgrd -c ") diff --git a/package/jsaw/flexlm/flexlm.conf b/package/jsaw/flexlm/flexlm.conf new file mode 100644 index 000000000..b1f678066 --- /dev/null +++ b/package/jsaw/flexlm/flexlm.conf @@ -0,0 +1,54 @@ + +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/jsaw/flexlm/flexlm.conf +# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +prefix=/opt/flexlm +set_confopt + +flexlm_main() { + # create directories and install binaries + mkdir -p $root/$prefix $root/$sysconfdir + cp $archdir/{lmgrd-$arch,lmutil-$arch}.bz2 $root/$prefix/bin/ + + rm -f $root/$prefix/bin/{lmgrd-$arch,lmutil-$arch} + bzip2 -d $root/$prefix/bin/{lmgrd-$arch,lmutil-$arch}.bz2 + + mv $root/$prefix/bin/lmgrd-$arch $root/$prefix/bin/lmgrd + mv $root/$prefix/bin/lmutil-$arch $root/$prefix/bin/lmutil + + chmod 0755 $root/$prefix/bin/{lmgrd,lmutil} + chown daemon.daemon $root/$prefix/bin/{lmgrd,lmutil} + + # create links + for i in lmborrow lmdiag lmdown lmhostid lminstall \ + lmnewlog lmpath lmremove lmreread lmstat \ + lmswitch lmswitchr lmver; do + ln -sf $root/$prefix/bin/lmutil $i + done + + # install config + rock_substitute $confdir/config.txt \ + > $root/$sysconfdir/config +} + +custmain="flexlm_main" +autoextract=0 diff --git a/package/jsaw/flexlm/flexlm.desc b/package/jsaw/flexlm/flexlm.desc new file mode 100644 index 000000000..2571ff748 --- /dev/null +++ b/package/jsaw/flexlm/flexlm.desc @@ -0,0 +1,50 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/jsaw/flexlm/flexlm.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] FLEXlm(TM) License Manager + +[T] FLEXlm helps you flexibly and effectively price, package and license +[T] software products to quickly meet market demand. FLEXlm helps software +[T] vendors separate usage rights and licensing policies from the +[T] application binary, giving them the flexibility to change licensing +[T] terms without incurring development costs. Using battle-tested, +[T] industry-standard technology, FLEXlm helps software vendors reduce +[T] unlicensed use and capture all potential revenue from new and +[T] installed-base customers. + +[U] http://www.macrovision.com/products/legacy_products/flexlm/index.shtml + +[A] Macrovision +[M] Juergen "George" Sawinski + +[C] extra/server + +[L] Commercial +[S] Stable +[V] 9.2.1 +[P] X -----5---9 800.000 + +#if xpkg == flexlm-x86 +[D] X lmgrd-x86.Z !ftp://ftp.globes.com/flexlm/unix/v9.2.1/i86_r6/lmgrd.Z NODIST +[D] X lmutil-x86.Z !ftp://ftp.globes.com/flexlm/unix/v9.2.1/i86_r6/lmutil.Z NODIST +#endif diff --git a/package/jsaw/flexlm/flexlm.init b/package/jsaw/flexlm/flexlm.init new file mode 100644 index 000000000..008228636 --- /dev/null +++ b/package/jsaw/flexlm/flexlm.init @@ -0,0 +1,39 @@ +#!/bin/sh +# +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/jsaw/flexlm/flexlm.init +# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- +# +# Desc: the FLEXlm license manager +# Runlevel: 99 rc3 rc4 rc5 rcX +# + +main_begin + + block_begin(start, `Starting FLEXlm.') + check(`D_prefix/sbin/flexlm') + block_end + + block_begin(stop, `Stopping FLEXlm.') + check(`killall -15 D_prefix/bin/lmgrd') + block_end + +main_end diff --git a/package/jsaw/flexlm/flexlm.txt b/package/jsaw/flexlm/flexlm.txt new file mode 100644 index 000000000..b87d8ed90 --- /dev/null +++ b/package/jsaw/flexlm/flexlm.txt @@ -0,0 +1,27 @@ +#!/bin/sh +# +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/jsaw/flexlm/flexlm.txt +# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +cat D_sysconfdir/config | egrep -v "^((#.*$)|())$" | while read ln; do + D_prefix/bin/lmgrd -c $ln +done