On Mon, Sep 13, 2010 at 10:39:02PM +0200, Markus Bergkvist wrote: > > On 09/10/10 13:43, Edd Barrett wrote: > >>Here is an updated (unfinished) port. There is a bug in mediatomb where it > >>ignores -c. I don't have any more time to look at this now, so a I am > >>posting my > >>work thus far. This port creates a new user and prints a installation > >>message > >>suitible for rc.local. > > > >No bug - forgot to quote su -c "...". > > > >Try this.. attached. > > > > * picks up system-wide config > > * puts database in /var/db/mediatomb > > > > It still ignores any signals. Might this be related? > http://marc.info/?l=openbsd-tech&m=128398746609607&w=2 > > Will this remove the database on pkg_add -u too? > @extraunexec rm -rf /var/db/mediatomb/* > > $ diff -u Makefile.orig Makefile > > > --- Makefile.orig Mon Sep 13 22:15:54 2010 > +++ Makefile Mon Sep 13 22:16:04 2010 > @@ -25,7 +25,6 @@ > LIB_DEPENDS = ::graphics/ffmpegthumbnailer \ > ::net/curl \ > ::graphics/libexif \ > - ::graphics/ffmpegthumbnailer \ > ::lang/spidermonkey \ > ::devel/libmagic \ > ::databases/sqlite3 \ > > $ diff -u pkg/MESSAGE.orig pkg/MESSAGE > > > --- pkg/MESSAGE.orig Fri Sep 10 13:32:53 2010 > +++ pkg/MESSAGE Mon Sep 13 22:11:17 2010 > @@ -1,4 +1,4 @@ > -To start mediatomb at boot time, place the following in rc.local: > +To start mediatomb at boot time, place the following in /etc/rc.local: > > if [ -x ${TRUEPREFIX}/bin/mediatomb ] ; then > echo -n ' mediatomb'
Please use ${SYSCONFDIR} instead of hardcoding /etc. -- Stay Hungry. Stay Foolish.