Add Plustek Parallelport scanner module to core10

git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1259 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
arne_f
2008-03-08 11:24:23 +00:00
parent 0aaef8e9a3
commit 85e2766084
5 changed files with 32 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
usr/local/bin/wirelessctrl
srv/web/ipfire/cgi-bin/optionsfw.cgi
var/ipfire/langs
lib/modules/2.6.16.57-ipfire/kernel/drivers/parport/pt_drv.ko
lib/modules/2.6.16.57-ipfire-smp/kernel/drivers/parport/pt_drv.ko

View File

@@ -3,3 +3,4 @@
/usr/local/bin/backupctrl exclude >/dev/null 2>&1
extract_files
perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
depmod -a

View File

@@ -231,6 +231,7 @@
* rtorrent-0.7.9
* samba-3.0.28
* sane-1.0.19
* sane-1.0.19-kmod
* screen-4.0.3
* sdparm-1.01
* sed-4.1.5

View File

@@ -30,7 +30,15 @@ THISAPP = sane-$(VER)
DL_FILE = sane-backends-$(VER).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/sane-backends-$(VER)
ifeq "$(KMOD)" "1"
ifeq "$(SMP)" "1"
TARGET = $(DIR_INFO)/$(THISAPP)-kmod-smp
else
TARGET = $(DIR_INFO)/$(THISAPP)-kmod
endif
else
TARGET = $(DIR_INFO)/$(THISAPP)
endif
PROG = sane
PAK_VER = 1
@@ -77,6 +85,21 @@ $(subst %,%_MD5,$(objects)) :
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
ifeq "$(KMOD)" "1"
cd $(DIR_APP)/doc/plustek && cp -vf Makefile.kernel26 \
$(DIR_APP)/backend/Makefile
ifeq "$(SMP)" "1"
cd $(DIR_APP)/backend && make -C /lib/modules/$(KVER)-ipfire-smp/build/ \
SUBDIRS=$(DIR_APP)/backend modules
cd $(DIR_APP)/backend && install -m 644 pt_drv.ko \
/lib/modules/$(KVER)-ipfire-smp/kernel/drivers/parport/
else
cd $(DIR_APP)/backend && make -C /lib/modules/$(KVER)-ipfire/build/ \
SUBDIRS=$(DIR_APP)/backend modules
cd $(DIR_APP)/backend && install -m 644 pt_drv.ko \
/lib/modules/$(KVER)-ipfire/kernel/drivers/parport/
endif
else
cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc \
--disable-ipv6 \
--enable-parport-directio
@@ -89,6 +112,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
ln -sf ../init.d/sane /etc/rc.d/rc6.d/K10sane
install -v -m 644 $(DIR_SRC)/config/backup/includes/sane \
/var/ipfire/backup/addons/includes/sane
endif
@rm -rf $(DIR_APP)
@$(POSTBUILD)

View File

@@ -326,9 +326,10 @@ buildipfire() {
ipfiremake zaptel SMP=1
ipfiremake r8169 SMP=1
ipfiremake r8168 SMP=1
ipfiremake mcs7830 SMP=1
ipfiremake atl1 SMP=1
ipfiremake mcs7830 SMP=1
ipfiremake atl1 SMP=1
ipfiremake kqemu SMP=1
ipfiremake sane KMOD=1 SMP=1
ipfiremake linux
ipfiremake ipp2p
ipfiremake zaptel
@@ -337,6 +338,7 @@ buildipfire() {
ipfiremake mcs7830
ipfiremake atl1
ipfiremake kqemu
ipfiremake sane KMOD=1
ipfiremake pkg-config
ipfiremake linux-atm
ipfiremake cpio