Skip to content

Commit

Permalink
Included rules.yml installation in packages
Browse files Browse the repository at this point in the history
  • Loading branch information
okynos committed Apr 25, 2024
1 parent 42dad6d commit 8ae8e7b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/deb/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ override_dh_install:

install -m 0750 ${BUILD_DIR}/target/release/fim ${BIN_DIR}/
install -m 0640 ${BUILD_DIR}/config/linux/config.yml ${CONFIG_DIR}/
install -m 0640 ${BUILD_DIR}/config/linux/rules.yml ${CONFIG_DIR}/
install -m 0640 ${BUILD_DIR}/config/index_template.json ${CONFIG_DIR}/
install -m 0640 ${BUILD_DIR}/pkg/deb/debian/copyright ${DOC_DIR}/
install -m 0644 ${BUILD_DIR}/pkg/fim.service ${SYS_DIR}/
Expand Down
3 changes: 3 additions & 0 deletions pkg/fim.1
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ FIM is a File Integrity Monitoring tool that tracks any event performed over you
/etc/fim/config.yml
.TP
.I
/etc/fim/rules.yml
.TP
.I
/usr/bin/fim
.TP
.I
Expand Down
1 change: 1 addition & 0 deletions pkg/macos/builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ cargo build --release
mkdir -p "${app_dir}"
cp ./target/release/fim "${app_dir}/"
cp ./config/macos/config.yml "${app_dir}"
cp ./config/macos/rules.yml "${app_dir}"

cd "${current_dir}"
chmod 0755 ./Scripts/postinstall
Expand Down
1 change: 1 addition & 0 deletions pkg/msi/builder.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ cd pkg\msi

cp ..\..\target\release\fim.exe .\
cp ..\..\config\windows\config.yml .\
cp ..\..\config\windows\rules.yml .\

Invoke-Expression "& `"C:\Program Files (x86)\WiX Toolset v3.*\bin\candle.exe`" .\fim.wxs -o .\fim.wixobj"

Expand Down
3 changes: 3 additions & 0 deletions pkg/msi/fim.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ https://github.com/Achiefs/fim/wiki" />
<Component Id='ConfigFile' Guid='*' Win64="yes">
<File Id='CONFIG' Name='config.yml' DiskId='1' Source='config.yml' KeyPath='yes'></File>
</Component>
<Component Id='RulesFile' Guid='*' Win64="yes">
<File Id='CONFIG' Name='rules.yml' DiskId='1' Source='rules.yml' KeyPath='yes'></File>
</Component>
</Directory>
</Directory>
</Directory>
Expand Down
4 changes: 3 additions & 1 deletion pkg/rpm/fim.spec
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ mkdir -p -m 640 ${RPM_BUILD_ROOT}/usr/share/man/man1

install -m 0750 target/release/fim ${RPM_BUILD_ROOT}%{_bindir}/
install -m 0640 config/linux/config.yml ${RPM_BUILD_ROOT}%{_configdir}/
install -m 0640 config/linux/rules.yml ${RPM_BUILD_ROOT}%{_configdir}/
install -m 0640 config/index_template.json ${RPM_BUILD_ROOT}%{_configdir}/
install -m 0644 pkg/fim.service ${RPM_BUILD_ROOT}/lib/systemd/system/
install -m 0644 pkg/fim.1 ${RPM_BUILD_ROOT}/usr/share/man/man1/
Expand Down Expand Up @@ -92,14 +93,15 @@ rm -fr %{buildroot}
%attr(750, root, root) %{_bindir}/fim
%dir %attr(750, root, root) %{_configdir}
%attr(640, root, root) %config(noreplace) %{_configdir}/config.yml
%attr(640, root, root) %config(noreplace) %{_configdir}/rules.yml
%attr(640, root, root) %{_configdir}/index_template.json
%attr(644, root, root) /lib/systemd/system/fim.service
%attr(644, root, root) /usr/share/man/man1/fim.1.gz

# -----------------------------------------------------------------------------

%changelog
* Fri Apr 19 2024 support <support@achiefs.com> - 0.5.0
* Thu Apr 25 2024 support <support@achiefs.com> - 0.5.0
- More info: https://github.com/Achiefs/fim/releases/tag/v0.5.0

* Fri Apr 19 2024 support <support@achiefs.com> - 0.4.11
Expand Down

0 comments on commit 8ae8e7b

Please sign in to comment.