%n ncpfs %v 2.0.6 %c * %l * %b * %d * %f * %t ncpfs-2.0.6.tgz %w Linux %% %setup patch -u -p1 <<'ENDPATCH' diff -ru2N ncpfs-2.0.6/Makefile ncpfs-MCC/Makefile --- ncpfs-2.0.6/Makefile Wed Aug 7 14:05:42 1996 +++ ncpfs-MCC/Makefile Wed Sep 25 09:15:18 1996 @@ -7,10 +7,10 @@ # If you are using kerneld to autoload ncp support, # uncomment this (kerneld is in linux since about 1.3.57): -#KERNELD = -DHAVE_KERNELD +KERNELD = -DHAVE_KERNELD # If your system is ELF, either also do a 'make install', or append the util/ # directory where the dynamic library resides to the environment # variable LD_LIBRARY_PATH -HAVE_ELF=$(shell file `which gcc`|grep ELF >/dev/null && echo -n yes ) +HAVE_ELF=yes @@ -31,5 +31,6 @@ all: - for i in $(SUBDIRS); do make -C $$i all; done + for i in $(SUBDIRS); do $(MAKE) -C $$i all; done +dummy: @if [ "$(HAVE_ELF)" = yes ] ;\ then \ @@ -47,5 +48,27 @@ for i in $(SUBDIRS); do make -C $$i dep; done -install: +install: all + install -d -m 555 /opt/ncpfs /opt/ncpfs/{bin,lib,man,sbin} \ + /opt{,/ncpfs}/man/man{1,5,8} + install -m 555 util/libncp.so.1.0 /opt/ncpfs/lib + ln -sf ../ncpfs/lib/libncp.so.1.0 /opt/lib + ldconfig + (cd bin; \ + install -s -m 555 ncopy nprint nsend nwbols nwboprops nwbpset \ + nwbpvalues nwfsinfo nwpasswd nwrights nwuserlist pqlist slist \ + /opt/ncpfs/bin;\ + install -s -m 4555 ncpmount ncpumount /opt/ncpfs/bin;\ + install -s -m 555 ipx_configure ipx_interface ipx_internal_net \ + ipx_route nwbocreate nwborm nwbpadd nwbpcreate nwbprm nwgrant \ + nwmsg nwrevoke pserver /opt/ncpfs/sbin) + (cd /opt/bin;ln -snf ../ncpfs/bin/* .) + (cd /opt/sbin;ln -snf ../ncpfs/sbin/* .) + install -m 444 man/*.1 /opt/ncpfs/man/man1 + install -m 444 man/*.5 /opt/ncpfs/man/man5 + install -m 444 man/*.8 /opt/ncpfs/man/man8 + gzip -9f /opt/ncpfs/man/man{1/*.1,5/*.5,8/*.8} + for i in 1 5 8;do \ + (cd /opt/man/man$$i;ln -nsf ../../ncpfs/man/man$$i/* .);done +dummi: for i in $(SUBDIRS); do make -C $$i install; done diff -ru2N ncpfs-2.0.6/ipx-1.0/Makefile ncpfs-MCC/ipx-1.0/Makefile --- ncpfs-2.0.6/ipx-1.0/Makefile Thu Feb 29 16:35:29 1996 +++ ncpfs-MCC/ipx-1.0/Makefile Wed Sep 25 08:02:28 1996 @@ -1,3 +1,3 @@ -CFLAGS = -O2 -Wall +CFLAGS = -O6 -fomit-frame-pointer -Wall UTILS = $(INTERM_BINDIR)/ipx_configure $(INTERM_BINDIR)/ipx_interface \ $(INTERM_BINDIR)/ipx_internal_net $(INTERM_BINDIR)/ipx_route diff -ru2N ncpfs-2.0.6/ipxdump/Makefile ncpfs-MCC/ipxdump/Makefile --- ncpfs-2.0.6/ipxdump/Makefile Wed Aug 7 21:40:30 1996 +++ ncpfs-MCC/ipxdump/Makefile Wed Sep 25 08:02:38 1996 @@ -1,5 +1,5 @@ EXEC= ipxdump ipxparse -CFLAGS= -Wall -O2 +CFLAGS= -Wall -O6 -fomit-frame-pointer OBJECTS= ipxutil.o diff -ru2N ncpfs-2.0.6/util/Makefile ncpfs-MCC/util/Makefile --- ncpfs-2.0.6/util/Makefile Wed Aug 7 21:43:07 1996 +++ ncpfs-MCC/util/Makefile Wed Sep 25 08:04:46 1996 @@ -17,5 +17,5 @@ #CFLAGS += -g -CFLAGS += -O2 +CFLAGS += -O6 -fomit-frame-pointer ifeq ($(HAVE_ELF),yes) @@ -62,5 +62,4 @@ ln -sf libncp.so.1.0 libncp.so.1 ln -sf libncp.so.1 libncp.so - export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH ncplib_err.o: ncplib_err.h ncplib_err.c diff -ru2N ncpfs-2.0.6/util/com_err/Makefile ncpfs-MCC/util/com_err/Makefile --- ncpfs-2.0.6/util/com_err/Makefile Sun Jul 21 20:44:11 1996 +++ ncpfs-MCC/util/com_err/Makefile Wed Sep 25 08:05:19 1996 @@ -4,5 +4,5 @@ OBJECTS = com_err.o error_message.o et_name.o init_et.o -CFLAGS = -Wall -O2 $(PIC_FLAG) +CFLAGS = -Wall -O6 $(PIC_FLAG) all: $(OBJECTS) ENDPATCH make * make install %%