forked from freebsd/freebsd-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
audio/lms: New port: Lightweight music server
PR: 258959
- Loading branch information
1 parent
1ea6116
commit 4be9aca
Showing
9 changed files
with
159 additions
and
2 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
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,51 @@ | ||
PORTNAME= lms | ||
DISTVERSIONPREFIX= v | ||
DISTVERSION= 3.27.0 | ||
CATEGORIES= audio www | ||
|
||
MAINTAINER= [email protected] | ||
COMMENT= Web based music streaming client | ||
|
||
LICENSE= GPLv3 | ||
LICENSE_FILE= ${WRKSRC}/COPYING | ||
|
||
LIB_DEPENDS+= libavutil.so:multimedia/ffmpeg \ | ||
libboost_system.so:devel/boost-libs \ | ||
libconfig.so:devel/libconfig \ | ||
libgtest.so:devel/googletest \ | ||
libtag.so:audio/taglib \ | ||
libwt.so:www/wt | ||
RUN_DEPENDS+= ffmpeg:multimedia/ffmpeg | ||
|
||
USES= cmake compiler:c++17-lang pkgconfig | ||
USE_GITHUB= yes | ||
GH_ACCOUNT= epoupon | ||
USE_RC_SUBR= lms | ||
|
||
OPTIONS_DEFINE= PAM | ||
OPTIONS_SINGLE= IMGLIB | ||
OPTIONS_SINGLE_IMGLIB= GM STB | ||
OPTIONS_DEFAULT= GM PAM | ||
|
||
PAM_DESC= Use the PAM authentication backend | ||
IMGLIB_DESC= Image library backend | ||
GM_DESC= GraphicsMagick++ | ||
STB_DESC= STB single-header file libraries | ||
|
||
PAM_CMAKE_OFF= -DUSE_PAM=OFF | ||
GM_CMAKE_ON= -DIMAGE_LIBRARY=GraphicsMagick++ | ||
STB_CMAKE_ON= -DIMAGE_LIBRARY=STB | ||
|
||
GM_LIB_DEPENDS+= libGraphicsMagick++.so:graphics/GraphicsMagick \ | ||
libGraphicsMagick.so:graphics/GraphicsMagick | ||
STB_BUILD_DEPENDS+= ${LOCALBASE}/include/stb/stb_image.h:devel/stb | ||
|
||
USERS= _lms | ||
GROUPS= _lms | ||
|
||
post-install: | ||
@${MV} ${STAGEDIR}${DATADIR}/lms.conf ${STAGEDIR}${LOCALBASE}/etc/lms.conf.sample | ||
@${MKDIR} ${STAGEDIR}/var/run/${PORTNAME} | ||
@${RM} ${STAGEDIR}${DATADIR}/default.service | ||
|
||
.include <bsd.port.mk> |
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,3 @@ | ||
TIMESTAMP = 1632938864 | ||
SHA256 (epoupon-lms-v3.27.0_GH0.tar.gz) = 98be611c05cb2a034c38623d1b739ea3e34760da04be8b0b3ba7e0fbb3baedc1 | ||
SIZE (epoupon-lms-v3.27.0_GH0.tar.gz) = 448749 |
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,31 @@ | ||
#!/bin/sh | ||
|
||
# PROVIDE: lms | ||
# REQUIRE: LOGIN | ||
# KEYWORD: shutdown | ||
|
||
# Add these lines to /etc/rc.conf | ||
# to enable this service: | ||
# | ||
# lms_enable (bool): Set to NO by default. | ||
# Set it to YES to enable lms. | ||
# lms_config (path): Set to %%PREFIX%%/etc/lms.conf | ||
# by default. | ||
|
||
. /etc/rc.subr | ||
|
||
load_rc_config $name | ||
: ${lms_config:="%%PREFIX/etc/lms.conf"} | ||
|
||
name=lms | ||
rcvar=lms_enable | ||
lms_command="%%PREFIX%%/bin/lms" | ||
lms_args="${lms_config}" | ||
lms_user=lms | ||
lms_group=lms | ||
required_dirs="/var/run/lms" | ||
pidfile="/var/run/lms/${name}.pid" | ||
command="/usr/sbin/daemon" | ||
command_args="-P ${pidfile} -f ${lms_command} ${lms_args}" | ||
|
||
run_rc_command "$1" |
11 changes: 11 additions & 0 deletions
11
audio/lms/files/patch-src_libs_subsonic_impl_SubsonicResource.hpp
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,11 @@ | ||
--- src/libs/subsonic/impl/SubsonicResource.hpp.orig 2021-10-02 19:20:11 UTC | ||
+++ src/libs/subsonic/impl/SubsonicResource.hpp | ||
@@ -19,6 +19,8 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
+#include <unordered_map> | ||
+ | ||
#include <Wt/WResource.h> | ||
#include <Wt/Http/Response.h> | ||
|
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,3 @@ | ||
Lightweight Music Server (LMS) is a self-hosted music streaming client | ||
with a sleek web interface. Access your music collection from anywhere using | ||
a web interface. |
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,57 @@ | ||
bin/lms | ||
bin/lms-metadata | ||
bin/lms-recommendation | ||
@sample etc/lms.conf.sample | ||
@dir(lms,lms,) /var/run/lms | ||
lib/liblmsauth.so | ||
lib/liblmsav.so | ||
lib/liblmscover.so | ||
lib/liblmsdatabase.so | ||
lib/liblmsmetadata.so | ||
lib/liblmsrecommendation.so | ||
lib/liblmsscanner.so | ||
lib/liblmsscrobbling.so | ||
lib/liblmssom.so | ||
lib/liblmssubsonic.so | ||
lib/liblmsutils.so | ||
%%DATADIR%%/lms | ||
%%DATADIR%%/approot/admin-database.xml | ||
%%DATADIR%%/approot/admin-initwizard.xml | ||
%%DATADIR%%/approot/admin-scannercontroller.xml | ||
%%DATADIR%%/approot/admin-user.xml | ||
%%DATADIR%%/approot/admin-users.xml | ||
%%DATADIR%%/approot/artist.xml | ||
%%DATADIR%%/approot/artists.xml | ||
%%DATADIR%%/approot/error.xml | ||
%%DATADIR%%/approot/explore.xml | ||
%%DATADIR%%/approot/images/unknown-artist.jpg | ||
%%DATADIR%%/approot/images/unknown-cover.jpg | ||
%%DATADIR%%/approot/login.xml | ||
%%DATADIR%%/approot/mediaplayer.xml | ||
%%DATADIR%%/approot/messages.xml | ||
%%DATADIR%%/approot/messages_fr.xml | ||
%%DATADIR%%/approot/messages_it.xml | ||
%%DATADIR%%/approot/messages_zh.xml | ||
%%DATADIR%%/approot/playqueue.xml | ||
%%DATADIR%%/approot/%%CMAKE_BUILD_TYPE%%.xml | ||
%%DATADIR%%/approot/%%CMAKE_BUILD_TYPE%%s.xml | ||
%%DATADIR%%/approot/search.xml | ||
%%DATADIR%%/approot/settings.xml | ||
%%DATADIR%%/approot/templates.xml | ||
%%DATADIR%%/approot/tracks.xml | ||
%%DATADIR%%/docroot/css/S6u8w4BMUTPHjxsAUi-qJCY.woff2 | ||
%%DATADIR%%/docroot/css/S6u8w4BMUTPHjxsAXC-q.woff2 | ||
%%DATADIR%%/docroot/css/S6u9w4BMUTPHh6UVSwaPGR_p.woff2 | ||
%%DATADIR%%/docroot/css/S6u9w4BMUTPHh6UVSwiPGQ.woff2 | ||
%%DATADIR%%/docroot/css/S6uyw4BMUTPHjx4wXg.woff2 | ||
%%DATADIR%%/docroot/css/S6uyw4BMUTPHjxAwXjeu.woff2 | ||
%%DATADIR%%/docroot/css/bootstrap-darkly.min.css | ||
%%DATADIR%%/docroot/css/bootstrap-flatly.min.css | ||
%%DATADIR%%/docroot/css/fonts.css | ||
%%DATADIR%%/docroot/css/lms-darkly.css | ||
%%DATADIR%%/docroot/css/lms-flatly.css | ||
%%DATADIR%%/docroot/css/lms.css | ||
%%DATADIR%%/docroot/js/bootstrap-notify.js | ||
%%DATADIR%%/docroot/js/bootstrap.min.js | ||
%%DATADIR%%/docroot/js/jquery-1.10.2.min.js | ||
%%DATADIR%%/docroot/js/mediaplayer.js |