Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eterban
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eterban
Commits
4817f903
Commit
4817f903
authored
Jul 27, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packaging: ship ban publisher in common
parent
bc83f558
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
eterban.spec
eterban.spec
+1
-1
static-checks.sh
tests/static-checks.sh
+13
-0
No files found.
eterban.spec
View file @
4817f903
...
...
@@ -134,6 +134,7 @@ cp -a prod-server/usr/share/%name/* %buildroot%_datadir/%name/
%files common
%config(noreplace) %attr(0600,root,root) /etc/%name/settings.ini
%config(noreplace) /etc/%name/whitelist.txt
%_datadir/%name/ban.py
%files gateway
%systemd_unitdir/eterban.service
...
...
@@ -156,7 +157,6 @@ cp -a prod-server/usr/share/%name/* %buildroot%_datadir/%name/
%config(noreplace) /etc/nginx/sites-enabled.d/eterban.conf
%files fail2ban
%_datadir/%name/ban.py
%config(noreplace) /etc/fail2ban/action.d/eterban.conf
%changelog
...
...
tests/static-checks.sh
View file @
4817f903
...
...
@@ -73,3 +73,16 @@ for unit in gateway/etc/systemd/system/eterban.service gateway/etc/systemd/syste
}
done
done
awk
'
$0 == "%files common" { section = "common"; next }
/^%files/ { section = "other" }
$0 == "%_datadir/%name/ban.py" {
if (section == "common") common_ban = 1
else misplaced_ban = 1
}
END { exit !(common_ban && !misplaced_ban) }
'
eterban.spec
||
{
echo
'ban.py must be owned by eterban-common for the public CLI and fail2ban'
>
&2
exit
1
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment