summaryrefslogtreecommitdiff
path: root/source/a/mcelog
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/mcelog')
-rw-r--r--source/a/mcelog/mcelog-1.0pre3.tar.bz2.sign8
-rwxr-xr-xsource/a/mcelog/mcelog.SlackBuild32
2 files changed, 16 insertions, 24 deletions
diff --git a/source/a/mcelog/mcelog-1.0pre3.tar.bz2.sign b/source/a/mcelog/mcelog-1.0pre3.tar.bz2.sign
deleted file mode 100644
index 1f9c73a4..00000000
--- a/source/a/mcelog/mcelog-1.0pre3.tar.bz2.sign
+++ /dev/null
@@ -1,8 +0,0 @@
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.9 (GNU/Linux)
-Comment: See http://www.kernel.org/signature.html for info
-
-iD8DBQBLV9g/yGugalF9Dw4RAlheAJ4t2DqUZX1ySR3QH8RdVHLYyePHawCcC/Ct
-N94+oQu1HHumOx0V6Ft+2Fo=
-=eEE6
------END PGP SIGNATURE-----
diff --git a/source/a/mcelog/mcelog.SlackBuild b/source/a/mcelog/mcelog.SlackBuild
index 0a461cd8..1f5e1d7b 100755
--- a/source/a/mcelog/mcelog.SlackBuild
+++ b/source/a/mcelog/mcelog.SlackBuild
@@ -23,13 +23,13 @@
PKGNAM=mcelog
-VERSION=${VERSION:-$(echo $PKGNAM-*.tar.bz2 | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
+VERSION=${VERSION:-$(echo $PKGNAM-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
+ i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;;
@@ -47,11 +47,9 @@ mkdir -p $TMP $PKG
cd $TMP
rm -rf $PKGNAM-$VERSION
-tar xvf $CWD/$PKGNAM-$VERSION.tar.bz2 || exit 1
+tar xvf $CWD/$PKGNAM-$VERSION.tar.xz || exit 1
cd $PKGNAM-$VERSION
-zcat $CWD/mcelog.init.diff.gz | patch -p1 --verbose || exit 1
-
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -59,23 +57,25 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-make $NUMJOBS || make || exit 1
+zcat $CWD/mcelog.init.diff.gz | patch -p1 --verbose || exit 1
-mkdir -p $PKG/etc/mcelog $PKG/usr/sbin $PKG/usr/man/man8
-install -m 755 -p mcelog $PKG/usr/sbin/mcelog
-install -m 644 -p mcelog.8 $PKG/usr/man/man8
-gzip -9 $PKG/usr/man/man8/mcelog.8
-install -m 644 -p -b mcelog.conf $PKG/etc/mcelog/mcelog.conf.new
-for i in cache-error-trigger dimm-error-trigger page-error-trigger socket-memory-error-trigger ; do
- install -m 755 -p -b triggers/$i $PKG/etc/mcelog
-done
+make $NUMJOBS DOCDIR=/usr/doc/mcelog-$VERSION MANDIR=/usr/man \
+ || make DOCDIR=/usr/doc/mcelog-$VERSION MANDIR=/usr/man \
+ || exit 1
-mkdir -p $PKG/etc/rc.d
-install -m 755 -p mcelog.init $PKG/etc/rc.d/rc.mcelog.new
+make install DOCDIR=/usr/doc/mcelog-$VERSION MANDIR=/usr/man DESTDIR=$PKG
+
+mv $PKG/etc/mcelog/mcelog.conf $PKG/etc/mcelog/mcelog.conf.new
+rm -f $PKG/etc/mcelog/*~
mkdir -p $PKG/etc/logrotate.d
install -m 644 -p mcelog.logrotate $PKG/etc/logrotate.d/mcelog.new
+mkdir -p $PKG/etc/rc.d
+install -m 755 -p mcelog.init $PKG/etc/rc.d/rc.mcelog.new
+
+gzip -9 $PKG/usr/man/man?/*.?
+
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
cp -a \
CHANGES README* TODO* *.pdf \