1 Star 0 Fork 26

xuyongliang_01/secscanner_01

forked from openEuler/secscanner 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
secscanner.spec 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
pengyuan-yewu 提交于 2023-08-29 09:41 . add item loginLock icmpLimit
%define name secScanner
%define version 0.1
%define release 0
Summary: System secure check and enhancement tool for system of Linux
Name: %{name}
Version: %{version}
Release: %{release}
License: MulanPSL2
Group: Applications/System
URL: https://gitee.com/openeuler/secscanner
Distribution: openEuler 22.03
Vendor: China Mobile (Suzhou) Software Technology Co., Ltd.
Provides: secscanner
BuildArch: noarch
BuildRoot: %{_builddir}/%{name}-root
#install dependence
Requires: rpmdevtools
#Requires: chkrootkit
Source0:%{name}-%{version}.tar.gz
%description
Operating System Security Scanning Tool
%prep
%setup -q
#exit 0
%build
exit 0
%install
#install -p -m 755 %{SOURCE0} %{buildroot}
#install -p -m 755 %{_builddir}/%{name}-%{version} %{buildroot}/opt/
mkdir -p %{buildroot}/opt/secScanner/
cp -a %{_builddir}/%{name}-%{version}/* %{buildroot}/opt/secScanner/
#keep the bse file in /usr/bin
mkdir -p %{buildroot}/usr/bin
#create symbolic links
ln -snf /opt/secScanner/secscanner.py %{buildroot}/usr/bin/
#create man file
gzip -c %{buildroot}/opt/secScanner/secscanner.8 > %{buildroot}/opt/secScanner/secscanner.8.gz
mkdir -p %{buildroot}/usr/share/man/man8/
mv %{buildroot}/opt/secScanner/secscanner.8.gz %{buildroot}/usr/share/man/man8/
#create secscanner.conf in /etc/
mkdir -p %{buildroot}/etc/secScanner
mv %{buildroot}/opt/secScanner/secscanner.cfg %{buildroot}/etc/secScanner/secscanner.cfg
#record the file and dir properties
mkdir -p %{buildroot}/etc/secscanner.d/
#exit 0
%post
%clean
[ -d "$RPM_BUILD_ROOT" ] && rm -rf $RPM_BUILD_ROOT
exit 0
%files
%defattr(-,root,root)
/opt/secScanner/
/usr/bin/secscanner
/usr/share/man/man8/secscanner.8.gz
/etc/secScanner/secscanner.cfg
/etc/secscanner.d
%changelog
*Mon Aug 14 2023 pengyuan <[email protected]> 0.1-0
- Fix Security Reinforcement Item Execution Mode
- Adjust the Command Line
*Fri Jun 30 2023 pengyuan <[email protected]> 0.1-0
- secscanner release 0.1-0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuyongliang-01/secscanner_01.git
[email protected]:xuyongliang-01/secscanner_01.git
xuyongliang-01
secscanner_01
secscanner_01
master

搜索帮助