pkgsrc-Users archive

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

net/uucp on linux



I removed patch-rmail_rmail.c and patches/patch-uucpd_uucpd.c and
edit files/rmail/rmail.c and files/uucpd/uucpd.c directly.

Utmp and utmpx are not compatible at least with linux, some structures
are different. I can't check on other BSDs, so if you like this changes,
other person can add someting like

UUCPD_CPPFLAGS.FreeBSD+=         -DSUPPORT_UTMP -DSUPPORT_UTMPX

I only use cu. I haven't tested anything else.

Regards,
adr.

=====================================================
RCS file: /cvsroot/pkgsrc/net/uucp/Makefile,v
retrieving revision 1.21
diff -u -r1.21 Makefile
--- Makefile	3 Nov 2019 11:45:57 -0000	1.21
+++ Makefile	15 Jun 2020 22:12:41 -0000
@@ -71,13 +71,10 @@
 # platform-specific.
 #
 UUCPD_CPPFLAGS.${OPSYS}=	# empty
-.if exists(/usr/include/utmp.h)
-UUCPD_CPPFLAGS.${OPSYS}+=	-DSUPPORT_UTMP
-.endif
-.if exists(/usr/include/utmpx.h)
-UUCPD_CPPFLAGS.${OPSYS}+=	-DSUPPORT_UTMPX
-.endif
-UUCPD_CPPFLAGS.Darwin=		-DSUPPORT_UTMP
+UUCPD_CPPFLAGS.NetBSD+=		-DSUPPORT_UTMP -DSUPPORT_UTMPX
+UUCPD_CPPFLAGS.Darwin+=		-DSUPPORT_UTMP
+UUCPD_CPPFLAGS.DragonFly+=	-D__DragonFly__
+UUCPD_CPPFLAGS.Linux+=		-D__Linux__
 UUCPD_CPPFLAGS.*=		# empty
 UUCPD_LIBS.Darwin=		# empty
 UUCPD_LIBS.*=			-lcrypt -lutil
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/net/uucp/distinfo,v
retrieving revision 1.7
diff -u -r1.7 distinfo
--- distinfo	8 Nov 2015 23:19:22 -0000	1.7
+++ distinfo	15 Jun 2020 22:12:41 -0000
@@ -23,5 +23,3 @@
 SHA1 (patch-aq) = bb6bcaa133ddda48ad24a94ed690afb5934b96d0
 SHA1 (patch-ar) = d71d7e016d840d06c52bd88c507450111cf02e2c
 SHA1 (patch-as) = 76773cbfccec131b3eb0adfad43c6d4e9d54a99b
-SHA1 (patch-rmail_rmail.c) = 3010f4dcc2ef05b1563658b3c2ec769229a253bb
-SHA1 (patch-uucpd_uucpd.c) = 42278c73d5f3f6c95a64896168dcdb2ead425f26
Index: files/rmail/rmail.c
===================================================================
RCS file: /cvsroot/pkgsrc/net/uucp/files/rmail/rmail.c,v
retrieving revision 1.2
diff -u -r1.2 rmail.c
--- files/rmail/rmail.c	16 Mar 2007 23:09:02 -0000	1.2
+++ files/rmail/rmail.c	15 Jun 2020 22:12:41 -0000
@@ -31,6 +31,12 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
+#ifndef __COPYRIGHT
+#define __COPYRIGHT(x) char rmail_copyright[] = x
+#endif
+#ifndef __RCSID
+#define __RCSID(x) char rmail_rcsid[] = x
+#endif
 __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\
 	The Regents of the University of California.  All rights reserved.\n");
 #if 0
Index: files/uucpd/uucpd.c
===================================================================
RCS file: /cvsroot/pkgsrc/net/uucp/files/uucpd/uucpd.c,v
retrieving revision 1.2
diff -u -r1.2 uucpd.c
--- files/uucpd/uucpd.c	30 Jun 2007 19:30:50 -0000	1.2
+++ files/uucpd/uucpd.c	15 Jun 2020 22:12:41 -0000
@@ -34,6 +34,12 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
+#ifndef __COPYRIGHT
+#define __COPYRIGHT(x) char rmail_copyright[] = x
+#endif
+#ifndef __RCSID
+#define __RCSID(x) char rmail_rcsid[] = x
+#endif
 __COPYRIGHT("@(#) Copyright (c) 1985 The Regents of the University of California.\n\
  All rights reserved.\n");
 #if 0
@@ -72,6 +78,8 @@
 #include <unistd.h>
 #if defined(__DragonFly__)
 #include <libutil.h>
+#elif defined(__Linux__)
+#include <bsd/libutil.h>
 #else
 #include <util.h>
 #endif
-- 


Home | Main Index | Thread Index | Old Index