make newsos6�Ǻ��ޤ���

hiraga@meis.sony.co.jp


diff -urP qpopper2.2/Makefile qpopper2.2-newsos6/Makefile
--- qpopper2.2/Makefile	Wed May 22 03:24:01 1996
+++ qpopper2.2-newsos6/Makefile	Mon Mar 10 09:12:32 1997
@@ -22,7 +22,7 @@
 
 CATPAGE		=	popper.0
 
-MANDIR		=	/usr/local/man/cat8
+MANDIR		=	/usr/local/man/C/cat8
 
 
 
@@ -53,6 +53,7 @@
 	@echo "    make linux"
 	@echo "    make next"
 	@echo "    make osf1"
+	@echo "    make newsos6 (SVR4.2/NEWS-OS 6.x specific mods)"
 	@echo ""
 
 sunos:
@@ -60,6 +61,9 @@
 
 solaris2:
 	make -f make.solaris2
+
+newsos6:
+	make -f make.newsos6
 
 isc:
 	make -f make.isc
diff -urP qpopper2.2/make.newsos6 qpopper2.2-newsos6/make.newsos6
--- qpopper2.2/make.newsos6	Thu Jan  1 09:00:00 1970
+++ qpopper2.2-newsos6/make.newsos6	Mon Mar 10 09:11:05 1997
@@ -0,0 +1,90 @@
+#@(#)@(#)Makefile	2.5  2.5 4/3/91
+
+CSRCS		=	flock.c pop_dele.c pop_dropcopy.c \
+			pop_get_command.c pop_get_subcommand.c pop_init.c \
+			pop_last.c pop_list.c pop_log.c pop_lower.c \
+			pop_msg.c pop_parse.c pop_pass.c pop_quit.c \
+			pop_rset.c pop_send.c pop_stat.c pop_updt.c \
+			pop_user.c pop_xtnd.c pop_xmit.c popper.c \
+			pop_bull.c xtnd_xlst.c pop_uidl.c mktemp.c \
+			pop_rpop.c pop_apop.c md5.c
+
+OBJS		=	flock.o pop_dele.o pop_dropcopy.o \
+			pop_get_command.o pop_get_subcommand.o pop_init.o \
+			pop_last.o pop_list.o pop_log.o pop_lower.o \
+			pop_msg.o pop_parse.o pop_pass.o pop_quit.o \
+			pop_rset.o pop_send.o pop_stat.o pop_updt.o \
+			pop_user.o pop_xtnd.o pop_xmit.o popper.o \
+			pop_bull.o xtnd_xlst.o pop_uidl.o mktemp.o \
+			pop_rpop.o pop_apop.o md5.o
+
+DOCS		=	README pop3.rfc1081 pop3e.rfc1082 popper.8
+
+INCLUDES	=	popper.h version.h
+
+SRCS		=	${CSRCS} ${INCLUDES}
+
+SCCS		=	/usr/ucb/sccs
+
+REL		=
+
+#CC = gcc -fstrength-reduce -fpcc-struct-return 
+CC = cc
+
+MAKEFILE	=	Makefile
+
+#               Defines are described in the INSTALL document.
+
+CFLAGS		=	-O2 -DBIND43 -DHAVE_VSPRINTF -DSYSV \
+			-DAPOP=\"/etc/pop.auth\" -DPOPUID=\"pop\" \
+			-DBINMAIL_IS_SETGID -DAUTH -DBULLDB -DRPOP \
+			-DNEWSOS6
+
+TARGET		=	qpopper2.2.newsos6
+
+TAR		=	${TARGET}.tar
+
+INSTALLDIR	=	/usr/local/etc
+
+MANPAGE		=	popper.8
+
+CATPAGE		=	popper.0
+
+MANDIR		=	/usr/local/man/C/cat8
+
+
+all: ${TARGET} popauth
+
+
+${TARGET}: ${OBJS}
+	${CC}  ${OBJS} -o ${TARGET}  -lndbm -lcrypt -lsocket -lnsl -lresolv
+
+popauth: popauth.o flock.o
+	${CC}  -o popauth popauth.o  flock.o -lndbm -lcrypt -lsocket -lnsl -lresolv
+
+tar: ${SRCS} ${DOCS} ${MAKEFILE}
+	rm -f ${TAR} *.Z*
+	tar -cvf ${TAR} ${SRCS} ${DOCS} ${MAKEFILE}
+	compress ${TAR}
+	uuencode ${TAR}.Z ${TAR}.Z > ${TAR}.Z.uuencoded
+	split -300 ${TAR}.Z.uuencoded
+	mv xaa ${TAR}.Z.uuencoded.xaa
+	mv xab ${TAR}.Z.uuencoded.xab
+	mv xac ${TAR}.Z.uuencoded.xac
+	mv xad ${TAR}.Z.uuencoded.xad
+	mv xae ${TAR}.Z.uuencoded.xae
+
+clean:
+	rm -f core *.o *.Z*
+	${SCCS} clean
+
+sources: ${SRCS}
+
+${SRCS}:
+	${SCCS} get ${REL} $@ -p | expand -4 > $@
+
+${DOCS}:
+	${SCCS} get README -p | expand -4 > README
+	${SCCS} get popper.8 -p | expand -4 > popper.8
+	
+${OBJS}:    popper.h version.h
diff -urP qpopper2.2/pop_init.c qpopper2.2-newsos6/pop_init.c
--- qpopper2.2/pop_init.c	Thu May 23 02:14:36 1996
+++ qpopper2.2-newsos6/pop_init.c	Fri Mar  7 21:25:03 1997
@@ -295,7 +295,7 @@
 
 #if !(defined(BSD) && (BSD >= 199103)) && !defined(OSF1) && !defined(HPUX10)
 # if (!defined(__RES)) || (__RES < 19940415)
-#  ifdef SCOR5
+#  if defined(SCOR5) || defined(NEWSOS6)
 	extern struct __res_state	_res;
 #  else
         extern struct state     _res;
diff -urP qpopper2.2/pop_pass.c qpopper2.2-newsos6/pop_pass.c
--- qpopper2.2/pop_pass.c	Sat May 25 03:26:25 1996
+++ qpopper2.2-newsos6/pop_pass.c	Fri Mar  7 21:50:05 1997
@@ -159,7 +159,7 @@
 
 #endif	/* SUNOS4 */
 
-#if defined(SOLARIS2) || defined(AUX)
+#if defined(SOLARIS2) || defined(AUX) || defined(NEWSOS6)
 
 #include <shadow.h>
 
@@ -207,7 +207,7 @@
     return(POP_SUCCESS);
 }
 
-#endif	/* SOLARIS2 || AUX */
+#endif	/* SOLARIS2 || AUX || NEWSOS6 */
 
 #if defined(PTX) || defined(ISC)
 
diff -urP qpopper2.2/pop_xmit.c qpopper2.2-newsos6/pop_xmit.c
--- qpopper2.2/pop_xmit.c	Wed Feb 14 03:40:17 1996
+++ qpopper2.2-newsos6/pop_xmit.c	Fri Mar  7 21:27:13 1997
@@ -21,7 +21,7 @@
 #include <sys/wait.h>
 
 #if defined(SOLARIS2) || defined(UNIXWARE) || defined(AIX) || defined(PTX) \
-	|| defined(AUX)
+	|| defined(AUX) || defined(NEWSOS6)
 #include <sys/stat.h>
 #include <fcntl.h>
 #endif
Binary files qpopper2.2/popauth and qpopper2.2-newsos6/popauth differ
