[Pkg-voip-commits] r4868 - in /openser/trunk/debian: changelog patches/00list patches/12_kfreebsd_support.dpatch

jblache at alioth.debian.org jblache at alioth.debian.org
Wed Nov 28 16:51:40 UTC 2007


Author: jblache
Date: Wed Nov 28 16:51:39 2007
New Revision: 4868

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=4868
Log:
Add GNU/kFreeBSD support to the build system.

Added:
    openser/trunk/debian/patches/12_kfreebsd_support.dpatch   (with props)
Modified:
    openser/trunk/debian/changelog
    openser/trunk/debian/patches/00list

Modified: openser/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/openser/trunk/debian/changelog?rev=4868&op=diff
==============================================================================
--- openser/trunk/debian/changelog (original)
+++ openser/trunk/debian/changelog Wed Nov 28 16:51:39 2007
@@ -4,8 +4,10 @@
 
   * debian/control:
     + openser-berkeley-module needs dbX.Y-util.
-
- -- Julien BLACHE <jblache at debian.org>  Wed, 28 Nov 2007 17:44:34 +0100
+  * debian/patches/12_kfreebsd_support.dpatch:
+    + Added; add kfreebsd support to the build system.
+
+ -- Julien BLACHE <jblache at debian.org>  Wed, 28 Nov 2007 17:49:44 +0100
 
 openser (1.3.0~svn20071115-2) experimental; urgency=low
 

Modified: openser/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-voip/openser/trunk/debian/patches/00list?rev=4868&op=diff
==============================================================================
--- openser/trunk/debian/patches/00list (original)
+++ openser/trunk/debian/patches/00list Wed Nov 28 16:51:39 2007
@@ -1,3 +1,4 @@
 10_no_lib64_on_64_bits
 11_always_smp
+12_kfreebsd_support
 

Added: openser/trunk/debian/patches/12_kfreebsd_support.dpatch
URL: http://svn.debian.org/wsvn/pkg-voip/openser/trunk/debian/patches/12_kfreebsd_support.dpatch?rev=4868&op=file
==============================================================================
--- openser/trunk/debian/patches/12_kfreebsd_support.dpatch (added)
+++ openser/trunk/debian/patches/12_kfreebsd_support.dpatch Wed Nov 28 16:51:39 2007
@@ -1,0 +1,56 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 12_kfreebsd_support.dpatch by  <jblache at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Add GNU/kFreeBSD support to the build system.
+
+ at DPATCH@
+diff -urNad openser-1.3.0~svn20071115~/Makefile.defs openser-1.3.0~svn20071115/Makefile.defs
+--- openser-1.3.0~svn20071115~/Makefile.defs	2007-11-28 17:47:37.698234390 +0100
++++ openser-1.3.0~svn20071115/Makefile.defs	2007-11-28 17:48:29.560056323 +0100
+@@ -164,6 +164,11 @@
+ 	man-dir = man/
+ 	data-dir = share/$(MAIN_NAME)/
+ 	LOCALBASE ?= $(SYSBASE)/local
++ifeq ($(OS), gnu/kfreebsd)
++	doc-dir = share/doc/$(MAIN_NAME)/
++	man-dir = share/man/
++	data-dir = share/$(MAIN_NAME)/
++	LOCALBASE = ?= $(SYSBASE)/local
+ else
+ 	doc-dir = doc/$(MAIN_NAME)/
+ 	man-dir = man/
+@@ -174,6 +179,7 @@
+ endif
+ endif
+ endif
++endif
+ 
+  # install location
+ DESTDIR ?= $(LOCALBASE)
+@@ -1041,6 +1047,25 @@
+ 	endif
+ endif
+ 
++ifeq ($(OS), gnu/kfreebsd)
++	DEFS+=-DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD \
++			-DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H \
++			-DHAVE_TIMEGM
++	ifneq ($(found_lock_method), yes)
++		DEFS+= -DUSE_SYSV_SEM  # try posix sems
++		found_lock_method=yes
++	endif
++	# check for ver >= 4.1
++	ifeq ($(shell [ $(OSREL_N) -gt 4001 ] && echo has_kqueue), has_kqueue)
++		ifeq ($(NO_KQUEUE),)
++			DEFS+=-DHAVE_KQUEUE
++		endif
++	endif
++	ifeq ($(NO_SELECT),)
++		DEFS+=-DHAVE_SELECT
++	endif
++endif
++
+ ifeq  ($(OS), solaris)
+ 	DEFS+= -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD \
+ 			-DHAVE_ALLOCA_H -DUSE_SIGACTION

Propchange: openser/trunk/debian/patches/12_kfreebsd_support.dpatch
------------------------------------------------------------------------------
    svn:executable = *




More information about the Pkg-voip-commits mailing list