Bug#302836: zaptel-source: Makefile patch to build zaphfc.o for 2.4 kernels

Christoph Lukas Christoph Lukas <christoph.lukas@gmx.net>, 302836@bugs.debian.org
Mon, 13 Jun 2005 09:03:42 +0200


This is a multi-part MIME message sent by reportbug.

--===============0373634835==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: zaptel-source
Version: 1:1.0.7-4.1
Followup-For: Bug #302836

Hi,

attached you will find a simple patch to get the zaphfc module built for
2.4 kernels.

Regards,
Christoph

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages zaptel-source depends on:
ii  bzip2                         1.0.2-7    high-quality block-sorting file co
ii  debhelper                     4.2.32     helper programs for debian/rules
ii  module-assistant              0.9        tool to make module package creati

-- no debconf information

--===============0373634835==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="zaptel.diff"

--- modules/zaptel.orig/Makefile	2005-05-22 11:58:15.000000000 +0200
+++ modules/zaptel/Makefile	2005-06-12 20:07:02.000000000 +0200
@@ -66,6 +66,7 @@
 LIBTONEZONESHORT=$(shell echo $(LIBTONEZONE) | sed -e 's/\.[0-9]\+$$//' )
 MODULES=zaptel tor2 torisa wcusb wcfxo wcfxs \
 	ztdynamic ztd-eth wct1xxp wct4xxp wcte11xp # ztdummy
+MODULES+=zaphfc/zaphfc
 #MODULES+=wcfxsusb
 
 MODULESO=$(shell for x in $(MODULES); do echo "$$x.o "; done )
@@ -120,6 +121,9 @@
 zaptel.o: zaptel.c zaptel.h digits.h arith.h sec.h mec.h sec-2.h mec2.h mec3.h zconfig.h
 	$(HOSTCC) $(KFLAGS) -c zaptel.c
 
+zaphfc/zaphfc.o: zaphfc/zaphfc.c zaphfc/zaphfc.h
+	make -C $(KSRC) SUBDIRS="$(PWD)/zaphfc"
+
 torisa.o: torisa.c zaptel.h torisa.h
 	$(HOSTCC) $(KFLAGS) -c torisa.c
 

--===============0373634835==--