pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/ser Add mysql option, requested in private mail.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bb39d50b93f8
branches:  trunk
changeset: 529339:bb39d50b93f8
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Jun 01 00:26:36 2007 +0000

description:
Add mysql option, requested in private mail.
Add patch to make most modules build on NetBSD-4.99.20/amd64.

XXX: pike.so still doesn't; it won't get installed and the PLIST
is wrong.

diffstat:

 net/ser/Makefile         |   4 +++-
 net/ser/PLIST            |   3 ++-
 net/ser/distinfo         |   3 ++-
 net/ser/options.mk       |  14 ++++++++++++++
 net/ser/patches/patch-ab |  14 ++++++++++++++
 5 files changed, 35 insertions(+), 3 deletions(-)

diffs (83 lines):

diff -r 93d88c42a6c4 -r bb39d50b93f8 net/ser/Makefile
--- a/net/ser/Makefile  Fri Jun 01 00:12:35 2007 +0000
+++ b/net/ser/Makefile  Fri Jun 01 00:26:36 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2007/03/23 06:24:49 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2007/06/01 00:26:36 wiz Exp $
 #
 
 DISTNAME=      ser-0.8.14_src
@@ -27,5 +27,7 @@
 
 CHECK_PORTABILITY_SKIP+=       scripts/sc
 
+.include "options.mk"
+
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 93d88c42a6c4 -r bb39d50b93f8 net/ser/PLIST
--- a/net/ser/PLIST     Fri Jun 01 00:12:35 2007 +0000
+++ b/net/ser/PLIST     Fri Jun 01 00:26:36 2007 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2007/03/23 06:24:49 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2007/06/01 00:26:36 wiz Exp $
 sbin/ser
 sbin/serctl
 sbin/ser_mysql.sh
@@ -18,6 +18,7 @@
 lib/ser/modules/maxfwd.so
 lib/ser/modules/mediaproxy.so
 lib/ser/modules/msilo.so
+${WITH_MYSQL}lib/ser/modules/mysql.so
 lib/ser/modules/nathelper.so
 lib/ser/modules/pa.so
 lib/ser/modules/pdt.so
diff -r 93d88c42a6c4 -r bb39d50b93f8 net/ser/distinfo
--- a/net/ser/distinfo  Fri Jun 01 00:12:35 2007 +0000
+++ b/net/ser/distinfo  Fri Jun 01 00:26:36 2007 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2007/05/31 04:22:10 rillig Exp $
+$NetBSD: distinfo,v 1.3 2007/06/01 00:26:36 wiz 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) = 25ee2488f106859ce1208923d5e5ae762dbe65f1
+SHA1 (patch-ab) = 871de5c826853381eb5b6889d8e3d8b2f310dc6b
 SHA1 (patch-ad) = aa7a962546fbfcbecde79d68c0765ae34c2916da
diff -r 93d88c42a6c4 -r bb39d50b93f8 net/ser/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ser/options.mk        Fri Jun 01 00:26:36 2007 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2007/06/01 00:26:36 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.ser
+PKG_SUPPORTED_OPTIONS= mysql
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mmysql)
+MAKE_ENV+= include_modules="mysql"
+.include "../../mk/mysql.buildlink3.mk"
+PLIST_SUBST+=  WITH_MYSQL=""
+.else
+PLIST_SUBST+=  WITH_MYSQL="@comment "
+.endif
diff -r 93d88c42a6c4 -r bb39d50b93f8 net/ser/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ser/patches/patch-ab  Fri Jun 01 00:26:36 2007 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1 2007/06/01 00:26:36 wiz Exp $
+
+--- lock_ops.h.orig    2004-07-26 23:18:35.000000000 +0000
++++ lock_ops.h
+@@ -66,6 +66,9 @@ WARNING: - lock_set_init may fail for la
+ #ifndef _lock_ops_h
+ #define _lock_ops_h
+ 
++#include <errno.h>
++#include <string.h>
++#include "dprint.h"
+ 
+ #ifdef FAST_LOCK
+ #include "fastlock.h"



Home | Main Index | Thread Index | Old Index