pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/maradns o Better handling of pthreads dependency



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2fbca45918b0
branches:  trunk
changeset: 463518:2fbca45918b0
user:      cube <cube%pkgsrc.org@localhost>
date:      Fri Nov 14 21:19:03 2003 +0000

description:
o Better handling of pthreads dependency
o Fixes to make building and installing more easy
o Make MaraDNS actually look into ${PKG_SYSCONFDIR} for its configuration
  file, thus bumping PKGREVISION.

diffstat:

 net/maradns/Makefile         |  15 ++++++++++++---
 net/maradns/distinfo         |   7 +++++--
 net/maradns/patches/patch-aa |  13 ++++++++++---
 net/maradns/patches/patch-ab |  14 ++++++++++++++
 net/maradns/patches/patch-ac |  13 +++++++++++++
 net/maradns/patches/patch-ad |  13 +++++++++++++
 6 files changed, 67 insertions(+), 8 deletions(-)

diffs (131 lines):

diff -r 06696e738b64 -r 2fbca45918b0 net/maradns/Makefile
--- a/net/maradns/Makefile      Fri Nov 14 19:55:13 2003 +0000
+++ b/net/maradns/Makefile      Fri Nov 14 21:19:03 2003 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2003/09/27 02:29:18 xtraeme Exp $
+# $NetBSD: Makefile,v 1.5 2003/11/14 21:19:03 cube Exp $
 
 DISTNAME=      maradns-1.0.18
+PKGREVISION=   1
 CATEGORIES=    net
 MASTER_SITES=  http://www.maradns.org/download/
 EXTRACT_SUFX=  .tar.bz2
@@ -12,15 +13,23 @@
 USE_BUILDLINK2=                yes
 USE_PKGINSTALL=                yes
 RCD_SCRIPTS=           maradns
+HAS_CONFIGURE=         yes
+PTHREAD_OPTS+=         require
+MAKE_ENV+=             LANGUAGE="en"
 
 EGDIR=         ${PREFIX}/share/examples/maradns
 CONF_FILES=    ${EGDIR}/example_mararc ${PKG_SYSCONFDIR}/mararc
 
+post-patch:
+       ${SED} -e s,@@PKGSYSCONFDIR@@,${PKG_SYSCONFDIR},                        \
+           ${WRKSRC}/parse/ParseMaraRc.c > ${WRKSRC}/parse/ParseMaraRc.sed
+       ${MV} ${WRKSRC}/parse/ParseMaraRc.sed ${WRKSRC}/parse/ParseMaraRc.c
+
 post-install:
-       ${MV} ${PREFIX}/doc/${DISTNAME} ${PREFIX}/share/doc/maradns
-       ${RMDIR} ${PREFIX}/doc
        ${MV} ${PREFIX}/share/doc/maradns/examples \
                ${PREFIX}/share/examples/maradns
 
 .include "../../mk/pthread.buildlink2.mk"
+LDFLAGS+=      ${PTHREAD_LDFLAGS}
+
 .include "../../mk/bsd.pkg.mk"
diff -r 06696e738b64 -r 2fbca45918b0 net/maradns/distinfo
--- a/net/maradns/distinfo      Fri Nov 14 19:55:13 2003 +0000
+++ b/net/maradns/distinfo      Fri Nov 14 21:19:03 2003 +0000
@@ -1,5 +1,8 @@
-$NetBSD: distinfo,v 1.3 2003/11/14 09:34:42 wiz Exp $
+$NetBSD: distinfo,v 1.4 2003/11/14 21:19:03 cube Exp $
 
 SHA1 (maradns-1.0.18.tar.bz2) = 788b875bed781f11dea8f4d38209e4bd49dc42d8
 Size (maradns-1.0.18.tar.bz2) = 414047 bytes
-SHA1 (patch-aa) = 1de334b76fd83573a67d2deb46c1abd0a925b908
+SHA1 (patch-aa) = c33101aacf39c6cf4fe361d82c7e48882a33e37c
+SHA1 (patch-ab) = 664188f15cc8068fb8d7572d2fef7870cd998ab7
+SHA1 (patch-ac) = 62bc0b967a16cf4a452b3132e11851078ee73af1
+SHA1 (patch-ad) = c824827384ab30aafb6a110daabb3f38f58b9599
diff -r 06696e738b64 -r 2fbca45918b0 net/maradns/patches/patch-aa
--- a/net/maradns/patches/patch-aa      Fri Nov 14 19:55:13 2003 +0000
+++ b/net/maradns/patches/patch-aa      Fri Nov 14 21:19:03 2003 +0000
@@ -1,13 +1,20 @@
-$NetBSD: patch-aa,v 1.1 2003/11/14 09:34:42 wiz Exp $
+$NetBSD: patch-aa,v 1.2 2003/11/14 21:19:03 cube Exp $
 
---- server/Makefile.orig       Tue Aug 27 05:11:46 2002
+--- server/Makefile.orig       2002-08-27 05:11:46.000000000 +0200
 +++ server/Makefile
 @@ -15,7 +15,7 @@ EXECS=maradns
  #FLAGS = -g $(DEBUG) -DNOTHREAD -DDEBUG
  #FLAGS = -g -DDEBUG_MEMORY $(DEBUG) 
  #FLAGS = -g $(DEBUG) 
 -FLAGS = -O2 -Wall $(DEBUG)
-+FLAGS = -O2 -Wall $(DEBUG) ${CFLAGS} ${LDFLAGS}
++FLAGS = -O2 -Wall $(DEBUG) ${CFLAGS}
  
  all: $(EXECS)
  
+@@ -35,5 +35,5 @@ timestamp.o: timestamp.c MaraDNS_locale.
+       $(CC) -c $(FLAGS) -o timestamp.o timestamp.c
+ 
+ maradns: MaraDNS.c $(OBJECTS) MaraDNS_locale.h
+-      $(CC) $(FLAGS) -DVERSION=\"$(VERSION)\" -DCOMPILED=\"$(COMPILED)\" -o maradns MaraDNS.c $(OBJECTS) -lpthread
++      $(CC) $(FLAGS) -DVERSION=\"$(VERSION)\" -DCOMPILED=\"$(COMPILED)\" -o maradns MaraDNS.c $(OBJECTS) ${LDFLAGS}
+ 
diff -r 06696e738b64 -r 2fbca45918b0 net/maradns/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/maradns/patches/patch-ab      Fri Nov 14 21:19:03 2003 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1 2003/11/14 21:19:03 cube Exp $
+
+--- configure.orig     2002-01-24 07:43:44.000000000 +0100
++++ configure
+@@ -72,6 +72,9 @@ elif echo $UNAME | grep -i cygwin > /dev
+       cat $BUILDDIR/Makefile.noflock >> Makefile
+       echo It looks like you are using Cygwin\; this should compile file
+       echo by typing in \'make\'.
++elif echo $UNAME | grep -i netbsd > /dev/null ; then
++      cat $BUILDDIR/Makefile.linux >> Makefile
++      echo It looks like you are using NetBSD\; just type in \'make\'
+ else
+       cat $BUILDDIR/Makefile.noflock >> Makefile
+       echo I am not familiar with the OS you are running.  Please email
diff -r 06696e738b64 -r 2fbca45918b0 net/maradns/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/maradns/patches/patch-ac      Fri Nov 14 21:19:03 2003 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2003/11/14 21:19:03 cube Exp $
+
+--- build/install.locations.orig       2002-05-05 14:11:47.000000000 +0200
++++ build/install.locations
+@@ -33,7 +33,7 @@ MAN5="$PREFIX/man/man5/"
+ # The directory to put man pages which describe the server programs
+ MAN8="$PREFIX/man/man8/"
+ # The directory to put a copy of the MaraDNS documents on the system
+-DOCS="$PREFIX/doc/maradns-$VERSION"
++DOCS="$PREFIX/share/doc/maradns"
+ 
+ # Mandrake does not have a /usr/local/man.  Ugh.
+ # As a result, we need the following kludge to get this to
diff -r 06696e738b64 -r 2fbca45918b0 net/maradns/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/maradns/patches/patch-ad      Fri Nov 14 21:19:03 2003 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2003/11/14 21:19:03 cube Exp $
+
+--- parse/ParseMaraRc.c.orig   2002-05-23 00:05:11.000000000 +0200
++++ parse/ParseMaraRc.c
+@@ -815,7 +815,7 @@ int find_mararc(js_string *out) {
+         return JS_ERROR;
+ 
+     /* Simple and secure: We look for it in /etc/mararc */
+-    return js_qstr2js(out,"/etc/mararc");
++    return js_qstr2js(out,"@@PKGSYSCONFDIR@@/mararc");
+ 
+     }
+ 



Home | Main Index | Thread Index | Old Index