From c4d006afe68064d2176ff274dc85102098b712ec Mon Sep 17 00:00:00 2001 From: Martin Väth Date: Wed, 12 Jan 2022 05:47:56 +0100 Subject: acct-{group,user} for flexlm trackballs noip-updater schedule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Väth --- app-admin/flexlm/flexlm-9.5-r2.ebuild | 77 ----------------------------------- app-admin/flexlm/flexlm-9.5-r3.ebuild | 75 ++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 77 deletions(-) delete mode 100644 app-admin/flexlm/flexlm-9.5-r2.ebuild create mode 100644 app-admin/flexlm/flexlm-9.5-r3.ebuild (limited to 'app-admin') diff --git a/app-admin/flexlm/flexlm-9.5-r2.ebuild b/app-admin/flexlm/flexlm-9.5-r2.ebuild deleted file mode 100644 index e14ddd58..00000000 --- a/app-admin/flexlm/flexlm-9.5-r2.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2018 Gentoo Authors and Martin V\"ath -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -RESTRICT="fetch" -inherit user - -DESCRIPTION="Macrovision FLEXlm license manager and utils" -HOMEPAGE="http://www.macrovision.com/services/support/flexlm/lmgrd.shtml" -# doc ? ( http://www.macrovision.com/services/support/flexlm/enduser.pdf -> flexusr.pdf ) -SRC_URI="doc? ( http://www.ni.com/pdf/manuals/flexusr.pdf ) - x86? ( - mirror://gentoo/lmgrd-x86.Z - mirror://gentoo/lmutil-x86.Z - ) - amd64? ( - mirror://gentoo/lmgrd-amd64.Z - mirror://gentoo/lmutil-amd64.Z - )" - -LICENSE="all-rights-reserved GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc" - -QA_PREBUILT=" - opt/flexlm/bin/lmgrd - opt/flexlm/bin/lmutil" - -S="${WORKDIR}" - -src_prepare() { - mv lmutil-* lmutil || die - mv lmgrd-* lmgrd || die -} - -src_install () { - # executables - 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 - use doc && dodoc "${DISTDIR}"/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 - - # log dir - dodir /var/log/flexlm -} - -pkg_postinst() { - enewgroup flexlm - enewuser flexlm -1 /bin/bash /opt/flexlm flexlm - - # See bug 383787 - chown flexlm /var/log/flexlm || eerror "'chown flexlm /var/log/flexlm' failed!" - - elog "FlexLM installed. Config is in /etc/conf.d/flexlm" - elog "Default location for license file is /etc/flexlm/license.dat" -} diff --git a/app-admin/flexlm/flexlm-9.5-r3.ebuild b/app-admin/flexlm/flexlm-9.5-r3.ebuild new file mode 100644 index 00000000..3295a668 --- /dev/null +++ b/app-admin/flexlm/flexlm-9.5-r3.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2022 Gentoo Authors and Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +RESTRICT="fetch" + +DESCRIPTION="Macrovision FLEXlm license manager and utils" +HOMEPAGE="http://www.macrovision.com/services/support/flexlm/lmgrd.shtml" +# doc ? ( http://www.macrovision.com/services/support/flexlm/enduser.pdf -> flexusr.pdf ) +SRC_URI="doc? ( http://www.ni.com/pdf/manuals/flexusr.pdf ) + x86? ( + mirror://gentoo/lmgrd-x86.Z + mirror://gentoo/lmutil-x86.Z + ) + amd64? ( + mirror://gentoo/lmgrd-amd64.Z + mirror://gentoo/lmutil-amd64.Z + )" + +LICENSE="all-rights-reserved GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" +DEPEND="acct-group/flexlm + acct-user/flexlm" + +QA_PREBUILT=" + opt/flexlm/bin/lmgrd + opt/flexlm/bin/lmutil" + +S="${WORKDIR}" + +src_prepare() { + mv lmutil-* lmutil || die + mv lmgrd-* lmgrd || die +} + +src_install () { + # executables + 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 + use doc && dodoc "${DISTDIR}"/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 + + # log dir + dodir /var/log/flexlm +} + +pkg_postinst() { + # See bug 383787 + chown flexlm /var/log/flexlm || eerror "'chown flexlm /var/log/flexlm' failed!" + + elog "FlexLM installed. Config is in /etc/conf.d/flexlm" + elog "Default location for license file is /etc/flexlm/license.dat" +} -- cgit v1.2.3-65-gdbad