From 569ba5cc7c28d0fb67582e40feda9f178dbb3d73 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 13 Dec 2005 19:51:44 +0000 Subject: Add DragonFly support. --- chat/ser/distinfo | 4 ++-- chat/ser/patches/patch-aa | 44 +++++++++++++++++++++++++++++++++++++++----- 2 files changed, 41 insertions(+), 7 deletions(-) diff --git a/chat/ser/distinfo b/chat/ser/distinfo index d2864b157fd..0b79d05fc3c 100644 --- a/chat/ser/distinfo +++ b/chat/ser/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.9 2005/09/08 18:13:48 drochner Exp $ +$NetBSD: distinfo,v 1.10 2005/12/13 19:51:44 joerg Exp $ SHA1 (ser-0.8.14_src.tar.gz) = 91553951247506850d66da25819333b61b150d1d RMD160 (ser-0.8.14_src.tar.gz) = 72c3a0793f3dd88584ee65b3751ccf8a3776f840 Size (ser-0.8.14_src.tar.gz) = 1551881 bytes -SHA1 (patch-aa) = f32fe747a92205db3600e8958dce289cc809bca7 +SHA1 (patch-aa) = c3d5e9c97995f45fc0367502ae699c3cdb605f77 SHA1 (patch-ad) = aa7a962546fbfcbecde79d68c0765ae34c2916da diff --git a/chat/ser/patches/patch-aa b/chat/ser/patches/patch-aa index 0b1dd6f796b..9cc6163a528 100644 --- a/chat/ser/patches/patch-aa +++ b/chat/ser/patches/patch-aa @@ -1,6 +1,6 @@ -$NetBSD: patch-aa,v 1.7 2005/09/08 18:13:48 drochner Exp $ +$NetBSD: patch-aa,v 1.8 2005/12/13 19:51:44 joerg Exp $ ---- Makefile.defs.orig 2004-07-27 13:38:33.000000000 +0200 +--- Makefile.defs.orig 2004-07-27 11:38:33.000000000 +0000 +++ Makefile.defs @@ -77,7 +77,7 @@ prefix = $(PREFIX) BASEDIR ?= @@ -21,8 +21,22 @@ $NetBSD: patch-aa,v 1.7 2005/09/08 18:13:48 drochner Exp $ bin-dir = sbin/ modules-dir = lib/ser/modules/ ifeq ($(OS), linux) -@@ -117,7 +118,7 @@ endif +@@ -104,6 +105,10 @@ ifeq ($(OS), netbsd) + doc-dir = share/doc/ser + man-dir = man/ + else ++ifeq ($(OS), dragonfly) ++ doc-dir = share/doc/ser ++ man-dir = man/ ++else + ifeq ($(OS), darwin) + doc-dir = share/doc/ser/ + man-dir = man/ +@@ -115,9 +120,10 @@ endif endif + endif + endif ++endif ut-prefix = bin/ # target dirs for various stuff -cfg-target = $(prefix)/$(cfg-dir) @@ -30,7 +44,7 @@ $NetBSD: patch-aa,v 1.7 2005/09/08 18:13:48 drochner Exp $ modules-target = $(prefix)/$(modules-dir) -@@ -133,10 +134,10 @@ endif +@@ -133,10 +139,10 @@ endif INSTALL-TOUCH = touch # used to create the file first (good to # make solaris install work) # INSTALL-CFG = $(INSTALL) -m 644 @@ -45,7 +59,7 @@ $NetBSD: patch-aa,v 1.7 2005/09/08 18:13:48 drochner Exp $ #set some vars from the environment (and not make builtins) CC := $(shell echo "$${CC}") -@@ -639,6 +640,7 @@ ifeq ($(CC_NAME), suncc) +@@ -639,6 +645,7 @@ ifeq ($(CC_NAME), suncc) endif endif #mode=release @@ -53,3 +67,23 @@ $NetBSD: patch-aa,v 1.7 2005/09/08 18:13:48 drochner Exp $ #*FLAGS used for compiling the modules +@@ -743,6 +750,19 @@ ifeq ($(OS), netbsd) + LIBS= -lfl + endif + ++ifeq ($(OS), dragonfly) ++ DEFS+=-DHAVE_SOCKADDR_SA_LEN -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN \ ++ -DHAVE_SCHED_YIELD -DHAVE_MSGHDR_MSG_CONTROL ++ ifneq ($(found_lock_method), yes) ++ DEFS+= -DUSE_PTHREAD_MUTEX # try pthread sems ++ found_lock_method=yes ++ LIBS= -pthread -lfl #dlopen is in libc ++ else ++ LIBS= -lfl #dlopen is in libc ++ endif ++ YACC=yacc ++endif ++ + # OS X support, same as freebsd + ifeq ($(OS), darwin) + DEFS+=-DHAVE_SOCKADDR_SA_LEN -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN \ -- cgit v1.2.3