Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
Index: 1.3.3/Makefile
===================================================================
--- 1.3.3/Makefile	(nonexistent)
+++ 1.3.3/Makefile	(revision 357)
@@ -0,0 +1,276 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC32)
+COMPONENT_TARGETS += $(HARDWARE_INTEL_PC64)
+COMPONENT_TARGETS += $(HARDWARE_EBOX_3350DX2)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB2X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP2E)
+COMPONENT_TARGETS += $(HARDWARE_NANOPI_NEO)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PL2)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PI5)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PI5B)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PI5P)
+COMPONENT_TARGETS += $(HARDWARE_ROCK_5B)
+COMPONENT_TARGETS += $(HARDWARE_WECHIP_TX6)
+COMPONENT_TARGETS += $(HARDWARE_REPKA_PI3)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_POIN2)
+COMPONENT_TARGETS += $(HARDWARE_RK3328_CC)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_EDGE)
+COMPONENT_TARGETS += $(HARDWARE_LEEZ_P710)
+COMPONENT_TARGETS += $(HARDWARE_M201)
+COMPONENT_TARGETS += $(HARDWARE_MXV)
+COMPONENT_TARGETS += $(HARDWARE_P201)
+COMPONENT_TARGETS += $(HARDWARE_NEXBOX_A95X)
+COMPONENT_TARGETS += $(HARDWARE_ODROID_C2)
+COMPONENT_TARGETS += $(HARDWARE_P212)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM)
+COMPONENT_TARGETS += $(HARDWARE_Q201)
+COMPONENT_TARGETS += $(HARDWARE_ENYBOX_X2)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM2)
+COMPONENT_TARGETS += $(HARDWARE_NIT6Q)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6DL_C)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6Q_C)
+COMPONENT_TARGETS += $(HARDWARE_BONE_BLACK)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_DRA7XXEVM)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_T1)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_M1)
+COMPONENT_TARGETS += $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_S824L_LSB)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_VISIONFIVE2)
+COMPONENT_TARGETS += $(HARDWARE_SIFIVE_U740)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/m/minidlna
+
+REQUIRES           = libs/libexif/0.6.24
+REQUIRES          += libs/libjpeg-turbo/2.1.2
+REQUIRES          += media/libid3tag/0.15.1b
+REQUIRES          += media/flac/1.4.2
+REQUIRES          += media/libvorbis/1.3.7
+REQUIRES          += media/libogg/1.3.5
+REQUIRES          += X11/app/ffmpeg/4.4.4
+REQUIRES          += X11/net/avahi/0.8
+REQUIRES          += app/sqlite/3.39.4.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.3.3
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/m/minidlna/minidlna-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/minidlna-$(version)
+src_dir_name       = minidlna-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xmedia
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+MINIDLNA_PKG_NAME                = minidlna
+MINIDLNA_PKG_VERSION             = 1.3.3
+MINIDLNA_PKG_ARCH                = $(PKGARCH)
+MINIDLNA_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+MINIDLNA_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+MINIDLNA_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+MINIDLNA_PKG_SHORT_DESCRIPTION   = mini DLNA server
+MINIDLNA_PKG_URL                 = $(BUG_URL)
+MINIDLNA_PKG_LICENSE             = GPLv2
+MINIDLNA_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(MINIDLNA_PKG_NAME)-pkg-description
+MINIDLNA_PKG_DESCRIPTION_FILE_IN = $(MINIDLNA_PKG_NAME)-pkg-description.in
+MINIDLNA_PKG_INSTALL_SCRIPT      = $(MINIDLNA_PKG_NAME)-pkg-install.sh
+
+MINIDLNA_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(MINIDLNA_PKG_NAME)-package
+
+pkg_basename     = $(MINIDLNA_PKG_NAME)-$(MINIDLNA_PKG_VERSION)-$(MINIDLNA_PKG_ARCH)-$(MINIDLNA_PKG_DISTRO_NAME)-$(MINIDLNA_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(MINIDLNA_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+
+extra_configure_switches += --disable-rpath
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+extra_configure_switches += --enable-tivo
+extra_configure_switches += --enable-netgear
+extra_configure_switches += --enable-readynas
+extra_configure_switches += --with-db-path=/var/lib/minidlna
+extra_configure_switches += --with-os-name='$(DISTRO_CAPTION)'
+extra_configure_switches += --with-os-version='$(DISTRO_VERSION)'
+extra_configure_switches += --with-os-url='$(BUG_URL)'
+
+
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+endif
+
+
+CFLAGS   += -fcommon -Wno-stringop-truncation
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+
+LDFLAGS += -Wl,-rpath,$(TARGET_BIN_RPATH)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)/linux
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(MINIDLNA_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@mkdir -p $(MINIDLNA_PKG)/etc/rc.d
+	@mkdir -p $(MINIDLNA_PKG)/srv/media/{photo,video}
+	@mkdir -p $(MINIDLNA_PKG)/var/lib/minidlna
+	@cp -a $(CURDIR)/conf/minidlna.conf $(MINIDLNA_PKG)/etc/minidlna.conf.new
+	@cp -a $(CURDIR)/rc.d/rc.minidlna   $(MINIDLNA_PKG)/etc/rc.d/rc.minidlna.new
+	@chmod 0644 $(MINIDLNA_PKG)/etc/rc.d/rc.minidlna.new
+	# ======= Include the manual pages =======
+	@mkdir -p $(MINIDLNA_PKG)/usr/share/man/man{5,8}
+	@cat $(SRC_DIR)/minidlna.conf.5 > $(MINIDLNA_PKG)/usr/share/man/man5/minidlna.conf.5
+	@cat $(SRC_DIR)/minidlnad.8     > $(MINIDLNA_PKG)/usr/share/man/man8/minidlnad.8
+	# ======= Install Documentation =======
+	@if [ -d $(MINIDLNA_PKG)/usr/share/man ]; then \
+	  ( cd $(MINIDLNA_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(MINIDLNA_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(MINIDLNA_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(MINIDLNA_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL README TODO \
+	         $(MINIDLNA_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog -a -s ChangeLog ]; then \
+	     DOCSDIR=`echo $(MINIDLNA_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r NEWS ]; then \
+	     DOCSDIR=`echo $(MINIDLNA_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat NEWS | head -n 1000 > $$DOCSDIR/NEWS ; \
+	     touch -r NEWS $$DOCSDIR/NEWS ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(MINIDLNA_PKG))
+	# ======= Strip binaries =======
+	@( cd $(MINIDLNA_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+ifneq ($(PATCHELF),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(MINIDLNA_PKG)/usr ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(MINIDLNA_PKG_DESCRIPTION_FILE): $(MINIDLNA_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(MINIDLNA_PKG_DESCRIPTION_FILE) $(MINIDLNA_PKG_INSTALL_SCRIPT)
+	@cp $(MINIDLNA_PKG_DESCRIPTION_FILE) $(MINIDLNA_PKG)/.DESCRIPTION
+	@cp $(MINIDLNA_PKG_INSTALL_SCRIPT) $(MINIDLNA_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(MINIDLNA_PKG)/.REQUIRES
+	@echo "pkgname=$(MINIDLNA_PKG_NAME)"                            >  $(MINIDLNA_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(MINIDLNA_PKG_VERSION)"                          >> $(MINIDLNA_PKG)/.PKGINFO ; \
+	 echo "arch=$(MINIDLNA_PKG_ARCH)"                               >> $(MINIDLNA_PKG)/.PKGINFO ; \
+	 echo "distroname=$(MINIDLNA_PKG_DISTRO_NAME)"                  >> $(MINIDLNA_PKG)/.PKGINFO ; \
+	 echo "distrover=$(MINIDLNA_PKG_DISTRO_VERSION)"                >> $(MINIDLNA_PKG)/.PKGINFO ; \
+	 echo "group=$(MINIDLNA_PKG_GROUP)"                             >> $(MINIDLNA_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(MINIDLNA_PKG_SHORT_DESCRIPTION)\"" >> $(MINIDLNA_PKG)/.PKGINFO ; \
+	 echo "url=$(MINIDLNA_PKG_URL)"                                 >> $(MINIDLNA_PKG)/.PKGINFO ; \
+	 echo "license=$(MINIDLNA_PKG_LICENSE)"                         >> $(MINIDLNA_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(MINIDLNA_PKG) && \
+	                  chown -R root:root . && \
+	                  chown -R   241:241        srv/media        && \
+	                  chomod u+rwx,g+rws,o+rx-w srv/media/photo  && \
+	                  chomod u+rwx,g+rws,o+rx-w srv/media/video  && \
+	                  chown -R   241:241        var/lib/minidlna && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 1.3.3/PATCHES
===================================================================
Index: 1.3.3/conf/minidlna.conf
===================================================================
--- 1.3.3/conf/minidlna.conf	(nonexistent)
+++ 1.3.3/conf/minidlna.conf	(revision 357)
@@ -0,0 +1,91 @@
+# port for HTTP (descriptions, SOAP, media transfer) traffic
+port=8200
+
+# network interfaces to serve, comma delimited
+#network_interface=eth0
+
+# specify the user account name or uid to run as
+user=minidlna
+
+# set this to the directory you want scanned.
+# * if you want multiple directories, you can have multiple media_dir= lines
+# * if you want to restrict a media_dir to specific content types, you
+#   can prepend the types, followed by a comma, to the directory:
+#   + "A" for audio  (eg. media_dir=A,/home/jmaggard/Music)
+#   + "V" for video  (eg. media_dir=V,/home/jmaggard/Videos)
+#   + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
+#   + "PV" for pictures and video (eg. media_dir=PV,/home/jmaggard/digital_camera)
+media_dir=P,/srv/media/photo
+media_dir=V,/srv/media/video
+
+# set this to merge all media_dir base contents into the root container
+# note: the default is no
+#merge_media_dirs=no
+
+# set this if you want to customize the name that shows up on your clients
+friendly_name=RcL DLNA Server
+
+# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
+db_dir=/var/lib/minidlna
+
+# set this if you would like to specify the directory where you want MiniDLNA to store its log file
+log_dir=/var/log
+
+# set this to change the verbosity of the information that is logged
+# each section can use a different level: off, fatal, error, warn, info, or debug
+#log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn
+
+# this should be a list of file names to check for when searching for album art
+# note: names should be delimited with a forward slash ("/")
+album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg
+
+# set this to no to disable inotify monitoring to automatically discover new files
+# note: the default is yes
+inotify=yes
+
+# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
+enable_tivo=no
+
+# set this to beacon to use legacy broadcast discovery method
+# defauts to bonjour if avahi is available
+tivo_discovery=bonjour
+
+# set this to strictly adhere to DLNA standards.
+# * This will allow server-side downscaling of very large JPEG images,
+#   which may hurt JPEG serving performance on (at least) Sony DLNA products.
+strict_dlna=no
+
+# default presentation url is http address on port 80
+#presentation_url=http://www.mylan/index.php
+
+# notify interval in seconds. default is 895 seconds.
+notify_interval=900
+
+# serial and model number the daemon will report to clients
+# in its XML description
+serial=12345678
+model_number=1
+
+# specify the path to the MiniSSDPd socket
+#minissdpdsocket=/var/run/minissdpd.sock
+
+# use different container as root of the tree
+# possible values:
+#   + "." - use standard container (this is the default)
+#   + "B" - "Browse Directory"
+#   + "M" - "Music"
+#   + "V" - "Video"
+#   + "P" - "Pictures"
+#   + Or, you can specify the ObjectID of your desired root container (eg. 1$F for Music/Playlists)
+# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
+#root_container=.
+
+# always force SortCriteria to this value, regardless of the SortCriteria passed by the client
+#force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title
+
+# maximum number of simultaneous connections
+# note: many clients open several simultaneous connections while streaming
+#max_connections=50
+
+# set this to yes to allow symlinks that point outside user-defined media_dirs.
+#wide_links=no
Index: 1.3.3/minidlna-pkg-description.in
===================================================================
--- 1.3.3/minidlna-pkg-description.in	(nonexistent)
+++ 1.3.3/minidlna-pkg-description.in	(revision 357)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+        |-----handy-ruler------------------------------------------------------|
+minidlna: minidlna @VERSION@ (mini DLNA server)
+minidlna:
+minidlna: MiniDLNA (aka ReadyDLNA) is server software with the aim of being
+minidlna: fully compliant with DLNA/UPnP-AV clients.
+minidlna:
+minidlna:
+minidlna:
+minidlna: Homepage: https://minidlna.sourceforge.net/
+minidlna:
+minidlna:
+minidlna:
Index: 1.3.3/minidlna-pkg-install.sh
===================================================================
--- 1.3.3/minidlna-pkg-install.sh	(nonexistent)
+++ 1.3.3/minidlna-pkg-install.sh	(revision 357)
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  install_file etc/minidlna.conf.new
+  install_file etc/rc.d/rc.minidlna.new
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: 1.3.3/minidlna-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: 1.3.3/rc.d/rc.minidlna
===================================================================
--- 1.3.3/rc.d/rc.minidlna	(nonexistent)
+++ 1.3.3/rc.d/rc.minidlna	(revision 357)
@@ -0,0 +1,73 @@
+#!/bin/sh
+
+PIDDIR=/var/run/minidlna/
+PIDFILE=/var/run/minidlna/minidlna.pid
+CONFIG=/etc/minidlna.conf
+USER=minidlna
+GROUP=minidlna
+
+OPTIONS="-r -R"
+
+minidlna_start()
+{
+  echo -n "Starting minidlna ... "
+  if ! [ -e "${PIDDIR}" ]; then
+    mkdir -p "${PIDDIR}"
+    chown ${USER}:${GROUP} ${PIDDIR}
+  fi
+  if [ -e "${PIDFILE}" ]; then
+    echo "already running!"
+  else
+    /usr/sbin/minidlnad \
+        -u ${USER} \
+        -P ${PIDFILE} \
+        -f ${CONFIG} \
+        ${OPTIONS}
+    echo "done!"
+  fi
+}
+
+minidlna_stop()
+{
+  echo -n "Stopping minidlna ... "
+  if [ -e "${PIDFILE}" ]; then
+    kill -TERM $(cat ${PIDFILE}) > /dev/null 2>&1
+    echo "done!"
+    rm -f "${PIDFILE}"
+  else
+    echo "not running!"
+  fi
+}
+
+minidlna_restart()
+{
+  minidlna_stop
+  sleep 1
+  minidlna_start
+}
+
+minidlna_status()
+{
+  if [ -e "${PIDFILE}" ]; then
+    echo "minidlna is running!"
+  else
+    echo "minidlna is not running!"
+  fi
+}
+
+case "$1" in
+  'start')
+    minidlna_start
+    ;;
+  'stop')
+    minidlna_stop
+    ;;
+  'status')
+    minidlna_status
+    ;;
+  'restart')
+    minidlna_restart
+    ;;
+  *)
+    echo "usage $0 start|stop|restart|status"
+esac
Index: 1.3.3
===================================================================
--- 1.3.3	(nonexistent)
+++ 1.3.3	(revision 357)

Property changes on: 1.3.3
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,74 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.rk358x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~