Skip to content

Commit

Permalink
Merge pull request #13845 from mavit/firewalld-services
Browse files Browse the repository at this point in the history
Provide firewalld service definitions
  • Loading branch information
hudokkow committed May 17, 2018
2 parents 48906ef + 0142d77 commit 4ea3683
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/scripts/linux/Install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ install(FILES ${CMAKE_SOURCE_DIR}/tools/Linux/packaging/media/icon256x256.png
DESTINATION ${datarootdir}/icons/hicolor/256x256/apps
COMPONENT kodi)

# Install firewalld service definitions
install(FILES ${CMAKE_SOURCE_DIR}/tools/Linux/firewalld-services/kodi-eventserver.xml
${CMAKE_SOURCE_DIR}/tools/Linux/firewalld-services/kodi-http.xml
${CMAKE_SOURCE_DIR}/tools/Linux/firewalld-services/kodi-jsonrpc.xml
DESTINATION ${prefix}/lib/firewalld/services
COMPONENT kodi)

# Install docs
install(FILES ${CMAKE_SOURCE_DIR}/copying.txt
${CMAKE_SOURCE_DIR}/LICENSE.GPL
Expand Down
6 changes: 6 additions & 0 deletions tools/Linux/firewalld-services/kodi-eventserver.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>Kodi EventServer</short>
<description>Kodi is a free cross-platform media-player jukebox and entertainment hub. Enable this option to remotely control Kodi via its EventServer API.</description>
<port protocol="udp" port="9777"/>
</service>
6 changes: 6 additions & 0 deletions tools/Linux/firewalld-services/kodi-http.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>Kodi web interface</short>
<description>Kodi is a free cross-platform media-player jukebox and entertainment hub. Enable this option to remotely control Kodi via its web interface.</description>
<port protocol="tcp" port="8080"/>
</service>
6 changes: 6 additions & 0 deletions tools/Linux/firewalld-services/kodi-jsonrpc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>Kodi JSON-RPC</short>
<description>Kodi is a free cross-platform media-player jukebox and entertainment hub. Enable this option to remotely control Kodi via its JSON-RPC API.</description>
<port protocol="tcp" port="9090"/>
</service>

0 comments on commit 4ea3683

Please sign in to comment.