Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev/lynis.spec')
-rw-r--r--dev/lynis.spec13
1 files changed, 9 insertions, 4 deletions
diff --git a/dev/lynis.spec b/dev/lynis.spec
index d279a10f..997a386f 100644
--- a/dev/lynis.spec
+++ b/dev/lynis.spec
@@ -5,14 +5,21 @@
#
# Usage:
# - Adjust version number (Version:)
+# - Check if you have the directories in your home directory (or adjust topdir)
# - rpmbuild -ba lynis.spec
#
# If RPM building fails, check the required tools to build packages.
#
#################################################################################
-# http://cisofy.com/
+#
+# (c) 2014 Michael Boelen
+#
+# Website: http://cisofy.com/
+#
#################################################################################
+# Build in home directory of the user
+%define _topdir %{getenv:HOME}/lynis-build/rpmbuild
%define _includedir /usr/share/lynis/include
%define _pluginsdir /usr/share/lynis/plugins
%define _dbdir /usr/share/lynis/db
@@ -88,7 +95,7 @@ install db/* ${RPM_BUILD_ROOT}%{_dbdir}
%files
%defattr(644,root,root,755)
# Binaries
-%{_bindir}/lynis
+%attr(755, root, root) %{_bindir}/lynis
# Man page and docs
%doc CHANGELOG FAQ LICENSE README
%doc %{_mandir}/man8/lynis.8.gz
@@ -98,8 +105,6 @@ install db/* ${RPM_BUILD_ROOT}%{_dbdir}
%{_dbdir}/*
%{_includedir}/*
%{_pluginsdir}/*
-# Lynis binary should be executable
-#%attr(755, root, root) %{_bindir}/lynis
#%attr(644, root, root) %{_dbdir}/*
#%attr(644, root, root) %{_includedir}/*
#%attr(644, root, root) %{_plugindir}