diff options
| author | Joshua Boniface <joshua@boniface.me> | 2018-08-08 01:18:59 -0400 |
|---|---|---|
| committer | Vasily <just.one.man@yandex.ru> | 2018-10-22 01:56:13 +0300 |
| commit | c0953e51b5019c968fe5d9c8f25f47f08ed4e829 (patch) | |
| tree | bd8a44c47c18050550e17a2ffd1dd9bed56e5d88 /debian/rules | |
| parent | 48facb797ed912e4ea6b04b17d1ff190ac2daac4 (diff) | |
Add patches and debian build information for emby-server
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..11a2ba5ae --- /dev/null +++ b/debian/rules @@ -0,0 +1,38 @@ +#! /usr/bin/make -f +SHELL := /bin/bash +export DH_VERBOSE=1 + +%: + dh $@ --with=cli + +# disable "make check" +override_dh_auto_test: + +# disable stripping debugging symbols +override_dh_clistrip: + +override_dh_auto_build: + sed -i -e 's%<dllmap dll="CORE_RL_Wand_.dll" target="libMagickWand-6.Q8.so" os="linux"/>%<dllmap dll="CORE_RL_Wand_.dll" target="libEmbyMagickWand-6.Q8.so.2" os="linux"/>\n<dllmap dll="CORE_RL_magick_.dll" target="libEmbyMagickCore-6.Q8.so.2" os="linux"/>%' $(CURDIR)/MediaBrowser.Server.Mono/ImageMagickSharp.dll.config +ifneq ("$(wildcard $(CURDIR)/MediaBrowser.Server.Mono/SQLitePCLRaw.provider.sqlite3.dll.config)","") + sed -i -e 's%<dllmap dll="sqlite3" target="libsqlite3.so" os="linux"/>%<dllmap dll="sqlite3" target="libembysqlite3.so.0" os="linux"/>%' $(CURDIR)/MediaBrowser.Server.Mono/SQLitePCLRaw.provider.sqlite3.dll.config + $(eval libdl_count := $(shell grep -c "libdl" $(CURDIR)/MediaBrowser.Server.Mono/SQLitePCLRaw.provider.sqlite3.dll.config)) + @ if [[ "$(libdl_count)" -eq "0" ]]; then \ + sed -i -e 's%\(</configuration>\)%<dllmap dll="dl" target="libdl.so.2" os="linux"/>\n\1%' $(CURDIR)/MediaBrowser.Server.Mono/SQLitePCLRaw.provider.sqlite3.dll.config; \ + else \ + sed -i -e 's%<dllmap dll="dl" target="libdl.so" os="linux"/>%<dllmap dll="dl" target="libdl.so.2" os="linux"/>%' $(CURDIR)/MediaBrowser.Server.Mono/SQLitePCLRaw.provider.sqlite3.dll.config; \ + fi +endif + xbuild $(CURDIR)/MediaBrowser.sln /p:Configuration="Release Mono" /p:Platform="Any Cpu" /property:OutputPath='$(CURDIR)/usr/lib/emby-server/bin' /t:build + +override_dh_auto_clean: + xbuild $(CURDIR)/MediaBrowser.sln /p:Configuration="Release Mono" /p:Platform="Any Cpu" /t:clean + +# disable package does not produce library files +override_dh_makeclilibs: + +override_dh_clideps: + dh_clideps --exclude-moduleref=i:ole32 --exclude-moduleref=i:msvcrt --exclude-moduleref=i:Mono.Posix.dll --exclude-moduleref=i:MonoPosixHelper --exclude-moduleref=i:CORE_RL_Wand_ --exclude-moduleref=i:MediaInfo --exclude-moduleref=i:CORE_RL_magick_ --exclude-moduleref=i:sqlite3 --exclude-moduleref=i:libSkiaSharp --exclude-moduleref=i:SkiaSharp --exclude-moduleref=i:libEGL.dll + +override_dh_installinit: + # use "emby-server" as our service name, not "emby-server-beta" + dh_installinit --name=emby-server --no-start --noscripts |
