diff options
author | joerg <joerg@pkgsrc.org> | 2005-12-27 13:51:27 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-12-27 13:51:27 +0000 |
commit | 984cda224ebdbd1e1c24f4c8cbf99439611f5e15 (patch) | |
tree | 5ba8c9ac5d1470221b2d05df6b77d23f90126f36 /comms | |
parent | 1b87dded1529a7171fca93ccf3d506ead7b352b3 (diff) | |
download | pkgsrc-984cda224ebdbd1e1c24f4c8cbf99439611f5e15.tar.gz |
Fix errno and dirent usage. Remove .depend file from distfile,
it breaks build on DragonFly.
Diffstat (limited to 'comms')
-rw-r--r-- | comms/snooper/Makefile | 5 | ||||
-rw-r--r-- | comms/snooper/distinfo | 3 | ||||
-rw-r--r-- | comms/snooper/patches/patch-ab | 41 |
3 files changed, 47 insertions, 2 deletions
diff --git a/comms/snooper/Makefile b/comms/snooper/Makefile index c320db78a12..9534734ddbe 100644 --- a/comms/snooper/Makefile +++ b/comms/snooper/Makefile @@ -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 @@ GNU_CONFIGURE= yes 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 --git a/comms/snooper/distinfo b/comms/snooper/distinfo index e1e303850ed..b75cfa7fcf0 100644 --- a/comms/snooper/distinfo +++ b/comms/snooper/distinfo @@ -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 --git a/comms/snooper/patches/patch-ab b/comms/snooper/patches/patch-ab new file mode 100644 index 00000000000..131e7a88f42 --- /dev/null +++ b/comms/snooper/patches/patch-ab @@ -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)); |