public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-misc/dahdi-tools/files: dahdi.init dahdi-tools-2.1.0.2-asneeded.patch
@ 2009-03-10 17:08 Tony Vroon (chainsaw)
  0 siblings, 0 replies; only message in thread
From: Tony Vroon (chainsaw) @ 2009-03-10 17:08 UTC (permalink / raw
  To: gentoo-commits

chainsaw    09/03/10 17:08:01

  Added:                dahdi.init dahdi-tools-2.1.0.2-asneeded.patch
  Log:
  Initial commit, ebuild by Svoop & Rambaldi. Taken from the VoiP overlay but HPEC functionality removed as the decision logic is not portable to X86 architectures and looks fragile. Failed to build with --as-needed, fixed and patch submitted as upstream Digium bug #14638.
  (Portage version: 2.1.6.7/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  net-misc/dahdi-tools/files/dahdi.init

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dahdi-tools/files/dahdi.init?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dahdi-tools/files/dahdi.init?rev=1.1&content-type=text/plain

Index: dahdi.init
===================================================================
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi-tools/files/dahdi.init,v 1.1 2009/03/10 17:08:01 chainsaw Exp $

depend() {
	need net
}

checkconfig() {
	if [ ! -f /etc/dahdi/system.conf ]; then
		eerror "/etc/dahdi/system.conf not found. Nothing to do."
		return 1
	fi

	return 0
}

start() {
	checkconfig || return 1

	ebegin "Starting DAHDI"
	/usr/sbin/dahdi_cfg
	eend $?
}

stop() {
	ebegin "Stopping DAHDI"
	/usr/sbin/dahdi_cfg -s
	eend 
}



1.1                  net-misc/dahdi-tools/files/dahdi-tools-2.1.0.2-asneeded.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dahdi-tools/files/dahdi-tools-2.1.0.2-asneeded.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dahdi-tools/files/dahdi-tools-2.1.0.2-asneeded.patch?rev=1.1&content-type=text/plain

Index: dahdi-tools-2.1.0.2-asneeded.patch
===================================================================
diff -uNr dahdi-tools-2.1.0.2.ORIG/Makefile dahdi-tools-2.1.0.2/Makefile
--- dahdi-tools-2.1.0.2.ORIG/Makefile	2009-03-10 16:48:48.000000000 +0000
+++ dahdi-tools-2.1.0.2/Makefile	2009-03-10 16:53:46.000000000 +0000
@@ -156,12 +156,12 @@
 	$(CC) $(CFLAGS) $(MAKE_DEPS) -c -o $@ $<
 
 %: %.o
-	$(CC) $(LDFLAGS) -o $@ $^
+	$(CC) $(LDFLAGS) $^ $(LIBS) -o $@
 
 prereq: config.status
 
 dahdi_tool: CFLAGS+=$(NEWT_INCLUDE)
-dahdi_tool: LDFLAGS+=$(NEWT_LIB)
+dahdi_tool: LIBS+=$(NEWT_LIB)
 
 dahdi_speed: CFLAGS+=-O0
 
@@ -173,11 +173,11 @@
 	$(CC) $(CFLAGS) -shared -Wl,-soname,$(LTZ_SO).$(LTZ_SO_MAJOR_VER).$(LTZ_SO_MINOR_VER) -o $@ $^ -lm
 
 dahdi_cfg: $(LTZ_A)
-dahdi_cfg: LDFLAGS+=-lm
+dahdi_cfg: LIBS+=-lm
 
 fxstest: $(LTZ_SO)
-fxstest: LDFLAGS+=-lm
-fxotune: LDFLAGS+=-lm
+fxstest: LIBS+=-lm
+fxotune: LIBS+=-lm
 
 tonezones.txt: zonedata.c
 	perl -ne 'next unless (/\.(country|description) = *"([^"]*)/); \






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-10 17:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-10 17:08 [gentoo-commits] gentoo-x86 commit in net-misc/dahdi-tools/files: dahdi.init dahdi-tools-2.1.0.2-asneeded.patch Tony Vroon (chainsaw)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox