Description: Tailor makefile for Debian packaging. Multiple alterations for the upstream makefile in order that a package can be built according to pactices of Debian policies. Author: Klaus Knopper Fabian Franz Forwarded: not-needed Last-Update: 2003-07-28 --- netpipes-4.2.orig/Makefile +++ netpipes-4.2/Makefile @@ -20,7 +20,7 @@ INSTROOT = /depot/collections0/netpipes4.1 #INSTROOT = /usr/local INSTBIN = ${INSTROOT}/bin -INSTMAN = ${INSTROOT}/man +INSTMAN = ${INSTROOT}/share/man # For those who wish to use gcc instead of the vendor's compiler. #CC=gcc -Wall @@ -104,8 +104,8 @@ SSLLIB = -L../SSLeay-0.8.1 -lssl -lcrypto MANPAGES = netpipes.1 faucet.1 hose.1 \ - sockdown.1 getpeername.1 timelimit.1 encapsulate.1 \ - ssl-auth.1 + sockdown.1 getpeername.1 timelimit.1 encapsulate.1 +# ssl-auth.1 PROGRAMS = faucet hose sockdown getpeername timelimit encapsulate all : ${PROGRAMS} @@ -138,20 +138,21 @@ ${CC} ${CFLAGS} ${SSLINC} -c $< install : all - test -d ${INSTROOT} || mkdir ${INSTROOT} - test -d ${INSTBIN} || mkdir ${INSTBIN} + mkdir -p ${INSTBIN} cp ${PROGRAMS} ${INSTBIN}/ - - rm -f ${INSTBIN}/getsockname - ln -s getpeername ${INSTBIN}/getsockname - - [ -x ssl-auth ] && cp ssl-auth ${INSTBIN}/ - test -d ${INSTMAN} || mkdir ${INSTMAN} - test -d ${INSTMAN}/man1 || mkdir ${INSTMAN}/man1 + #- rm -f ${INSTBIN}/getsockname + #ln -s getpeername ${INSTBIN}/getsockname + mv -f ${INSTBIN}/getpeername ${INSTBIN}/getsockname + #- [ -x ssl-auth ] && cp ssl-auth ${INSTBIN}/ + mkdir -p ${INSTMAN}/man1 cp ${MANPAGES} ${INSTMAN}/man1/ + mv -f ${INSTMAN}/man1/getpeername.1 ${INSTMAN}/man1/getsockname.1 + #ln -s getpeername.1 ${INSTMAN}/man1/getsockname.1 # clean : - rm -f ${FOBJS} ${HOBJS} ${SOBJS} ${GOBJS} ${TOBJS} ${EOBJS} ${SSLOBJS} + rm -f ${FOBJS} ${HOBJS} ${SOBJS} ${GOBJS} ${TOBJS} ${EOBJS} ${SSLOBJS} ${PROGRAMS} spotless: clean rm -f *~ core ${PROGRAMS}