mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
audio/mt-daapd: Moved from multimedia
This commit is contained in:
parent
5d0a20d58b
commit
9f10e0c378
8 changed files with 46 additions and 33 deletions
|
@ -9,13 +9,13 @@ This file should be edited before the daemon is run.
|
|||
An init script has been included for the daemon; to run at boot time, add the
|
||||
following to /etc/rc.d/rc.local:
|
||||
|
||||
if [ -x /etc/rc.d/rc.mt-daapd ]; then
|
||||
/etc/rc.d/rc.mt-daapd start
|
||||
fi
|
||||
if [ -x /etc/rc.d/rc.mt-daapd ]; then
|
||||
/etc/rc.d/rc.mt-daapd start
|
||||
fi
|
||||
|
||||
You might also want to have the daemon shut down gracefully on system halt or
|
||||
reboot; if so, add the following to /etc/rc.d/rc.local_shutdown:
|
||||
|
||||
if [ -x /etc/rc.d/rc.mt-daapd ]; then
|
||||
/etc/rc.d/rc.mt-daapd stop
|
||||
fi
|
||||
if [ -x /etc/rc.d/rc.mt-daapd ]; then
|
||||
/etc/rc.d/rc.mt-daapd stop
|
||||
fi
|
24
audio/mt-daapd/doinst.sh
Normal file
24
audio/mt-daapd/doinst.sh
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config 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...
|
||||
}
|
||||
|
||||
# Keep same perms on rc.mt-daapd.new:
|
||||
if [ -e etc/rc.d/rc.mt-daapd ]; then
|
||||
cp -a etc/rc.d/rc.mt-daapd etc/rc.d/rc.hald.new.incoming
|
||||
cat etc/rc.d/rc.mt-daapd.new > etc/rc.d/rc.hald.new.incoming
|
||||
mv etc/rc.d/rc.mt-daapd.new.incoming etc/rc.d/rc.hald.new
|
||||
fi
|
||||
|
||||
config etc/rc.d/rc.mt-daapd.new
|
||||
config etc/mt-daapd.conf.new
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for mt-daapd
|
||||
|
||||
# Copyright 2006 Andrew Brouwers <abrouwers@gmail.com>
|
||||
# Copyright 2008 Andrew Brouwers <abrouwers@gmail.com>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -25,10 +25,11 @@
|
|||
# Modified by the SlackBuilds.org project
|
||||
|
||||
PRGNAM=mt-daapd
|
||||
VERSION=0.2.4
|
||||
VERSION=0.2.4.2
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
|
@ -38,13 +39,15 @@ if [ "$ARCH" = "i486" ]; then
|
|||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP || exit 1
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar -zxvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
|
||||
cd $PRGNAM-$VERSION || exit 1
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
@ -53,6 +56,7 @@ CFLAGS="$SLKCFLAGS" \
|
|||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--build=$ARCH-slackware-linux \
|
||||
|| exit 1
|
||||
|
||||
make || exit 1
|
||||
|
@ -62,7 +66,7 @@ make install-strip DESTDIR=$PKG || exit 1
|
|||
install -D -m 0755 $CWD/rc.mt-daapd $PKG/etc/rc.d/rc.mt-daapd.new || exit 1
|
||||
|
||||
# Config file - default is good, but don't overwrite an existing one
|
||||
install -D -m 0644 contrib/mt-daapd.conf $PKG/etc/mt-daapd.conf.new || exit 1
|
||||
install -D -m 0644 contrib/mt-daapd.conf $PKG/etc/mt-daapd.conf.new || exit 1
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS COPYING CREDITS ChangeLog INSTALL NEWS README TODO \
|
8
audio/mt-daapd/mt-daapd.info
Normal file
8
audio/mt-daapd/mt-daapd.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="mt-daapd"
|
||||
VERSION="0.2.4.2"
|
||||
HOMEPAGE="http://mt-daapd.org"
|
||||
DOWNLOAD="http://dl.sourceforge.net/mt-daapd/mt-daapd-0.2.4.2.tar.gz"
|
||||
MD5SUM="67bef9fb14d487693b0dfb792c3f1b05"
|
||||
MAINTAINER="Andrew Brouwers"
|
||||
EMAIL="abrouwers@gmail.com"
|
||||
APPROVED="rworkman"
|
|
@ -1,15 +0,0 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="`dirname $NEW`/`basename $NEW .new`"
|
||||
# If there's no config 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...
|
||||
}
|
||||
|
||||
config etc/rc.d/rc.mt-daapd.new
|
||||
config etc/mt-daapd.conf.new
|
|
@ -1,8 +0,0 @@
|
|||
PRGNAM="mt-daapd"
|
||||
VERSION="0.2.4"
|
||||
HOMEPAGE="http://mt-daapd.org"
|
||||
DOWNLOAD="http://dl.sourceforge.net/mt-daapd/mt-daapd-0.2.4.tar.gz"
|
||||
MD5SUM="2e1cdbe6b94ef153e915806f80a28dca"
|
||||
MAINTAINER="Andrew Brouwers"
|
||||
EMAIL="abrouwers@gmail.com"
|
||||
APPROVED="rworkman"
|
Loading…
Reference in a new issue