summaryrefslogtreecommitdiff
path: root/net/rdist6
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-11-03 10:45:28 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-11-03 10:45:28 +0000
commit9cc9886b8ab8de856eeefca77c844e84281f4e4c (patch)
tree8f275c1b841bc7b01f1c59936c1bfca5a5dadd87 /net/rdist6
parentFix installation path for the locale codes dependency (diff)
Fix conflict with package supplied setproctitle() and our native one.
Notes
Notes: svn path=/head/; revision=34718
Diffstat (limited to 'net/rdist6')
-rw-r--r--net/rdist6/files/patch-ag37
-rw-r--r--net/rdist6/files/patch-defs.h12
-rw-r--r--net/rdist6/files/patch-setargs.c19
3 files changed, 49 insertions, 19 deletions
diff --git a/net/rdist6/files/patch-ag b/net/rdist6/files/patch-ag
index b45e812a6a30..0083dd610f1e 100644
--- a/net/rdist6/files/patch-ag
+++ b/net/rdist6/files/patch-ag
@@ -1,19 +1,18 @@
-*** config/os-freebsd2.h.dist Mon Nov 9 21:59:55 1998
---- config/os-freebsd2.h Fri Dec 31 15:49:02 1999
-***************
-*** 116,121 ****
---- 116,122 ----
- */
- #define HAVE_FCHOWN /* Have fchown() */
- #define HAVE_FCHMOD /* Have fchmod() */
-+ #define HAVE_PATHS_H /* Have paths.h */
- #define HAVE_SELECT /* Have select() */
- #define HAVE_SAVED_IDS /* Have POSIX style saved [ug]id's */
- #define POSIX_SIGNALS /* Have POSIX signals */
-***************
-*** 131,133 ****
---- 132,135 ----
- * that which appears in "include/paths.h".
- */
- #define _PATH_REMSH "/usr/bin/rsh" /**/
-+ #define _PATH_OLDRDIST "/usr/bin/rdist" /* Enable compat */
+--- config/os-freebsd2.h.orig Mon Nov 9 19:59:55 1998
++++ config/os-freebsd2.h Fri Nov 3 02:40:25 2000
+@@ -116,8 +116,10 @@
+ */
+ #define HAVE_FCHOWN /* Have fchown() */
+ #define HAVE_FCHMOD /* Have fchmod() */
++#define HAVE_PATHS_H /* Have paths.h */
+ #define HAVE_SELECT /* Have select() */
+ #define HAVE_SAVED_IDS /* Have POSIX style saved [ug]id's */
++#define HAVE_SETPROCTITLE /* has a native setproctitle() */
+ #define POSIX_SIGNALS /* Have POSIX signals */
+
+ /*
+@@ -131,3 +133,4 @@
+ * that which appears in "include/paths.h".
+ */
+ #define _PATH_REMSH "/usr/bin/rsh" /**/
++#define _PATH_OLDRDIST "/usr/bin/rdist" /* Enable compat */
diff --git a/net/rdist6/files/patch-defs.h b/net/rdist6/files/patch-defs.h
new file mode 100644
index 000000000000..932b0713dca3
--- /dev/null
+++ b/net/rdist6/files/patch-defs.h
@@ -0,0 +1,12 @@
+--- include/defs.h.orig Mon Nov 9 20:23:54 1998
++++ include/defs.h Fri Nov 3 02:39:45 2000
+@@ -379,7 +379,9 @@
+ extern void error(char *, ...);
+ extern void fatalerr(char *, ...);
+ extern void message(int, char *, ...);
++#ifndef HAVE_SETPROCTITLE
+ extern void setproctitle(char *fmt, ...);
++#endif
+ #else
+ extern void debugmsg();
+ extern void error();
diff --git a/net/rdist6/files/patch-setargs.c b/net/rdist6/files/patch-setargs.c
new file mode 100644
index 000000000000..a57745108fb6
--- /dev/null
+++ b/net/rdist6/files/patch-setargs.c
@@ -0,0 +1,19 @@
+--- src/setargs.c.orig Mon Nov 9 20:15:56 1998
++++ src/setargs.c Fri Nov 3 02:41:25 2000
+@@ -89,6 +89,8 @@
+ LastArgv = argv[argc-1] + strlen(argv[argc-1]);
+ }
+
++#ifndef HAVE_SETPROCTITLE
++
+ /*
+ * Set process title
+ */
+@@ -165,5 +167,7 @@
+ _setproctitle(buf);
+ }
+ #endif /* !ARG_TYPE */
++
++#endif /* !HAVE_SETPROCTITLE */
+
+ #endif /* SETARGS */