head 1.64;
access;
symbols
OPENPKG_E1_MP_HEAD:1.63
OPENPKG_E1_MP:1.63
OPENPKG_E1_MP_2_STABLE:1.62.2.2
OPENPKG_E1_FP:1.62.2.2
OPENPKG_2_STABLE_MP:1.62
OPENPKG_2_STABLE_20061018:1.62.2.2
OPENPKG_2_STABLE:1.62.0.2
OPENPKG_CW_FP:1.58
OPENPKG_1_STABLE_MP:1.42;
locks; strict;
comment @-- @;
1.64
date 2007.10.04.06.02.13; author rse; state dead;
branches;
next 1.63;
commitid 4bJmWGu7TVt9KeAs;
1.63
date 2007.01.01.17.42.28; author rse; state Exp;
branches;
next 1.62;
commitid BicZD6VUl7GuqP0s;
1.62
date 2006.10.13.17.35.04; author thl; state Exp;
branches
1.62.2.1;
next 1.61;
commitid q5GSxzsSDX29XxQr;
1.61
date 2006.08.25.19.20.09; author rse; state Exp;
branches;
next 1.60;
commitid Tvsj1UyQ8rQ89gKr;
1.60
date 2006.01.01.13.23.28; author rse; state Exp;
branches;
next 1.59;
commitid otZG8yKMCw1JFTfr;
1.59
date 2005.03.24.11.20.34; author rse; state Exp;
branches;
next 1.58;
1.58
date 2005.01.01.10.55.27; author rse; state Exp;
branches;
next 1.57;
1.57
date 2004.07.30.14.03.05; author ms; state Exp;
branches;
next 1.56;
1.56
date 2004.05.03.18.44.41; author rse; state Exp;
branches;
next 1.55;
1.55
date 2004.04.29.14.42.39; author ms; state Exp;
branches;
next 1.54;
1.54
date 2004.04.27.17.58.18; author rse; state Exp;
branches;
next 1.53;
1.53
date 2004.02.17.14.01.59; author rse; state Exp;
branches;
next 1.52;
1.52
date 2004.02.03.20.07.03; author rse; state Exp;
branches;
next 1.51;
1.51
date 2004.02.02.11.54.07; author cs; state Exp;
branches;
next 1.50;
1.50
date 2004.01.23.13.14.57; author rse; state Exp;
branches;
next 1.49;
1.49
date 2003.12.19.13.22.55; author rse; state Exp;
branches;
next 1.48;
1.48
date 2003.12.17.09.52.07; author rse; state Exp;
branches;
next 1.47;
1.47
date 2003.11.27.14.10.38; author ms; state Exp;
branches;
next 1.46;
1.46
date 2003.11.17.21.51.21; author rse; state Exp;
branches;
next 1.45;
1.45
date 2003.11.14.12.54.54; author ms; state Exp;
branches;
next 1.44;
1.44
date 2003.09.18.16.45.51; author rse; state Exp;
branches;
next 1.43;
1.43
date 2003.07.29.10.24.29; author cs; state Exp;
branches;
next 1.42;
1.42
date 2003.07.23.13.32.26; author rse; state Exp;
branches;
next 1.41;
1.41
date 2003.07.22.08.11.17; author rse; state Exp;
branches;
next 1.40;
1.40
date 2003.07.19.17.06.39; author rse; state Exp;
branches;
next 1.39;
1.39
date 2003.07.17.15.33.28; author thl; state Exp;
branches;
next 1.38;
1.38
date 2003.07.10.07.51.17; author rse; state Exp;
branches;
next 1.37;
1.37
date 2003.07.08.14.42.58; author rse; state Exp;
branches;
next 1.36;
1.36
date 2003.07.05.07.29.08; author rse; state Exp;
branches;
next 1.35;
1.35
date 2003.03.28.12.45.09; author cs; state Exp;
branches;
next 1.34;
1.34
date 2003.02.26.14.52.42; author cs; state Exp;
branches;
next 1.33;
1.33
date 2003.02.24.09.35.37; author cs; state Exp;
branches;
next 1.32;
1.32
date 2003.02.14.19.56.23; author rse; state Exp;
branches;
next 1.31;
1.31
date 2003.01.14.10.14.07; author rse; state Exp;
branches;
next 1.30;
1.30
date 2003.01.08.15.57.27; author rse; state Exp;
branches;
next 1.29;
1.29
date 2003.01.03.10.55.24; author rse; state Exp;
branches;
next 1.28;
1.28
date 2003.01.01.11.00.38; author rse; state Exp;
branches;
next 1.27;
1.27
date 2002.12.30.22.07.22; author rse; state Exp;
branches;
next 1.26;
1.26
date 2002.12.30.21.07.23; author rse; state Exp;
branches;
next 1.25;
1.25
date 2002.12.22.09.35.02; author rse; state Exp;
branches;
next 1.24;
1.24
date 2002.12.20.19.33.47; author rse; state Exp;
branches;
next 1.23;
1.23
date 2002.11.25.13.51.43; author rse; state Exp;
branches;
next 1.22;
1.22
date 2002.11.22.16.03.50; author rse; state Exp;
branches;
next 1.21;
1.21
date 2002.11.22.14.38.11; author ps; state Exp;
branches;
next 1.20;
1.20
date 2002.11.22.09.59.09; author rse; state Exp;
branches;
next 1.19;
1.19
date 2002.09.23.07.11.09; author rse; state Exp;
branches;
next 1.18;
1.18
date 2002.08.13.12.50.16; author rse; state Exp;
branches;
next 1.17;
1.17
date 2002.08.09.09.32.24; author cs; state Exp;
branches;
next 1.16;
1.16
date 2002.07.14.12.53.02; author rse; state Exp;
branches;
next 1.15;
1.15
date 2002.05.31.09.37.26; author rse; state Exp;
branches;
next 1.14;
1.14
date 2002.05.31.07.46.52; author rse; state Exp;
branches;
next 1.13;
1.13
date 2002.05.29.20.02.42; author rse; state Exp;
branches;
next 1.12;
1.12
date 2002.05.11.07.05.40; author rse; state Exp;
branches;
next 1.11;
1.11
date 2002.04.18.13.09.57; author rse; state Exp;
branches;
next 1.10;
1.10
date 2002.04.16.19.05.47; author rse; state Exp;
branches;
next 1.9;
1.9
date 2002.02.12.08.02.54; author rse; state Exp;
branches;
next 1.8;
1.8
date 2002.02.11.10.42.40; author rse; state Exp;
branches;
next 1.7;
1.7
date 2002.02.07.14.21.14; author rse; state Exp;
branches;
next 1.6;
1.6
date 2002.01.24.09.01.35; author rse; state Exp;
branches;
next 1.5;
1.5
date 2002.01.21.15.23.24; author rse; state Exp;
branches;
next 1.4;
1.4
date 2002.01.21.15.21.52; author rse; state Exp;
branches;
next 1.3;
1.3
date 2002.01.17.08.42.08; author rse; state Exp;
branches;
next 1.2;
1.2
date 2002.01.14.13.34.36; author rse; state Exp;
branches;
next 1.1;
1.1
date 2002.01.14.13.34.15; author rse; state Exp;
branches;
next ;
1.62.2.1
date 2006.10.13.17.35.04; author rse; state dead;
branches;
next 1.62.2.2;
commitid iZxwRSmmWscPXUQr;
1.62.2.2
date 2006.10.16.14.57.27; author rse; state Exp;
branches;
next ;
commitid iZxwRSmmWscPXUQr;
desc
@@
1.64
log
@remove obsolete and unmaintained package tsmc
@
text
@##
## tsmc.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2007 OpenPKG Foundation e.V.
## Copyright (c) 2000-2007 Ralf S. Engelschall
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package information
Name: tsmc
Summary: Tivoli Storage Manager (TSM) Client
URL: http://www.tivoli.com/support/storage_mgr/clients.html
Vendor: Tivoli
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: System
License: Commercial
Version: 5.1.6.2
Release: 20061013
# list of sources
Source0: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Linux/Linux86/v516/TIVsm-BA.i386.rpm
Source1: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Solaris/v516/IP22658_FIX9.tar.Z
Source2: dsmexec
Source3: dsm.sys
Source4: dsm.opt
Source5: rc.tsmc
%NoSource 0
%NoSource 1
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20060823
PreReq: OpenPKG, openpkg >= 20060823
AutoReq: no
AutoReqProv: no
%description
This is a stripped down version of the client part of the Tivoli
Storage Manager (TSM v5) software. It can be used to backup Solaris,
Linux and FreeBSD machines to a TSM server.
%track
prog tsmc:linux = {
comment = "rse: 22654 was 5.1.6.2"
version = 22654
url = ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Linux/Linux86/
regex = (v5\d+)
url = ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Linux/Linux86/__NEWVER__/
regex = IP([\d+_]+(_FIX\d+)?)\.README
}
prog tsmc:solaris = {
comment = "rse: 22658 was 5.1.6.2"
version = 22658_FIX9
url = ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Solaris
regex = (v5\d+)
url = ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Solaris/__NEWVER__/
regex = IP([\d+_]+(_FIX\d+)?)\.README
}
%prep
%setup -q -T -c
%build
# unpack the corresponding binary only
case "%{l_platform -t}" in
*-freebsd* | *-linux* )
%{l_rpm2cpio} %{SOURCE0} | cpio -idmu
mv opt/tivoli/tsm/client root
;;
*-sunos* )
%{l_gzip} -d -c %{SOURCE1} | %{l_tar} xf -
pkgtrans `pwd`/TIVsmCba.pkg `pwd` TIVsmCba
mv TIVsmCba/reloc root
;;
esac
%install
rm -rf $RPM_BUILD_ROOT
# create filesystem hiearchy
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin \
$RPM_BUILD_ROOT%{l_prefix}/etc/tsmc \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/en_US \
$RPM_BUILD_ROOT%{l_prefix}/var/tsmc
# install execution wrapper
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE dsmexec} $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/
# install binaries
for f in dsmadmc dsmagent dsmc dsmcad dsmtca ; do
file="root/ba/bin/$f"
if [ -f "root/admin/bin/$f" ]; then
file="root/admin/bin/$f"
fi
%{l_shtool} install -c -m 755 \
$file $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/
case "%{l_platform -t}" in
*-freebsd* ) brandelf -t Linux $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/$f ;;
esac
ln $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/dsmexec \
$RPM_BUILD_ROOT%{l_prefix}/bin/$f
done
# install required NLS stuff
%{l_shtool} install -c -m 644 \
root/ba/bin/en_US/* \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/en_US
rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/en_US/wchelp.htl >/dev/null 2>&1 || true
# install default configuration
case "%{l_platform -t}" in
*-freebsd* ) l_resutil="1" ;;
* ) l_resutil="2" ;;
esac
%{l_shtool} install -c -m 755 \
-e "s;@@resutil@@;${l_resutil};g" %{l_value -s -a} \
%{SOURCE dsm.opt} %{SOURCE dsm.sys} \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/
mv $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/dsm.sys \
$RPM_BUILD_ROOT%{l_prefix}/etc/tsmc/dsm.sys
ln -s ../../etc/tsmc/dsm.sys \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/
mv $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/dsm.opt \
$RPM_BUILD_ROOT%{l_prefix}/etc/tsmc/dsm.opt
ln -s ../../etc/tsmc/dsm.opt \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/
# install run-command script
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.tsmc} \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/tsmc/*' \
'%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/libexec/tsmc/dsmtca'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
# after initial install, check requirements and make recommendations
if [ $1 -eq 1 ]; then
case "%{l_platform -t}" in
*-freebsd*)
if [ ! -f /compat/linux/bin/sh ]; then
( echo "The Linux ABI base system is not installed under /compat/linux/."
echo "Please install the FreeBSD port/package linux_base-6.1."
) | %{l_rpmtool} msg -b
fi
if [ ! -f /compat/linux/etc/mtab ]; then
( echo "TSM insists on an /etc/mtab in the Linux ABI base system. Please"
echo "create /compat/linux/etc/mtab with at least these lines:"
awk /dev/null`
[ ".$tsmc_active" = .yes ] && %{l_rc} tsmc restart
fi
exit 0
%preun
# before erase, stop service and remove log files
if [ $1 -eq 0 ]; then
%{l_rc} tsmc stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/tsmc/*.log* >/dev/null 2>&1 || true
fi
exit 0
@
1.63
log
@Welcome Year 2007!
@
text
@@
1.62
log
@new world order for "Packager" and "Distribution" headers
@
text
@d3 2
a4 2
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
@
1.62.2.1
log
@file tsmc.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:57:27 +0000
@
text
@d1 231
@
1.62.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 231
##
## tsmc.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package information
Name: tsmc
Summary: Tivoli Storage Manager (TSM) Client
URL: http://www.tivoli.com/support/storage_mgr/clients.html
Vendor: Tivoli
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: System
License: Commercial
Version: 5.1.6.2
Release: 2.20061018
# list of sources
Source0: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Linux/Linux86/v516/TIVsm-BA.i386.rpm
Source1: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Solaris/v516/IP22658_FIX9.tar.Z
Source2: dsmexec
Source3: dsm.sys
Source4: dsm.opt
Source5: rc.tsmc
%NoSource 0
%NoSource 1
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 2.20061018
PreReq: OpenPKG, openpkg >= 2.20061018
AutoReq: no
AutoReqProv: no
%description
This is a stripped down version of the client part of the Tivoli
Storage Manager (TSM v5) software. It can be used to backup Solaris,
Linux and FreeBSD machines to a TSM server.
%track
prog tsmc:linux = {
comment = "rse: 22654 was 5.1.6.2"
version = 22654
url = ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Linux/Linux86/
regex = (v5\d+)
url = ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Linux/Linux86/__NEWVER__/
regex = IP([\d+_]+(_FIX\d+)?)\.README
}
prog tsmc:solaris = {
comment = "rse: 22658 was 5.1.6.2"
version = 22658_FIX9
url = ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Solaris
regex = (v5\d+)
url = ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Solaris/__NEWVER__/
regex = IP([\d+_]+(_FIX\d+)?)\.README
}
%prep
%setup -q -T -c
%build
# unpack the corresponding binary only
case "%{l_platform -t}" in
*-freebsd* | *-linux* )
%{l_rpm2cpio} %{SOURCE0} | cpio -idmu
mv opt/tivoli/tsm/client root
;;
*-sunos* )
%{l_gzip} -d -c %{SOURCE1} | %{l_tar} xf -
pkgtrans `pwd`/TIVsmCba.pkg `pwd` TIVsmCba
mv TIVsmCba/reloc root
;;
esac
%install
rm -rf $RPM_BUILD_ROOT
# create filesystem hiearchy
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin \
$RPM_BUILD_ROOT%{l_prefix}/etc/tsmc \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/en_US \
$RPM_BUILD_ROOT%{l_prefix}/var/tsmc
# install execution wrapper
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE dsmexec} $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/
# install binaries
for f in dsmadmc dsmagent dsmc dsmcad dsmtca ; do
file="root/ba/bin/$f"
if [ -f "root/admin/bin/$f" ]; then
file="root/admin/bin/$f"
fi
%{l_shtool} install -c -m 755 \
$file $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/
case "%{l_platform -t}" in
*-freebsd* ) brandelf -t Linux $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/$f ;;
esac
ln $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/dsmexec \
$RPM_BUILD_ROOT%{l_prefix}/bin/$f
done
# install required NLS stuff
%{l_shtool} install -c -m 644 \
root/ba/bin/en_US/* \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/en_US
rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/en_US/wchelp.htl >/dev/null 2>&1 || true
# install default configuration
case "%{l_platform -t}" in
*-freebsd* ) l_resutil="1" ;;
* ) l_resutil="2" ;;
esac
%{l_shtool} install -c -m 755 \
-e "s;@@resutil@@;${l_resutil};g" %{l_value -s -a} \
%{SOURCE dsm.opt} %{SOURCE dsm.sys} \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/
mv $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/dsm.sys \
$RPM_BUILD_ROOT%{l_prefix}/etc/tsmc/dsm.sys
ln -s ../../etc/tsmc/dsm.sys \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/
mv $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/dsm.opt \
$RPM_BUILD_ROOT%{l_prefix}/etc/tsmc/dsm.opt
ln -s ../../etc/tsmc/dsm.opt \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/
# install run-command script
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.tsmc} \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/tsmc/*' \
'%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/libexec/tsmc/dsmtca'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
# after initial install, check requirements and make recommendations
if [ $1 -eq 1 ]; then
case "%{l_platform -t}" in
*-freebsd*)
if [ ! -f /compat/linux/bin/sh ]; then
( echo "The Linux ABI base system is not installed under /compat/linux/."
echo "Please install the FreeBSD port/package linux_base-6.1."
) | %{l_rpmtool} msg -b
fi
if [ ! -f /compat/linux/etc/mtab ]; then
( echo "TSM insists on an /etc/mtab in the Linux ABI base system. Please"
echo "create /compat/linux/etc/mtab with at least these lines:"
awk /dev/null`
[ ".$tsmc_active" = .yes ] && %{l_rc} tsmc restart
fi
exit 0
%preun
# before erase, stop service and remove log files
if [ $1 -eq 0 ]; then
%{l_rc} tsmc stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/tsmc/*.log* >/dev/null 2>&1 || true
fi
exit 0
@
1.61
log
@replace '@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc' in shebang with '@@l_prefix@@/bin/openpkg rc' to allow people who run the rc.xxx scripts directly (as executables) to leverage from the Set-UID functionality
@
text
@d30 2
a31 2
Packager: OpenPKG
Distribution: OpenPKG
d36 1
a36 1
Release: 20060825
@
1.60
log
@adjust copyrights for new year 2006
@
text
@d36 1
a36 1
Release: 20040730
d51 2
a52 2
BuildPreReq: OpenPKG, openpkg >= 20040217
PreReq: OpenPKG, openpkg >= 20040217
@
1.59
log
@Adjust the copyright declaration in this (RSE's) copy of the OpenPKG
source code now that the fork point for C&W was established (CVS tag
OPENPKG_CW_FP), the shared copyright agreement between RSE and C&W is
no longer active (as C&W no longer officially sponsors OpenPKG) and the
new shared copyright from RSE can be taken over by the newly established
juristic entity OpenPKG Foundation e.V. (instead of the non-juristic
entity OpenPKG Project).
@
text
@d3 2
a4 2
## Copyright (c) 2000-2005 OpenPKG Foundation e.V.
## Copyright (c) 2000-2005 Ralf S. Engelschall
@
1.58
log
@Happy New Year 2005
@
text
@d2 3
a4 4
## tsmc.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2005 The OpenPKG Project
## Copyright (c) 2000-2005 Ralf S. Engelschall
## Copyright (c) 2000-2005 Cable & Wireless
d30 1
a30 1
Packager: The OpenPKG Project
@
1.57
log
@apply fixsimilar to http://cvs.openpkg.org/chngview?cn=17929, restarting daemons unconditionally when any logfile rotation happens
@
text
@d3 3
a5 3
## Copyright (c) 2000-2004 The OpenPKG Project
## Copyright (c) 2000-2004 Ralf S. Engelschall
## Copyright (c) 2000-2004 Cable & Wireless
@
1.56
log
@the compressalways option doesn't seem to be available in this version of tsmc
@
text
@d37 1
a37 1
Release: 20040503
@
1.55
log
@add optional compression config values
@
text
@d37 1
a37 1
Release: 20040429
@
1.54
log
@$! cannot be expanded within quoted under Bash
@
text
@d37 1
a37 1
Release: 20040427
@
1.53
log
@switch to new world order
@
text
@d37 1
a37 1
Release: 20040217
@
1.52
log
@Mass-Commit:
- split "Distribution" header into "Distribution" (old) and "Class"
(new) headers by moving the attached class information.
- embed the vendor version tracking configuration through the
new "%track" section.
- bump up the OpenPKG bootstrap dependency, because the "Class" header
and "%track" section are only supported by our latest bootstrap version.
@
text
@d37 1
a37 1
Release: 20040203
d52 2
a53 2
BuildPreReq: OpenPKG, openpkg >= 20040130
PreReq: OpenPKG, openpkg >= 20040130
d87 1
a87 1
%{l_prefix}/bin/rpm2cpio %{SOURCE0} | cpio -idmu
@
1.51
log
@post install note for RHEL 3
@
text
@d32 2
a33 1
Distribution: OpenPKG [EVAL]
d37 1
a37 1
Release: 20040202
d52 2
a53 2
BuildPreReq: OpenPKG, openpkg >= 20030909
PreReq: OpenPKG, openpkg >= 20030909
d61 18
@
1.50
log
@bump year in copyright messages to cover new year 2004. This is a CVS only commit -- no packages were rolled intentionally
@
text
@d36 1
a36 1
Release: 20031219
d190 1
@
1.49
log
@make sure it doesn't write to /etc/adsm
@
text
@d3 3
a5 3
## Copyright (c) 2000-2003 The OpenPKG Project
## Copyright (c) 2000-2003 Ralf S. Engelschall
## Copyright (c) 2000-2003 Cable & Wireless
@
1.48
log
@modifying package: tsmc-5.1.6.2 20031127 -> 20031217
@
text
@d36 1
a36 1
Release: 20031217
@
1.47
log
@correct removal of pid files
@
text
@d36 1
a36 1
Release: 20031127
d40 1
a40 1
Source1: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Solaris/v516/IP22658.tar.Z
@
1.46
log
@remove obsolete %integrity macro
@
text
@d36 1
a36 1
Release: 20031117
@
1.45
log
@Implement PR #202
@
text
@d36 1
a36 1
Release: 20031114
a61 1
%integrity
@
1.44
log
@convert to new %{l_platform} world order
@
text
@d36 1
a36 1
Release: 20030918
d151 1
d198 15
@
1.43
log
@fixed group
@
text
@d36 1
a36 1
Release: 20030729
d51 2
a52 2
BuildPreReq: OpenPKG, openpkg >= 20030718
PreReq: OpenPKG, openpkg >= 20030718
d67 1
a67 1
case "%{l_target}" in
d72 1
a72 1
*-solaris* )
d103 1
a103 1
case "%{l_target}" in
d117 1
a117 1
case "%{l_target}" in
d152 1
a152 1
case "%{l_target}" in
@
1.42
log
@achieve robust subshell handling by consistently using '(...) || exit 0' constructs to make sure the scripts fail if a subshell fails
@
text
@d33 1
a33 1
Group: Converter
d36 1
a36 1
Release: 20030723
@
1.41
log
@cleanup the priority: move 200 to 500 and because 500 is default just ommit it; fix DNS/NTP/etc. dependencies
@
text
@d36 1
a36 1
Release: 20030722
d184 1
a184 1
)
@
1.40
log
@replace opXXXX with rcXXXX (PR#207)
@
text
@d36 1
a36 1
Release: 20030719
@
1.39
log
@fix PR#204, use new %{l_value -s ...}
@
text
@d36 1
a36 1
Release: 20030717
d51 2
a52 2
BuildPreReq: OpenPKG, openpkg >= 20030717
PreReq: OpenPKG, openpkg >= 20030717
@
1.38
log
@use new openpkg_rc_def variable in run-command scripts for allowing the admin to change the global default for xxx_enable
@
text
@d36 1
a36 1
Release: 20030710
d51 2
a52 2
BuildPreReq: OpenPKG, openpkg >= 20030710
PreReq: OpenPKG, openpkg >= 20030710
d92 1
a92 2
%{l_shtool} install -c -m 755 \
-e 's;@@l_prefix@@;%{l_prefix};g' \
d122 1
a122 2
-e "s;@@resutil@@;${l_resutil};g" \
-e 's;@@l_prefix@@;%{l_prefix};g' \
d135 1
a135 5
%{l_shtool} install -c -m 755 \
-e 's;@@l_prefix@@;%{l_prefix};g' \
-e 's;@@l_susr@@;%{l_susr};g' \
-e 's;@@l_musr@@;%{l_musr};g' \
-e 's;@@l_mgrp@@;%{l_mgrp};g' \
@
1.37
log
@cleanup copyright part by using just the main company name of Cable & Wireless and adding the URL to the global website
@
text
@d36 1
a36 1
Release: 20030705
d51 2
a52 2
BuildPreReq: OpenPKG, openpkg >= 20030108
PreReq: OpenPKG, openpkg >= 20030108
@
1.36
log
@upgrade to TSM client 5.1.6.2
@
text
@a2 1
## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
d5 1
@
1.35
log
@rc script and spec file clean up
@
text
@d35 2
a36 2
Version: 5.1.5.14
Release: 20030328
d39 2
a40 2
Source0: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Linux/Linux86/v515/TIVsm-BA.i386.rpm
Source1: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Solaris/v515/IP22545_14.tar.Z
@
1.34
log
@setuid root binary itself, not its wrapper script
@
text
@d36 1
a36 1
Release: 20030226
d139 1
d149 1
a149 1
'%attr(4755,root,%{l_mgrp}) %{l_prefix}/libexec/tsmc/dsmtca'
@
1.33
log
@added note for RedHat 8.0
@
text
@d36 1
a36 1
Release: 20030224
d148 1
a148 1
'%attr(4755,root,%{l_mgrp}) %{l_prefix}/bin/dsmtca'
@
1.32
log
@upgrading package: tsmc 5.1.5.6 -> 5.1.5.14
@
text
@d36 1
a36 1
Release: 20030214
d194 1
@
1.31
log
@fix packaging
@
text
@d35 2
a36 2
Version: 5.1.5.6
Release: 20030114
d40 1
a40 1
Source1: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Solaris/v515/IP22545_6.tar.Z
@
1.30
log
@switch to no-source level
@
text
@d36 1
a36 1
Release: 20030108
d73 1
a73 2
%{l_gzip} -d -c %{SOURCE IP22545_2.tar.Z} | %{l_tar} xf -
%{l_prefix}/bin/gzip -d -c %{SOURCE1} | %{l_prefix}/bin/tar xf -
@
1.29
log
@remove '%options' hack, it will be replaced soon with a more elegant solution based on RPM 'Provides' headers
@
text
@d32 1
a32 1
Distribution: OpenPKG [PRIV]
d36 1
a36 1
Release: 20021222
d45 2
d51 2
a52 2
BuildPreReq: OpenPKG, openpkg >= 20021120
PreReq: OpenPKG, openpkg >= 20021120
d62 2
a63 1
%setup -q -T -c -n tsmc-%{version}
@
1.28
log
@cosmetics: strip trailing whitespaces
@
text
@a58 2
%options
@
1.27
log
@bump of Copyright messages for forthcoming years 2003
@
text
@d120 2
a121 2
* ) l_resutil="2" ;;
esac
@
1.26
log
@switch to %option(s), but intentionally WITHOUT dep increase and WITHOUT FTP server updates
@
text
@d3 3
a5 3
## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2002 The OpenPKG Project
## Copyright (c) 2000-2002 Ralf S. Engelschall
@
1.25
log
@upgrading package: tsmc 5.1.5.2 -> 5.1.5.6
@
text
@d59 1
a59 1
Options: none
@
1.24
log
@consistently use 'Options: none' to indicate no options to 'openpkg build'
@
text
@d35 2
a36 2
Version: 5.1.5.2
Release: 20021125
d40 1
a40 1
Source1: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/patches/client/v5r1/Solaris/v515/IP22545_2.tar.Z
d68 1
a68 1
%{l_prefix}/bin/rpm2cpio %{SOURCE TIVsm-BA.i386.rpm} | cpio -idmu
d73 1
@
1.23
log
@the private library directory is already gone
@
text
@d59 2
@
1.22
log
@fix packaging again
@
text
@d36 1
a36 1
Release: 20021122
a84 1
$RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/lib \
@
1.21
log
@upgrading package: tsmc 4.2.2.1 -> 5.1.5.2
@
text
@d49 2
a50 2
BuildPreReq: OpenPKG, openpkg >= 20021009, tar, gzip
PreReq: OpenPKG, openpkg >= 20021009
d66 1
a66 2
cp %{SOURCE TIVsm-BA.i386.rpm} ./
%{l_prefix}/bin/rpm2cpio TIVsm-BA.i386.rpm | cpio -idmu
d70 1
a70 2
%{l_prefix}/bin/gzip -d -c %{SOURCE IP22545_2.tar.Z} |\
%{l_prefix}/bin/tar xf -
a75 1
d115 1
a115 2
# decide ResourceUtilisation for OS
d117 3
a119 4
*-freebsd* ) l_resutil="1";;
* ) l_resutil="2";;
esac
# install default configuration
d121 1
a121 1
-e 's;@@resutil@@;'$l_resutil';g' \
d151 1
a151 1
# rm -rf $RPM_BUILD_ROOT
@
1.20
log
@reduce dependencies
@
text
@d35 1
a35 1
Version: 4.2.2.1
d39 2
a40 2
Source0: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/maintenance/client/v4r2/Linux86/v4221/IP22508_1.tar
Source1: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/maintenance/client/v4r2/Solaris/v4221/IP22502_1.tar.Z
d49 2
a50 2
BuildPreReq: OpenPKG, openpkg >= 20021120
PreReq: OpenPKG, openpkg >= 20021120
d56 1
a56 1
Storage Manager (TSM v4) software. It can be used to backup Solaris,
d66 1
a66 1
%{l_tar} xf %{SOURCE IP22508_1.tar}
d71 2
a72 1
%{l_gzip} -d -c %{SOURCE IP22502_1.tar.Z} | %{l_tar} xf -
d78 1
d98 1
a98 1
for f in dsmagent dsmc dsmcad dsmstat dsmtca dsmadmc; do
a115 1
rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/en_US/DDsmResources.java >/dev/null 2>&1 || true
a116 1
rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/en_US/*.tif >/dev/null 2>&1 || true
d118 6
d126 1
d156 1
a156 1
rm -rf $RPM_BUILD_ROOT
@
1.19
log
@fix library problems
@
text
@d36 1
a36 1
Release: 20020923
d49 2
a50 2
BuildPreReq: OpenPKG, openpkg >= 20020416, tar, gzip
PreReq: OpenPKG, openpkg >= 20020416
d66 1
a66 1
%{l_prefix}/bin/tar xf %{SOURCE IP22508_1.tar}
d71 1
a71 2
%{l_prefix}/bin/gzip -d -c %{SOURCE IP22502_1.tar.Z} |\
%{l_prefix}/bin/tar xf -
@
1.18
log
@Woohhooo: apply the new package classification system.
(CORE, BASE, PLUS, PRIV, EVAL, JUNK). A description of
them follows on the website soon.
@
text
@d36 1
a36 1
Release: 20020808
a91 4
l_binsh="/bin/sh"
case "%{l_target}" in
*-freebsd* ) l_binsh="/compat/linux/bin/sh" ;;
esac
a92 1
-e "s;@@l_binsh@@;${l_binsh};g" \
@
1.17
log
@added install note for Debian GNU/Linux 3.0
@
text
@d32 1
a32 1
Distribution: OpenPKG [EXP]
@
1.16
log
@fix dependencies because of rpmtool msg
@
text
@d36 1
a36 1
Release: 20020531
d197 1
@
1.15
log
@fix packaging: startup env and symbolic links
@
text
@d49 2
a50 2
BuildPreReq: OpenPKG, openpkg >= 20020412, tar, gzip
PreReq: OpenPKG, openpkg >= 20020412
@
1.14
log
@upgrade to TSM client 4.2.2.1
@
text
@d129 1
a129 1
ln $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/dsm.sys \
d131 3
a133 1
ln $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/dsm.opt \
d135 2
@
1.13
log
@strip trailing whitespaces
@
text
@d35 2
a36 2
Version: 4.2.2
Release: 20020510
d39 2
a40 2
Source0: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/maintenance/client/v4r2/Linux86/v422/IP22508.tar
Source1: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/maintenance/client/v4r2/Solaris/v422/IP22502.tar.Z
d66 1
a66 1
%{l_prefix}/bin/tar xf %{SOURCE IP22508.tar}
d71 1
a71 1
%{l_prefix}/bin/gzip -d -c %{SOURCE IP22502.tar.Z} |\
@
1.12
log
@upgrading upstream version from 4.2.1 to 4.2.2
@
text
@d23 2
a24 2
## SUCH DAMAGE.
##
d60 1
a60 1
%setup -q -T -c -n tsmc-%{version}
d156 1
a156 1
*-freebsd*)
d163 1
a163 1
( echo "TSM insists on an /etc/mtab in the Linux ABI base system. Please"
d189 1
a189 1
*-linux*)
@
1.11
log
@add dsmadmc program, too.
@
text
@d35 2
a36 2
Version: 4.2.1
Release: 20020418
d39 2
a40 2
Source0: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/maintenance/client/v4r2/Linux86/v421/IP22369.tar
Source1: ftp://service.boulder.ibm.com/storage/tivoli-storage-management/maintenance/client/v4r2/Solaris/v421/IP22372.tar.Z
d66 1
a66 1
%{l_prefix}/bin/tar xf %{SOURCE IP22369.tar}
d71 2
a72 1
%{l_prefix}/bin/gzip -d -c %{SOURCE IP22372.tar.Z} | %{l_prefix}/bin/tar xf -
d103 4
d108 1
a108 2
root/ba/bin/$f \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/
@
1.10
log
@commit recent changes
@
text
@d36 1
a36 1
Release: 20020412
d101 1
a101 1
for f in dsmagent dsmc dsmcad dsmstat dsmtca; do
@
1.9
log
@fix library usage under Linux
@
text
@d36 1
a36 1
Release: 20020212
d41 4
a44 5
Source2: redhat-7.1-libs.tar
Source3: dsmexec
Source4: dsm.sys
Source5: dsm.opt
Source6: rc.tsmc
d49 2
a50 2
BuildPreReq: OpenPKG, openpkg >= 20020206, tar, gzip
PreReq: OpenPKG, openpkg >= 20020206
d56 1
a56 1
Storage Manager (TSM) software. It can be used to backup Solaris,
a67 1
( mkdir lib; cd lib; %{l_prefix}/bin/tar xf %{SOURCE redhat-7.1-libs.tar} )
a119 8
# install required shared libraries
case "%{l_target}" in
*-freebsd* )
%{l_shtool} install -c -m 755 \
lib/* $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/lib/
;;
esac
d152 33
d186 5
a190 4
echo "Please make sure you have the vendor libstdc++ 2.9 package installed:"
echo "- RedHat Linux 7.x: compat-libstdc++-6.2-2.9.0.16"
echo "- Debian GNU/Linux 2.2: libstdc++2.9-glibc2.1"
echo "The resulting library file has to be named libstdc++-libc6.1-1.so.2"
@
1.8
log
@bugfix wrapper and adjust config
@
text
@d36 1
a36 1
Release: 20020210
d124 1
a124 1
*-freebsd* | *-linux* )
d158 12
@
1.7
log
@Switch to l_{s,m,r,n}{usr,grp}.
@
text
@d36 1
a36 1
Release: 20020206
@
1.6
log
@reduce %setup0 to just %setup
@
text
@d36 1
a36 1
Release: 20020121
d50 2
a51 2
BuildPreReq: OpenPKG, openpkg >= 20011227, tar, gzip
PreReq: OpenPKG, openpkg >= 20011227
d143 2
a144 2
-e 's;@@l_fsusr@@;%{l_fsusr};g' \
-e 's;@@l_fsgrp@@;%{l_fsgrp};g' \
d152 1
a152 1
'%attr(4755,root,%{l_fsgrp}) %{l_prefix}/bin/dsmtca'
@
1.5
log
@fix source list
@
text
@d61 1
a61 1
%setup0 -q -T -c -n tsmc-%{version}
@
1.4
log
@fix source list
@
text
@d45 1
@
1.3
log
@add Solaris support
@
text
@d36 1
a36 1
Release: 20020117
d42 3
@
1.2
log
@it is experimental, of course
@
text
@d36 1
a36 1
Release: 20020114
d66 1
d69 3
a71 2
%{l_prefix}/bin/gzip -d %{SOURCE IP22372.tar.Z} | %{l_prefix}/bin/tar xf -
# pkg_trans? FIXME
d101 1
a101 1
opt/tivoli/tsm/client/ba/bin/$f \
d112 1
a112 1
opt/tivoli/tsm/client/ba/bin/en_US/* \
d114 3
a116 2
rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/en_US/DDsmResources.java
rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/en_US/wchelp.htl
@
1.1
log
@Name package: tsmc 4.2.1
This is a first cut for a Tivoli Storage Manager (TSM) client package. It
currently builds correctly on Linux and FreeBSD, but still does not run on
FreeBSD. Build support for Solaris is added later.
@
text
@d32 1
a32 1
Distribution: OpenPKG [REL]
@