###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
+# Copyright (C) 2007-2021 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
include Config
-VER = 1.0.25
+SUMMARY = DLNA compatible server
+
+VER = 1.3.0
THISAPP = minidlna-$(VER)
-DL_FILE = minidlna_$(VER)_src.tar.gz
+DL_FILE = minidlna-$(VER).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = minidlna
-PAK_VER = 2
+PAK_VER = 8
+
+DEPS = ffmpeg flac libexif libid3tag libogg
+
+SERVICES = minidlna
-DEPS = "ffmpeg flac libexif libid3tag libogg sqlite"
+CFLAGS += -fcommon
###############################################################################
# Top-level Rules
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = d966256baf2f9b068b9de871ab5dade5
+$(DL_FILE)_MD5 = 89e92d1938ee3066631d4ca9fbf31507
install : $(TARGET)
md5 : $(subst %,%_MD5,$(objects))
-dist:
+dist:
@$(PAK)
###############################################################################
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+ $(UPDATE_AUTOMAKE)
+ cd $(DIR_APP) && ./configure --prefix=/usr
cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
cd $(DIR_APP) && make install
# Install configuration.
install -m 644 $(DIR_SRC)/config/minidlna/minidlna.conf /etc
+
+ #install initscripts
+ $(call INSTALL_INITSCRIPTS,$(SERVICES))
+
+ #install backup definition
+ install -v -m 644 ${DIR_SRC}/config/backup/includes/minidlna \
+ /var/ipfire/backup/addons/includes/minidlna
+
@rm -rf $(DIR_APP)
@$(POSTBUILD)