[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freewrt-commits
Subject:    [FreeWRT-commits] r1813 - in trunk/freewrt/package: . zaptel-12
From:       n0-1 () frozenfish ! freewrt ! org
Date:       2007-01-31 16:03:21
Message-ID: 20070131160321.931541C041 () frozenfish ! freewrt ! org
[Download RAW message or body]

Author: n0-1
Date: 2007-01-31 17:03:20 +0100 (Wed, 31 Jan 2007)
New Revision: 1813

Added:
   trunk/freewrt/package/zaptel-12/
   trunk/freewrt/package/zaptel-12/Config.in
   trunk/freewrt/package/zaptel-12/Config.in.kernel
   trunk/freewrt/package/zaptel-12/Makefile
   trunk/freewrt/package/zaptel-12/ipkg/
   trunk/freewrt/package/zaptel-12/ipkg/kmod-zaptel-12.control
   trunk/freewrt/package/zaptel-12/ipkg/kmod-ztdummy-12.control
   trunk/freewrt/package/zaptel-12/ipkg/zaptel-12.control
   trunk/freewrt/package/zaptel-12/patches/
   trunk/freewrt/package/zaptel-12/patches/patch-Makefile
Log:
ported zaptel version 1.2.x as dependency for asterisk 1.2.14


Property changes on: trunk/freewrt/package/zaptel-12
___________________________________________________________________
Name: svn:ignore
   + info.mk


Added: trunk/freewrt/package/zaptel-12/Config.in
===================================================================
--- trunk/freewrt/package/zaptel-12/Config.in	2007-01-30 21:16:22 UTC (rev 1812)
+++ trunk/freewrt/package/zaptel-12/Config.in	2007-01-31 16:03:20 UTC (rev 1813)
@@ -0,0 +1,8 @@
+config FWRT_PACKAGE_ZAPTEL_12
+	prompt "zaptel-12......................... Zaptel library (Version 1.2)"
+	tristate
+	default n
+	depends on FWRT_LINUX_2_6_RB
+	help
+	  
+	  http://www.asterisk.org

Added: trunk/freewrt/package/zaptel-12/Config.in.kernel
===================================================================
--- trunk/freewrt/package/zaptel-12/Config.in.kernel	2007-01-30 21:16:22 UTC (rev \
                1812)
+++ trunk/freewrt/package/zaptel-12/Config.in.kernel	2007-01-31 16:03:20 UTC (rev \
1813) @@ -0,0 +1,17 @@
+config FWRT_PACKAGE_KMOD_ZAPTEL_12
+	prompt "kmod-zaptel....................... Zaptel generic support"
+	tristate
+	default n
+	depends on FWRT_LINUX_2_6_RB
+	help
+	  
+	  http://www.asterisk.org
+
+config FWRT_PACKAGE_KMOD_ZTDUMMY_12
+	prompt "kmod-ztdummy...................... Zaptel dummy timer"
+	tristate
+	default n
+	depends on FWRT_LINUX_2_6_RB
+	help
+	  
+	  http://www.asterisk.org

Added: trunk/freewrt/package/zaptel-12/Makefile
===================================================================
--- trunk/freewrt/package/zaptel-12/Makefile	2007-01-30 21:16:22 UTC (rev 1812)
+++ trunk/freewrt/package/zaptel-12/Makefile	2007-01-31 16:03:20 UTC (rev 1813)
@@ -0,0 +1,57 @@
+# $FreeWRT$
+#-
+# This file is part of the FreeWRT project. FreeWRT is copyrighted
+# material, please see the LICENCE file in the top-level directory
+# or at http://www.freewrt.org/licence for details.
+
+include ${TOPDIR}/rules.mk
+include ${TOPDIR}/mk/targets.mk
+
+PKG_NAME:=		zaptel
+PKG_VERSION:=		1.2.12
+PKG_RELEASE:=		1
+PKG_MODULE:=		60
+PKG_MD5SUM:=		99b9f86556b903a32607b2751f920513
+PKG_SOURCE_URL:=	http://ftp.digium.com/pub/zaptel/releases
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,ZAPTEL_12,zaptel-12,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
 +$(eval $(call PKG_template,KMOD_ZAPTEL_12,kmod-zaptel-12,${KERNEL_VERSION}-${BOARD}-${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
 +$(eval $(call PKG_template,KMOD_ZTDUMMY_12,kmod-ztdummy-12,${KERNEL_VERSION}-${BOARD}-${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
 +
+#CONFIGURE_STYLE:=	gnu
+BUILD_STYLE:=		auto
+TCFLAGS+=		-DZAPTEL_CONFIG=\"${WRKINST}/etc/zaptel.conf\"
+MAKE_FLAGS+=		LD="${TARGET_CROSS}ld" \
+			KFLAGS="${KFLAGS}" \
+			V=1 \
+			MODULES="zaptel ztdummy" \
+			KSRC=${LINUX_DIR} \
+ALL_TARGET:=		linux26 
+INSTALL_STYLE:=		auto
+XAKE_FLAGS+=		PATH="${TARGET_PATH}" \
+			CC="${TARGET_CC}" \
+			KSRC="${LINUX_DIR}" \
+FAKE_FLAGS+=		INSTALL_PREFIX="${WRKINST}"
+
+KFLAGS:=		-I${LINUX_DIR}/include -Os -DMODULE -D__KERNEL__ \
+			-DEXPORT_SYMTAB -I${LINUX_DIR}/drivers/net \
+			-Wall -I. -Wstrict-prototypes -fomit-frame-pointer \
+			-I${LINUX_DIR}/drivers/net/wan -I${LINUX_DIR}/include/net \
+			-DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=${WRKINST}/etc/zaptel.conf
+
+pre-build:
+	$(SED) 's/@@ARCH@@/${KERNEL_ARCH}/g' ${WRKBUILD}/Makefile
+
+post-install:
+	${INSTALL_DIR} ${IDIR_ZAPTEL_12}/usr/lib
+	${CP} ${WRKINST}/usr/lib/libtonezone.so.* ${IDIR_ZAPTEL_12}/usr/lib
+	${INSTALL_DIR} ${IDIR_KMOD_ZAPTEL_12}/lib/modules/${KERNEL_VERSION}
+	${INSTALL_DATA} ${WRKBUILD}/zaptel.${KERNEL_MOD_SUFFIX} \
+                ${IDIR_KMOD_ZAPTEL_12}/lib/modules/${KERNEL_VERSION}/
+	${INSTALL_DIR} ${IDIR_KMOD_ZTDUMMY_12}/lib/modules/${KERNEL_VERSION}
+	${INSTALL_DATA} ${WRKBUILD}/ztdummy.${KERNEL_MOD_SUFFIX} \
+                ${IDIR_KMOD_ZTDUMMY_12}/lib/modules/${KERNEL_VERSION}/
+
+include ${TOPDIR}/mk/pkg-bottom.mk

Added: trunk/freewrt/package/zaptel-12/ipkg/kmod-zaptel-12.control
===================================================================
--- trunk/freewrt/package/zaptel-12/ipkg/kmod-zaptel-12.control	2007-01-30 21:16:22 \
                UTC (rev 1812)
+++ trunk/freewrt/package/zaptel-12/ipkg/kmod-zaptel-12.control	2007-01-31 16:03:20 \
UTC (rev 1813) @@ -0,0 +1,4 @@
+Package: kmod-zaptel-12
+Priority: optional
+Section: sys
+Description: Driver for Zaptel hardware

Added: trunk/freewrt/package/zaptel-12/ipkg/kmod-ztdummy-12.control
===================================================================
--- trunk/freewrt/package/zaptel-12/ipkg/kmod-ztdummy-12.control	2007-01-30 21:16:22 \
                UTC (rev 1812)
+++ trunk/freewrt/package/zaptel-12/ipkg/kmod-ztdummy-12.control	2007-01-31 16:03:20 \
UTC (rev 1813) @@ -0,0 +1,4 @@
+Package: kmod-ztdummy-12
+Priority: optional
+Section: sys
+Description: Zaptel dummy timer

Added: trunk/freewrt/package/zaptel-12/ipkg/zaptel-12.control
===================================================================
--- trunk/freewrt/package/zaptel-12/ipkg/zaptel-12.control	2007-01-30 21:16:22 UTC \
                (rev 1812)
+++ trunk/freewrt/package/zaptel-12/ipkg/zaptel-12.control	2007-01-31 16:03:20 UTC \
(rev 1813) @@ -0,0 +1,4 @@
+Package: zaptel-12
+Priority: optional
+Section: sys
+Description: Zaptel headers and library

Added: trunk/freewrt/package/zaptel-12/patches/patch-Makefile
===================================================================
--- trunk/freewrt/package/zaptel-12/patches/patch-Makefile	2007-01-30 21:16:22 UTC \
                (rev 1812)
+++ trunk/freewrt/package/zaptel-12/patches/patch-Makefile	2007-01-31 16:03:20 UTC \
(rev 1813) @@ -0,0 +1,94 @@
+$FreeWRT$
+
+	* build kernel modules cross and verbosely
+	  any ARCH vars get lost, so we need to substitute them
+	* gendigits is executed on the host system, so it should
+	  be build appropriately
+	* using the auto-build-features of make sux when cross-compiling
+	* install: no need to create device nodes, manpages or other bullshit
+
+--- zaptel-1.2.12.orig/Makefile	2006-12-07 00:22:11.000000000 +0100
++++ zaptel-1.2.12/Makefile	2007-01-31 16:40:45.000000000 +0100
+@@ -46,7 +46,7 @@ KFLAGS+=$(shell if uname -r | grep -q 2.
+ 
+ KFLAGS+=-DSTANDALONE_ZAPATA
+ CFLAGS+=-DSTANDALONE_ZAPATA
+-KMAKE:= $(MAKE) -C $(KSRC) SUBDIRS=$(PWD)
++KMAKE:= $(MAKE) -C $(KSRC) ARCH=mips V=1 SUBDIRS=$(PWD)
+ KMAKE_INST:= $(KMAKE) INSTALL_MOD_PATH=$(INSTALL_PREFIX) INSTALL_MOD_DIR=misc \
modules_install + 
+ CONFIG_FILE:=$(INSTALL_PREFIX)/etc/zaptel.conf
+@@ -142,7 +142,7 @@ linux24: prereq $(MODULESO) wct4xxp/wct4
+ linux26: prereq $(BINS)
+ 	@echo $(KSRC)
+ 	@if [ -z "$(KSRC)" -o ! -d "$(KSRC)" ]; then echo "You do not appear to have the \
sources for the $(KVERS) kernel installed."; exit 1 ; fi +-	$(MAKE) -C $(KSRC) \
SUBDIRS=$(PWD) modules ++	$(MAKE) -C $(KSRC) ARCH=mips V=1 SUBDIRS=$(PWD) modules
+ 
+ version.h: FORCE
+ 	ZAPTELVERSION="${ZAPTELVERSION}" build_tools/make_version_h > $@.tmp
+@@ -190,6 +190,8 @@ zonedata.lo: zonedata.c
+ tonezone.lo: tonezone.c
+ 	$(CC) -c $(LCFLAGS) -o $@ $^
+ 
++torisatool.o: torisatool.c
++	$(CC) -c $^
+ torisatool: torisatool.o
+ 	$(CC) -o $@ $^
+ 
+@@ -202,8 +204,11 @@ tor2fw.h: makefw tormenta2.rbt
+ radfw.h: makefw pciradio.rbt
+ 	./makefw pciradio.rbt radfw > radfw.h
+ 
+-gendigits: gendigits.o
+-	$(CC) -o $@ $^ -lm
++gendigits: gendigits.c
++	$(HOSTCC) -o $@ $^ -lm
++
++makefw: makefw.c
++	$(HOSTCC) -o $@ $^ -lm
+ 
+ zaptel.c: tones.h 
+ 
+@@ -214,6 +219,7 @@ zttool.o: zttool.c zaptel.h
+ ztprovision.o: ztprovision.c zaptel.h
+ 
+ ztmonitor.o: ztmonitor.c zaptel.h
++	$(CC) $(CFLAGS) -c $^
+ 
+ ztspeed.o: ztspeed.c
+ 	$(CC) -o $@ -c $^
+@@ -241,6 +247,9 @@ $(LIBTONEZONE_SO): $(TZOBJS)
+ 
+ ztcfg.c: ztcfg.h
+ 
++ztcfg.o: ztcfg.c
++	$(CC) $(LCFLAGS) -c $^
++
+ ztcfg-shared: ztcfg.o $(LIBTONEZONE_SO)
+ 	$(CC) -o $@ $^ -lm
+ 
+@@ -315,7 +324,7 @@ b410p:
+ 	tar -zxf mISDNuser.tar.gz
+ 	$(MAKE) -C mISDNuser install
+ 
+-install: all devices firmware
++install: all firmware
+ 	install -D -m 755 ztcfg $(INSTALL_PREFIX)/sbin/ztcfg
+ 	if [ -f sethdlc-new ]; then \
+ 		install -D -m 755 sethdlc-new $(INSTALL_PREFIX)/sbin/sethdlc; \
+@@ -348,14 +357,7 @@ endif
+ 	install -D -m 644 zaptel.h $(INSTALL_PREFIX)/usr/include/linux/zaptel.h
+ 	install -D -m 644 torisa.h $(INSTALL_PREFIX)/usr/include/linux/torisa.h
+ 	install -D -m 644 tonezone.h $(INSTALL_PREFIX)/usr/include/tonezone.h
+-	install -m 644 doc/ztcfg.8 $(INSTALL_PREFIX)/usr/share/man/man8
+-	install -m 644 doc/zttool.8 $(INSTALL_PREFIX)/usr/share/man/man8
+-	[ `id -u` = 0 ] && /sbin/depmod -a $(KVERS) || :
+ 	[ -f $(CONFIG_FILE) ] || install -D -m 644 zaptel.conf.sample $(CONFIG_FILE)
+-	build_tools/genmodconf $(BUILDVER) "$(INSTALL_PREFIX)" "$(filter-out \
zaptel,$(MODULES))" +-	@if [ -d /etc/modutils ]; then \
+-		/sbin/update-modules ; \
+-	fi
+ 
+ install-udev: devices
+ 

_______________________________________________
freewrt-commits mailing list
freewrt-commits@freewrt.org
https://www.freewrt.org/lists/listinfo/freewrt-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic