[12436] | 1 | %bcond_with systemd |
---|
| 2 | |
---|
| 3 | %global ver 2.6.0-20200229 |
---|
| 4 | |
---|
| 5 | Summary: utilities for TOMOYO Linux |
---|
| 6 | Summary(ja): TOMOYO Linux用のユーティリティ |
---|
| 7 | Name: tomoyo-tools |
---|
| 8 | Version: %(echo %{ver} | tr "-" ".") |
---|
| 9 | Release: 1%{?_dist_release}%{?with_systemd:.systemd} |
---|
| 10 | Vendor: Project Vine |
---|
| 11 | Distribution: Vine Linux |
---|
| 12 | |
---|
| 13 | License: GPL |
---|
| 14 | URL: https://tomoyo.osdn.jp/ |
---|
| 15 | Source0: https://jaist.dl.osdn.jp/tomoyo/70710/tomoyo-tools-%{ver}.tar.gz |
---|
| 16 | Source1: tomoyo-auditd.service |
---|
| 17 | |
---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 19 | BuildRequires: ncurses-devel |
---|
| 20 | |
---|
| 21 | %if %{with systemd} |
---|
| 22 | %{?systemd_requires} |
---|
| 23 | %endif |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | TOMOYO Linux is a lightweight and easy-to-use path-based Mandatory Access |
---|
| 27 | Control (MAC) implementation. |
---|
| 28 | |
---|
| 29 | This package provides the audit daemon and administrative utilities for use |
---|
| 30 | on a Linux kernel with TOMOYO support. |
---|
| 31 | |
---|
| 32 | %description -l ja |
---|
| 33 | TOMOYO Linuxは、軽量で簡単に利用できるパスベースの強制アクセス制御(MAC) |
---|
| 34 | 実装です。 |
---|
| 35 | |
---|
| 36 | このパッケージは、TOMOYOサポートを有効にしたカーネル上で利用される監査 |
---|
| 37 | デーモンと管理ユーティリティを提供します。 |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | %prep |
---|
| 41 | %setup -q -n tomoyo-tools |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | %build |
---|
| 45 | %{__make} %{?_smp_mflags} USRLIBDIR=%{_libdir} CFLAGS="%{optflags}" |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | %install |
---|
| 49 | %{__rm} -rf %{buildroot} |
---|
| 50 | %{__make} INSTALLDIR=%{buildroot} USRLIBDIR=%{_libdir} install |
---|
| 51 | |
---|
| 52 | install -d -p -m700 %{buildroot}%{_sysconfdir}/tomoyo |
---|
| 53 | %if %{with systemd} |
---|
| 54 | install -Dpm644 %{SOURCE1} %{buildroot}%{_unitdir}/tomoyo-auditd.service |
---|
| 55 | %endif |
---|
| 56 | |
---|
| 57 | rm -f %{buildroot}%{_libdir}/tomoyo/{README.tomoyo,COPYING.tomoyo} |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %clean |
---|
| 61 | %{__rm} -rf %{buildroot} |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %post -p /sbin/ldconfig |
---|
| 65 | %postun -p /sbin/ldconfig |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | %files |
---|
| 69 | %defattr(-,root,root) |
---|
| 70 | %license COPYING* |
---|
| 71 | %doc README* |
---|
| 72 | /sbin/* |
---|
| 73 | %{_sbindir}/* |
---|
| 74 | %{_libdir}/tomoyo/* |
---|
| 75 | %{_libdir}/libtomoyo* |
---|
| 76 | %{_mandir}/man?/* |
---|
| 77 | %{_sysconfdir}/tomoyo |
---|
| 78 | %if %{with systemd} |
---|
| 79 | %{_unitdir}/tomoyo-auditd.service |
---|
| 80 | %endif |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | %changelog |
---|
| 84 | * Wed Jul 22 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.6.0.20200229-1 |
---|
| 85 | - initial build for Vine Linux. |
---|