tomoyo-tools-vl.spec 2.0 KB

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