diff options
author | tnn <tnn> | 2009-09-23 13:31:31 +0000 |
---|---|---|
committer | tnn <tnn> | 2009-09-23 13:31:31 +0000 |
commit | ca22961565e8b708a7ad56449a1d5510755288dd (patch) | |
tree | 40c679d907d21f5e017bcb44c08b00e3875059e3 /chat/zephyr/patches | |
parent | 560e06dc84ef87bc4f2afcc87d473a18bd6b1ebc (diff) | |
download | pkgsrc-ca22961565e8b708a7ad56449a1d5510755288dd.tar.gz |
- rename conflicting getline()
- honour PKGMANDIR
Diffstat (limited to 'chat/zephyr/patches')
-rw-r--r-- | chat/zephyr/patches/patch-ai | 11 | ||||
-rw-r--r-- | chat/zephyr/patches/patch-an | 67 |
2 files changed, 77 insertions, 1 deletions
diff --git a/chat/zephyr/patches/patch-ai b/chat/zephyr/patches/patch-ai index 6450b0f6cc3..79d1cc43457 100644 --- a/chat/zephyr/patches/patch-ai +++ b/chat/zephyr/patches/patch-ai @@ -1,7 +1,16 @@ -$NetBSD: patch-ai,v 1.1.1.1 2003/09/16 19:41:50 seb Exp $ +$NetBSD: patch-ai,v 1.2 2009/09/23 13:31:32 tnn Exp $ --- Makefile.in.orig 1998-06-11 21:10:02.000000000 +0200 +++ Makefile.in +@@ -7,7 +7,7 @@ sysconfdir=@sysconfdir@ + sbindir=@sbindir@ + + includedir=${prefix}/include +-mandir=${prefix}/man ++mandir=${prefix}/${PKGMANDIR} + bindir=${exec_prefix}/bin + libdir=${exec_prefix}/lib + @@ -31,8 +31,6 @@ install: ${ENSUREDIR} ${DESTDIR}${libdir} 755 ${ENSUREDIR} ${DESTDIR}${datadir} 755 diff --git a/chat/zephyr/patches/patch-an b/chat/zephyr/patches/patch-an new file mode 100644 index 00000000000..2f0d52bf97c --- /dev/null +++ b/chat/zephyr/patches/patch-an @@ -0,0 +1,67 @@ +$NetBSD: patch-an,v 1.1 2009/09/23 13:31:32 tnn Exp $ + +--- clients/zmailnotify/zmailnotify.c.orig 1997-10-25 23:47:11.000000000 +0200 ++++ clients/zmailnotify/zmailnotify.c +@@ -144,7 +144,7 @@ main(argc, argv) + exit(1); + } + +- if ((getline(response, sizeof response, sfi) != OK) || ++ if ((get_line(response, sizeof response, sfi) != OK) || + (*response != '+')) { + fprintf(stderr,"%s: %s\n",prog,response); + exit(1); +@@ -498,7 +498,7 @@ pop_command(fmt, va_alist) + + if (putline(buf, Errmsg, sfo) == NOTOK) return(NOTOK); + +- if (getline(buf, sizeof buf, sfi) != OK) { ++ if (get_line(buf, sizeof buf, sfi) != OK) { + (void) strcpy(Errmsg, buf); + return(NOTOK); + } +@@ -519,7 +519,7 @@ int *nmsgs, *nbytes; + + if (putline("STAT", Errmsg, sfo) == NOTOK) return(NOTOK); + +- if (getline(buf, sizeof buf, sfi) != OK) { ++ if (get_line(buf, sizeof buf, sfi) != OK) { + (void) strcpy(Errmsg, buf); + return(NOTOK); + } +@@ -546,7 +546,7 @@ int (*action)(); + #endif + if (putline(buf, Errmsg, sfo) == NOTOK) return(NOTOK); + +- if (getline(buf, sizeof buf, sfi) != OK) { ++ if (get_line(buf, sizeof buf, sfi) != OK) { + (void) strcpy(Errmsg, buf); + return(NOTOK); + } +@@ -565,7 +565,7 @@ int (*action)(); + } + } + +-getline(buf, n, f) ++get_line(buf, n, f) + char *buf; + register int n; + FILE *f; +@@ -595,7 +595,7 @@ char *buf; + register int n; + FILE *f; + { +- if (getline(buf, n, f) != OK) return (NOTOK); ++ if (get_line(buf, n, f) != OK) return (NOTOK); + if (*buf == '.') { + if (*(buf+1) == '\0') { + return (DONE); +@@ -605,7 +605,7 @@ FILE *f; + } else if (*buf == '\0') { + /* suck up all future lines, since this is after all only for headers */ + while(! ((buf[0]=='.') && (buf[1] == '\0')) ) { +- if (getline(buf, n, f) != OK) return (NOTOK); ++ if (get_line(buf, n, f) != OK) return (NOTOK); + } + return DONE; + } |