Browse Source

tomoyo-tools-2.6.0.20200229-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@12436 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 3 years ago
parent
commit
0b17397b80
1 changed files with 85 additions and 0 deletions
  1. 85 0
      t/tomoyo-tools/tomoyo-tools-vl.spec

+ 85 - 0
t/tomoyo-tools/tomoyo-tools-vl.spec

@@ -0,0 +1,85 @@
+%bcond_with systemd
+
+%global ver     2.6.0-20200229
+
+Summary:        utilities for TOMOYO Linux
+Summary(ja):    TOMOYO Linux用のユーティリティ
+Name:           tomoyo-tools
+Version:        %(echo %{ver} | tr "-" ".")
+Release:        1%{?_dist_release}%{?with_systemd:.systemd}
+Vendor:         Project Vine
+Distribution:   Vine Linux
+
+License:        GPL
+URL:            https://tomoyo.osdn.jp/
+Source0:        https://jaist.dl.osdn.jp/tomoyo/70710/tomoyo-tools-%{ver}.tar.gz
+Source1:        tomoyo-auditd.service
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
+BuildRequires:  ncurses-devel
+
+%if %{with systemd}
+%{?systemd_requires}
+%endif
+
+%description
+ TOMOYO Linux is a lightweight and easy-to-use path-based Mandatory Access
+Control (MAC) implementation.
+
+ This package provides the audit daemon and administrative utilities for use
+on a Linux kernel with TOMOYO support.
+
+%description -l ja
+ TOMOYO Linuxは、軽量で簡単に利用できるパスベースの強制アクセス制御(MAC)
+実装です。
+
+ このパッケージは、TOMOYOサポートを有効にしたカーネル上で利用される監査
+デーモンと管理ユーティリティを提供します。
+
+
+%prep
+%setup -q -n tomoyo-tools
+
+
+%build
+%{__make} %{?_smp_mflags} USRLIBDIR=%{_libdir} CFLAGS="%{optflags}"
+
+
+%install
+%{__rm} -rf %{buildroot}
+%{__make} INSTALLDIR=%{buildroot} USRLIBDIR=%{_libdir} install
+
+install -d -p -m700 %{buildroot}%{_sysconfdir}/tomoyo
+%if %{with systemd}
+install -Dpm644 %{SOURCE1} %{buildroot}%{_unitdir}/tomoyo-auditd.service
+%endif
+
+rm -f %{buildroot}%{_libdir}/tomoyo/{README.tomoyo,COPYING.tomoyo}
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root)
+%license COPYING*
+%doc README*
+/sbin/*
+%{_sbindir}/*
+%{_libdir}/tomoyo/*
+%{_libdir}/libtomoyo*
+%{_mandir}/man?/*
+%{_sysconfdir}/tomoyo
+%if %{with systemd}
+%{_unitdir}/tomoyo-auditd.service
+%endif
+
+
+%changelog
+* Wed Jul 22 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.6.0.20200229-1
+- initial build for Vine Linux.