wu-ftpd-2.4.2-beta13をコンパイルしてみました。 コンパイルは以下の環境で行いました。 NWS-5000TF NEWS-OS Release 6.1.2 NEWS-C Release 1.010 /usr/bin/make % ./build sn6 でOKです。 S/KEYを使用するようになっているので、使わない人はconfig.hのdefineをundef にして、Makefile.sn6からライブラリの指定をとってください。 hiraga@meis.sony.co.jp diff -crP wu-ftpd-2.4.2-beta-13/.bld.hlp wu-ftpd-2.4.2-beta-13-newsos6/.bld.hlp *** wu-ftpd-2.4.2-beta-13/.bld.hlp Thu Jan 1 09:00:00 1970 --- wu-ftpd-2.4.2-beta-13-newsos6/.bld.hlp Thu Mar 13 21:20:13 1997 *************** *** 0 **** --- 1,29 ---- + Usage: build + + may be one of the following: + gen : generic make (copy this when porting to a new system) + aix : IBM AIX + aux : AU/X + bdi : BSD/OS + bsd : BSD + dec : DEC Unix 3.X or later + dyn : Dynix + fbs : FreeBSD 2.0 or later + hiu : Hitachi Unix + hpx : HP-UX + lnx : Linux (tested on 1.3.X and 2.0.0) + nbs : NetBSD 1.X + nx2 : NeXTstep 2.x + nx3 : NeXTstep 3.x + osf : OSF/1 + ptx : ??? + sco : SCO Unix 3.2v4.2 / SCO OpenServer 5 + sgi : SGI Irix 4.0.5a + sny : Sony NEWS-OS 4.x + sn6 : Sony NEWS-OS 6.x with S/KEY + sol : SunOS 5.x / Solaris 2.x + s41 : SunOS 4.1.x + ult : Ultrix 4.x + uxw : UnixWare 1.1 or later + clean : Clean up object files and such to reduce disk space after building. + install: Install ftpd. diff -crP wu-ftpd-2.4.2-beta-13/build wu-ftpd-2.4.2-beta-13-newsos6/build *** wu-ftpd-2.4.2-beta-13/build Mon Mar 3 18:39:34 1997 --- wu-ftpd-2.4.2-beta-13-newsos6/build Thu Mar 13 21:13:57 1997 *************** *** 25,31 **** ptx : ??? sco : SCO Unix 3.2v4.2 / SCO OpenServer 5 sgi : SGI Irix 4.0.5a ! sny : Sony NewsOS sol : SunOS 5.x / Solaris 2.x s41 : SunOS 4.1.x ult : Ultrix 4.x --- 25,32 ---- ptx : ??? sco : SCO Unix 3.2v4.2 / SCO OpenServer 5 sgi : SGI Irix 4.0.5a ! sny : Sony NEWS-OS 4.x ! sn6 : Sony NEWS-OS 6.x with S/KEY sol : SunOS 5.x / Solaris 2.x s41 : SunOS 4.1.x ult : Ultrix 4.x diff -crP wu-ftpd-2.4.2-beta-13/config.h wu-ftpd-2.4.2-beta-13-newsos6/config.h *** wu-ftpd-2.4.2-beta-13/config.h Mon Mar 3 18:39:34 1997 --- wu-ftpd-2.4.2-beta-13-newsos6/config.h Thu Mar 13 21:13:57 1997 *************** *** 72,76 **** * See README-2.4-HOBBIT for more information on this option. */ ! #undef SKEY --- 72,76 ---- * See README-2.4-HOBBIT for more information on this option. */ ! #define SKEY diff -crP wu-ftpd-2.4.2-beta-13/makefiles/Makefile.sn6 wu-ftpd-2.4.2-beta-13-newsos6/makefiles/Makefile.sn6 *** wu-ftpd-2.4.2-beta-13/makefiles/Makefile.sn6 Thu Jan 1 09:00:00 1970 --- wu-ftpd-2.4.2-beta-13-newsos6/makefiles/Makefile.sn6 Thu Mar 13 21:13:57 1997 *************** *** 0 **** --- 1,30 ---- + BINDIR= /usr/local/sbin + ETCDIR= /etc + MANDIR= /usr/local/man/C + MANEXT= 8 + INSTALL= /usr/ucb/install + + all: + @ echo 'Use the "build" command (shell script) to make ftpd.' + @ echo 'You can say "build help" for details on how it works.' + + install: bin/ftpd bin/ftpcount bin/ftpshut + -mv -f ${BINDIR}/in.ftpd ${BINDIR}/in.ftpd-old + @echo installing binaries. + ${INSTALL} -c -o bin -g bin -m 755 bin/ftpd ${BINDIR}/in.ftpd + ${INSTALL} -c -o bin -g bin -m 755 bin/ftpshut ${BINDIR}/ftpshut + ${INSTALL} -c -o bin -g bin -m 755 bin/ftpcount ${BINDIR}/ftpcount + ${INSTALL} -c -o bin -g bin -m 755 bin/ftpwho ${BINDIR}/ftpwho + @echo installing manpages. + ${INSTALL} -c -o bin -g bin -m 755 doc/ftpd.8 ${MANDIR}/man8/in.ftpd.8 + ${INSTALL} -c -o bin -g bin -m 755 doc/ftpcount.1 ${MANDIR}/man1/ftpcount.1 + ${INSTALL} -c -o bin -g bin -m 755 doc/ftpwho.1 ${MANDIR}/man1/ftpwho.1 + ${INSTALL} -c -o bin -g bin -m 755 doc/ftpshut.8 ${MANDIR}/man8/ftpshut.8 + ${INSTALL} -c -o bin -g bin -m 755 doc/ftpaccess.5 ${MANDIR}/man5/ftpaccess.5 + ${INSTALL} -c -o bin -g bin -m 755 doc/ftphosts.5 ${MANDIR}/man5/ftphosts.5 + ${INSTALL} -c -o bin -g bin -m 755 doc/ftpconversions.5 ${MANDIR}/man5/ftpconversions.5 + ${INSTALL} -c -o bin -g bin -m 755 doc/xferlog.5 ${MANDIR}/man5/xferlog.5 + + + + diff -crP wu-ftpd-2.4.2-beta-13/src/access.c wu-ftpd-2.4.2-beta-13-newsos6/src/access.c *** wu-ftpd-2.4.2-beta-13/src/access.c Mon Mar 3 18:39:51 1997 --- wu-ftpd-2.4.2-beta-13-newsos6/src/access.c Thu Mar 13 21:13:57 1997 *************** *** 355,361 **** log_outbound_xfers = 0; log_commands = 0; ! memset((void *)&class, 0, sizeof(class)); (void) acl_getclass(class); --- 355,361 ---- log_outbound_xfers = 0; log_commands = 0; ! memset((void *)class, 0, sizeof(class)); (void) acl_getclass(class); diff -crP wu-ftpd-2.4.2-beta-13/src/config/config.sn6 wu-ftpd-2.4.2-beta-13-newsos6/src/config/config.sn6 *** wu-ftpd-2.4.2-beta-13/src/config/config.sn6 Thu Jan 1 09:00:00 1970 --- wu-ftpd-2.4.2-beta-13-newsos6/src/config/config.sn6 Thu Mar 13 21:13:58 1997 *************** *** 0 **** --- 1,49 ---- + #define HAVE_SYMLINK + #undef F_SETOWN + #define HAVE_DIRENT + #define HAVE_D_NAMLEN + #undef HAVE_FLOCK + #define HAVE_FTW + #define HAVE_GETCWD + #define HAVE_GETRLIMIT + #undef HAVE_PSTAT + #define HAVE_STATVFS + #define HAVE_ST_BLKSIZE + #define HAVE_SYSINFO + #undef HAVE_UT_UT_HOST + #define HAVE_VPRINTF + #define L_INCR SEEK_CUR + #define REGEX + #define SPT_TYPE SPT_NONE + #define SHADOW_PASSWORD + #define SVR4 + #define USG + #define USE_VAR + #define USE_TMP + #define USE_ETC + + #include + + #ifndef NCARGS + #ifdef _POSIX_ARG_MAX + #define NCARGS _POSIX_ARG_MAX + #else + #ifdef ARG_MAX + #define NCARGS ARG_MAX + #endif + #endif + #endif + + #include + #include + #include + + #ifndef FACILITY + #define FACILITY LOG_DAEMON + #endif + + typedef void SIGNAL_TYPE; + + #include "../config.h" + + #define realpath realpath_on_steroids /* hack to work around unistd.h */ diff -crP wu-ftpd-2.4.2-beta-13/src/makefiles/Makefile.sn6 wu-ftpd-2.4.2-beta-13-newsos6/src/makefiles/Makefile.sn6 *** wu-ftpd-2.4.2-beta-13/src/makefiles/Makefile.sn6 Thu Jan 1 09:00:00 1970 --- wu-ftpd-2.4.2-beta-13-newsos6/src/makefiles/Makefile.sn6 Thu Mar 13 21:13:58 1997 *************** *** 0 **** --- 1,55 ---- + # + # for Sony NEWS-OS Release 6.x + # + CC = cc + IFLAGS = -I.. -I../support -I/usr/local/include + LFLAGS = -L../support -L/usr/local/lib + CFLAGS = -O2 ${IFLAGS} ${LFLAGS} + LIBES = -lsupport -lsocket -lnsl -lgen -lskey + LIBC = /usr/ccs/lib/libc.so + LINTFLAGS= + LKERB = + MKDEP = makedepend + + SRCS = ftpd.c ftpcmd.c glob.c logwtmp.c popen.c vers.c access.c extensions.c \ + realpath.c acl.c private.c authenticate.c conversions.c hostacc.c \ + sigfix.c + OBJS = ftpd.o ftpcmd.o glob.o logwtmp.o popen.o vers.o access.o extensions.o \ + realpath.o acl.o private.o authenticate.o conversions.o hostacc.o \ + sigfix.o + + all: ftpd ftpcount ftpshut ckconfig + + ftpcount: ftpcount.c pathnames.h + ${CC} ${CFLAGS} -o $@ ftpcount.c vers.o ${LIBES} + + ftpshut: ftpshut.c pathnames.h + ${CC} ${CFLAGS} -o $@ ftpshut.c vers.o ${LIBES} + + ckconfig: ckconfig.c + ${CC} ${CFLAGS} -o $@ ckconfig.c + + ftpd: ${OBJS} ${LIBC} + ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBES} + + index: index.o ${LIBC} + ${CC} -Bstatic -o $@ index.o + + vers.c: ftpd.c ftpcmd.y + sh newvers.sh + + clean: + rm -f ${OBJS} ftpd ftpcmd.c ftpshut ftpshut.o ftpcount ftpcount.o + rm -f core index index.o + + cleandir: clean + rm -f tags .depend + + depend: ${SRCS} + ${MKDEP} ${CFLAGS} ${SRCS} + + lint: ${SRCS} + lint ${CFLAGS} ${LINTFLAGS} ${SRCS} + + tags: ${SRCS} + ctags ${SRCS} diff -crP wu-ftpd-2.4.2-beta-13/src/newvers.sh wu-ftpd-2.4.2-beta-13-newsos6/src/newvers.sh *** wu-ftpd-2.4.2-beta-13/src/newvers.sh Mon Mar 3 18:39:59 1997 --- wu-ftpd-2.4.2-beta-13-newsos6/src/newvers.sh Thu Mar 13 21:13:58 1997 *************** *** 18,28 **** # @(#)$Id: newvers.sh,v 1.11 1997/03/02 01:32:23 sob Exp $ based on # newvers.sh 5.3 (Berkeley) 10/31/88 # if [ ! -r edit ]; then echo 0 > edit; fi touch edit awk ' { edit = $1 + 1; }\ END { printf "char version[] = \"Version wu-2.4.2-academ[BETA-13](%d) ", edit > "vers.c";\ - #LANG= - #LC_TIME= printf "%d\n", edit > "edit"; }' < edit echo `date`'";' >> vers.c --- 18,29 ---- # @(#)$Id: newvers.sh,v 1.11 1997/03/02 01:32:23 sob Exp $ based on # newvers.sh 5.3 (Berkeley) 10/31/88 # + LANG=C;export LANG + LC_CTYPE=C;export LC_CTYPE + LC_TIME=C;export LC_TIME if [ ! -r edit ]; then echo 0 > edit; fi touch edit awk ' { edit = $1 + 1; }\ END { printf "char version[] = \"Version wu-2.4.2-academ[BETA-13](%d) ", edit > "vers.c";\ printf "%d\n", edit > "edit"; }' < edit echo `date`'";' >> vers.c diff -crP wu-ftpd-2.4.2-beta-13/support/makefiles/Makefile.sn6 wu-ftpd-2.4.2-beta-13-newsos6/support/makefiles/Makefile.sn6 *** wu-ftpd-2.4.2-beta-13/support/makefiles/Makefile.sn6 Thu Jan 1 09:00:00 1970 --- wu-ftpd-2.4.2-beta-13-newsos6/support/makefiles/Makefile.sn6 Thu Mar 13 21:16:08 1997 *************** *** 0 **** --- 1,36 ---- + # + # Makefile for Sony NEWS-OS Release 6.x + # + CC = cc + AR = ar cq + RANLIB = touch + LIBC = /usr/ccs/lib/libc.a + IFLAGS = -I/usr/local/include + LFLAGS = -L/usr/local/lib + CFLAGS = -O2 ${IFLAGS} ${LFLAGS} + + SRCS = strcasestr.c strsep.c authuser.c snprintf.c + OBJS = strcasestr.o strsep.o authuser.o snprintf.o + + all: $(OBJS) + -rm -f libsupport.a + ${AR} libsupport.a $(OBJS) + ${RANLIB} libsupport.a + + clean: + -rm -f *.o libsupport.a + + ftp.h: + install -c -m 444 ftp.h /usr/local/include/arpa + + strcasestr.o: strcasestr.c + ${CC} ${CFLAGS} -c strcasestr.c + + strsep.o: strsep.c + ${CC} ${CFLAGS} -c strsep.c + + authuser.o: authuser.c + ${CC} ${CFLAGS} -c authuser.c + + snprintf.o: snprintf.c + ${CC} ${CFLAGS} -c snprintf.c