View | Details | Raw Unified | Return to bug 44756
Collapse All | Expand All

(-)bsdftpd-ssl/Makefile.FreeBSD (-1 / +2 lines)
Lines 13-19 Link Here
13
LN= ln -s -f
13
LN= ln -s -f
14
MKDIR= mkdir -m 755
14
MKDIR= mkdir -m 755
15
15
16
SUBDIR= ftpd \
16
SUBDIR= port \
17
	ftpd \
17
	ftp
18
	ftp
18
19
19
install: ftp ftpd
20
install: ftp ftpd
(-)bsdftpd-ssl/config.sh (+10 lines)
Lines 11-16 Link Here
11
    ln -s Makefile.FreeBSD Makefile
11
    ln -s Makefile.FreeBSD Makefile
12
    cd $workdir/ftpd
12
    cd $workdir/ftpd
13
    ln -s Makefile.FreeBSD Makefile
13
    ln -s Makefile.FreeBSD Makefile
14
    cd $workdir/port/bsdlibc
15
    ln -s Makefile.FreeBSD Makefile
16
    cd $workdir/port/libedit
17
    ln -s Makefile.FreeBSD Makefile
14
    ;;
18
    ;;
15
Linux)
19
Linux)
16
    $0 clean
20
    $0 clean
Lines 19-24 Link Here
19
    cd $workdir/ftp
23
    cd $workdir/ftp
20
    ln -s Makefile.linux Makefile
24
    ln -s Makefile.linux Makefile
21
    cd $workdir/ftpd
25
    cd $workdir/ftpd
26
    cd $workdir/port/bsdlibc
27
    ln -s Makefile.linux Makefile
28
    cd $workdir/port/libedit
29
    ln -s Makefile.linux Makefile
22
    case "$2" in
30
    case "$2" in
23
	Slackware)
31
	Slackware)
24
	    ln -s Makefile.linux-shadow Makefile
32
	    ln -s Makefile.linux-shadow Makefile
Lines 36-41 Link Here
36
    rm -f $workdir/ftpd/Makefile
44
    rm -f $workdir/ftpd/Makefile
37
    rm -f $workdir/ftp/Makefile
45
    rm -f $workdir/ftp/Makefile
38
    rm -f $workdir/port/bsdglob.h
46
    rm -f $workdir/port/bsdglob.h
47
    rm -f $workdir/port/bsdlibc/Makefile
48
    rm -f $workdir/port/libedit/Makefile
39
    ;;
49
    ;;
40
"")
50
"")
41
    echo "usage:"
51
    echo "usage:"
(-)bsdftpd-ssl/contrib/ls/ls.c (+1 lines)
Lines 62-67 Link Here
62
#include <string.h>
62
#include <string.h>
63
#include <unistd.h>
63
#include <unistd.h>
64
#include <locale.h>
64
#include <locale.h>
65
#include <pwd.h>
65
66
66
#ifdef LINUX /* Linux port */
67
#ifdef LINUX /* Linux port */
67
#include "bsdport.h"
68
#include "bsdport.h"
(-)bsdftpd-ssl/ftp/Makefile.FreeBSD (-8 / +3 lines)
Lines 16-22 Link Here
16
SRCS=	cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c ruserpass.c \
16
SRCS=	cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c ruserpass.c \
17
	util.c
17
	util.c
18
18
19
CFLAGS+= -Wall
19
CFLAGS+= -I../port -Wall
20
20
21
# IPv6
21
# IPv6
22
#CFLAGS+=-DINET6
22
#CFLAGS+=-DINET6
Lines 31-42 Link Here
31
CFLAGS+=-I../ssl
31
CFLAGS+=-I../ssl
32
###
32
###
33
33
34
LDADD+=	-ledit -lncurses
34
LDADD+=	-lncurses ../port/libedit.a
35
DPADD+=	${LIBEDIT} ${LIBTERMCAP}
35
DPADD+=	${LIBEDIT} ${LIBNCURSES}
36
37
LINKS=	${BINDIR}/ftp ${BINDIR}/pftp \
38
	${BINDIR}/ftp ${BINDIR}/gate-ftp
39
MLINKS=	ftp.1 pftp.1 \
40
	ftp.1 gate-ftp.1
41
36
42
.include "../port/bsd_prog.mk"
37
.include "../port/bsd_prog.mk"
(-)bsdftpd-ssl/ftpd/Makefile.FreeBSD (-5 / +13 lines)
Lines 7-13 Link Here
7
MANDIR=/man/man
7
MANDIR=/man/man
8
### end of dest variables
8
### end of dest variables
9
9
10
### Internal ls
10
### Enable internal ls support
11
FTPD_INTERNAL_LS = 1
11
FTPD_INTERNAL_LS = 1
12
###
12
###
13
13
Lines 24-37 Link Here
24
### You shouldn't need to edit anything below
24
### You shouldn't need to edit anything below
25
PROG=	ftpd
25
PROG=	ftpd
26
MAN8=	ftpd.8
26
MAN8=	ftpd.8
27
SRCS+=	ftpd.c ftpcmd.y logwtmp.c popen.c skey-stuff.c
27
SRCS+=	ftpd.c ftpcmd.y logwtmp.c popen.c
28
28
29
CFLAGS+=-DSETPROCTITLE -DSKEY -DLOGIN_CAP -DVIRTUAL_HOSTING -Wall
29
CFLAGS+=-DSETPROCTITLE -DLOGIN_CAP -DVIRTUAL_HOSTING -Wall
30
YFLAGS=
30
YFLAGS=
31
31
32
LDADD+=	-lskey -lmd -lcrypt -lutil
32
LDADD+=	-lmd -lcrypt -lutil
33
DPADD+=	${LIBSKEY} ${LIBMD} ${LIBCRYPT} ${LIBUTIL}
33
DPADD+=	${LIBMD} ${LIBCRYPT} ${LIBUTIL}
34
34
35
### Internal ls support
35
.ifdef FTPD_INTERNAL_LS
36
.ifdef FTPD_INTERNAL_LS
36
LSDIR=	../contrib/ls
37
LSDIR=	../contrib/ls
37
.PATH:	${.CURDIR}/${LSDIR}
38
.PATH:	${.CURDIR}/${LSDIR}
Lines 39-49 Link Here
39
CFLAGS+=-DINTERNAL_LS -Dmain=ls_main -I${.CURDIR}/${LSDIR}
40
CFLAGS+=-DINTERNAL_LS -Dmain=ls_main -I${.CURDIR}/${LSDIR}
40
.endif
41
.endif
41
42
43
### PAM support
42
.if defined(NOPAM)
44
.if defined(NOPAM)
43
CFLAGS+=-DNOPAM
45
CFLAGS+=-DNOPAM
44
.else
46
.else
45
DPADD+= ${LIBPAM}
47
DPADD+= ${LIBPAM}
46
LDADD+= ${MINUSLPAM}
48
LDADD+= ${MINUSLPAM}
47
.endif
49
.endif
50
51
### OPIE/S-Key support
52
#SRCS+= skey-stuff.c
53
#CFLAGS+= -DSKEY
54
#LDADD+=	-lskey
55
#DPADD+=	${LIBSKEY}
48
56
49
.include "../port/bsd_prog.mk"
57
.include "../port/bsd_prog.mk"
(-)bsdftpd-ssl/port/bsdlibc/Makefile (-95 lines)
Lines 1-95 Link Here
1
#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2
# $FreeBSD: src/lib/libedit/Makefile,v 1.18 1999/10/03 10:41:40 marcel Exp $
3
4
CC= gcc
5
6
LIB=	bsdlibc
7
SHLIB_MAJOR=	3
8
SHLIB_MINOR=	0
9
CONTRIBPATH= ${CURDIR}/../../contrib
10
11
OPT_CFLAGS=	-Wall -O2 -Wno-unused -Wno-uninitialized
12
13
OSRCS=	
14
15
DPADD=	${LIBTERMCAP}
16
#LDADD=	-ltermcap
17
18
MAN3=   editline.3
19
MAN5=   editrc.5
20
21
MLINKS=	editline.3 el_init.3 editline.3 el_end.3 editline.3 el_reset.3 \
22
	editline.3 el_gets.3 editline.3 el_getc.3 editline.3 el_push.3 \
23
	editline.3 el_parse.3 editline.3 el_set.3 editline.3 el_source.3 \
24
	editline.3 el_resize.3 editline.3 el_line.3 \
25
	editline.3 el_insertstr.3 editline.3 el_deletestr.3 \
26
	editline.3 history_init.3 editline.3 history_end.3 \
27
	editline.3 history.3 editline.3 el_data_get.3 editline.3 el_data_set.3
28
29
# For speed and debugging
30
#SRCS=   ${OSRCS} tokenizer.c history.c
31
# For protection
32
SRCS=	stringlist.o reallocf.o refill.o fflush.o findfp.o makebuf.o \
33
	fwalk.o stdio.o fgetln.o glob.o collcmp.o
34
LIBPATH= ${CONTRIBPATH}/${LIB}
35
36
SRCS+=	
37
38
CLEANFILES+=
39
CFLAGS+= ${OPT_CFLAGS} -I. -I${CURDIR} -I../../port
40
#CFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH
41
#CFLAGS+=#-DDEBUG_PASTE
42
43
AHDR=
44
ASRC=
45
46
all: ${SRCS} lib${LIB}.a
47
48
stringlist.o: ${LIBPATH}/stringlist.c
49
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/stringlist.c
50
51
reallocf.o: ${LIBPATH}/reallocf.c
52
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/reallocf.c
53
54
fgetln.o: ${LIBPATH}/fgetln.c
55
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/fgetln.c
56
57
refill.o: ${LIBPATH}/refill.c
58
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/refill.c
59
60
fflush.o: ${LIBPATH}/fflush.c
61
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/fflush.c
62
63
findfp.o: ${LIBPATH}/findfp.c
64
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/findfp.c
65
66
makebuf.o: ${LIBPATH}/makebuf.c
67
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/makebuf.c
68
69
fwalk.o: ${LIBPATH}/fwalk.c
70
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/fwalk.c
71
72
stdio.o: ${LIBPATH}/stdio.c
73
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/stdio.c
74
75
glob.o: ${LIBPATH}/glob.c
76
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/glob.c
77
78
collcmp.o: ${LIBPATH}/collcmp.c
79
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/collcmp.c
80
81
lib${LIB}.a: ${SRCS}
82
	@echo [building standard ${LIB} library]
83
	rm -f lib${LIB}.a 
84
	if [ -f /usr/bin/lorder ]; then \
85
		ar cq lib${LIB}.a `lorder ${SRCS} | tsort`  ; \
86
	else \
87
		ar cq lib${LIB}.a ${SRCS}; \
88
	fi;
89
	if [ -f /usr/bin/ranlib ]; then \
90
		ranlib lib${LIB}.a; \
91
	fi;
92
	cp lib${LIB}.a ../
93
94
clean:
95
	rm -f *.o lib${LIB}.a ../lib${LIB}.a ${CLEANFILES}
(-)bsdftpd-ssl/port/bsdlibc/Makefile.FreeBSD (+5 lines)
Line 0 Link Here
1
#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2
# $FreeBSD: src/lib/libedit/Makefile,v 1.18 1999/10/03 10:41:40 marcel Exp $
3
4
all: /dev/null
5
clean: /dev/null
(-)bsdftpd-ssl/port/bsdlibc/Makefile.linux (+95 lines)
Line 0 Link Here
1
#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2
# $FreeBSD: src/lib/libedit/Makefile,v 1.18 1999/10/03 10:41:40 marcel Exp $
3
4
CC= gcc
5
6
LIB=	bsdlibc
7
SHLIB_MAJOR=	3
8
SHLIB_MINOR=	0
9
CONTRIBPATH= ${CURDIR}/../../contrib
10
11
OPT_CFLAGS=	-Wall -O2 -Wno-unused -Wno-uninitialized
12
13
OSRCS=	
14
15
DPADD=	${LIBTERMCAP}
16
#LDADD=	-ltermcap
17
18
MAN3=   editline.3
19
MAN5=   editrc.5
20
21
MLINKS=	editline.3 el_init.3 editline.3 el_end.3 editline.3 el_reset.3 \
22
	editline.3 el_gets.3 editline.3 el_getc.3 editline.3 el_push.3 \
23
	editline.3 el_parse.3 editline.3 el_set.3 editline.3 el_source.3 \
24
	editline.3 el_resize.3 editline.3 el_line.3 \
25
	editline.3 el_insertstr.3 editline.3 el_deletestr.3 \
26
	editline.3 history_init.3 editline.3 history_end.3 \
27
	editline.3 history.3 editline.3 el_data_get.3 editline.3 el_data_set.3
28
29
# For speed and debugging
30
#SRCS=   ${OSRCS} tokenizer.c history.c
31
# For protection
32
SRCS=	stringlist.o reallocf.o refill.o fflush.o findfp.o makebuf.o \
33
	fwalk.o stdio.o fgetln.o glob.o collcmp.o
34
LIBPATH= ${CONTRIBPATH}/${LIB}
35
36
SRCS+=	
37
38
CLEANFILES+=
39
CFLAGS+= ${OPT_CFLAGS} -I. -I${CURDIR} -I../../port
40
#CFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH
41
#CFLAGS+=#-DDEBUG_PASTE
42
43
AHDR=
44
ASRC=
45
46
all: ${SRCS} lib${LIB}.a
47
48
stringlist.o: ${LIBPATH}/stringlist.c
49
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/stringlist.c
50
51
reallocf.o: ${LIBPATH}/reallocf.c
52
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/reallocf.c
53
54
fgetln.o: ${LIBPATH}/fgetln.c
55
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/fgetln.c
56
57
refill.o: ${LIBPATH}/refill.c
58
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/refill.c
59
60
fflush.o: ${LIBPATH}/fflush.c
61
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/fflush.c
62
63
findfp.o: ${LIBPATH}/findfp.c
64
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/findfp.c
65
66
makebuf.o: ${LIBPATH}/makebuf.c
67
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/makebuf.c
68
69
fwalk.o: ${LIBPATH}/fwalk.c
70
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/fwalk.c
71
72
stdio.o: ${LIBPATH}/stdio.c
73
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/stdio.c
74
75
glob.o: ${LIBPATH}/glob.c
76
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/glob.c
77
78
collcmp.o: ${LIBPATH}/collcmp.c
79
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/collcmp.c
80
81
lib${LIB}.a: ${SRCS}
82
	@echo [building standard ${LIB} library]
83
	rm -f lib${LIB}.a 
84
	if [ -f /usr/bin/lorder ]; then \
85
		ar cq lib${LIB}.a `lorder ${SRCS} | tsort`  ; \
86
	else \
87
		ar cq lib${LIB}.a ${SRCS}; \
88
	fi;
89
	if [ -f /usr/bin/ranlib ]; then \
90
		ranlib lib${LIB}.a; \
91
	fi;
92
	cp lib${LIB}.a ../
93
94
clean:
95
	rm -f *.o lib${LIB}.a ../lib${LIB}.a ${CLEANFILES}
(-)bsdftpd-ssl/port/libedit/Makefile (-97 lines)
Lines 1-97 Link Here
1
#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2
# $FreeBSD: src/lib/libedit/Makefile,v 1.18 1999/10/03 10:41:40 marcel Exp $
3
4
LIB=	edit
5
SHLIB_MAJOR=	3
6
SHLIB_MINOR=	0
7
8
CONTRIBPATH= ${CURDIR}/../../contrib
9
LIBPATH= ${CONTRIBPATH}/lib${LIB}
10
11
OPT_CFLAGS= -Wall -O2 -Wno-unused -Wno-uninitialized
12
13
OSRCS=	${LIBPATH}/chared.c ${LIBPATH}/common.c ${LIBPATH}/el.c \
14
	${LIBPATH}/emacs.c ${CURDIR}/fcns.c ${CURDIR}/help.c \
15
	${LIBPATH}/hist.c ${LIBPATH}/key.c ${LIBPATH}/map.c \
16
	${LIBPATH}/parse.c ${LIBPATH}/prompt.c ${LIBPATH}/read.c \
17
	${LIBPATH}/refresh.c ${LIBPATH}/search.c ${LIBPATH}/sig.c \
18
	${LIBPATH}/term.c ${LIBPATH}/tty.c ${LIBPATH}/vi.c
19
20
DPADD=	${LIBTERMCAP}
21
#LDADD=	../libbsdlibc.a -ltermcap
22
23
# For speed and debugging
24
#SRCS=   ${OSRCS} tokenizer.c history.c
25
# For protection
26
SRCS=	editline.o tokenizer.o history.o \
27
28
SRCS+=	common.h emacs.h fcns.h help.h vi.h
29
30
CLEANFILES+=common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h 
31
CFLAGS+= ${OPT_CFLAGS} -I. -I${CURDIR} -I${LIBPATH} -I../../port
32
CFLAGS+= -DLINUX
33
#CFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH
34
#CFLAGS+=#-DDEBUG_PASTE
35
36
AHDR=vi.h emacs.h common.h
37
ASRC=${LIBPATH}/vi.c ${LIBPATH}/emacs.c ${LIBPATH}/common.c
38
39
all: ${AHDR} fcns.c help.h help.c editline.c  ${SRCS} libedit.a
40
41
vi.h: ${LIBPATH}/vi.c ${LIBPATH}/makelist
42
	sh ${LIBPATH}/makelist -h ${LIBPATH}/vi.c > ${CURDIR}/vi.h
43
44
emacs.h: ${LIBPATH}/emacs.c ${LIBPATH}/makelist
45
	sh ${LIBPATH}/makelist -h ${LIBPATH}/emacs.c > ${CURDIR}/emacs.h
46
47
common.h: ${LIBPATH}/common.c ${LIBPATH}/makelist
48
	sh ${LIBPATH}/makelist -h ${LIBPATH}/common.c > ${CURDIR}/common.h
49
50
fcns.h: ${AHDR} ${LIBPATH}/makelist
51
	sh ${LIBPATH}/makelist -fh ${AHDR} > ${CURDIR}/fcns.h
52
53
fcns.c: ${AHDR} fcns.h ${LIBPATH}/makelist
54
	sh ${LIBPATH}/makelist -fc ${AHDR} > ${CURDIR}/fcns.c
55
56
help.c: ${ASRC} ${LIBPATH}/makelist
57
	sh ${LIBPATH}/makelist -bc ${ASRC} > ${CURDIR}/help.c
58
59
help.h: ${ASRC} ${LIBPATH}/makelist
60
	sh ${LIBPATH}/makelist -bh ${ASRC} > ${CURDIR}/help.h
61
62
editline.c:
63
	sh ${LIBPATH}/makelist -e ${OSRCS} > ${CURDIR}/editline.c
64
65
tokenizer.o: ${LIBPATH}/tokenizer.c
66
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/tokenizer.c
67
68
history.o: ${LIBPATH}/history.c
69
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/history.c
70
71
#beforedepend editline.o editline.po editline.So: \
72
#	vi.h emacs.h common.h fcns.h fcns.c help.h help.c
73
#
74
#test:	test.o libedit.a ${DPADD} ${LIBTERMCAP}
75
#	${CC} ${CFLAGS} ${ALLSRC} -o ${TARGET} libedit.a ${LDADD}
76
77
#.include <bsd.lib.mk>
78
79
#LIB=	bsd
80
#CFLAGS= -DLIBC_SCCS  -I../../include
81
#OBJS=	getenv.o herror.o setenv.o strerror.o getpass.o inet_addr.o
82
83
lib${LIB}.a: ${SRCS}
84
	@echo [building standard ${LIB} library]
85
	rm -f lib${LIB}.a 
86
	if [ -f /usr/bin/lorder ]; then \
87
		ar cq lib${LIB}.a `lorder ${SRCS} | tsort`  ; \
88
	else \
89
		ar cq lib${LIB}.a ${SRCS}; \
90
	fi;
91
	if [ -f /usr/bin/ranlib ]; then \
92
		ranlib lib${LIB}.a; \
93
	fi;
94
	cp lib${LIB}.a ../
95
96
clean:
97
	rm -f *.o lib${LIB}.a ../lib${LIB}.a ${CLEANFILES}
(-)bsdftpd-ssl/port/libedit/Makefile.FreeBSD (+97 lines)
Line 0 Link Here
1
#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2
# $FreeBSD: src/lib/libedit/Makefile,v 1.18 1999/10/03 10:41:40 marcel Exp $
3
4
LIB=	edit
5
SHLIB_MAJOR=	3
6
SHLIB_MINOR=	0
7
8
CONTRIBPATH= ${.CURDIR}/../../contrib
9
LIBPATH= ${CONTRIBPATH}/lib${LIB}
10
11
OPT_CFLAGS= -Wall -O2 -Wno-unused -Wno-uninitialized
12
13
OSRCS=	${LIBPATH}/chared.c ${LIBPATH}/common.c ${LIBPATH}/el.c \
14
	${LIBPATH}/emacs.c ${.CURDIR}/fcns.c ${.CURDIR}/help.c \
15
	${LIBPATH}/hist.c ${LIBPATH}/key.c ${LIBPATH}/map.c \
16
	${LIBPATH}/parse.c ${LIBPATH}/prompt.c ${LIBPATH}/read.c \
17
	${LIBPATH}/refresh.c ${LIBPATH}/search.c ${LIBPATH}/sig.c \
18
	${LIBPATH}/term.c ${LIBPATH}/tty.c ${LIBPATH}/vi.c
19
20
DPADD=	${LIBTERMCAP}
21
#LDADD=	../libbsdlibc.a -ltermcap
22
23
# For speed and debugging
24
#SRCS=   ${OSRCS} tokenizer.c history.c
25
# For protection
26
SRCS_O=	editline.o tokenizer.o history.o
27
SRCS_H=	common.h emacs.h fcns.h help.h vi.h
28
SRCS= ${SRCS_O} ${SRCS_H}
29
30
CLEANFILES+=common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h 
31
CFLAGS+= ${OPT_CFLAGS} -I. -I${.CURDIR} -I${LIBPATH} -I../../port
32
CFLAGS+= -DLINUX
33
#CFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH
34
#CFLAGS+=#-DDEBUG_PASTE
35
36
AHDR=vi.h emacs.h common.h
37
ASRC=${LIBPATH}/vi.c ${LIBPATH}/emacs.c ${LIBPATH}/common.c
38
39
all: ${AHDR} fcns.c help.h help.c editline.c  ${SRCS} libedit.a
40
41
vi.h: ${LIBPATH}/vi.c ${LIBPATH}/makelist
42
	sh ${LIBPATH}/makelist -h ${LIBPATH}/vi.c > ${.CURDIR}/vi.h
43
44
emacs.h: ${LIBPATH}/emacs.c ${LIBPATH}/makelist
45
	sh ${LIBPATH}/makelist -h ${LIBPATH}/emacs.c > ${.CURDIR}/emacs.h
46
47
common.h: ${LIBPATH}/common.c ${LIBPATH}/makelist
48
	sh ${LIBPATH}/makelist -h ${LIBPATH}/common.c > ${.CURDIR}/common.h
49
50
fcns.h: ${AHDR} ${LIBPATH}/makelist
51
	sh ${LIBPATH}/makelist -fh ${AHDR} > ${.CURDIR}/fcns.h
52
53
fcns.c: ${AHDR} fcns.h ${LIBPATH}/makelist
54
	sh ${LIBPATH}/makelist -fc ${AHDR} > ${.CURDIR}/fcns.c
55
56
help.c: ${ASRC} ${LIBPATH}/makelist
57
	sh ${LIBPATH}/makelist -bc ${ASRC} > ${.CURDIR}/help.c
58
59
help.h: ${ASRC} ${LIBPATH}/makelist
60
	sh ${LIBPATH}/makelist -bh ${ASRC} > ${.CURDIR}/help.h
61
62
editline.c:
63
	sh ${LIBPATH}/makelist -e ${OSRCS} > ${.CURDIR}/editline.c
64
65
tokenizer.o: ${LIBPATH}/tokenizer.c
66
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/tokenizer.c
67
68
history.o: ${LIBPATH}/history.c
69
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/history.c
70
71
#beforedepend editline.o editline.po editline.So: \
72
#	vi.h emacs.h common.h fcns.h fcns.c help.h help.c
73
#
74
#test:	test.o libedit.a ${DPADD} ${LIBTERMCAP}
75
#	${CC} ${CFLAGS} ${ALLSRC} -o ${TARGET} libedit.a ${LDADD}
76
77
#.include <bsd.lib.mk>
78
79
#LIB=	bsd
80
#CFLAGS= -DLIBC_SCCS  -I../../include
81
#OBJS=	getenv.o herror.o setenv.o strerror.o getpass.o inet_addr.o
82
83
lib${LIB}.a: ${SRCS}
84
	@echo [building standard ${LIB} library]
85
	rm -f lib${LIB}.a 
86
	if [ -f /usr/bin/lorder ]; then \
87
		ar cq lib${LIB}.a `lorder ${SRCS_O} | tsort`  ; \
88
	else \
89
		ar cq lib${LIB}.a ${SRCS_O}; \
90
	fi;
91
	if [ -f /usr/bin/ranlib ]; then \
92
		ranlib lib${LIB}.a; \
93
	fi;
94
	cp lib${LIB}.a ../
95
96
clean:
97
	rm -f *.o lib${LIB}.a ../lib${LIB}.a ${CLEANFILES}
(-)bsdftpd-ssl/port/libedit/Makefile.linux (+97 lines)
Line 0 Link Here
1
#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2
# $FreeBSD: src/lib/libedit/Makefile,v 1.18 1999/10/03 10:41:40 marcel Exp $
3
4
LIB=	edit
5
SHLIB_MAJOR=	3
6
SHLIB_MINOR=	0
7
8
CONTRIBPATH= ${CURDIR}/../../contrib
9
LIBPATH= ${CONTRIBPATH}/lib${LIB}
10
11
OPT_CFLAGS= -Wall -O2 -Wno-unused -Wno-uninitialized
12
13
OSRCS=	${LIBPATH}/chared.c ${LIBPATH}/common.c ${LIBPATH}/el.c \
14
	${LIBPATH}/emacs.c ${CURDIR}/fcns.c ${CURDIR}/help.c \
15
	${LIBPATH}/hist.c ${LIBPATH}/key.c ${LIBPATH}/map.c \
16
	${LIBPATH}/parse.c ${LIBPATH}/prompt.c ${LIBPATH}/read.c \
17
	${LIBPATH}/refresh.c ${LIBPATH}/search.c ${LIBPATH}/sig.c \
18
	${LIBPATH}/term.c ${LIBPATH}/tty.c ${LIBPATH}/vi.c
19
20
DPADD=	${LIBTERMCAP}
21
#LDADD=	../libbsdlibc.a -ltermcap
22
23
# For speed and debugging
24
#SRCS=   ${OSRCS} tokenizer.c history.c
25
# For protection
26
SRCS_O=	editline.o tokenizer.o history.o
27
SRCS_H=	common.h emacs.h fcns.h help.h vi.h
28
SRCS= ${SRCS_O} ${SRCS_H}
29
30
CLEANFILES+=common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h 
31
CFLAGS+= ${OPT_CFLAGS} -I. -I${CURDIR} -I${LIBPATH} -I../../port
32
CFLAGS+= -DLINUX
33
#CFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH
34
#CFLAGS+=#-DDEBUG_PASTE
35
36
AHDR=vi.h emacs.h common.h
37
ASRC=${LIBPATH}/vi.c ${LIBPATH}/emacs.c ${LIBPATH}/common.c
38
39
all: ${AHDR} fcns.c help.h help.c editline.c  ${SRCS} libedit.a
40
41
vi.h: ${LIBPATH}/vi.c ${LIBPATH}/makelist
42
	sh ${LIBPATH}/makelist -h ${LIBPATH}/vi.c > ${CURDIR}/vi.h
43
44
emacs.h: ${LIBPATH}/emacs.c ${LIBPATH}/makelist
45
	sh ${LIBPATH}/makelist -h ${LIBPATH}/emacs.c > ${CURDIR}/emacs.h
46
47
common.h: ${LIBPATH}/common.c ${LIBPATH}/makelist
48
	sh ${LIBPATH}/makelist -h ${LIBPATH}/common.c > ${CURDIR}/common.h
49
50
fcns.h: ${AHDR} ${LIBPATH}/makelist
51
	sh ${LIBPATH}/makelist -fh ${AHDR} > ${CURDIR}/fcns.h
52
53
fcns.c: ${AHDR} fcns.h ${LIBPATH}/makelist
54
	sh ${LIBPATH}/makelist -fc ${AHDR} > ${CURDIR}/fcns.c
55
56
help.c: ${ASRC} ${LIBPATH}/makelist
57
	sh ${LIBPATH}/makelist -bc ${ASRC} > ${CURDIR}/help.c
58
59
help.h: ${ASRC} ${LIBPATH}/makelist
60
	sh ${LIBPATH}/makelist -bh ${ASRC} > ${CURDIR}/help.h
61
62
editline.c:
63
	sh ${LIBPATH}/makelist -e ${OSRCS} > ${CURDIR}/editline.c
64
65
tokenizer.o: ${LIBPATH}/tokenizer.c
66
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/tokenizer.c
67
68
history.o: ${LIBPATH}/history.c
69
	${CC} -c ${CFLAGS} ${LDADD} ${LIBPATH}/history.c
70
71
#beforedepend editline.o editline.po editline.So: \
72
#	vi.h emacs.h common.h fcns.h fcns.c help.h help.c
73
#
74
#test:	test.o libedit.a ${DPADD} ${LIBTERMCAP}
75
#	${CC} ${CFLAGS} ${ALLSRC} -o ${TARGET} libedit.a ${LDADD}
76
77
#.include <bsd.lib.mk>
78
79
#LIB=	bsd
80
#CFLAGS= -DLIBC_SCCS  -I../../include
81
#OBJS=	getenv.o herror.o setenv.o strerror.o getpass.o inet_addr.o
82
83
lib${LIB}.a: ${SRCS}
84
	@echo [building standard ${LIB} library]
85
	rm -f lib${LIB}.a 
86
	if [ -f /usr/bin/lorder ]; then \
87
		ar cq lib${LIB}.a `lorder ${SRCS_O} | tsort`  ; \
88
	else \
89
		ar cq lib${LIB}.a ${SRCS_O}; \
90
	fi;
91
	if [ -f /usr/bin/ranlib ]; then \
92
		ranlib lib${LIB}.a; \
93
	fi;
94
	cp lib${LIB}.a ../
95
96
clean:
97
	rm -f *.o lib${LIB}.a ../lib${LIB}.a ${CLEANFILES}
(-)bsdftpd-ssl/ssl/ssl_port.c (-3 lines)
Lines 36-45 Link Here
36
#include <stdio.h>
36
#include <stdio.h>
37
#include "ssl_port.h"
37
#include "ssl_port.h"
38
#include "sslapp.h"
38
#include "sslapp.h"
39
40
#ifdef LINUX
41
#include <string.h>
39
#include <string.h>
42
#endif
43
40
44
#ifdef USE_SSL
41
#ifdef USE_SSL
45
char ssl_secure_flags=(SSL_ENABLED|SSL_USE_NONSECURE); /* Enable all modes */
42
char ssl_secure_flags=(SSL_ENABLED|SSL_USE_NONSECURE); /* Enable all modes */

Return to bug 44756