1 Star 0 Fork 20

duyiwei/secpaver

forked from src-openEuler/secpaver 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
secpaver.spec 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
luhuaxin 提交于 2021-09-30 20:56 . set default log path
Name: secpaver
Summary: Security policy development tool
Version: 1.0.2
Release: 2
License: Mulan PSL v2
URL: https://gitee.com/openeuler/secpaver
Source: https://gitee.com/openeuler/secpaver/repository/archive/%{name}-%{version}.tar.gz
Patch0001: dont-do-daemon-reload-in-make-install.patch
Patch0002: set-default-log-path.patch
BuildRequires: golang make
Requires: %{name}-plugin = %{version}-%{release}
%define debug_package %{nil}
%description
Security policy development tool
%package selinux
Summary: SELinux plugin for secPaver
License: MuLan PSL v2
BuildRequires: libselinux-devel libsepol-devel libsemanage-devel
Requires: %{name} = %{version}-%{release}
Requires: libselinux libsepol libsemanage checkpolicy policycoreutils
Provides: %{name}-plugin = %{version}-%{release}
%description selinux
SELinux plugin for secPaver.
%prep
%autosetup -n %{name}-%{version} -p1
%build
%make_build everything
%install
%make_install DESTDIR="%{buildroot}"
%check
%files
%defattr(0600,root,root,0700)
%attr(0700,root,root) %{_bindir}/pav
%attr(0700,root,root) %{_bindir}/pavd
%dir %{_sysconfdir}/secpaver
%dir %{_sysconfdir}/secpaver/pavd
%dir %{_libdir}/secpaver
%dir %{_datadir}/secpaver
%dir %{_datadir}/secpaver/scripts
%dir %{_localstatedir}/local/secpaver
%dir %{_localstatedir}/local/secpaver/policies
%dir %{_localstatedir}/local/secpaver/projects
%config(noreplace) %{_sysconfdir}/secpaver/pavd/config.json
%{_unitdir}/pavd.service
%files selinux
%defattr(0600,root,root,0700)
%attr(0700,root,root) %{_libdir}/secpaver/selinux.so
%dir %{_localstatedir}/local/secpaver/policies/selinux
%dir %{_datadir}/secpaver/scripts/selinux
%{_datadir}/secpaver/scripts/selinux/config
%attr(0700,root,root) %{_datadir}/secpaver/scripts/selinux/*.sh
%post
%systemd_post pavd.service
%preun
%systemd_preun pavd.service
%postun
%systemd_postun_with_restart pavd.service
%changelog
* Thu Sep 30 2021 luhuaxin <1539327763@qq.com> - 1.0.2-2
- set default log path
* Thu Sep 30 2021 luhuaxin <1539327763@qq.com> - 1.0.2-1
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/duyiwei7w/secpaver.git
git@gitee.com:duyiwei7w/secpaver.git
duyiwei7w
secpaver
secpaver
master

搜索帮助