LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File sc_inventar2ldap.spec of Package sc_inventar2ldap (Project home:steffens:SmartClient:client)

# spec file for package sc_inventar2ldap
# Copyright  (c)  2002  SuSE AG  Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.

# $Id: sc_inventar2ldap.spec 5670 2019-05-14 08:48:30Z joergs $

Name:           sc_inventar2ldap
License:        GPL
Group:          Applications/SmartClient
Summary:        writes hardware information into ldap
Version: 1.2.5670
Release:        0
Autoreqprov:    on
Requires:       sc_base perl-SmartClient perl-ldap sc_hardware
Source: sc_inventar2ldap_1.2.5670.orig.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  sc_base pam

writes hardware and software information into ldap

       SmartClient Team

%setup -c %{name}-%{version}


# Perl script
mkdir -p $RPM_BUILD_ROOT/usr/sbin/
install -m 755 inventar2ldap.pl $RPM_BUILD_ROOT/usr/sbin/
# Perl helper scripts
mkdir -p $RPM_BUILD_ROOT/usr/bin/
install -m 755 calc_disc_size.pl $RPM_BUILD_ROOT/usr/bin/
# configuration file
mkdir -p $RPM_BUILD_ROOT/etc/smartclient/
install -m 644 inventar2ldap $RPM_BUILD_ROOT/etc/smartclient/
# rc-script and rcxxx link
mkdir -p $RPM_BUILD_ROOT/etc/init.d/
install -m 755 sc_inventar2ldap $RPM_BUILD_ROOT/etc/init.d/
ln -sf ../../etc/init.d/sc_inventar2ldap $RPM_BUILD_ROOT/usr/sbin/rcsc_inventar2ldap


%config(noreplace) /etc/init.d/sc_inventar2ldap
%config(noreplace) /etc/smartclient/inventar2ldap