File cryptsetup-mkinitrd.spec of Package cryptsetup-mkinitrd

#
# spec file for package cryptsetup-mkinitrd
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           cryptsetup-mkinitrd
Url:            http://gitorious.org/opensuse/boot_crypto
Version:        0_201307311719
Release:        0
Summary:        mkinitrd plugin scripts for encrypted root file system
License:        GPL-2.0+
Group:          System/Base
# git://gitorious.org/opensuse/boot_crypto.git
Source:         boot_crypto-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       cryptsetup:/lib/mkinitrd/scripts/boot-luks.sh
Requires:       cryptsetup
Supplements:    packageand(mkinitrd:cryptsetup)

%description
plugin scripts for mkinitrd that unlock an encrypted root in
initrd

%prep
%setup -n boot_crypto-%version -q

%build

%install
make install DESTDIR=$RPM_BUILD_ROOT
#
# no longer needed
rm -rf $RPM_BUILD_ROOT%_mandir/man5
rm -rf $RPM_BUILD_ROOT/lib/cryptsetup/checks/
rm -rf $RPM_BUILD_ROOT/etc/init.d
rm -f $RPM_BUILD_ROOT/etc/crypttab
rm -f $RPM_BUILD_ROOT/etc/cryptotab

%post
if [ -x /sbin/mkinitrd_setup ]; then
	mkinitrd_setup
fi

%postun
if [ -x /sbin/mkinitrd_setup ]; then
	mkinitrd_setup
fi

%files
%defattr(-,root,root)
%dir /lib/mkinitrd
%dir /lib/mkinitrd/scripts
/lib/mkinitrd/scripts/setup-luks.sh
/lib/mkinitrd/scripts/boot-luks.sh
/lib/mkinitrd/scripts/setup-luks2.sh
/lib/mkinitrd/scripts/setup-luks_final.sh
/usr/sbin/convert_cryptotab
/lib/cryptsetup

%changelog
openSUSE Build Service is sponsored by