system/motion: Updated for version 3.2.11.1

This commit is contained in:
Pierre Cazenave 2010-05-13 00:41:01 +02:00 committed by Erik Hanson
parent 5baee68c8f
commit 716aef8e73
5 changed files with 33 additions and 42 deletions

View file

@ -9,4 +9,8 @@ configuration files.
Optional dependencies are ffmpeg and postgresql.
Once installed, please be sure to read /usr/doc/motion-3.2.11/README for
any configuration help.
any configuration help. You will need to rename /etc/motion-dist.conf to
/etc/motion.conf once you have made the changes you deem necessary.
This build has not been tested with the optional postgresql included, but
you're welcome to give it a go!

View file

@ -1,13 +0,0 @@
Index: motion-3.2.11/ffmpeg.c
===================================================================
--- motion-3.2.11.orig/ffmpeg.c
+++ motion-3.2.11/ffmpeg.c
@@ -164,7 +164,7 @@ static int file_write(URLContext *h, uns
return write(fd, buf, size);
}
-static offset_t file_seek(URLContext *h, offset_t pos, int whence)
+static int64_t file_seek(URLContext *h, int64_t pos, int whence)
{
int fd = (size_t)h->priv_data;
return lseek(fd, pos, whence);

View file

@ -3,6 +3,7 @@
# Slackware build script for motion
# Copyright 2007 Martin Lefebvre <dadexter@sekurity.com>
# Copyright 2009 Pierre Cazenave <pwcazenave> {at} gmail [dot] com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=motion
VERSION=3.2.11
VERSION=3.2.11.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -34,11 +35,11 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
SLKCFLAGS="-O2 -fPIC"
fi
set -e
@ -51,34 +52,31 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Patch to support newer ffmpeg-versions
patch -p1 -i $CWD/$PRGNAM-3.2.11-offsett.patch
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/man \
--localstatedir=/var \
--build=$ARCH-slackware-linux \
--host=$ARCH-slackware-linux
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/man \
--localstatedir=/var \
--build=$ARCH-slackware-linux \
--host=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Let's not clobber the config file
mv $PKG/etc/motion-dist.conf $PKG/etc/motion-dist.conf.new
@ -93,4 +91,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -1,8 +1,10 @@
PRGNAM="motion"
VERSION="3.2.11"
VERSION="3.2.11.1"
HOMEPAGE="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome"
DOWNLOAD="http://downloads.sourceforge.net/motion/motion-3.2.11.tar.gz"
MD5SUM="3a26c00f3250eacf6fa93c7a7e0249d9"
MAINTAINER="Martin Lefebvre"
EMAIL="dadexter@sekurity.com"
APPROVED="dsomero"
DOWNLOAD="http://sourceforge.net/projects/motion/files/motion%20-%203.2/motion-3.2.11.1.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="4e729f129d8f9b9abaed5121c3cd0037"
MD5SUM_x86_64=""
MAINTAINER="Pierre Cazenave"
EMAIL="pwcazenave <at> gmail {dot} com>"
APPROVED="Erik Hanson"

View file

@ -16,4 +16,4 @@ motion: Motion is a command line based tool. It has no graphical user
motion: interface. Everything is setup via the command line or via a set
motion: of configuration files.
motion:
motion:
motion: http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome