tomoyo-tools-vl.spec 2.2 KB

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