Init RPM packaging and translations
parent
ab3073619f
commit
f213611171
@ -0,0 +1 @@
|
||||
*.tar.gz
|
@ -0,0 +1,26 @@
|
||||
all:
|
||||
cd po/back_auditd ; msgfmt -o linux-infosec-setupper-back_auditd.mo ru.po
|
||||
|
||||
install:
|
||||
#mkdir -p $(DESTDIR)/usr/bin
|
||||
mkdir -p $(DESTDIR)/usr/share/linux-infosec-setupper
|
||||
mkdir -p $(DESTDIR)/usr/share/linux-infosec-setupper/audit
|
||||
#mkdir -p $(DESTDIR)/usr/share/linux-infosec-setupper/pwquality
|
||||
install -m0644 common.sh $(DESTDIR)/usr/share/linux-infosec-setupper/common.sh
|
||||
install -m0644 back_auditd.sh $(DESTDIR)/usr/share/linux-infosec-setupper/audit/back_auditd.sh
|
||||
mkdir -p $(DESTDIR)/var/lib/linux-infosec-setupper
|
||||
mkdir -p $(DESTDIR)/var/lib/linux-infosec-setupper/audit
|
||||
#mkdir -p $(DESTDIR)/var/lib/linux-infosec-setupper/pwquality
|
||||
chmod -R 0700 $(DESTDIR)/var/lib/linux-infosec-setupper
|
||||
|
||||
mkdir -p $(DESTDIR)/usr/share/locale/ru/LC_MESSAGES
|
||||
install -m0644 po/back_auditd/linux-infosec-setupper-back_auditd.mo $(DESTDIR)/usr/share/locale/ru/LC_MESSAGES
|
||||
|
||||
rpm:
|
||||
# https://stackoverflow.com/a/1909390
|
||||
$(eval TMP := $(shell mktemp --suffix=.tar.gz))
|
||||
tar -zcf $(TMP) .
|
||||
RPM_NAME=$(shell rpmspec -q --srpm --qf '%{name}' linux-infosec-setupper.spec)
|
||||
RPM_VERSION=$(shell rpmspec -q --srpm --qf '%{version}' linux-infosec-setupper.spec)
|
||||
mv $(TMP) $(shell rpmspec -q --srpm --qf '%{name}-%{version}.tar.gz' linux-infosec-setupper.spec)
|
||||
rpmbuild -bb --define "_sourcedir $(shell pwd)" linux-infosec-setupper.spec
|
@ -0,0 +1,64 @@
|
||||
Name: linux-infosec-setupper
|
||||
Summary: CLI and GUI utilities to setup information security-related parts of Linux
|
||||
License: GPLv3
|
||||
Group: System/Base
|
||||
Version: 0.1
|
||||
Release: 1
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: bash
|
||||
BuildRequires: make
|
||||
BuildRequires: gettext
|
||||
|
||||
%description
|
||||
%{summary}
|
||||
|
||||
#-----------------------------------------------------------------------------------
|
||||
|
||||
%package common
|
||||
Summary: Common parts for subpackages of %{name}
|
||||
Group: System/Base
|
||||
Requires: awk
|
||||
Requires: bash
|
||||
Requires: coreutils
|
||||
Requires: grep
|
||||
Requires: sed
|
||||
|
||||
%description common
|
||||
Common parts for subpackages of %{name}
|
||||
|
||||
%files common
|
||||
%dir %{_datadir}/linux-infosec-setupper
|
||||
%{_datadir}/linux-infosec-setupper/common.sh
|
||||
%dir %attr(0700,root,root) /var/lib/linux-infosec-setupper
|
||||
|
||||
#-----------------------------------------------------------------------------------
|
||||
|
||||
%package auditd-cli
|
||||
Summary: CLI and backend to setup auditd configs
|
||||
Group: System/Base
|
||||
Requires: %{name}-common = %{version}-%{release}
|
||||
Requires: audit
|
||||
|
||||
%description auditd-cli
|
||||
CLI and backend to setup auditd configs
|
||||
|
||||
%files auditd-cli
|
||||
%dir %{_datadir}/linux-infosec-setupper/audit
|
||||
%{_datadir}/linux-infosec-setupper/audit/back_auditd.sh
|
||||
%dir %attr(0700,root,root) /var/lib/linux-infosec-setupper/audit
|
||||
%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/linux-infosec-setupper-back_auditd.mo
|
||||
|
||||
#-----------------------------------------------------------------------------------
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -c
|
||||
|
||||
%build
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%check
|
||||
bash -x ./test_back_auditd.sh
|
@ -0,0 +1,78 @@
|
||||
#: ../back_auditd.sh:26
|
||||
msgid "Entered %s=exec /path/to/script does not contain a path to script"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:29
|
||||
msgid "%s=exec* can have only one agrument — path to script, example: %s=exec /path/to/script"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:34
|
||||
msgid "Script %s is not executable"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:40
|
||||
msgid "Possible values of %s are: %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:74
|
||||
msgid "Error creating directory %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:103
|
||||
msgid "Error copying systemd override file %s to %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:110
|
||||
msgid "Systemd unit file auditd.service with setted up packet filtering has not passed verification!"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:111
|
||||
msgid "The error was:"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:171
|
||||
msgid "Directory %s does not exist"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:187
|
||||
msgid "Value of %s must be %s or %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:216
|
||||
msgid "Possible values of %s are: %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:229
|
||||
msgid "Parameter %s makes sense only when %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:243
|
||||
msgid "Possible values of %s are: %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:256
|
||||
msgid "Parameter %s makes sense only when %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:271
|
||||
msgid "Possible values of %s are: %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:285
|
||||
msgid "File %s does not exist or is not executable, so %s cannot be set as a dispatcher executable"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:299
|
||||
msgid "%s requires %s to be configured"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:315
|
||||
msgid "Possible values of %s are: %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:328
|
||||
msgid "Parameter %s makes sense only when %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:391
|
||||
msgid "%s must be an integer between %s and %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:405
|
||||
msgid "%s must be an integer between %s and %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:427
|
||||
msgid "Errors occured when trying to understand how to configure auditd"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:431
|
||||
msgid "Error creating directory %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:466
|
||||
msgid "Error creating directory %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:470
|
||||
msgid "Error writing auditd config file %s"
|
||||
msgstr ""
|
||||
#: ../back_auditd.sh:473
|
||||
msgid "Reboot to apply changes to auditd config"
|
||||
msgstr ""
|
Loading…
Reference in New Issue