Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20291 - [EBUILD] New package: IBM Tivoli Storage Manager client - ebuild and init scripts
Summary: [EBUILD] New package: IBM Tivoli Storage Manager client - ebuild and init scr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: App-Backup Team
URL:
Whiteboard:
Keywords: EBUILD
Depends on: 101795
Blocks:
  Show dependency tree
 
Reported: 2003-05-01 16:00 UTC by Sandy McArthur
Modified: 2010-02-04 05:15 UTC (History)
14 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild, config, and init.d files for the TSM client (tivoli-storage-manager.tar.gz,1.58 KB, application/octet-stream)
2003-05-01 16:01 UTC, Sandy McArthur
Details
well tested ebuild and init scripts for Tivoli Storage Manger (tsm-ba.tar.gz,2.42 KB, application/octet-stream)
2003-08-05 11:54 UTC, Sandy McArthur
Details
Ebuild for TSM-BA 5.2.2 (tsm-ba-5.2.2.ebuild,2.76 KB, application/octet-stream)
2004-05-09 15:37 UTC, John E. Vincent
Details
Conf.d file for TSM-BA 5.2.2 (dsmc.conf.d,217 bytes, application/octet-stream)
2004-05-09 15:38 UTC, John E. Vincent
Details
init.d file for TSM-BA 5.2.2 (dsmc.init.d,613 bytes, application/octet-stream)
2004-05-09 15:38 UTC, John E. Vincent
Details
Digest for TSM-BA 5.2.2 (digest-tsm-ba-5.2.2,128 bytes, application/octet-stream)
2004-05-09 15:38 UTC, John E. Vincent
Details
ebuild and related files for TSM 5.2.3: tsm.tar.gz (tsm.tar.gz,9.65 KB, application/octet-stream)
2004-11-24 06:47 UTC, Sandy McArthur
Details
tsm-5.2.3.ebuild (tsm-5.2.3.ebuild,2.88 KB, text/plain)
2004-11-24 06:51 UTC, Sandy McArthur
Details
ebuild and related files for TSM 5.3.2: tsm.tar.gz (tsm.tar.gz,11.21 KB, application/octet-stream)
2006-02-08 10:23 UTC, Sandy McArthur
Details
tsm-5.3.2.ebuild (tsm-5.3.2.ebuild,3.07 KB, text/plain)
2006-02-08 10:25 UTC, Sandy McArthur
Details
init.d file for tsm 5.3.2 (dsmc.init.d,652 bytes, text/plain)
2006-02-08 10:26 UTC, Sandy McArthur
Details
tsm-5.3.4-r3 ebuild (tsm-5.3.4-r3.ebuild,3.22 KB, text/plain)
2006-12-27 09:09 UTC, Hans Halvorson
Details
tsm-5.3.4-r3.ebuild (tsm-5.3.4-r3.ebuild,3.23 KB, text/plain)
2007-01-19 20:49 UTC, Troy Bowman
Details
Updated ebuild for current version of TSM (tsm-5.4.1-r2.ebuild,3.28 KB, text/plain)
2007-10-04 14:38 UTC, gentoo
Details
tsm-5.5.0-r6.ebuild (tsm-5.5.0-r6.ebuild,3.46 KB, text/plain)
2008-06-12 23:43 UTC, Troy Bowman
Details
ebuild with sys-libs/libstdc++-v3 dependency (tsm-5.5.0-r6.ebuild,3.44 KB, text/plain)
2010-01-07 17:27 UTC, Alexandre Nuno Milheiro
Details
Version bump with a lot of improvements in ebuild (tsm-5.5.2.7.ebuild,3.70 KB, text/plain)
2010-01-20 22:37 UTC, Andreas K. Hüttel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sandy McArthur 2003-05-01 16:00:26 UTC
I'm attaching the package I created to my workstation for the tivoli storage
manager client. 

There is one problem with this package. It doesn't have a license. This isn't my
fault. The TSM client doesn't come with one and I looked and grepped pretty
hard. The client is free and the server has the license. At first I used "as-is"
but that isn't techinically correct though I think it's the best choice. I don't
see one called "none". The package is useless without the server component so I
don't know if it needs one.

Reproducible: Always
Steps to Reproduce:




Once installed the package puts the config files in /etc/tivoli/ and there is an
init.d script at /etc/init.d/tivoli.

I've been using this package for over a month and figued I'd better give it to
you before I completely forgot about it.
Comment 1 Sandy McArthur 2003-05-01 16:01:47 UTC
Created attachment 11365 [details]
Ebuild, config, and init.d files for the TSM client

$ tar tzf tivoli-storage-manager.tar.gz
tivoli-storage-manager/
tivoli-storage-manager/files/
tivoli-storage-manager/files/digest-tivoli-storage-manager-5.1.5
tivoli-storage-manager/files/tivoli.conf.d
tivoli-storage-manager/files/tivoli.init.d
tivoli-storage-manager/tivoli-storage-manager-5.1.5.ebuild
Comment 2 Sandy McArthur 2003-06-27 22:28:43 UTC
This has a bug in the ebuild in the src_install() line.  I'll upload a new version in the next 
week.
Comment 3 Sandy McArthur 2003-08-05 11:54:02 UTC
Created attachment 15553 [details]
well tested ebuild and init scripts for Tivoli Storage Manger

I think this should go in to the app-admin group.

$ tar tzf /usr/local/portage/app-admin/tsm-ba.tar.gz
tsm-ba/
tsm-ba/files/
tsm-ba/files/digest-tsm-ba-5.1.6
tsm-ba/files/dsmc.init.d
tsm-ba/files/dsmc.conf.d
tsm-ba/Manifest
tsm-ba/tsm-ba-5.1.6.ebuild


This does not include the developement API, I'll provide a seperate package for
that.
Comment 4 John E. Vincent 2004-05-09 15:35:40 UTC
New ebuild for TSM 5.2.2 (which we are running). You now need the TIVsm-API.rpm as well. I also stripped all the language stuff out. Maybe we need an internationalization USE flag? =)

Just for the sake of doing it, I changed RESTRICT to include fetch. I plan on making a few ebuild of the various products for my company's internal use.

The init files are the same, but I'm attaching them as well as the ebuild in seperate files per the "ebuild common mistakes" document.
Comment 5 John E. Vincent 2004-05-09 15:37:44 UTC
Created attachment 31070 [details]
Ebuild for TSM-BA 5.2.2
Comment 6 John E. Vincent 2004-05-09 15:38:08 UTC
Created attachment 31071 [details]
Conf.d file for TSM-BA 5.2.2
Comment 7 John E. Vincent 2004-05-09 15:38:29 UTC
Created attachment 31072 [details]
init.d file for TSM-BA 5.2.2
Comment 8 John E. Vincent 2004-05-09 15:38:47 UTC
Created attachment 31073 [details]
Digest for TSM-BA 5.2.2
Comment 9 John E. Vincent 2004-05-09 15:39:24 UTC
Forgot the attachments
Comment 10 Wout Mertens (RETIRED) gentoo-dev 2004-10-24 03:36:34 UTC
John,

(Sorry for the long delay)

I have no way to test these ebuilds other than to check for correctness and so on, and William is no longer a gentoo dev as far as I can tell. The 5.2.2 ebuild looks fine, though.

Question, why the fetch restriction? Because of the absent license?

Did you notice that in the mean time, the 5.2.3 version is out? Do you happen to have an ebuild for that? Version bumping doesn't work, since the programs now seem to have been released as a tarball.

Since I can't test it, and the ebuild doesn't work for the next version, I would like to hear from you or anybody else interested in providing feedback on the installed program before I put it in the tree.

Sounds fair?

Thanks for the efforts so far!

Wout.
Comment 11 John E. Vincent 2004-11-12 04:44:10 UTC
Wout,

I had someone send me a private message about using custom ebuilds and realized that you had actually updated the bug! Sorry for MY long delay.

The reason for the file flag is mainly the license. The client is TOTALLY useless without a TSM server and a node registration but I didn't want to take any chances. 

I just realized the other day when installing a new TSM server that 5.2.3 was indeed out. I haven't updated my ebuild for it yet as we're still using 5.2.2 on our production server. Since I've installed 5.2.3 on this new setup and I have a gentoo server so I would have probably updated it soon enough.

I'll work on it this weekend and get an updated ebuild out there. 
Comment 12 Baz (RETIRED) gentoo-dev 2004-11-14 11:45:19 UTC
I've also written ebuilds for the TSM client and server (see http://dev.gentoo.org/ebuilds) as I didn't realise at the time that there was a client ebuild pending.  The client is functionally equivalent to Williams, there might be parts that are worth importing into his ebuild (please ignore the fact that the executables are installed with a insinto rather than a exeinto.  Since theres a working ebuild theres no point me fixing it).  Feel free to have a look and burgle any bits that seem useful.

As for the server ebuild, I'll open a new bug if its deemed worthwhile.  Currently the server is for version 5.2.2 as I haven't received the media for 5.3 yet.  The license with the server may also be an issue as there isn't one in portage that is suitable.
Comment 13 Sandy McArthur 2004-11-24 06:47:37 UTC
Created attachment 44635 [details]
ebuild and related files for TSM 5.2.3: tsm.tar.gz

TSM 5.2.3 This release builds on John's version. In addition to the version
bump it fixes some bugs in the previous two ebuilds. 

This also renames the package from 'tsm-ba' to 'tsm'. Previously I had planned
to provide a 'tsm-api' but since the API is required for the client to run it
doesn't make sense to keep them seperate.

This is a tarball of all relevant files. Note that the 'gSOAP' file is a
licence file and should be moved to portage/licenses/gSOAP.

Since TSM 5.2.3 actually declares it's licences in the download I've removed
the 'fetch' restriction. IMO the 'fetch' restriction didn't make any sense,
'nomirror' could have but I still don't think it's needed.

Files (I'll also submit the ebuild serperatly in a moment):
# tar tzf tsm.tar.gz
tsm/
tsm/files/
tsm/files/dsmc.init.d
tsm/files/dsmc.conf.d
tsm/files/digest-tsm-5.2.3
tsm/tsm-5.2.3.ebuild
tsm/ChangeLog
tsm/metadata.xml
tsm/Manifest
gSOAP

(dsmc.init.d and dsmc.conf.d remain unchanged since the originial versions.)

It is expected you will untar this in /usr/local/portage/app-admin or similar
directory.
Comment 14 Sandy McArthur 2004-11-24 06:51:05 UTC
Created attachment 44636 [details]
tsm-5.2.3.ebuild

This file is also available in the 5.2.3 tsm.tar.gz tarball. It needs the
dsmc.conf.d and dsmc.init.d files also attached to this bug or available in
said tarball.
Comment 15 Baz (RETIRED) gentoo-dev 2004-11-24 12:33:26 UTC
Just noticed the typo in the URL I posted the other day, it should read http://dev.gentoo.org/~baz/ebuilds.  Probably a bit late to be useful now 8).
Comment 16 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-03-13 17:34:57 UTC
wmertens/baz/vorlon: would you like to join app-backup?
Comment 17 Baz (RETIRED) gentoo-dev 2005-03-15 12:18:56 UTC
I don't mind maintaining the TSM server, license and and IBM tape ebuilds, as I do this for our local site anyway.  The main problem at the moment is that the IBM tape driver, http://bugs.gentoo.org/show_bug.cgi?id=74335, depends on a redhat kernel being installed for which I've posted an ebuild, http://bugs.gentoo.org/show_bug.cgi?id=74336, but have not had much response from the kernel herd.
Comment 18 grischa 2005-08-15 05:57:32 UTC
Did someone try to install TSM 5.3?
Since it needs the IBM GPFS I'm a bit lost...
Comment 19 Douglas Russell (RETIRED) gentoo-dev 2005-09-13 05:20:21 UTC
What is happening with this? 
 
The ebuilds attached to this bug aren't the ones on ~baz devspace. Also, 5.3.0 
is now out. Is someone maintaining this package? 5.3.0 also comes with a 
LICENSE.TXT if this is the reason this package hasn't made the tree. 
 
 
Comment 20 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-09-13 06:51:29 UTC
puggy: I'm waiting on recruiters to bring in a new developer, and I haven't 
heard ANYTHING at all from them.
Comment 21 Douglas Russell (RETIRED) gentoo-dev 2005-09-13 06:56:07 UTC
Robin: Who's the new guy/gal? 
Comment 22 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-09-13 06:59:37 UTC
David (see bug 101795) is a storage consultant in Sweden, who actively deploys 
TSM on a variety of systems, including Gentoo.
Comment 23 Sandy McArthur 2005-09-13 07:22:32 UTC
I'll see about updating the TSM client ebuild that I wrote later today.
Comment 24 Sandy McArthur 2006-02-08 10:23:56 UTC
Created attachment 79243 [details]
ebuild and related files for TSM 5.3.2: tsm.tar.gz

This includes an updated ebuild for TSM 5.3.2 client. Contents:
$ tar tzf tsm.tar.gz 
tsm/
tsm/tsm-5.3.2.ebuild
tsm/Manifest
tsm/files/
tsm/files/digest-tsm-5.2.3
tsm/files/digest-tsm-5.2.4
tsm/files/digest-tsm-5.3.0
tsm/files/digest-tsm-5.3.2
tsm/files/dsmc.conf.d
tsm/files/dsmc.init.d
tsm/tsm-5.2.3.ebuild
tsm/tsm-5.3.0.ebuild
tsm/ChangeLog
tsm/metadata.xml
tsm/tsm-5.2.4.ebuild
SNIA-2.2
Comment 25 Sandy McArthur 2006-02-08 10:25:01 UTC
Created attachment 79245 [details]
tsm-5.3.2.ebuild
Comment 26 Sandy McArthur 2006-02-08 10:26:23 UTC
Created attachment 79246 [details]
init.d file for tsm 5.3.2

Use the exiting 5.2.2 conf.d file with this.
Comment 27 Leon Kolchinsky 2006-02-28 05:56:10 UTC
Hello,

Have anyone ever managed to run TSM client on Linux on Sparc?
I have one such machine (With Gentoo Linux SPARC) and I intend to install additional one on SunFire 280R.

Any help/ideas?

Regards,
Leon
Comment 28 Hans Halvorson 2006-12-27 09:09:29 UTC
Created attachment 104812 [details]
tsm-5.3.4-r3 ebuild

Slight modifications to the 5.2.3 ebuild posted here
Comment 29 Troy Bowman 2007-01-19 20:49:25 UTC
Created attachment 107481 [details]
tsm-5.3.4-r3.ebuild

Hans Halvorson's ebuild worked, but the web interface dsmcad was broken, looking for libraries.  The libraries from /usr/lib has to be installed (which are basically just links back to the libraries in /opt).

Here's a modified ebuild to fix it.  I also uncommented the part that puts the startup script in /etc/init.d.
Comment 30 Uwe Klosa 2007-01-24 13:41:45 UTC
I am using tsm-5.3.4-r3.ebuild. The backup is working but I'm getting complains about /dev/fsm.

Is there a fix for this?
Comment 31 Uwe Klosa 2007-01-28 14:42:44 UTC
I found a solution in the forum. I changed the line

TSM_HSM="TIVsm-HSM.i386.rpm"

to 

#TSM_HSM="TIVsm-HSM.i386.rpm"

Now it works.
Comment 32 kaaZoo 2007-07-05 17:02:54 UTC
i tried the tsm-5.3.4-r3 ebuild from troy but creating the digest failed with fetching TSM534C_FIX3_LINUX86.tar. i searched in google and found another source: http://fresh.t-systems-sfr.com/linux/src/TSM534C_FIX3_LINUX86.tar/. after manually downloading the file from that site the digest went fine.

btw, has anybody the mood or need the create a new ebuild for 5.4.1 (out since june 2007)?

Comment 33 Evan Wagner 2007-07-24 19:13:33 UTC
(In reply to comment #31)
> I found a solution in the forum. I changed the line
> 
> TSM_HSM="TIVsm-HSM.i386.rpm"
> 
> to 
> 
> #TSM_HSM="TIVsm-HSM.i386.rpm"
> 
> Now it works.
> 

I did the same thing and that fixed all error messages I would get.

I also set my BASE_URI to this:
BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/maintenance/client/v5r3/Linux/Linux86/v${MY_PV}/"

I'll try to update the ebuild to the latest version of tsm client when I get the chance.
Comment 34 gentoo 2007-10-04 14:38:06 UTC
Created attachment 132564 [details]
Updated ebuild for current version of TSM
Comment 35 Troy Bowman 2008-06-12 23:43:41 UTC
Created attachment 156565 [details]
tsm-5.5.0-r6.ebuild

Here is a 5.5.0-r6 ebuild.  I'm using the x86 non-hsm version in production.  I've made a few changes to the ways the original ebuilds that were posted here do things, particularly, I'm using versionator for version manipulation, the BASE_URI is more dynamic now, I added an "hsm" use flag, so it won't extract the HSM rpm unless you define that use flag, and I'va added ~amd64 to the KEYWORDS, since there are 64-bit libraries included in 5.5.

Gotchas:  I haven't tested the 64-bit stuff, nor have I even thought about  installing the 64-bit libraries.  We'd probably need some more library symlinking with the 64-bit libraries.  I also haven't tested the HSM stuff.  I don't even know what HSM is, all I know is that it's bloated and I don't need it.
Comment 36 Alex Iribarren 2009-01-30 15:05:06 UTC
Troy's ebuild for 5.5.0-r6 works fine under amd64, but you have to change DEPEND and RDEPEND to the following:

DEPEND="x86? ( sys-libs/lib-compat )
        app-arch/rpm"
RDEPEND="x86? ( sys-libs/lib-compat )"
Comment 37 Andreas K. Hüttel archtester gentoo-dev 2009-07-31 09:00:30 UTC
Just FYI, it is a royal pain to get dsmc running on hardened.

I did not know about this ebuild and went on manually- effectively you have to strip all the protection bits from the dsmc binary with paxctl.
Comment 38 Tobias Scherbaum (RETIRED) gentoo-dev 2009-07-31 11:18:16 UTC
(In reply to comment #37)
> Just FYI, it is a royal pain to get dsmc running on hardened.
> 
> I did not know about this ebuild and went on manually- effectively you have to
> strip all the protection bits from the dsmc binary with paxctl.
> 

indeed. But i'll try to commit the ebuild i'm currently using within the next few weeks to gentoo-x86.
Comment 39 Alexandre Nuno Milheiro 2010-01-07 17:27:03 UTC
Created attachment 215572 [details]
ebuild with sys-libs/libstdc++-v3 dependency

lib-compat doesn't provide libstdc++.so.5 anymore.
see http://bugs.gentoo.org/show_bug.cgi?id=51221
So I added sys-libs/libstdc++-v3 to RDEPEND and removed lib-compat from DEPEND and RDEPEND
I'm not sure if lib-compat is necessary tought, as I only use admistrative command-line
Comment 40 Andreas K. Hüttel archtester gentoo-dev 2010-01-20 22:37:30 UTC
Created attachment 217015 [details]
Version bump with a lot of improvements in ebuild

* Version bump to current version
* Introduced group "tsm" for users that are allowed to use the client
* Fixed the version numbering (not abusing -rx anymore)
* Use app-arch/rpm2targz to unpack the files (instead of rpm)

Please test!
Comment 41 Tobias Scherbaum (RETIRED) gentoo-dev 2010-01-26 19:40:42 UTC
(In reply to comment #40)
> Created an attachment (id=217015) [details]
> Version bump with a lot of improvements in ebuild
> 
> * Version bump to current version
> * Introduced group "tsm" for users that are allowed to use the client
> * Fixed the version numbering (not abusing -rx anymore)
> * Use app-arch/rpm2targz to unpack the files (instead of rpm)
> 
> Please test!

Added to CVS as app-backup/tsm.

Comment 42 Troy Bowman 2010-02-04 05:15:38 UTC
Wow, Tobias!  I can't believe it!  You added it to Portage!   Yay!