Projects
Eulaceura:Factory
secscanner
_service:obs_scm:secscanner.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:secscanner.spec of Package secscanner
%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: MulanPSL-2.0 Group: Applications/System URL: https://gitee.com/openeuler/secscanner Distribution: openEuler 22.03 Vendor: China Mobile (Suzhou) Software Technology Co., Ltd. Packager: pengyuan_yewu@cmss.chinamobile.com Provides: secscanner BuildArch: noarch BuildRoot: %{_builddir}/%{name}-root #install dependence BuildRequires: python3 BuildRequires: python3-pip #BuildRequires: python-beautifulsoup4 #BuildRequires: python-psutil #BuildRequires: python-requests Requires: rpmdevtools Requires: python3 Requires: python3-devel Requires: chkrootkit #Requires: python3-pip Requires: python3-beautifulsoup4 Requires: python3-psutil Requires: python3-requests Requires: python3-Flask-SQLAlchemy Source0:%{name}-%{version}.tar.gz %description Operating System Security Scanning Tool %prep %setup -q #exit 0 %build #pip3 install -r requirements.txt #pip3 install psutil sqlalchemy requests 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/secscanner #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 <pengyuan@cmss.chinamobile.com> 0.1-0 - Fix Security Reinforcement Item Execution Mode - Adjust the Command Line *Fri Jun 30 2023 pengyuan <pengyuan@cmss.chinamobile.com> 0.1-0 - secscanner release 0.1-0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2