-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- for packaging: /usr/lib/firewalld/services/lan-mouse.xml --> | ||
<!-- configure manually: /etc/firewalld/services/lan-mouse.xml --> | ||
<service> | ||
<short>LAN Mouse</short> | ||
<description>mouse and keyboard sharing via LAN</description> | ||
<port port="4242" protocol="udp"/> | ||
</service> |
c9deb6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CupricReki
see https://firewalld.org/documentation/howto/add-a-service.html
Would be nice to distribute that with the AUR package
c9deb6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this only be added if
/etc/firewalld
exists do you think?c9deb6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For packaging it should be under /usr/lib/firewalld/services (I think?), and I feel like it should also create that directory if its not there. Otherwise installing firewalld would not install that file.
I havent tested if this causes problems with installing firewalld, so that should probably be tested.
c9deb6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the firewalld documentation:
If files are put into the
/usr/lib/firewalld/services
directory, you should make firewalld a dependency of the package. So I don't think we can pre-populate the config file. I'm reading up on optional dependencies in AUR though. Makes sense to move the config if firewalld is already installed.c9deb6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Would be fine by me if we put it under
/etc/firewalld
then.