integ/filesystem/filesystem-scripts/centos/filesystem-scripts.spec
Scott Little 7763542515 Relocate filesystem-scripts to stx-integ/filesystem/filesystem-scripts
Move content from stx-utils into stx-integ or stx-update

Packages will be relocated to

stx-update:
    enable-dev-patch
    extras

stx-integ:
    config-files/
        io-scheduler

    filesystem/
        filesystem-scripts

    grub/
        grubby

    logging/
        logmgmt

    tools/
        collector
        monitor-tools

    tools/engtools/
        hostdata-collectors
        parsers

    utilities/
        build-info
        branding   (formerly wrs-branding)
        platform-util

Change-Id: I33cb6b2660f0276b4af1dd7ddd1a2652f53f8f30
Story: 2002801
Task: 22687
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-01 12:20:04 -04:00

57 lines
1.2 KiB
RPMSpec

Summary: File System Script Package
Name: filesystem-scripts
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
Source1: LICENSE
BuildRequires: systemd-devel
Requires: /bin/systemctl
%description
File System Script Package
%define local_bindir /usr/bin/
%define local_etc_initd /etc/init.d/
%define local_ocfdir /usr/lib/ocf/resource.d/platform/
%define debug_package %{nil}
%prep
%setup
%build
%install
install -d -m 755 %{buildroot}%{local_etc_initd}
install -p -D -m 755 uexportfs %{buildroot}%{local_etc_initd}/uexportfs
install -d -m 755 %{buildroot}%{local_ocfdir}
install -p -D -m 755 nfsserver-mgmt %{buildroot}%{local_ocfdir}/nfsserver-mgmt
install -d -m 755 %{buildroot}%{local_bindir}
install -p -D -m 755 nfs-mount %{buildroot}%{local_bindir}/nfs-mount
install -p -D -m 644 uexportfs.service %{buildroot}%{_unitdir}/uexportfs.service
%post
/bin/systemctl enable uexportfs.service
%clean
rm -rf $RPM_BUILD_ROOT
%files
%license LICENSE
%defattr(-,root,root,-)
%{local_bindir}/*
%{local_etc_initd}/*
%dir %{local_ocfdir}
%{local_ocfdir}/*
%{_unitdir}/uexportfs.service