Skip to content

Commit 6ec5c55

Browse files
author
xrad
committed
Initial commit
0 parents  commit 6ec5c55

21 files changed

Lines changed: 243 additions & 0 deletions

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2000-2020 Synology Inc. All rights reserved.
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a
4+
copy of this software and associated documentation files (the "Software")
5+
, to deal in the Software without restriction, including without limitation
6+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
7+
and/or sell copies of the Software, and to permit persons to whom the
8+
Software is furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included
11+
in all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM
18+
, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19+
IN THE SOFTWARE.

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) 2000-2020 Synology Inc. All rights reserved.
2+
3+
## You can use CC CFLAGS LD LDFLAGS CXX CXXFLAGS AR RANLIB READELF STRIP after include env.mak
4+
include /env.mak
5+
6+
all:
7+
cd slimserver-vendor/CPAN; ./buildme.sh -t
8+
9+
.PHONY: build
10+
build:
11+
12+
13+
install:
14+
#mkdir -p $(DESTDIR)/usr/local/bin/
15+
#install $< $(DESTDIR)/usr/local/bin/
16+
17+
clean:
18+
#rm -rf *.o $(EXEC)

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# LogitechMediaServer
2+
A current Logitech Media Server for ARM7 based Synology DiskStations.
3+
4+
Up to DSM6 I used a Debian chroot environment packaged as SPK to run the stock Linux debian LogitechMediaServer.
5+
With DSM7 this is no longer an option since SPK cannot use root anymore, so I went for a more compliant option
6+
with a supporting Perl package and LogitechMediaServer.
7+
8+
# Requirements
9+
10+
* Linux x86 machine for compilation
11+
* [Synology Cross Development](https://github.com/SynologyOpenSource/pkgscripts-ng)
12+
* An ARM7 based DiskStation running DSM7
13+
14+
# Prepare
15+
16+
Unpack and organize repos like so:
17+
```
18+
somewhere/
19+
├── pkgscripts-ng/
20+
└── source/
21+
└── LogitechMediaServer
22+
```
23+
24+
You need to prepare the cross development environment:
25+
26+
```
27+
cd somewhere/pkgscripts-ng/
28+
git checout -b DSM7.0 origin/DSM7.0
29+
sudo ./EnvDeploy -v 7.0 -p armada375
30+
```
31+
32+
You also need this little patch to stop the build script from reporting a bogus build error:
33+
```
34+
```
35+
36+
Download sources:
37+
```
38+
cd somewhere/source/LogitechMediaServer
39+
./download.sh
40+
```
41+
42+
# Build
43+
44+
```
45+
cd somewhere/pkgscripts-ng/
46+
sudo ./PkgCreate.py -p aramada375 LogitechMediaServer
47+
```

SynoBuildConf/build

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
# Copyright (C) 2000-2020 Synology Inc. All rights reserved.
3+
4+
case ${MakeClean} in
5+
[Yy][Ee][Ss])
6+
make clean
7+
;;
8+
esac

SynoBuildConf/depends

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (C) 2000-2020 Synology Inc. All rights reserved.
2+
3+
[default]
4+
all="7.0"

SynoBuildConf/install

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
# Copyright (c) 2000-2021 Synology Inc. All rights reserved.
3+
4+
PKG_NAME="LogitechMediaServer"
5+
INST_DIR="/tmp/_${PKG_NAME}"
6+
PKG_DIR="/tmp/_${PKG_NAME}_pkg"
7+
PKG_DEST="/image/packages"
8+
LMS_ARCHIVE=logitechmediaserver-8.2.1-1649774087-arm-linux.tgz
9+
10+
PrepareDirs() {
11+
for dir in $INST_DIR $PKG_DIR; do
12+
rm -rf "$dir"
13+
done
14+
for dir in $INST_DIR $PKG_DIR $PKG_DEST; do
15+
mkdir -p "$dir"
16+
done
17+
}
18+
19+
SetupPackageFiles() {
20+
mkdir -p $INST_DIR/lms
21+
tar -C $INST_DIR -x -v -f $LMS_ARCHIVE --strip-components=1
22+
synology/INFO.sh > INFO
23+
cp INFO "${PKG_DIR}"
24+
cp -r synology/conf/ "${PKG_DIR}"
25+
cp -r synology/scripts/ "${PKG_DIR}"
26+
cp synology/PACKAGE_ICON{,_256}.PNG "${PKG_DIR}"
27+
}
28+
29+
MakePackage() {
30+
source /pkgscripts-ng/include/pkg_util.sh
31+
pkg_make_package $INST_DIR $PKG_DIR
32+
pkg_make_spk $PKG_DIR $PKG_DEST
33+
}
34+
35+
main() {
36+
PrepareDirs
37+
SetupPackageFiles
38+
MakePackage
39+
}
40+
41+
main "$@"

download.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
wget https://downloads.slimdevices.com/nightly/8.2/lms/68d6b1b7e4c425896c152745c0ff61b5738bbaa0/logitechmediaserver-8.2.1-1649774087-arm-linux.tgz

synology/INFO.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
# Copyright (c) 2000-2020 Synology Inc. All rights reserved.
3+
4+
source /pkgscripts/include/pkg_util.sh
5+
6+
package="LogitechMediaServer"
7+
version="8.2.1-1649774087"
8+
displayname="Logitech Media Server"
9+
os_min_ver="6.0-00000"
10+
maintainer="xrad"
11+
arch="$(pkg_get_platform)"
12+
startable="yes"
13+
description="Logitech Media Server Package"
14+
dsmuidir="ui"
15+
[ "$(caller)" != "0 NULL" ] && return 0
16+
pkg_dump_info

synology/PACKAGE_ICON.PNG

5.32 KB
Loading

synology/PACKAGE_ICON_256.PNG

33.3 KB
Loading

0 commit comments

Comments
 (0)