forked from pool/argus
Accepting request 687289 from home:jengelh:sct
- Reduce scriptlets' hard dependency on systemd. - Replace some UUOC by find -exec. - Make %install POSIX sh compatible. OBS-URL: https://build.opensuse.org/request/show/687289 OBS-URL: https://build.opensuse.org/package/show/security/argus?expand=0&rev=24
This commit is contained in:
parent
481cae8e1a
commit
ffda523b4a
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 21 10:43:52 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Reduce scriptlets' hard dependency on systemd.
|
||||||
|
- Replace some UUOC by find -exec.
|
||||||
|
- Make %install POSIX sh compatible.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 26 11:06:37 UTC 2017 - dimstar@opensuse.org
|
Thu Oct 26 11:06:37 UTC 2017 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
14
argus.spec
14
argus.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package argus
|
# spec file for package argus
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ Name: argus
|
|||||||
Version: 3.0.8.2
|
Version: 3.0.8.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Network Monitoring Tool
|
Summary: Network Monitoring Tool
|
||||||
License: GPL-2.0 and LGPL-2.1 and BSD-3-Clause and MIT
|
License: GPL-2.0-only AND LGPL-2.1-only AND BSD-3-Clause AND MIT
|
||||||
Group: Productivity/Networking/Diagnostic
|
Group: Productivity/Networking/Diagnostic
|
||||||
Url: http://www.qosient.com/argus/
|
Url: http://www.qosient.com/argus/
|
||||||
Source: http://qosient.com/argus/src/%{name}-%{version}.tar.gz
|
Source: http://qosient.com/argus/src/%{name}-%{version}.tar.gz
|
||||||
@ -44,7 +44,7 @@ Summary: Daemon for Network Monitoring Tool
|
|||||||
Group: Productivity/Networking/Diagnostic
|
Group: Productivity/Networking/Diagnostic
|
||||||
Requires: argus
|
Requires: argus
|
||||||
Provides: argus:%{_sbindir}/argus
|
Provides: argus:%{_sbindir}/argus
|
||||||
%{?systemd_requires}
|
%{?systemd_ordering}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Argus is a network monitoring tool.
|
Argus is a network monitoring tool.
|
||||||
@ -67,7 +67,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d -m 755 $RPM_BUILD_ROOT{/etc,%{_prefix}/{sbin,bin,share/man},%{_docdir}}
|
mkdir -p %{buildroot}/etc %{buildroot}/%{_sbindir} %{buildroot}/%{_bindir} %{buildroot}/%{_mandir} %{buildroot}/%{_docdir}
|
||||||
install -m 700 bin/argus %{buildroot}%{_sbindir}/argus
|
install -m 700 bin/argus %{buildroot}%{_sbindir}/argus
|
||||||
install -m 700 bin/arg* %{buildroot}%{_bindir}/
|
install -m 700 bin/arg* %{buildroot}%{_bindir}/
|
||||||
install -D -m 0644 %{SOURCE5} %{buildroot}/%{_unitdir}/argus.service
|
install -D -m 0644 %{SOURCE5} %{buildroot}/%{_unitdir}/argus.service
|
||||||
@ -78,10 +78,10 @@ rm -f %{buildroot}%{_bindir}/argus_linux
|
|||||||
cp -a man* %{buildroot}%{_mandir}
|
cp -a man* %{buildroot}%{_mandir}
|
||||||
chmod a-x %{buildroot}%{_mandir}/*/* )
|
chmod a-x %{buildroot}%{_mandir}/*/* )
|
||||||
rm -f %{buildroot}%{_mandir}/man1/tcpdump.1*
|
rm -f %{buildroot}%{_mandir}/man1/tcpdump.1*
|
||||||
rm -rf `find -type f -name ._*`
|
find -type f -name ._* -exec rm -Rf {} +
|
||||||
install -m 600 support/Config/argus.conf %{buildroot}%{_sysconfdir}/argus.conf
|
install -m 600 support/Config/argus.conf %{buildroot}%{_sysconfdir}/argus.conf
|
||||||
install -m 755 support/Archive/argusarchive %{buildroot}%{_bindir}/
|
install -m 755 support/Archive/argusarchive %{buildroot}%{_bindir}/
|
||||||
find support -type f -exec chmod 0644 {} \;
|
find support -type f -exec chmod 0644 {} +
|
||||||
#chmod a+x support/{Archive/argusarchive,Startup/argus,System/magic}
|
#chmod a+x support/{Archive/argusarchive,Startup/argus,System/magic}
|
||||||
chmod a+x support/{Archive/argusarchive,Startup/argus}
|
chmod a+x support/{Archive/argusarchive,Startup/argus}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user