2
0

2 Revīzijas 2d1f04a7c6 ... a56a6ab652

Autors SHA1 Ziņojums Datums
  ewft a56a6ab652 Initial Commit 3 gadi atpakaļ
  ewft 2d1f04a7c6 Initial Commit 3 gadi atpakaļ
2 mainītis faili ar 34 papildinājumiem un 33 dzēšanām
  1. 0 17
      ewft.minidlna.cfg
  2. 34 16
      ewft.minidlna.plg

+ 0 - 17
ewft.minidlna.cfg

@@ -1,17 +0,0 @@
-# Transmission configuration:
-SERVICE="enable"
-INSTALLDIR="/usr/local/Transmission"
-CONFIGDIR="/usr/local/Transmission/config"
-LOGDIR=""
-PORT="9091"
-URLBASE="transmission"
-USEAUTH="no"
-TRANSUSER=""
-TRANSPASS=""
-USEWHITE="no"
-WHITELIST=""
-RUNAS="nobody"
-REPO="http://slackware.org.uk/slacky"
-PLG_STORAGESIZE="yes"
-PLG_DATACHECK="yes"
-CHECKONLINE="yes"

+ 34 - 16
ewft.minidlna.plg

@@ -5,11 +5,15 @@
 <!ENTITY author    "EWFT">
 <!ENTITY version   "2021.01.17a">
 <!ENTITY launch    "Settings/ewft.minidlna">
-<!ENTITY pluginURL "https://raw.githubusercontent.com/bergware/dynamix/master/unRAIDv6/&name;.plg">
-<!ENTITY source    "/boot/config/plugins/&name;/minidlna-1.3.0_static">
-<!ENTITY plginpkg  "/boot/config/plugins/&name;/ewft.minidlna">
-<!ENTITY menupkg  "/boot/config/plugins/&name;/ewft.menu">
-<!ENTITY MD5       "8b95d544b5d0abca452c50970fb01710">
+<!ENTITY pluginURL "https://git.ewft.org/Unraid/ewft.minidlna/raw/master/ewft.minidlna.plg">
+<!ENTITY pkgURL    "https://git.ewft.org/Unraid/ewft.minidlna/raw/master/build/">
+<!ENTITY minidlnapkg    "minidlna-1.3.0_static">
+<!ENTITY minidlnaMD5       "338b106e1dd12d994be41d6815050ba5">
+<!ENTITY plginpkg  "ewft.minidlna">
+<!ENTITY plginMD5       "dfae62c8ea5675f5850a64113d6d1acf">
+<!ENTITY menupkg  "ewft.menu">
+<!ENTITY menupkgMD5       "56c7a49d0c1b6355b7ff99560d4a5b1e">
+<!ENTITY pluginLoc "/boot/config/plugins/&name;">
 ]>
 
 <PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" min="6.4.0">
@@ -31,16 +35,32 @@
 </FILE>
 
 <!-- SOURCE PACKAGE -->
-<FILE Name="&source;.txz" Run="upgradepkg --install-new --reinstall">
-<MD5>&MD5;</MD5>
+<FILE Name="&pluginLoc;/&minidlnapkg;.txz" Run="upgradepkg --install-new --reinstall">
+<URL>&pkgURL;&minidlnapkg;.txz</URL>
+<MD5>&minidlnaMD5;</MD5>
 </FILE>
 
-<FILE Name="&plginpkg;.txz" Run="upgradepkg --install-new --reinstall">
-<MD5>&MD5;</MD5>
+<FILE Name="&pluginLoc;/&plginpkg;.txz" Run="upgradepkg --install-new --reinstall">
+<URL> &pkgURL;&plginpkg;.txz</URL>
+<MD5>&plginMD5;</MD5>
 </FILE>
 
-<FILE Name="&menupkg;.txz" Run="upgradepkg --install-new --reinstall">
-<MD5>&MD5;</MD5>
+<FILE Name="&pluginLoc;/&menupkg;.txz" Run="upgradepkg --install-new --reinstall">
+<URL> &pkgURL;&menupkg;.txz</URL>
+<MD5>&menupkgMD5;</MD5>
+</FILE>
+
+<FILE Name="&pluginLoc;/minidlna.conf" Run="upgradepkg --install-new --reinstall">
+<URL>https://git.ewft.org/Unraid/ewft.minidlna/raw/master/minidlna.conf</URL>
+</FILE>
+
+<FILE Name="/boot/config/plugins/&name;/&name;.cfg">
+<INLINE>
+<![CDATA[
+# EWFT MiniDLNA
+SERVICE="enable"
+]]>
+</INLINE>
 </FILE>
 
 <!-- POST-INSTALL SCRIPT -->
@@ -48,15 +68,11 @@
 <INLINE>
 
 cp /boot/config/plugins/&name;/minidlna.conf /etc/
-cp -rf /boot/config/plugins/&name;/ewft.menu /usr/local/emhttp/plugins/
-# Create cron entry
-
 
 [ -e "/etc/rc.d/rc.ewft.minidlna" ] &amp;&amp; rm -f "/etc/rc.d/rc.ewft.minidlna"
 ln -s "/usr/local/emhttp/plugins/ewft.minidlna/scripts/rc.ewft.minidlna" "/etc/rc.d/rc.ewft.minidlna"
 
 
-
 echo ""
 echo "-----------------------------------------------------------"
 echo " Plugin &name; is installed."
@@ -70,7 +86,9 @@ echo ""
 <FILE Run="/bin/bash" Method="remove">
 <INLINE>
 # Remove plugin related files
-rm -rf /etc/minidlna.conf;
+rm -rf /etc/minidlna.conf
+rm -f "/etc/rc.d/rc.ewft.minidlna"
+
 
 # Uninstall the 'source' package
 removepkg minidlna-1.3.0_static