-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtsmsyslogger.spec
59 lines (48 loc) · 1.35 KB
/
tsmsyslogger.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
# File $Id: tsmsyslogger.spec,v 1.4 2010/05/12 14:50:51 airibarr Exp $
#
# Purpose TSM interface to syslog
#
# History
# $Log: tsmsyslogger.spec,v $
# Revision 1.4 2010/05/12 14:50:51 airibarr
# Fixed permissions for TSM6
#
# Revision 1.3 2009/11/25 11:08:21 airibarr
# Remove dependency on TSM RPM
#
# Revision 1.2 2009/11/23 16:07:56 airibarr
# Updated tsmsyslogger.h to version shipped with TSM6
#
# Revision 1.1 2009/08/04 14:32:47 airibarr
# Initial commit
#
#
Summary: TSM interface to syslog
Name: CERN-CC-tsmsyslogger
Version: 1.0
Release: 4%{?dist}
License: GPL
Group: System Environment/Base
Buildroot: %{_tmppath}/%{name}-%{version}
Source: %{name}-%{version}.tar.gz
Summary: TSM interface to syslog
%define debug_package %{nil}
%description
Provides TSM userexit function that acts as an interface to syslog
%prep
%setup -n %{name}-%{version}
%build
gcc -g -D_REENTRANT -D__linux -O0 -Wall -DHAVE_DAEMON -DHAVE_SYSLOG_NAMES -DHAVE_GETOPT_H -D_GNU_SOURCE -fPIC -I/opt/tivoli/tsm/server/bin -c -o tsmsyslogger.o tsmsyslogger.c
ld -o tsmsyslogger.so -shared -E tsmsyslogger.o
%install
rm -rf %buildroot/
mkdir -p %buildroot/opt/tivoli/tsm/server/bin/
install -m 555 tsmsyslogger.so %buildroot/opt/tivoli/tsm/server/bin/tsmsyslogger.so
%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
/opt/tivoli/tsm/server/bin/tsmsyslogger.so
%post
%preun