summaryrefslogtreecommitdiff
path: root/development/dkms/patches
diff options
context:
space:
mode:
authorDaniel LEVAI <leva@ecentrum.hu>2012-12-16 17:42:22 -0500
committerdsomero <xgizzmo@slackbuilds.org>2012-12-23 09:16:16 -0500
commit1bbaa71fc8329a943d4cb35f8b74229d4db1f265 (patch)
tree58d164450cef1b34bb36267989e9adb481437fd9 /development/dkms/patches
parentb6bf3839a39aa148b7b8968c29c93478fc6dc9b9 (diff)
downloadslackbuilds-1bbaa71fc8329a943d4cb35f8b74229d4db1f265.tar.gz
development/dkms: Added (Helper script for creating kernel modules)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/dkms/patches')
-rw-r--r--development/dkms/patches/Makefile_mktemp.diff29
1 files changed, 29 insertions, 0 deletions
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}
+