-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

here I have patch, to extend the linux-atm package.
With this patch an additional ipkg can be created called atm-tools diag.
This package contains some tools to debug atm controllers.

cya


- --
Joerg Jungermann
- ------------------------------------------------------------
 Rechnerbetrieb Mathematik              | Zustaendig fuer:
 Universitaet-Paderborn  - Fakultaet 5  |   Linux, Web
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFINCKksta551Pt/1URAkmJAJ4iZ4pcqtyezCkQyTIm1H8HAknmLwCfdrS2
Cw51SPb9Da41Qlq+heKZ3xw=
=+cJM
-----END PGP SIGNATURE-----
Index: patches/800-reenable_maint.patch
===================================================================
--- patches/800-reenable_maint.patch	(revision 0)
+++ patches/800-reenable_maint.patch	(revision 0)
@@ -0,0 +1,140 @@
+diff -uaNr linux-atm-2.4.1.orig/configure linux-atm-2.4.1/configure
+--- linux-atm-2.4.1.orig/configure	2008-05-21 09:45:18.000000000 +0200
++++ linux-atm-2.4.1/configure	2008-05-21 14:39:53.944941866 +0200
+@@ -20091,7 +20091,7 @@
+ 
+ 
+ 
+-ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/arpd/Makefile"
++ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/arpd/Makefile src/maint/Makefile src/qgen/Makefile src/saal/Makefile"
+ 
+ cat >confcache <<\_ACEOF
+ # This file is a shell script that caches the results of configure
+@@ -20685,6 +20685,9 @@
+     "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
+     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
+     "src/arpd/Makefile") CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
++    "src/maint/Makefile") CONFIG_FILES="$CONFIG_FILES src/maint/Makefile" ;;
++    "src/qgen/Makefile") CONFIG_FILES="$CONFIG_FILES src/qgen/Makefile" ;;
++    "src/saal/Makefile") CONFIG_FILES="$CONFIG_FILES src/qgen/Makefile" ;;
+ 
+   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
+ echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
+diff -uaNr linux-atm-2.4.1.orig/configure.in linux-atm-2.4.1/configure.in
+--- linux-atm-2.4.1.orig/configure.in	2008-05-21 09:45:17.000000000 +0200
++++ linux-atm-2.4.1/configure.in	2008-05-21 11:44:33.722373316 +0200
+@@ -154,5 +154,6 @@
+ 		src/include/Makefile \
+ 		src/lib/Makefile \
+ 		src/arpd/Makefile \
++		src/maint/Makefile \
+ 		)
+ 
+diff -uaNr linux-atm-2.4.1.orig/src/Makefile.am linux-atm-2.4.1/src/Makefile.am
+--- linux-atm-2.4.1.orig/src/Makefile.am	2008-05-21 09:45:18.000000000 +0200
++++ linux-atm-2.4.1/src/Makefile.am	2008-05-21 15:00:13.958633373 +0200
+@@ -1,2 +1,2 @@
+-SUBDIRS = include lib arpd
++SUBDIRS = include lib arpd saal qgen maint
+ 
+diff -uaNr linux-atm-2.4.1.orig/src/Makefile.in linux-atm-2.4.1/src/Makefile.in
+--- linux-atm-2.4.1.orig/src/Makefile.in	2008-05-21 09:45:20.000000000 +0200
++++ linux-atm-2.4.1/src/Makefile.in	2008-05-21 15:00:43.865308484 +0200
+@@ -172,7 +172,7 @@
+ target_cpu = @target_cpu@
+ target_os = @target_os@
+ target_vendor = @target_vendor@
+-SUBDIRS = include lib arpd
++SUBDIRS = include lib arpd saal qgen maint
+ all: all-recursive
+ 
+ .SUFFIXES:
+diff -uaNr linux-atm-2.4.1.orig/src/qgen/Makefile.am linux-atm-2.4.1/src/qgen/Makefile.am
+--- linux-atm-2.4.1.orig/src/qgen/Makefile.am	2008-05-21 09:45:14.000000000 +0200
++++ linux-atm-2.4.1/src/qgen/Makefile.am	2008-05-21 11:44:33.792373406 +0200
+@@ -38,13 +38,13 @@
+ 	{ rm -f default.nl; echo 1; }
+ 
+ q.out.h q.out.c q.test.c: qgen msg.fmt default.nl
+-	$(CPP) $(DEFS) - <msg.fmt | ./qgen
++	$(CPP) $(CFGLAGS) $(DEFS) - <msg.fmt | ./qgen
+ 
+ #q40.out.h q40.out.c q40.test.c: qgen uni40 default.nl
+-#	$(CPP) $(DEFS) - <uni40 | PREFIX=q40 ./qgen
++#	$(CPP) $(CFLAGS) $(DEFS) - <uni40 | PREFIX=q40 ./qgen
+ 
+ qd.out.h qd.out.c qd.dump.c: qgen msg.fmt default.nl
+-	$(CPP) $(DEFS) - <msg.fmt | ./qgen -D
++	$(CPP) $(CFLAGS) $(DEFS) - <msg.fmt | ./qgen -D
+ 
+ q.out.o: q.out.c q.out.h qlib.c qlib.h
+ 	$(CC) $(DEFS) $(CFLAGS) -c q.out.c
+diff -uaNr linux-atm-2.4.1.orig/src/qgen/Makefile.in linux-atm-2.4.1/src/qgen/Makefile.in
+--- linux-atm-2.4.1.orig/src/qgen/Makefile.in	2008-05-21 09:45:14.000000000 +0200
++++ linux-atm-2.4.1/src/qgen/Makefile.in	2008-05-21 11:48:58.799379447 +0200
+@@ -89,7 +89,6 @@
+ check_PROGRAMS = q.test
+ 
+ qgen_SOURCES = common.c common.h file.c file.h first.c ql_y.y ql_l.l qgen.c 		qgen.h second.c third.c
+-
+ qgen_LDADD = 
+ 
+ q_dump_SOURCES = common.c
+@@ -131,6 +130,28 @@
+ qgen_OBJECTS =  common.$(OBJEXT) file.$(OBJEXT) first.$(OBJEXT) \
+ ql_y.$(OBJEXT) ql_l.$(OBJEXT) qgen.$(OBJEXT) second.$(OBJEXT) \
+ third.$(OBJEXT)
++
++qgen_host_OBJECTS =  common.host.$(OBJEXT) file.host.$(OBJEXT) first.host.$(OBJEXT) \
++ql_y.host.$(OBJEXT) ql_l.host.$(OBJEXT) qgen.host.$(OBJEXT) second.host.$(OBJEXT) \
++third.host.$(OBJEXT)
++
++common.host.$(OBJEXT):
++	gcc -I../.. -o common.host.$(OBJEXT) -c common.c
++file.host.$(OBJEXT): 
++	gcc -I../.. -o file.host.$(OBJEXT) -c file.c
++first.host.$(OBJEXT):
++	gcc -I../.. -o first.host.$(OBJEXT) -c first.c
++ql_y.host.$(OBJEXT):
++	gcc -I../.. -o ql_y.host.$(OBJEXT) -c ql_y.c
++ql_l.host.$(OBJEXT):
++	gcc -I../.. -o ql_l.host.$(OBJEXT) -c ql_l.c
++qgen.host.$(OBJEXT):
++	gcc -I../.. -o qgen.host.$(OBJEXT) -c qgen.c
++second.host.$(OBJEXT):
++	gcc -I../.. -o second.host.$(OBJEXT) -c second.c
++third.host.$(OBJEXT):
++	gcc -I../.. -o third.host.$(OBJEXT) -c third.c
++
+ qgen_DEPENDENCIES = 
+ qgen_LDFLAGS = 
+ q_dump_OBJECTS =  common.$(OBJEXT)
+@@ -226,9 +247,9 @@
+ 	@rm -f q.test
+ 	$(LINK) $(q_test_LDFLAGS) $(q_test_OBJECTS) $(q_test_LDADD) $(LIBS)
+ 
+-qgen$(EXEEXT): $(qgen_OBJECTS) $(qgen_DEPENDENCIES)
++qgen$(EXEEXT): $(qgen_host_OBJECTS)
+ 	@rm -f qgen$(EXEEXT)
+-	$(LINK) $(qgen_LDFLAGS) $(qgen_OBJECTS) $(qgen_LDADD) $(LIBS)
++	gcc -o qgen$(EXEEXT) $(qgen_host_OBJECTS)
+ 
+ q.dump: $(q_dump_OBJECTS) $(q_dump_DEPENDENCIES)
+ 	@rm -f q.dump
+@@ -413,13 +434,13 @@
+ 	{ rm -f default.nl; echo 1; }
+ 
+ q.out.h q.out.c q.test.c: qgen msg.fmt default.nl
+-	$(CPP) $(DEFS) - <msg.fmt | ./qgen
++	$(CPP) $(DEFS) $(CFLAGS) - <msg.fmt | ./qgen
+ 
+ #q40.out.h q40.out.c q40.test.c: qgen uni40 default.nl
+-#	$(CPP) $(DEFS) - <uni40 | PREFIX=q40 ./qgen
++#	$(CPP) $(DEFS) $(CFLAGS) - <uni40 | PREFIX=q40 ./qgen
+ 
+ qd.out.h qd.out.c qd.dump.c: qgen msg.fmt default.nl
+-	$(CPP) $(DEFS) - <msg.fmt | ./qgen -D
++	$(CPP) $(DEFS) $(CFLAGS) - <msg.fmt | ./qgen -D
+ 
+ q.out.o: q.out.c q.out.h qlib.c qlib.h
+ 	$(CC) $(DEFS) $(CFLAGS) -c q.out.c
Index: Makefile
===================================================================
--- Makefile	(revision 11142)
+++ Makefile	(working copy)
@@ -41,6 +41,18 @@
   This package contains the Linux ATM tools.
 endef
 
+define Package/atm-tools-diag
+  SECTION:=net
+  CATEGORY:=Network
+  DEPENDS:=linux-atm
+  TITLE:=Linux ATM tools Diagnostics
+  URL:=http://linux-atm.sourceforge.net/
+endef
+
+define Package/atm-tools-diag/description
+  This package contains the Linux ATM tools Diagnostics.
+endef
+
 define Build/Prepare
 	$(call Build/Prepare/Default)
 	$(INSTALL_BIN) $(SCRIPT_DIR)/config.sub $(SCRIPT_DIR)/config.guess $(PKG_BUILD_DIR)/
@@ -81,5 +93,11 @@
 	$(INSTALL_BIN) ./files/ipoa.sh $(1)/lib/network/
 endef
 
+define Package/atm-tools-diag/install
+	$(INSTALL_DIR) $(1)/usr/sbin/
+	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{atmdiag,atmdump,saaldump} $(1)/usr/sbin/
+endef
+
 $(eval $(call BuildPackage,linux-atm))
 $(eval $(call BuildPackage,atm-tools))
+$(eval $(call BuildPackage,atm-tools-diag))
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to