From 52fbfb8c46c1383f9aef0745fa7bd14ce8e2af40 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 18 Jan 2009 17:41:15 +0100 Subject: [PATCH] Add mediatomb as addon Add taglib Add sqlite3 --- config/backup/includes/mediatomb | 1 + config/mediatomb/config.xml | 103 ++++++++++++++++++++++++++++ config/rootfiles/cdrom_corever | 2 +- config/rootfiles/packages/mediatomb | 102 +++++++++++++++++++++++++++ config/rootfiles/packages/sqlite | 9 +++ config/rootfiles/packages/taglib | 69 +++++++++++++++++++ lfs/initscripts | 3 + lfs/mediatomb | 88 ++++++++++++++++++++++++ lfs/sqlite | 84 +++++++++++++++++++++++ lfs/taglib | 83 ++++++++++++++++++++++ make.sh | 3 + src/initscripts/init.d/mediatomb | 53 ++++++++++++++ src/paks/mediatomb/install.sh | 27 ++++++++ src/paks/mediatomb/uninstall.sh | 27 ++++++++ src/paks/mediatomb/update.sh | 26 +++++++ 15 files changed, 679 insertions(+), 1 deletion(-) create mode 100644 config/backup/includes/mediatomb create mode 100644 config/mediatomb/config.xml create mode 100644 config/rootfiles/packages/mediatomb create mode 100644 config/rootfiles/packages/sqlite create mode 100644 config/rootfiles/packages/taglib create mode 100644 lfs/mediatomb create mode 100644 lfs/sqlite create mode 100644 lfs/taglib create mode 100644 src/initscripts/init.d/mediatomb create mode 100644 src/paks/mediatomb/install.sh create mode 100644 src/paks/mediatomb/uninstall.sh create mode 100644 src/paks/mediatomb/update.sh diff --git a/config/backup/includes/mediatomb b/config/backup/includes/mediatomb new file mode 100644 index 0000000000..87b6a588af --- /dev/null +++ b/config/backup/includes/mediatomb @@ -0,0 +1 @@ +/var/ipfire/mediatomb diff --git a/config/mediatomb/config.xml b/config/mediatomb/config.xml new file mode 100644 index 0000000000..28bf17b9b2 --- /dev/null +++ b/config/mediatomb/config.xml @@ -0,0 +1,103 @@ + + + + + + + + + MediaTomb + /var/ipfire/mediatomb + /usr/share/mediatomb/web + + + mediatomb.db + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + audio/L16 + no + yes + no + + + + + video/mpeg + yes + yes + yes + + + + + + \ No newline at end of file diff --git a/config/rootfiles/cdrom_corever b/config/rootfiles/cdrom_corever index 409940768f..7273c0fa8c 100644 --- a/config/rootfiles/cdrom_corever +++ b/config/rootfiles/cdrom_corever @@ -1 +1 @@ -23 +25 diff --git a/config/rootfiles/packages/mediatomb b/config/rootfiles/packages/mediatomb new file mode 100644 index 0000000000..409aac14cd --- /dev/null +++ b/config/rootfiles/packages/mediatomb @@ -0,0 +1,102 @@ +usr/bin/mediatomb +#usr/share/man/man1/mediatomb.1 +#usr/share/mediatomb +#usr/share/mediatomb/js +usr/share/mediatomb/js/common.js +usr/share/mediatomb/js/import.js +usr/share/mediatomb/js/playlists.js +usr/share/mediatomb/mappings.xml +usr/share/mediatomb/mysql.sql +usr/share/mediatomb/sqlite3.sql +#usr/share/mediatomb/web +usr/share/mediatomb/web/cds.xml +usr/share/mediatomb/web/cm.xml +usr/share/mediatomb/web/disabled.html +usr/share/mediatomb/web/favicon.ico +#usr/share/mediatomb/web/icons +usr/share/mediatomb/web/icons/add_as_autoscan.png +usr/share/mediatomb/web/icons/autoscan_inotify_config_folder_open.png +usr/share/mediatomb/web/icons/autoscan_inotify_folder_open.png +usr/share/mediatomb/web/icons/autoscan_timed_config_folder_open.png +usr/share/mediatomb/web/icons/autoscan_timed_folder_open.png +usr/share/mediatomb/web/icons/blank.gif +usr/share/mediatomb/web/icons/blank.png +usr/share/mediatomb/web/icons/document-new.png +usr/share/mediatomb/web/icons/film.png +usr/share/mediatomb/web/icons/folder_new.png +usr/share/mediatomb/web/icons/folder_open.png +usr/share/mediatomb/web/icons/go-first.png +usr/share/mediatomb/web/icons/go-last.png +usr/share/mediatomb/web/icons/go-next.png +usr/share/mediatomb/web/icons/go-previous.png +usr/share/mediatomb/web/icons/mediatomb.png +usr/share/mediatomb/web/icons/mt-icon120.bmp +usr/share/mediatomb/web/icons/mt-icon120.jpg +usr/share/mediatomb/web/icons/mt-icon120.png +usr/share/mediatomb/web/icons/mt-icon32.bmp +usr/share/mediatomb/web/icons/mt-icon32.jpg +usr/share/mediatomb/web/icons/mt-icon32.png +usr/share/mediatomb/web/icons/mt-icon48.bmp +usr/share/mediatomb/web/icons/mt-icon48.jpg +usr/share/mediatomb/web/icons/mt-icon48.png +#usr/share/mediatomb/web/icons/nanotree +#usr/share/mediatomb/web/icons/nanotree/images +usr/share/mediatomb/web/icons/nanotree/images/autoscan_inotify_config_folder_closed.png +usr/share/mediatomb/web/icons/nanotree/images/autoscan_inotify_config_folder_open.png +usr/share/mediatomb/web/icons/nanotree/images/autoscan_inotify_folder_closed.png +usr/share/mediatomb/web/icons/nanotree/images/autoscan_inotify_folder_open.png +usr/share/mediatomb/web/icons/nanotree/images/autoscan_timed_config_folder_closed.png +usr/share/mediatomb/web/icons/nanotree/images/autoscan_timed_config_folder_open.png +usr/share/mediatomb/web/icons/nanotree/images/autoscan_timed_folder_closed.png +usr/share/mediatomb/web/icons/nanotree/images/autoscan_timed_folder_open.png +usr/share/mediatomb/web/icons/nanotree/images/folder_closed.png +usr/share/mediatomb/web/icons/nanotree/images/folder_open.png +usr/share/mediatomb/web/icons/nanotree/images/lastnode.png +usr/share/mediatomb/web/icons/nanotree/images/line.png +usr/share/mediatomb/web/icons/nanotree/images/minus.png +usr/share/mediatomb/web/icons/nanotree/images/minus_last.png +usr/share/mediatomb/web/icons/nanotree/images/minus_last_no_root.png +usr/share/mediatomb/web/icons/nanotree/images/minus_no_root.png +usr/share/mediatomb/web/icons/nanotree/images/plus.png +usr/share/mediatomb/web/icons/nanotree/images/plus_last.png +usr/share/mediatomb/web/icons/nanotree/images/plus_last_no_root.png +usr/share/mediatomb/web/icons/nanotree/images/plus_no_root.png +usr/share/mediatomb/web/icons/nanotree/images/t.png +usr/share/mediatomb/web/icons/nanotree/images/t_no_root.png +usr/share/mediatomb/web/icons/nanotree/images/white.png +usr/share/mediatomb/web/icons/remove_all.png +usr/share/mediatomb/web/icons/remove_autoscan.png +usr/share/mediatomb/web/icons/remove_this.png +usr/share/mediatomb/web/icons/status.png +usr/share/mediatomb/web/icons/status_loading.png +usr/share/mediatomb/web/icons/status_updates_pending.png +usr/share/mediatomb/web/icons/stock-add.png +usr/share/mediatomb/web/icons/stock_edit.png +usr/share/mediatomb/web/icons/stock_exit.png +usr/share/mediatomb/web/index.html +#usr/share/mediatomb/web/js +usr/share/mediatomb/web/js/auth.js +usr/share/mediatomb/web/js/autoscan.js +usr/share/mediatomb/web/js/icons.js +usr/share/mediatomb/web/js/iepngfix.htc +usr/share/mediatomb/web/js/items.js +usr/share/mediatomb/web/js/md5.js +usr/share/mediatomb/web/js/nanotree.js +usr/share/mediatomb/web/js/prototype.js +usr/share/mediatomb/web/js/tasks.js +usr/share/mediatomb/web/js/tools.js +usr/share/mediatomb/web/js/tree.js +usr/share/mediatomb/web/left.html +usr/share/mediatomb/web/main.css +usr/share/mediatomb/web/mr_reg.xml +usr/share/mediatomb/web/right.html +usr/share/mediatomb/web/std_treelook.css +usr/share/mediatomb/web/top.html +usr/share/mediatomb/web/topleft.html +usr/share/mediatomb/web/topright.html +var/ipfire/mediatomb +var/ipfire/backup/addons/includes/mediatomb +etc/rc.d/init.d/mediatomb +etc/rc.d/rc0.d/K02mediatomb +etc/rc.d/rc6.d/K02mediatomb +etc/rc.d/rc3.d/K98mediatomb diff --git a/config/rootfiles/packages/sqlite b/config/rootfiles/packages/sqlite new file mode 100644 index 0000000000..e483864b5a --- /dev/null +++ b/config/rootfiles/packages/sqlite @@ -0,0 +1,9 @@ +usr/bin/sqlite3 +#usr/include/sqlite3.h +#usr/include/sqlite3ext.h +#usr/lib/libsqlite3.a +#usr/lib/libsqlite3.la +usr/lib/libsqlite3.so +usr/lib/libsqlite3.so.0 +usr/lib/libsqlite3.so.0.8.6 +#usr/lib/pkgconfig/sqlite3.pc diff --git a/config/rootfiles/packages/taglib b/config/rootfiles/packages/taglib new file mode 100644 index 0000000000..2cfe29b515 --- /dev/null +++ b/config/rootfiles/packages/taglib @@ -0,0 +1,69 @@ +usr/bin/taglib-config +#usr/include/taglib +#usr/include/taglib/apefooter.h +#usr/include/taglib/apeitem.h +#usr/include/taglib/apetag.h +#usr/include/taglib/attachedpictureframe.h +#usr/include/taglib/audioproperties.h +#usr/include/taglib/commentsframe.h +#usr/include/taglib/fileref.h +#usr/include/taglib/flacfile.h +#usr/include/taglib/flacproperties.h +#usr/include/taglib/generalencapsulatedobjectframe.h +#usr/include/taglib/id3v1genres.h +#usr/include/taglib/id3v1tag.h +#usr/include/taglib/id3v2extendedheader.h +#usr/include/taglib/id3v2footer.h +#usr/include/taglib/id3v2frame.h +#usr/include/taglib/id3v2framefactory.h +#usr/include/taglib/id3v2header.h +#usr/include/taglib/id3v2synchdata.h +#usr/include/taglib/id3v2tag.h +#usr/include/taglib/mpcfile.h +#usr/include/taglib/mpcproperties.h +#usr/include/taglib/mpegfile.h +#usr/include/taglib/mpegheader.h +#usr/include/taglib/mpegproperties.h +#usr/include/taglib/oggfile.h +#usr/include/taglib/oggflacfile.h +#usr/include/taglib/oggpage.h +#usr/include/taglib/oggpageheader.h +#usr/include/taglib/relativevolumeframe.h +#usr/include/taglib/speexfile.h +#usr/include/taglib/speexproperties.h +#usr/include/taglib/tag.h +#usr/include/taglib/tag_c.h +#usr/include/taglib/taglib.h +#usr/include/taglib/taglib_export.h +#usr/include/taglib/tbytevector.h +#usr/include/taglib/tbytevectorlist.h +#usr/include/taglib/textidentificationframe.h +#usr/include/taglib/tfile.h +#usr/include/taglib/tlist.h +#usr/include/taglib/tlist.tcc +#usr/include/taglib/tmap.h +#usr/include/taglib/tmap.tcc +#usr/include/taglib/trueaudiofile.h +#usr/include/taglib/trueaudioproperties.h +#usr/include/taglib/tstring.h +#usr/include/taglib/tstringlist.h +#usr/include/taglib/uniquefileidentifierframe.h +#usr/include/taglib/unknownframe.h +#usr/include/taglib/unsynchronizedlyricsframe.h +#usr/include/taglib/urllinkframe.h +#usr/include/taglib/vorbisfile.h +#usr/include/taglib/vorbisproperties.h +#usr/include/taglib/wavpackfile.h +#usr/include/taglib/wavpackproperties.h +#usr/include/taglib/xingheader.h +#usr/include/taglib/xiphcomment.h +#usr/lib/libtag.la +usr/lib/libtag.so +usr/lib/libtag.so.1 +usr/lib/libtag.so.1.5.0 +#usr/lib/libtag_c.la +usr/lib/libtag_c.so +usr/lib/libtag_c.so.0 +usr/lib/libtag_c.so.0.0.0 +#usr/lib/pkgconfig/taglib.pc +#usr/lib/pkgconfig/taglib_c.pc diff --git a/lfs/initscripts b/lfs/initscripts index 5d0f754061..bceea2c4e2 100644 --- a/lfs/initscripts +++ b/lfs/initscripts @@ -135,6 +135,9 @@ $(TARGET) : ln -sf ../init.d/ushare /etc/rc.d/rc3.d/S98ushare ln -sf ../init.d/ushare /etc/rc.d/rc0.d/K02ushare ln -sf ../init.d/ushare /etc/rc.d/rc6.d/K02ushare + ln -sf ../init.d/mediatomb /etc/rc.d/rc3.d/S98mediatomb + ln -sf ../init.d/mediatomb /etc/rc.d/rc0.d/K02mediatomb + ln -sf ../init.d/mediatomb /etc/rc.d/rc6.d/K02mediatomb ln -sf ../init.d/mountkernfs /etc/rc.d/rcsysinit.d/S00mountkernfs ln -sf ../init.d/modules /etc/rc.d/rcsysinit.d/S05modules diff --git a/lfs/mediatomb b/lfs/mediatomb new file mode 100644 index 0000000000..6901211c2c --- /dev/null +++ b/lfs/mediatomb @@ -0,0 +1,88 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# # +# 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 # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 0.11.0 + +THISAPP = mediatomb-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = mediatomb +PAK_VER = 1 + +DEPS = "sqlite taglib" + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 661f08933830d920de21436fe122fb15 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && ./configure --prefix=/usr + cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) + cd $(DIR_APP) && make install + cp -Rvd $(DIR_SRC)/config/mediatomb /var/ipfire + cmown -R nobody:nobody /var/ipfire/mediatomb + install -v -m 644 $(DIR_SRC)/config/backup/includes/mediatomb \ + /var/ipfire/backup/addons/includes/mediatomb + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/lfs/sqlite b/lfs/sqlite new file mode 100644 index 0000000000..2e56feb589 --- /dev/null +++ b/lfs/sqlite @@ -0,0 +1,84 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# # +# 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 # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 3.6.10 + +THISAPP = sqlite-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = sqlite +PAK_VER = 1 + +DEPS = "" + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = a03bdc86df4025b6881d58557e4b5bd3 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +dist: + @$(PAK) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && ./configure --prefix=/usr + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/lfs/taglib b/lfs/taglib new file mode 100644 index 0000000000..eec6e97e90 --- /dev/null +++ b/lfs/taglib @@ -0,0 +1,83 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# # +# 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 # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 1.5 + +THISAPP = taglib-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = taglib +PAK_VER = 1 + +DEPS = "" + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 7b557dde7425c6deb7bbedd65b4f2717 +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && ./configure --prefix=/usr --enable-shared + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index d8327c3fbd..5efdee7ae8 100755 --- a/make.sh +++ b/make.sh @@ -587,6 +587,9 @@ buildipfire() { ipfiremake sshfs ipfiremake libdlna ipfiremake ushare + ipfiremake sqlite + ipfiremake taglib + ipfiremake mediatomb echo Build on $HOSTNAME > $BASEDIR/build/var/ipfire/firebuild cat /proc/version >> $BASEDIR/build/var/ipfire/firebuild echo >> $BASEDIR/build/var/ipfire/firebuild diff --git a/src/initscripts/init.d/mediatomb b/src/initscripts/init.d/mediatomb new file mode 100644 index 0000000000..634e0db0cb --- /dev/null +++ b/src/initscripts/init.d/mediatomb @@ -0,0 +1,53 @@ +#!/bin/sh +######################################################################## +# Begin $rc_base/init.d/ +# +# Description : mediatomb initscript +# +# Authors : Arne Fitzenreiter +# +# Version : 01.00 +# +# Notes : for www.ipfire.org - GPLv3 +# +######################################################################## + +. /etc/sysconfig/rc +. ${rc_functions} + +case "$1" in + start) + boot_mesg "Starting mediatomb uPnP Mediaserver..." + route add -net 239.0.0.0 netmask 255.0.0.0 green0 + loadproc /usr/bin/mediatomb -u nobody -g nobody \ + -c /var/ipfire/mediatomb/config.xml \ + -l /var/log/mediatomb.log \ + -e green0 $2 $3 $4 $5 $6 $7 -d + evaluate_retval + ;; + + + stop) + boot_mesg "Stopping mediatomb uPnP Mediaserver..." + killproc /usr/bin/mediatomb + evaluate_retval + route del -net 239.0.0.0 netmask 255.0.0.0 green0 + ;; + + restart) + ${0} stop + sleep 1 + ${0} start + + ;; + status) + statusproc /usr/bin/mediatomb + ;; + + *) + echo "Usage: ${0} {start|stop|init|status}" + exit 1 + ;; +esac + +# End $rc_base/init.d/ diff --git a/src/paks/mediatomb/install.sh b/src/paks/mediatomb/install.sh new file mode 100644 index 0000000000..5c558d9ba4 --- /dev/null +++ b/src/paks/mediatomb/install.sh @@ -0,0 +1,27 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team . # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +extract_files +restore_backup ${NAME} +/etc/init.d/mediatomb start -a /var/mp3 diff --git a/src/paks/mediatomb/uninstall.sh b/src/paks/mediatomb/uninstall.sh new file mode 100644 index 0000000000..a7b8a5370f --- /dev/null +++ b/src/paks/mediatomb/uninstall.sh @@ -0,0 +1,27 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team . # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +stop_service ${NAME} +make_backup ${NAME} +remove_files diff --git a/src/paks/mediatomb/update.sh b/src/paks/mediatomb/update.sh new file mode 100644 index 0000000000..89c40d0d7c --- /dev/null +++ b/src/paks/mediatomb/update.sh @@ -0,0 +1,26 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team . # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +./uninstall.sh +./install.sh -- 2.39.2