Remove qc-usb
This directory was added in 2006, and was never called by nix-expressions outside of qc-usb/. svn path=/nixpkgs/trunk/; revision=33125
This commit is contained in:
parent
90b8995e04
commit
049e676403
@ -1,26 +0,0 @@
|
||||
source $stdenv/setup
|
||||
|
||||
hashname=$(basename $kernel)
|
||||
echo $hashname
|
||||
if echo "$hashname" | grep -q '^[a-z0-9]\{32\}-'; then
|
||||
hashname=$(echo "$hashname" | cut -c -32)
|
||||
fi
|
||||
|
||||
stripHash $kernel
|
||||
version=$(echo $strippedName | cut -c 7-)-$hashname
|
||||
|
||||
echo "version $version"
|
||||
|
||||
export version
|
||||
|
||||
mkdir -p $out/lib/modules/$version/misc
|
||||
|
||||
LINUX_DIR=$kernel/lib/modules/$version/build
|
||||
PREFIX=$out
|
||||
MODULE_DIR=$out/lib/modules/$version
|
||||
|
||||
export LINUX_DIR
|
||||
export PREFIX
|
||||
export MODULE_DIR
|
||||
|
||||
genericBuild
|
@ -1,13 +0,0 @@
|
||||
{stdenv, fetchurl, kernel, gawk}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "qc-usb-0.6.4";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/qce-ga/qc-usb-0.6.4.tar.gz;
|
||||
md5 = "7e91c3a633382c99100e3ef4f1d9f50a";
|
||||
};
|
||||
inherit kernel;
|
||||
buildInputs = [gawk];
|
||||
patches = [./quickcam-install.patch];
|
||||
}
|
@ -1,91 +0,0 @@
|
||||
diff -ruN qc-usb-0.6.3/Makefile qc-usb-0.6.3.new/Makefile
|
||||
--- qc-usb-0.6.3/Makefile 2004-10-21 18:13:11.000000000 +0200
|
||||
+++ qc-usb-0.6.3.new/Makefile 2006-01-17 18:03:02.000000000 +0100
|
||||
@@ -56,8 +56,9 @@
|
||||
endif
|
||||
|
||||
ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
|
||||
-INSTALL := $(shell which install)
|
||||
-DEPMOD := $(shell which depmod || which /sbin/depmod || echo "true You should now run depmod")
|
||||
+#INSTALL := $(shell which install)
|
||||
+INSTALL := install
|
||||
+#DEPMOD := $(shell which depmod || which /sbin/depmod || echo "true You should now run depmod")
|
||||
|
||||
# Get VERSION_CODE (from version.h in kernel source directory)
|
||||
VERSION_CODE := $(shell awk '/[ ]*\#[ ]*define[ ]*LINUX_VERSION_CODE[ ]*/ { print $$3 }' $(LINUX_DIR)/include/linux/version.h|tail -n 1)
|
||||
@@ -68,36 +69,36 @@
|
||||
MODULE_NAME := quickcam.o # for 2.4.x and older
|
||||
endif
|
||||
|
||||
-.PHONY: help
|
||||
-help:
|
||||
- @echo '-=- Logitech QuickCam USB camera driver -=-'
|
||||
- @echo
|
||||
- @echo "Makefile target examples:"
|
||||
- @echo "make all - Compile driver and utilities against current running kernel"
|
||||
- @echo "make all USER_OPT=-DDEBUG - Compile with debugging code and messages"
|
||||
- @echo "make all LINUX_DIR=/usr/src/linux - Compile against specified kernel source"
|
||||
- @echo "make install - Copy driver and utilities into standard locations (needs root)"
|
||||
- @echo "make install PREFIX=/usr - Copy utilities to /usr/bin instead of /usr/local/bin"
|
||||
- @echo "make install MODULE_DIR=/lib/modules/2.4.0 - Copy module to /lib/modules/2.4.0/misc"
|
||||
-ifeq ($(VERSION_CODE),132116)
|
||||
- @echo "make patch - Modify kernel source to include the driver for kernel 2.4.20"
|
||||
-endif
|
||||
-ifeq ($(VERSION_CODE),132615)
|
||||
- @echo "make patch - Modify kernel source to include the driver for kernel 2.6.7"
|
||||
-endif
|
||||
-ifeq ($(VERSION_CODE),132616)
|
||||
- @echo "make patch - Modify kernel source to include the driver for kernel 2.6.8/2.6.8.1"
|
||||
-endif
|
||||
- @echo "make clean - Remove object files from the source directory"
|
||||
- @echo
|
||||
- @echo "Current configuration:"
|
||||
- @echo "Driver source directory (PWD): $(PWD)"
|
||||
- @echo "Kernel source directory (LINUX_DIR): $(LINUX_DIR)"
|
||||
- @echo "Module install directory (MODULE_DIR): $(MODULE_DIR)"
|
||||
- @echo "Utility install directory (PREFIX): $(PREFIX)"
|
||||
- @echo "User options (USER_OPT): $(USER_OPT)"
|
||||
- @echo "Driver file name (use with insmod): $(MODULE_NAME)"
|
||||
- @echo "Kernel version code: $(VERSION_CODE)"
|
||||
+#.PHONY: help
|
||||
+#help:
|
||||
+ #@echo '-=- Logitech QuickCam USB camera driver -=-'
|
||||
+ #@echo
|
||||
+ #@echo "Makefile target examples:"
|
||||
+ #@echo "make all - Compile driver and utilities against current running kernel"
|
||||
+ #@echo "make all USER_OPT=-DDEBUG - Compile with debugging code and messages"
|
||||
+ #@echo "make all LINUX_DIR=/usr/src/linux - Compile against specified kernel source"
|
||||
+ #@echo "make install - Copy driver and utilities into standard locations (needs root)"
|
||||
+ #@echo "make install PREFIX=/usr - Copy utilities to /usr/bin instead of /usr/local/bin"
|
||||
+ #@echo "make install MODULE_DIR=/lib/modules/2.4.0 - Copy module to /lib/modules/2.4.0/misc"
|
||||
+#ifeq ($(VERSION_CODE),132116)
|
||||
+ #@echo "make patch - Modify kernel source to include the driver for kernel 2.4.20"
|
||||
+#endif
|
||||
+#ifeq ($(VERSION_CODE),132615)
|
||||
+ #@echo "make patch - Modify kernel source to include the driver for kernel 2.6.7"
|
||||
+#endif
|
||||
+#ifeq ($(VERSION_CODE),132616)
|
||||
+ #@echo "make patch - Modify kernel source to include the driver for kernel 2.6.8/2.6.8.1"
|
||||
+#endif
|
||||
+ #@echo "make clean - Remove object files from the source directory"
|
||||
+ #@echo
|
||||
+ #@echo "Current configuration:"
|
||||
+ #@echo "Driver source directory (PWD): $(PWD)"
|
||||
+ #@echo "Kernel source directory (LINUX_DIR): $(LINUX_DIR)"
|
||||
+ #@echo "Module install directory (MODULE_DIR): $(MODULE_DIR)"
|
||||
+ #@echo "Utility install directory (PREFIX): $(PREFIX)"
|
||||
+ #@echo "User options (USER_OPT): $(USER_OPT)"
|
||||
+ #@echo "Driver file name (use with insmod): $(MODULE_NAME)"
|
||||
+ #@echo "Kernel version code: $(VERSION_CODE)"
|
||||
|
||||
all: $(MODULE_NAME) qcset
|
||||
|
||||
@@ -165,7 +166,7 @@
|
||||
install: $(MODULE_NAME)
|
||||
$(INSTALL) -c -D -m 644 $(MODULE_NAME) $(MODULE_DIR)/misc/$(MODULE_NAME)
|
||||
$(INSTALL) -c -D -m 755 qcset $(PREFIX)/bin/qcset
|
||||
- -$(DEPMOD) -a
|
||||
+ #-$(DEPMOD) -a
|
||||
|
||||
qcset: qcset.c quickcam.h
|
||||
gcc -Wall -O2 -s qcset.c -o qcset -lm
|
Loading…
Reference in New Issue
Block a user