1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
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 <knoppix@knopper.net>
Fabian Franz <debian@fabian-franz.net>
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}
|