summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/dkms/README1
-rw-r--r--development/dkms/dkms.SlackBuild88
-rw-r--r--development/dkms/dkms.info10
-rw-r--r--development/dkms/patches/Makefile_mktemp.diff29
-rw-r--r--development/dkms/slack-desc19
5 files changed, 147 insertions, 0 deletions
diff --git a/development/dkms/README b/development/dkms/README
new file mode 100644
index 0000000000..baf8553d25
--- /dev/null
+++ b/development/dkms/README
@@ -0,0 +1 @@
+Helper script for creating kernel modules.
diff --git a/development/dkms/dkms.SlackBuild b/development/dkms/dkms.SlackBuild
new file mode 100644
index 0000000000..af5d6eb5e3
--- /dev/null
+++ b/development/dkms/dkms.SlackBuild
@@ -0,0 +1,88 @@
+#!/bin/sh
+
+# Copyright (c) 2012 Daniel LEVAI
+# All rights reserved.
+#
+# * Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# * Redistributions of source code must retain the above copyright notice
+# this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+# COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=dkms
+VERSION=2.2.0.3
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ];then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION $PRGNAM
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+mv $PRGNAM-$VERSION $PRGNAM
+cd $PRGNAM
+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 --strip=0 --quiet < $CWD/patches/Makefile_mktemp.diff
+CFLAGS="$SLKCFLAGS" make install DESTDIR=$PKG
+
+mv $PKG/usr/share/man $PKG/usr/man
+rm -Rf $PKG/etc/kernel $PKG/usr/share
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a TODO README.dkms AUTHORS COPYING $PKG/usr/doc/$PRGNAM-$VERSION/
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/development/dkms/dkms.info b/development/dkms/dkms.info
new file mode 100644
index 0000000000..a7bfc976cf
--- /dev/null
+++ b/development/dkms/dkms.info
@@ -0,0 +1,10 @@
+PRGNAM="dkms"
+VERSION="2.2.0.3"
+HOMEPAGE="http://linux.dell.com/dkms/"
+DOWNLOAD="http://linux.dell.com/dkms/permalink/dkms-2.2.0.3.tar.gz"
+MD5SUM="11a8aaade2ebec2803653837c7593030"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Daniel LEVAI"
+EMAIL="leva@ecentrum.hu"
diff --git a/development/dkms/patches/Makefile_mktemp.diff b/development/dkms/patches/Makefile_mktemp.diff
new file mode 100644
index 0000000000..81cea13e84
--- /dev/null
+++ b/development/dkms/patches/Makefile_mktemp.diff
@@ -0,0 +1,29 @@
+--- Makefile.orig 2012-11-03 21:13:55.065215509 +0100
++++ Makefile 2012-11-03 21:14:13.244222002 +0100
+@@ -90,7 +90,7 @@
+
+ $(TARBALL):
+ mkdir -p $(deb_destdir)
+- tmp_dir=`mktemp -d --tmpdir dkms.XXXXXXXX` ; \
++ tmp_dir=`mktemp -d -t dkms.XXXXXXXX` ; \
+ cp -a ../$(RELEASE_NAME) $${tmp_dir}/$(RELEASE_STRING) ; \
+ sed -e "s/\[INSERT_VERSION_HERE\]/$(RELEASE_VERSION)/" dkms > $${tmp_dir}/$(RELEASE_STRING)/dkms ; \
+ sed -e "s/\[INSERT_VERSION_HERE\]/$(RELEASE_VERSION)/" dkms.spec > $${tmp_dir}/$(RELEASE_STRING)/dkms.spec ; \
+@@ -107,7 +107,7 @@
+
+
+ rpm: $(TARBALL) dkms.spec
+- tmp_dir=`mktemp -d --tmpdir dkms.XXXXXXXX` ; \
++ tmp_dir=`mktemp -d -t dkms.XXXXXXXX` ; \
+ mkdir -p $${tmp_dir}/{BUILD,RPMS,SRPMS,SPECS,SOURCES} ; \
+ cp $(TARBALL) $${tmp_dir}/SOURCES ; \
+ sed "s/\[INSERT_VERSION_HERE\]/$(RELEASE_VERSION)/" dkms.spec > $${tmp_dir}/SPECS/dkms.spec ; \
+@@ -131,7 +131,7 @@
+ cd -
+
+ debs:
+- tmp_dir=`mktemp -d --tmpdir dkms.XXXXXXXX` ; \
++ tmp_dir=`mktemp -d -t dkms.XXXXXXXX` ; \
+ make debmagic DEB_TMP_BUILDDIR=$${tmp_dir} DIST=$(DIST); \
+ rm -rf $${tmp_dir}
+
diff --git a/development/dkms/slack-desc b/development/dkms/slack-desc
new file mode 100644
index 0000000000..654ad9d903
--- /dev/null
+++ b/development/dkms/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+dkms: dkms (Helper script for creating kernel modules)
+dkms:
+dkms: Helper script for creating kernel modules.
+dkms:
+dkms: Homepage: http://linux.dell.com/dkms/
+dkms:
+dkms:
+dkms:
+dkms:
+dkms:
+dkms: