pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/comms/snooper Fix errno and dirent usage. Remove .depe...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cf78baa16524
branches:  trunk
changeset: 504864:cf78baa16524
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Dec 27 13:51:27 2005 +0000

description:
Fix errno and dirent usage. Remove .depend file from distfile,
it breaks build on DragonFly.

diffstat:

 comms/snooper/Makefile         |   5 ++++-
 comms/snooper/distinfo         |   3 ++-
 comms/snooper/patches/patch-ab |  41 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 47 insertions(+), 2 deletions(-)

diffs (76 lines):

diff -r 0e947b0b5e5d -r cf78baa16524 comms/snooper/Makefile
--- a/comms/snooper/Makefile    Tue Dec 27 13:48:56 2005 +0000
+++ b/comms/snooper/Makefile    Tue Dec 27 13:51:27 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2005/11/03 20:01:20 rillig Exp $
+# $NetBSD: Makefile,v 1.21 2005/12/27 13:51:27 joerg Exp $
 
 DISTNAME=      snooper-19991202
 PKGREVISION=   1
@@ -14,6 +14,9 @@
 CONFIGURE_DIRS=        build
 BUILD_DIRS=    build
 
+post-extract:
+       ${RM} ${WRKSRC}/build/.depend
+
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snooper
        ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/snooper
diff -r 0e947b0b5e5d -r cf78baa16524 comms/snooper/distinfo
--- a/comms/snooper/distinfo    Tue Dec 27 13:48:56 2005 +0000
+++ b/comms/snooper/distinfo    Tue Dec 27 13:51:27 2005 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.5 2005/11/03 20:01:20 rillig Exp $
+$NetBSD: distinfo,v 1.6 2005/12/27 13:51:27 joerg Exp $
 
 SHA1 (snooper-19991202.tar.gz) = d6aba20cd14449d7b126f393cdb219fd627b7777
 RMD160 (snooper-19991202.tar.gz) = 52d61dea95cac246afd5815bc32f31448f9c757b
 Size (snooper-19991202.tar.gz) = 38239 bytes
 SHA1 (patch-aa) = c7acf77a2c47bed8eb228f136457bfeb82eceb1f
+SHA1 (patch-ab) = c3f0980adedd02d723dc2d4636460f6edd7c0538
diff -r 0e947b0b5e5d -r cf78baa16524 comms/snooper/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/snooper/patches/patch-ab    Tue Dec 27 13:51:27 2005 +0000
@@ -0,0 +1,41 @@
+$NetBSD: patch-ab,v 1.1 2005/12/27 13:51:27 joerg Exp $
+
+--- src/uucplock.c.orig        2005-12-23 16:22:29.000000000 +0000
++++ src/uucplock.c
+@@ -38,8 +38,9 @@ static char sccsid[] = "@(#)uucplock.c       5
+ #include "config.h"
+ 
+ #include <sys/file.h>
+-#include <sys/dir.h>
++#include <dirent.h>
+ #include <errno.h>
++#include <limits.h>
+ 
+ #include "pathnames.h"
+ 
+@@ -52,9 +53,12 @@ static char sccsid[] = "@(#)uucplock.c      5
+ uu_lock(ttyname)
+       char *ttyname;
+ {
+-      extern int errno;
+       int fd, pid;
++#ifdef NAME_MAX
++      char tbuf[sizeof(_PATH_LOCKDIRNAME) + NAME_MAX];
++#else
+       char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN];
++#endif
+       off_t lseek();
+ 
+       (void)snprintf(tbuf, sizeof(tbuf), _PATH_LOCKDIRNAME, ttyname);
+@@ -104,7 +108,11 @@ uu_lock(ttyname)
+ uu_unlock(ttyname)
+       char *ttyname;
+ {
++#ifdef NAME_MAX
++      char tbuf[sizeof(_PATH_LOCKDIRNAME) + NAME_MAX];
++#else
+       char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN];
++#endif
+ 
+       (void)snprintf(tbuf, sizeof(tbuf), _PATH_LOCKDIRNAME, ttyname);
+       return(unlink(tbuf));



Home | Main Index | Thread Index | Old Index