head	1.59;
access;
symbols
	RELENG_8_4:1.59.0.2
	RELENG_9_1_0_RELEASE:1.57.2.1.4.2
	RELENG_9_1:1.57.2.1.0.4
	RELENG_9_1_BP:1.57.2.1
	RELENG_8_3_0_RELEASE:1.52.2.3.2.1
	RELENG_8_3:1.52.2.3.0.2
	RELENG_8_3_BP:1.52.2.3
	RELENG_9_0_0_RELEASE:1.57.2.1.2.1
	RELENG_9_0:1.57.2.1.0.2
	RELENG_9_0_BP:1.57.2.1
	RELENG_9:1.57.0.2
	RELENG_9_BP:1.57
	RELENG_7_4_0_RELEASE:1.49.2.2.4.1
	RELENG_8_2_0_RELEASE:1.52.2.2.4.1
	RELENG_7_4:1.49.2.2.0.4
	RELENG_7_4_BP:1.49.2.2
	RELENG_8_2:1.52.2.2.0.4
	RELENG_8_2_BP:1.52.2.2
	RELENG_8_1_0_RELEASE:1.52.2.2.2.1
	RELENG_8_1:1.52.2.2.0.2
	RELENG_8_1_BP:1.52.2.2
	RELENG_7_3_0_RELEASE:1.49.2.2.2.1
	RELENG_7_3:1.49.2.2.0.2
	RELENG_7_3_BP:1.49.2.2
	RELENG_8_0_0_RELEASE:1.52.2.1.2.1
	RELENG_8_0:1.52.2.1.0.2
	RELENG_8_0_BP:1.52.2.1
	RELENG_8:1.52.0.2
	RELENG_8_BP:1.52
	RELENG_7_2_0_RELEASE:1.49.2.1.4.1
	RELENG_7_2:1.49.2.1.0.4
	RELENG_7_2_BP:1.49.2.1
	RELENG_7_1_0_RELEASE:1.49.2.1.2.1
	RELENG_6_4_0_RELEASE:1.44.2.3.2.1
	RELENG_7_1:1.49.2.1.0.2
	RELENG_7_1_BP:1.49.2.1
	RELENG_6_4:1.44.2.3.0.2
	RELENG_6_4_BP:1.44.2.3
	RELENG_7_0_0_RELEASE:1.49
	RELENG_6_3_0_RELEASE:1.44.2.1
	RELENG_7_0:1.49.0.4
	RELENG_7_0_BP:1.49
	RELENG_6_3:1.44.2.1.0.8
	RELENG_6_3_BP:1.44.2.1
	RELENG_7:1.49.0.2
	RELENG_7_BP:1.49
	RELENG_6_2_0_RELEASE:1.44.2.1
	RELENG_6_2:1.44.2.1.0.6
	RELENG_6_2_BP:1.44.2.1
	RELENG_5_5_0_RELEASE:1.43
	RELENG_5_5:1.43.0.8
	RELENG_5_5_BP:1.43
	RELENG_6_1_0_RELEASE:1.44.2.1
	RELENG_6_1:1.44.2.1.0.4
	RELENG_6_1_BP:1.44.2.1
	RELENG_6_0_0_RELEASE:1.44.2.1
	RELENG_6_0:1.44.2.1.0.2
	RELENG_6_0_BP:1.44.2.1
	RELENG_6:1.44.0.2
	RELENG_6_BP:1.44
	RELENG_5_4_0_RELEASE:1.43
	RELENG_5_4:1.43.0.6
	RELENG_5_4_BP:1.43
	RELENG_4_11_0_RELEASE:1.14.2.6
	RELENG_4_11:1.14.2.6.0.2
	RELENG_4_11_BP:1.14.2.6
	RELENG_5_3_0_RELEASE:1.43
	RELENG_5_3:1.43.0.4
	RELENG_5_3_BP:1.43
	RELENG_5:1.43.0.2
	RELENG_5_BP:1.43
	RELENG_4_10_0_RELEASE:1.14.2.5
	RELENG_4_10:1.14.2.5.0.6
	RELENG_4_10_BP:1.14.2.5
	RELENG_5_2_1_RELEASE:1.42
	RELENG_5_2_0_RELEASE:1.42
	RELENG_5_2:1.42.0.2
	RELENG_5_2_BP:1.42
	RELENG_4_9_0_RELEASE:1.14.2.5
	RELENG_4_9:1.14.2.5.0.4
	RELENG_4_9_BP:1.14.2.5
	RELENG_5_1_0_RELEASE:1.41
	RELENG_5_1:1.41.0.2
	RELENG_5_1_BP:1.41
	RELENG_4_8_0_RELEASE:1.14.2.5
	RELENG_4_8:1.14.2.5.0.2
	RELENG_4_8_BP:1.14.2.5
	RELENG_5_0_0_RELEASE:1.37
	RELENG_5_0:1.37.0.2
	RELENG_5_0_BP:1.37
	RELENG_4_7_0_RELEASE:1.14.2.4
	RELENG_4_7:1.14.2.4.0.6
	RELENG_4_7_BP:1.14.2.4
	RELENG_4_6_2_RELEASE:1.14.2.4
	RELENG_4_6_1_RELEASE:1.14.2.4
	RELENG_4_6_0_RELEASE:1.14.2.4
	RELENG_4_6:1.14.2.4.0.4
	RELENG_4_6_BP:1.14.2.4
	RELENG_4_5_0_RELEASE:1.14.2.4
	RELENG_4_5:1.14.2.4.0.2
	RELENG_4_5_BP:1.14.2.4
	RELENG_4_4_0_RELEASE:1.14.2.3
	RELENG_4_4:1.14.2.3.0.2
	RELENG_4_4_BP:1.14.2.3
	RELENG_4_3_0_RELEASE:1.14.2.2
	RELENG_4_3:1.14.2.2.0.2
	RELENG_4_3_BP:1.14.2.2
	RELENG_4_2_0_RELEASE:1.14.2.2
	RELENG_4_1_1_RELEASE:1.14.2.1
	PRE_SMPNG:1.17
	RELENG_4_1_0_RELEASE:1.14.2.1
	RELENG_3_5_0_RELEASE:1.11.2.1
	RELENG_4_0_0_RELEASE:1.14
	RELENG_4:1.14.0.2
	RELENG_4_BP:1.14
	RELENG_3_4_0_RELEASE:1.11.2.1
	RELENG_3_3_0_RELEASE:1.11.2.1
	RELENG_3_2_PAO:1.11.0.4
	RELENG_3_2_PAO_BP:1.11
	RELENG_3_2_0_RELEASE:1.11
	RELENG_3_1_0_RELEASE:1.11
	RELENG_3:1.11.0.2
	RELENG_3_BP:1.11
	RELENG_3_0_0_RELEASE:1.5
	start:1.1.1.1
	DES:1.1.1;
locks; strict;
comment	@# @;


1.59
date	2012.11.17.01.49.50;	author svnexp;	state Exp;
branches
	1.59.2.1;
next	1.58;

1.58
date	2012.09.14.13.00.43;	author des;	state Exp;
branches;
next	1.57;

1.57
date	2011.05.12.21.30.46;	author des;	state Exp;
branches
	1.57.2.1;
next	1.56;

1.56
date	2011.05.12.21.26.42;	author des;	state Exp;
branches;
next	1.55;

1.55
date	2011.05.12.21.12.24;	author des;	state Exp;
branches;
next	1.54;

1.54
date	2010.01.19.13.31.57;	author des;	state Exp;
branches;
next	1.53;

1.53
date	2010.01.19.10.19.55;	author des;	state Exp;
branches;
next	1.52;

1.52
date	2009.07.19.17.25.24;	author kensmith;	state Exp;
branches
	1.52.2.1;
next	1.51;

1.51
date	2007.12.19.05.10.07;	author ru;	state Exp;
branches;
next	1.50;

1.50
date	2007.12.14.10.26.58;	author des;	state Exp;
branches;
next	1.49;

1.49
date	2007.05.24.20.28.14;	author des;	state Exp;
branches
	1.49.2.1;
next	1.48;

1.48
date	2007.05.21.02.49.04;	author deischen;	state Exp;
branches;
next	1.47;

1.47
date	2006.07.27.04.54.03;	author yar;	state Exp;
branches;
next	1.46;

1.46
date	2006.03.17.18.54.26;	author ru;	state Exp;
branches;
next	1.45;

1.45
date	2005.07.22.17.19.00;	author kensmith;	state Exp;
branches;
next	1.44;

1.44
date	2004.12.21.10.16.00;	author ru;	state Exp;
branches
	1.44.2.1;
next	1.43;

1.43
date	2004.08.06.07.27.03;	author cperciva;	state Exp;
branches;
next	1.42;

1.42
date	2003.07.22.13.54.31;	author ru;	state Exp;
branches;
next	1.41;

1.41
date	2003.05.19.15.51.59;	author des;	state Exp;
branches;
next	1.40;

1.40
date	2003.05.01.14.39.43;	author des;	state Exp;
branches;
next	1.39;

1.39
date	2003.01.31.23.26.55;	author markm;	state Exp;
branches;
next	1.38;

1.38
date	2003.01.28.23.02.28;	author markm;	state Exp;
branches;
next	1.37;

1.37
date	2002.12.04.04.34.59;	author jake;	state Exp;
branches;
next	1.36;

1.36
date	2002.10.30.04.53.58;	author des;	state Exp;
branches;
next	1.35;

1.35
date	2002.10.28.10.37.31;	author des;	state Exp;
branches;
next	1.34;

1.34
date	2002.10.28.01.41.28;	author fenner;	state Exp;
branches;
next	1.33;

1.33
date	2002.10.20.23.50.28;	author obrien;	state Exp;
branches;
next	1.32;

1.32
date	2002.09.28.00.25.29;	author peter;	state Exp;
branches;
next	1.31;

1.31
date	2002.06.21.09.56.38;	author des;	state Exp;
branches;
next	1.30;

1.30
date	2002.06.06.13.45.46;	author ru;	state Exp;
branches;
next	1.29;

1.29
date	2002.06.05.21.35.35;	author des;	state Exp;
branches;
next	1.28;

1.28
date	2002.06.05.21.25.33;	author des;	state Exp;
branches;
next	1.27;

1.27
date	2002.06.05.11.38.19;	author des;	state Exp;
branches;
next	1.26;

1.26
date	2002.02.05.22.13.50;	author des;	state Exp;
branches;
next	1.25;

1.25
date	2001.12.09.15.06.38;	author des;	state Exp;
branches;
next	1.24;

1.24
date	2001.10.19.10.08.38;	author des;	state Exp;
branches;
next	1.23;

1.23
date	2001.10.18.08.29.26;	author des;	state Exp;
branches;
next	1.22;

1.22
date	2001.05.26.19.37.26;	author des;	state Exp;
branches;
next	1.21;

1.21
date	2001.03.27.17.27.01;	author ru;	state Exp;
branches;
next	1.20;

1.20
date	2001.01.08.13.17.21;	author des;	state Exp;
branches;
next	1.19;

1.19
date	2001.01.08.13.15.14;	author des;	state Exp;
branches;
next	1.18;

1.18
date	2000.10.28.20.32.39;	author obrien;	state Exp;
branches;
next	1.17;

1.17
date	2000.05.25.16.24.31;	author des;	state Exp;
branches;
next	1.16;

1.16
date	2000.05.20.18.23.51;	author ume;	state Exp;
branches;
next	1.15;

1.15
date	2000.05.11.15.29.26;	author des;	state Exp;
branches;
next	1.14;

1.14
date	2000.01.14.07.57.29;	author rgrimes;	state Exp;
branches
	1.14.2.1;
next	1.13;

1.13
date	99.08.28.00.04.34;	author peter;	state Exp;
branches;
next	1.12;

1.12
date	99.01.29.12.15.34;	author des;	state Exp;
branches;
next	1.11;

1.11
date	98.12.18.14.32.47;	author des;	state Exp;
branches
	1.11.2.1;
next	1.10;

1.10
date	98.12.16.10.24.52;	author des;	state Exp;
branches;
next	1.9;

1.9
date	98.12.15.12.24.26;	author des;	state Exp;
branches;
next	1.8;

1.8
date	98.11.07.08.59.38;	author des;	state Exp;
branches;
next	1.7;

1.7
date	98.11.06.22.14.08;	author des;	state Exp;
branches;
next	1.6;

1.6
date	98.11.05.19.48.16;	author des;	state Exp;
branches;
next	1.5;

1.5
date	98.08.17.20.39.09;	author bde;	state Exp;
branches;
next	1.4;

1.4
date	98.08.17.09.30.19;	author des;	state Exp;
branches;
next	1.3;

1.3
date	98.07.12.22.37.45;	author des;	state Exp;
branches;
next	1.2;

1.2
date	98.07.11.18.55.58;	author des;	state Exp;
branches;
next	1.1;

1.1
date	98.07.09.16.52.42;	author des;	state Exp;
branches
	1.1.1.1;
next	;

1.59.2.1
date	2012.11.17.01.49.50;	author svnexp;	state dead;
branches;
next	1.59.2.2;

1.59.2.2
date	2013.03.28.13.03.15;	author svnexp;	state Exp;
branches;
next	;

1.57.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.57.2.1.2.1
	1.57.2.1.4.1;
next	1.57.2.2;

1.57.2.2
date	2012.11.05.10.42.31;	author des;	state Exp;
branches;
next	1.57.2.3;

1.57.2.3
date	2012.11.17.11.36.23;	author svnexp;	state Exp;
branches;
next	;

1.57.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.57.2.1.2.2;

1.57.2.1.2.2
date	2012.11.17.08.36.24;	author svnexp;	state Exp;
branches;
next	;

1.57.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.57.2.1.4.2;

1.57.2.1.4.2
date	2012.11.17.08.47.13;	author svnexp;	state Exp;
branches;
next	;

1.52.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.52.2.1.2.1;
next	1.52.2.2;

1.52.2.2
date	2010.01.26.14.15.12;	author des;	state Exp;
branches
	1.52.2.2.2.1
	1.52.2.2.4.1;
next	1.52.2.3;

1.52.2.3
date	2011.10.19.11.48.21;	author des;	state Exp;
branches
	1.52.2.3.2.1;
next	1.52.2.4;

1.52.2.4
date	2012.11.05.10.45.37;	author des;	state Exp;
branches;
next	1.52.2.5;

1.52.2.5
date	2012.11.17.10.36.08;	author svnexp;	state Exp;
branches;
next	;

1.52.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.52.2.2.2.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.52.2.2.4.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.52.2.3.2.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.52.2.3.2.2;

1.52.2.3.2.2
date	2012.11.17.08.24.49;	author svnexp;	state Exp;
branches;
next	;

1.49.2.1
date	2008.01.18.13.23.57;	author des;	state Exp;
branches
	1.49.2.1.2.1
	1.49.2.1.4.1;
next	1.49.2.2;

1.49.2.2
date	2010.01.27.14.54.48;	author des;	state Exp;
branches
	1.49.2.2.2.1
	1.49.2.2.4.1;
next	1.49.2.3;

1.49.2.3
date	2011.05.11.09.46.36;	author des;	state Exp;
branches;
next	1.49.2.4;

1.49.2.4
date	2011.05.11.11.30.36;	author des;	state Exp;
branches;
next	1.49.2.5;

1.49.2.5
date	2012.11.05.10.54.14;	author des;	state Exp;
branches;
next	1.49.2.6;

1.49.2.6
date	2012.11.17.08.02.44;	author svnexp;	state Exp;
branches;
next	;

1.49.2.1.2.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.49.2.1.4.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.49.2.2.2.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.49.2.2.4.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.49.2.2.4.2;

1.49.2.2.4.2
date	2012.11.17.08.16.48;	author svnexp;	state Exp;
branches;
next	;

1.44.2.1
date	2005.07.22.17.29.05;	author kensmith;	state Exp;
branches;
next	1.44.2.2;

1.44.2.2
date	2008.01.24.08.17.17;	author des;	state Exp;
branches;
next	1.44.2.3;

1.44.2.3
date	2008.01.24.08.20.25;	author des;	state Exp;
branches
	1.44.2.3.2.1;
next	1.44.2.4;

1.44.2.4
date	2012.11.17.07.40.24;	author svnexp;	state Exp;
branches;
next	;

1.44.2.3.2.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.14.2.1
date	2000.06.29.08.26.26;	author des;	state Exp;
branches;
next	1.14.2.2;

1.14.2.2
date	2000.10.30.14.51.37;	author des;	state Exp;
branches;
next	1.14.2.3;

1.14.2.3
date	2001.04.25.10.04.29;	author ru;	state Exp;
branches;
next	1.14.2.4;

1.14.2.4
date	2001.12.18.09.44.49;	author des;	state Exp;
branches;
next	1.14.2.5;

1.14.2.5
date	2003.01.09.11.50.32;	author des;	state Exp;
branches;
next	1.14.2.6;

1.14.2.6
date	2004.12.13.13.49.59;	author marius;	state Exp;
branches;
next	1.14.2.7;

1.14.2.7
date	2012.11.17.07.23.54;	author svnexp;	state Exp;
branches;
next	;

1.11.2.1
date	99.08.29.14.56.47;	author peter;	state Exp;
branches;
next	;

1.1.1.1
date	98.07.09.16.52.42;	author des;	state Exp;
branches;
next	;


desc
@@


1.59
log
@Switching exporter and resync
@
text
@# $FreeBSD: head/lib/libfetch/Makefile 240496 2012-09-14 13:00:43Z des $

.include <bsd.own.mk>

LIB=		fetch
CFLAGS+=	-I.
SRCS=		fetch.c common.c ftp.c http.c file.c \
		ftperr.h httperr.h
INCS=		fetch.h
MAN=		fetch.3
CLEANFILES=	ftperr.h httperr.h

.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+=	-DINET6
.endif

.if ${MK_OPENSSL} != "no"
CFLAGS+=	-DWITH_SSL
DPADD=		${LIBSSL} ${LIBCRYPTO}
LDADD=		-lssl -lcrypto
.else
DPADD=		${LIBMD}
LDADD=		-lmd
.endif

CFLAGS+=	-DFTP_COMBINE_CWDS

CSTD?=		c99

SHLIB_MAJOR=    6

ftperr.h: ftp.errors ${.CURDIR}/Makefile
	@@echo "static struct fetcherr ftp_errlist[] = {" > ${.TARGET}
	@@cat ${.CURDIR}/ftp.errors \
	  | grep -v ^# \
	  | sort \
	  | while read NUM CAT STRING; do \
	    echo "    { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
	  done >> ${.TARGET}
	@@echo "    { -1, FETCH_UNKNOWN, \"Unknown FTP error\" }" >> ${.TARGET}
	@@echo "};" >> ${.TARGET}

httperr.h: http.errors ${.CURDIR}/Makefile
	@@echo "static struct fetcherr http_errlist[] = {" > ${.TARGET}
	@@cat ${.CURDIR}/http.errors \
	  | grep -v ^# \
	  | sort \
	  | while read NUM CAT STRING; do \
	    echo "    { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
	  done >> ${.TARGET}
	@@echo "    { -1, FETCH_UNKNOWN, \"Unknown HTTP error\" }" >> ${.TARGET}
	@@echo "};" >> ${.TARGET}

MLINKS+= fetch.3 fetchFreeURL.3
MLINKS+= fetch.3 fetchGet.3
MLINKS+= fetch.3 fetchGetFTP.3
MLINKS+= fetch.3 fetchGetFile.3
MLINKS+= fetch.3 fetchGetHTTP.3
MLINKS+= fetch.3 fetchGetURL.3
MLINKS+= fetch.3 fetchList.3
MLINKS+= fetch.3 fetchListFTP.3
MLINKS+= fetch.3 fetchListFile.3
MLINKS+= fetch.3 fetchListHTTP.3
MLINKS+= fetch.3 fetchListURL.3
MLINKS+= fetch.3 fetchMakeURL.3
MLINKS+= fetch.3 fetchParseURL.3
MLINKS+= fetch.3 fetchPut.3
MLINKS+= fetch.3 fetchPutFTP.3
MLINKS+= fetch.3 fetchPutFile.3
MLINKS+= fetch.3 fetchPutHTTP.3
MLINKS+= fetch.3 fetchPutURL.3
MLINKS+= fetch.3 fetchStat.3
MLINKS+= fetch.3 fetchStatFTP.3
MLINKS+= fetch.3 fetchStatFile.3
MLINKS+= fetch.3 fetchStatHTTP.3
MLINKS+= fetch.3 fetchStatURL.3
MLINKS+= fetch.3 fetchXGet.3
MLINKS+= fetch.3 fetchXGetFTP.3
MLINKS+= fetch.3 fetchXGetFile.3
MLINKS+= fetch.3 fetchXGetHTTP.3
MLINKS+= fetch.3 fetchXGetURL.3

.include <bsd.lib.mk>
@


1.59.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:03:15 +0000
@
text
@d1 83
@


1.59.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 83
# $FreeBSD: releng/8.4/lib/libfetch/Makefile 242607 2012-11-05 10:45:37Z des $

.include <bsd.own.mk>

LIB=		fetch
CFLAGS+=	-I.
SRCS=		fetch.c common.c ftp.c http.c file.c \
		ftperr.h httperr.h
INCS=		fetch.h
MAN=		fetch.3
CLEANFILES=	ftperr.h httperr.h

.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+=	-DINET6
.endif

.if ${MK_OPENSSL} != "no"
CFLAGS+=	-DWITH_SSL
DPADD=		${LIBSSL} ${LIBCRYPTO}
LDADD=		-lssl -lcrypto
.else
DPADD=		${LIBMD}
LDADD=		-lmd
.endif

CFLAGS+=	-DFTP_COMBINE_CWDS

CSTD?=		c99

SHLIB_MAJOR=    6

ftperr.h: ftp.errors ${.CURDIR}/Makefile
	@@echo "static struct fetcherr ftp_errlist[] = {" > ${.TARGET}
	@@cat ${.CURDIR}/ftp.errors \
	  | grep -v ^# \
	  | sort \
	  | while read NUM CAT STRING; do \
	    echo "    { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
	  done >> ${.TARGET}
	@@echo "    { -1, FETCH_UNKNOWN, \"Unknown FTP error\" }" >> ${.TARGET}
	@@echo "};" >> ${.TARGET}

httperr.h: http.errors ${.CURDIR}/Makefile
	@@echo "static struct fetcherr http_errlist[] = {" > ${.TARGET}
	@@cat ${.CURDIR}/http.errors \
	  | grep -v ^# \
	  | sort \
	  | while read NUM CAT STRING; do \
	    echo "    { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
	  done >> ${.TARGET}
	@@echo "    { -1, FETCH_UNKNOWN, \"Unknown HTTP error\" }" >> ${.TARGET}
	@@echo "};" >> ${.TARGET}

MLINKS+= fetch.3 fetchFreeURL.3
MLINKS+= fetch.3 fetchGet.3
MLINKS+= fetch.3 fetchGetFTP.3
MLINKS+= fetch.3 fetchGetFile.3
MLINKS+= fetch.3 fetchGetHTTP.3
MLINKS+= fetch.3 fetchGetURL.3
MLINKS+= fetch.3 fetchList.3
MLINKS+= fetch.3 fetchListFTP.3
MLINKS+= fetch.3 fetchListFile.3
MLINKS+= fetch.3 fetchListHTTP.3
MLINKS+= fetch.3 fetchListURL.3
MLINKS+= fetch.3 fetchMakeURL.3
MLINKS+= fetch.3 fetchParseURL.3
MLINKS+= fetch.3 fetchPut.3
MLINKS+= fetch.3 fetchPutFTP.3
MLINKS+= fetch.3 fetchPutFile.3
MLINKS+= fetch.3 fetchPutHTTP.3
MLINKS+= fetch.3 fetchPutURL.3
MLINKS+= fetch.3 fetchStat.3
MLINKS+= fetch.3 fetchStatFTP.3
MLINKS+= fetch.3 fetchStatFile.3
MLINKS+= fetch.3 fetchStatHTTP.3
MLINKS+= fetch.3 fetchStatURL.3
MLINKS+= fetch.3 fetchXGet.3
MLINKS+= fetch.3 fetchXGetFTP.3
MLINKS+= fetch.3 fetchXGetFile.3
MLINKS+= fetch.3 fetchXGetHTTP.3
MLINKS+= fetch.3 fetchXGetURL.3

.include <bsd.lib.mk>
@


1.58
log
@SVN rev 240496 on 2012-09-14 13:00:43Z by des

Use libmd if and only if OpenSSL is not available.

PR:		bin/171402
MFC after:	3 days
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.57
log
@SVN rev 221823 on 2011-05-12 21:30:46Z by des

Builds cleanly at the default WARNS level (WARNS=6).
@
text
@d19 2
a20 2
DPADD=		${LIBSSL} ${LIBCRYPTO} ${LIBMD}
LDADD=		-lssl -lcrypto -lmd
@


1.57.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.57.2.2
log
@SVN rev 242606 on 2012-11-05 10:42:31Z by des

MFH (r240496): use libmd if and only if OpenSSL is not available
@
text
@d19 2
a20 2
DPADD=		${LIBSSL} ${LIBCRYPTO}
LDADD=		-lssl -lcrypto
@


1.57.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/lib/libfetch/Makefile 242606 2012-11-05 10:42:31Z des $
@


1.57.2.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.57.2.1.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/lib/libfetch/Makefile 221823 2011-05-12 21:30:46Z des $
@


1.57.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.57.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/lib/libfetch/Makefile 221823 2011-05-12 21:30:46Z des $
@


1.56
log
@SVN rev 221822 on 2011-05-12 21:26:42Z by des

Increase WARNS to 4.
@
text
@a28 1
WARNS?=		4
@


1.55
log
@SVN rev 221820 on 2011-05-12 21:12:24Z by des

Increase WARNS to 3.
@
text
@d29 1
a29 1
WARNS?=		3
@


1.54
log
@SVN rev 202623 on 2010-01-19 13:31:57Z by des

Add missing DPADD and fix whitespace.

Submitted by:	ru
@
text
@d29 1
a29 1
WARNS?=		2
@


1.53
log
@SVN rev 202613 on 2010-01-19 10:19:55Z by des

Add HTTP digest authentication.

Submitted by:	Jean-Francois Dockes <jf@@dockes.org>
Forgotten by:	des (repeatedly)
@
text
@d19 1
a19 1
DPADD=		${LIBSSL} ${LIBCRYPTO}
d22 2
a23 1
LDADD=         -lmd
@


1.52
log
@SVN rev 195767 on 2009-07-19 17:25:24Z by kensmith

Bump the version of all non-symbol-versioned shared libraries in
preparation for 8.0-RELEASE.  Add the previous version of those
libraries to ObsoleteFiles.inc and bump __FreeBSD_Version.

Reviewed by:    kib
Approved by:    re (rwatson)
@
text
@d20 3
a22 1
LDADD=		-lssl -lcrypto
@


1.52.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.52.2.2
log
@SVN rev 203023 on 2010-01-26 14:15:12Z by des

MFH (r202613, r202623): HTTP digest authentication support.
@
text
@d19 2
a20 5
DPADD=		${LIBSSL} ${LIBCRYPTO} ${LIBMD}
LDADD=		-lssl -lcrypto -lmd
.else
DPADD=		${LIBMD}
LDADD=		-lmd
@


1.52.2.3
log
@SVN rev 226538 on 2011-10-19 11:48:21Z by des

MFH r221820-221823,225814,22653: whitespace, warnings, cosmetic nits
@
text
@d29 1
@


1.52.2.4
log
@SVN rev 242607 on 2012-11-05 10:45:37Z by des

MFH r225813, r233648: man page fixes
MFH r234837: avoid busy-loop on slow connections
MFH r234838: don't reuse credentials when redirected to another host
MFH r240496: use libmd if and only if OpenSSL is not available
@
text
@d19 2
a20 2
DPADD=		${LIBSSL} ${LIBCRYPTO}
LDADD=		-lssl -lcrypto
@


1.52.2.5
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/lib/libfetch/Makefile 242607 2012-11-05 10:45:37Z des $
@


1.52.2.3.2.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.52.2.3.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/lib/libfetch/Makefile 226538 2011-10-19 11:48:21Z des $
@


1.52.2.2.4.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.52.2.2.2.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.52.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.51
log
@Add missing dependencies on Makefile (fixes NO_CLEAN builds).
@
text
@d28 1
a28 1
SHLIB_MAJOR=    5
@


1.50
log
@Clean up namespace violations.

MFC after:	1 week
@
text
@d30 1
a30 1
ftperr.h: ftp.errors
d32 1
a32 1
	@@cat ${.ALLSRC} \
d41 1
a41 1
httperr.h: http.errors
d43 1
a43 1
	@@cat ${.ALLSRC} \
@


1.49
log
@Enable FTP_COMBINE_CWDS.
@
text
@d31 1
a31 1
	@@echo "static struct fetcherr _ftp_errlist[] = {" > ${.TARGET}
d42 1
a42 1
	@@echo "static struct fetcherr _http_errlist[] = {" > ${.TARGET}
@


1.49.2.1
log
@MFC: clean up namespace violations; correct is*() usage; NO_PROXY support
@
text
@d30 3
a32 3
ftperr.h: ftp.errors ${.CURDIR}/Makefile
	@@echo "static struct fetcherr ftp_errlist[] = {" > ${.TARGET}
	@@cat ${.CURDIR}/ftp.errors \
d41 3
a43 3
httperr.h: http.errors ${.CURDIR}/Makefile
	@@echo "static struct fetcherr http_errlist[] = {" > ${.TARGET}
	@@cat ${.CURDIR}/http.errors \
@


1.49.2.2
log
@SVN rev 203071 on 2010-01-27 14:54:48Z by des

Synch with head: avoid namespace collisions (r177447), plug resource leak
in FTP code (r199801), add support for HTTP (r202613, r202623, r203028).
Also record mergeinfo for previously merged patches (r174752, r174588).

Approved by:	re (kib)
@
text
@d19 2
a20 5
DPADD=		${LIBSSL} ${LIBCRYPTO} ${LIBMD}
LDADD=		-lssl -lcrypto -lmd
.else
DPADD=		${LIBMD}
LDADD=		-lmd
@


1.49.2.3
log
@SVN rev 221765 on 2011-05-11 09:46:36Z by des

Sync with head: proxy authentication, SSL hang, cached connection crash.
@
text
@d31 1
a31 1
SHLIB_MAJOR=    6
@


1.49.2.4
log
@SVN rev 221774 on 2011-05-11 11:30:36Z by des

Beware of blind MFCs...

Noticed by:	pluknet
@
text
@d31 1
a31 1
SHLIB_MAJOR=    5
@


1.49.2.5
log
@SVN rev 242608 on 2012-11-05 10:54:14Z by des

MFH r221820, r221821, r221822: increase WARNS
MFH r221830: mark all descriptors close-on-exec
MFH r225813: man page fixes
MFH r225814: adjust copyright statement
MFH r226537: latin1 -> utf8
MFH r230307, r230478: fix SIGINFO infinite loop and data loss
MFH r233648: man page fixes
MFH r234138: support percent-encoded user and password
MFH r234837: avoid busy-loop on slow connections
MFH r234838: don't reuse credentials when redirected to another host
MFH r236193: avoid SIGPIPE on network connections
MFH r240496: use libmd if and only if OpenSSL is not available
@
text
@d19 2
a20 2
DPADD=		${LIBSSL} ${LIBCRYPTO}
LDADD=		-lssl -lcrypto
d29 1
a29 1
WARNS?=		4
@


1.49.2.6
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/lib/libfetch/Makefile 242608 2012-11-05 10:54:14Z des $
@


1.49.2.2.4.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.49.2.2.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/lib/libfetch/Makefile 203071 2010-01-27 14:54:48Z des $
@


1.49.2.2.2.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.49.2.1.4.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.49.2.1.2.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.48
log
@Bump library versions in preparation for 7.0.

Ok'd by:	kan
@
text
@d23 2
@


1.47
log
@Respect MK_INET6_SUPPORT.
@
text
@d26 1
a26 1
SHLIB_MAJOR=    4
@


1.46
log
@Reimplementation of world/kernel build options.  For details, see:

http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by:	imp, jhb, kris, phk, ru (all bugs are mine)
@
text
@a6 1
CFLAGS+=	-DINET6
d13 4
@


1.45
log
@Bump the shared library version number of all libraries that have not
been bumped since RELENG_5.

Reviewed by:	ru
Approved by:	re (not needed for commit check but in principle...)
@
text
@d3 2
d14 1
a14 1
.if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
@


1.44
log
@NOCRYPT -> NO_CRYPT
@
text
@d21 1
a21 1
SHLIB_MAJOR=    3
@


1.44.2.1
log
@Insta-MFC of the shared library version bump.  All shared libraries
whose version has not already been bumped since RELENG_5 are being
bumped.

Revisions of files being MFC-ed:

> Path						Revision
> src/gnu/lib/libdialog/Makefile		1.43
> src/gnu/lib/libg2c/Makefile			1.16
> src/gnu/lib/libobjc/Makefile			1.27
> src/gnu/lib/libreadline/Makefile.inc		1.12
> src/gnu/lib/libregex/Makefile			1.32
> src/gnu/lib/libstdc++/Makefile		1.56
> src/kerberos5/lib/Makefile.inc		1.7
> src/lib/Makefile.inc				1.3
> src/lib/libalias/Makefile			1.31
> src/lib/libarchive/Makefile			1.37
> src/lib/libbegemot/Makefile			1.3
> src/lib/libbluetooth/Makefile			1.2
> src/lib/libbsnmp/Makefile.inc			1.6
> src/lib/libbz2/Makefile			1.6
> src/lib/libc_r/Makefile			1.42
> src/lib/libcrypt/Makefile			1.36
> src/lib/libdevstat/Makefile			1.15
> src/lib/libdevstat/devstat.h			1.11
> src/lib/libedit/Makefile			1.29
> src/lib/libexpat/Makefile			1.5
> src/lib/libfetch/Makefile			1.45
> src/lib/libftpio/Makefile			1.14
> src/lib/libgpib/Makefile			1.2
> src/lib/libipsec/Makefile			1.17
> src/lib/libkiconv/Makefile			1.3
> src/lib/libmagic/Makefile			1.7
> src/lib/libmp/Makefile			1.10
> src/lib/libncp/Makefile			1.6
> src/lib/libncurses/Makefile			1.79
> src/lib/libnetgraph/Makefile			1.11
> src/lib/libngatm/Makefile			1.6
> src/lib/libopie/Makefile			1.21
> src/lib/libpam/Makefile.inc			1.17
> src/lib/libpthread/Makefile			1.54
> src/lib/libradius/Makefile			1.12
> src/lib/libsdp/Makefile			1.4
> src/lib/libsmb/Makefile			1.8
> src/lib/libtacplus/Makefile			1.7
> src/lib/libthr/Makefile			1.14
> src/lib/libthread_db/Makefile			1.6
> src/lib/libugidfw/Makefile			1.7
> src/lib/libusbhid/Makefile			1.10
> src/lib/libutil/Makefile			1.57
> src/lib/libvgl/Makefile			1.11
> src/lib/libwrap/Makefile			1.17
> src/lib/libypclnt/Makefile			1.13
> src/lib/msun/Makefile				1.72
> src/secure/lib/libcrypto/Makefile		1.74
> src/secure/lib/libssh/Makefile		1.35
> src/secure/lib/libssl/Makefile		1.22
> src/usr.sbin/bsnmpd/modules/Makefile.inc	1.10

Reviewed by:	ru
Approved by:	re (scottl)
@
text
@d21 1
a21 1
SHLIB_MAJOR=    4
@


1.44.2.2
log
@MFC: namespace pollution cleanup, NO_PROXY support
@
text
@a2 2
.include <bsd.own.mk>

d5 1
d12 1
a12 5
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+=	-DINET6
.endif

.if ${MK_OPENSSL} != "no"
a17 2
CFLAGS+=	-DFTP_COMBINE_CWDS

d21 1
a21 1
SHLIB_MAJOR=    5
d23 3
a25 3
ftperr.h: ftp.errors ${.CURDIR}/Makefile
	@@echo "static struct fetcherr ftp_errlist[] = {" > ${.TARGET}
	@@cat ${.CURDIR}/ftp.errors \
d34 3
a36 3
httperr.h: http.errors ${.CURDIR}/Makefile
	@@echo "static struct fetcherr http_errlist[] = {" > ${.TARGET}
	@@cat ${.CURDIR}/http.errors \
@


1.44.2.3
log
@Previous commit included changes which are invalid for RELENG_6.
@
text
@d3 2
a6 1
CFLAGS+=	-DINET6
d13 5
a17 1
.if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
d23 2
d28 1
a28 1
SHLIB_MAJOR=    4
@


1.44.2.4
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/lib/libfetch/Makefile 175629 2008-01-24 08:20:25Z des $
@


1.44.2.3.2.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.43
log
@Join the 21st century: Cryptography is no longer an optional component
of releases.  The -DNOCRYPT build option still exists for anyone who
really wants to build non-cryptographic binaries, but the "crypto"
release distribution is now part of "base", and anyone installing from a
release will get cryptographic binaries.

Approved by:	re (scottl), markm
Discussed on:	freebsd-current, in late April 2004
@
text
@d12 1
a12 1
.if !defined(NOCRYPT) && !defined(NO_OPENSSL)
@


1.42
log
@Make sure the crypto versions of libfetch and fetch(1) appear in
the "crypto" distribution.

Approved by:	des
@
text
@a12 1
DISTRIBUTION=	crypto
@


1.41
log
@Retire the useless NOSECURE knob.

Approved by:	re (scottl)
@
text
@d13 1
@


1.40
log
@Mark libfetch as c99-clean.  Always build at WARNS level 2 rather than
juggling with levels 2 and 3, as this has lead to world breakage for
NOCRYPT users in the past.
@
text
@d12 1
a12 1
.if !defined(NOCRYPT) && !defined(NOSECURE) && !defined(NO_OPENSSL)
@


1.39
log
@No need for the OPENSSL_NO_KRB5 switch anymore.

Fixed by:	nectar
@
text
@a15 1
WARNS?=		2
d18 2
a19 1
WARNS?=		3
@


1.38
log
@Adjust for OpenSSL 0.9.7.
@
text
@d13 1
a13 1
CFLAGS+=	-DWITH_SSL -DOPENSSL_NO_KRB5
@


1.37
log
@Reduce WARNS level to 3 in the non-crypto case to fix make release on sparc64.
This may only be turning up now to changes in the cpp predefines for sparc64,
which may be turning on more strict alignment checking.

Approved by:	re
@
text
@d13 1
a13 1
CFLAGS+=	-DWITH_SSL
@


1.36
log
@Clarify my feelings towards fetch / libfetch.
@
text
@d19 1
a19 1
WARNS?=		5
@


1.35
log
@libfetch is now WARNS5 clean in the non-SSL case.
@
text
@a2 1
MAINTAINER=	des@@freebsd.org
@


1.34
log
@Up WARNS to 3 if not building with crypto.

Approved by:	des
@
text
@d20 1
a20 1
WARNS?=		3
@


1.33
log
@Use a warns setting we can catch regressions with.
@
text
@a4 1
WARNS?=		2
d17 1
d19 2
@


1.32
log
@Zap now-unused SHLIB_MINOR
@
text
@d5 1
a5 1
WARNS?=		4
a18 2

NO_WERROR=	yes
@


1.31
log
@Fix incorrect library ordering.  I thought I'd committed this already...
@
text
@a22 1
SHLIB_MINOR=	0
@


1.30
log
@libfetch now depends on libcrypto and libssl.
@
text
@d16 2
a17 2
DPADD=		${LIBCRYPTO} ${LIBSSL}
LDADD=		-lcrypto -lssl
@


1.29
log
@Make SSL support conditional on NOCRYPT.
@
text
@a7 3
.if !defined(NOCRYPT)
CFLAGS+=	-DWITH_SSL
.endif
d13 6
a18 2
#DPADD=		${LIBCRYPTO} ${LIBSSL}
#LDADD=		-lcrypto -lssl
@


1.28
log
@During buildworld, "regular" libraries are built before crypto stuff, so
libfetch can't depend on lib{crypto,ssl}.  Move the dependency to fetch
until we can figure out how to fix this.
@
text
@d8 3
@


1.27
log
@Add the necessary dependencies for SSL.
@
text
@d13 2
a14 2
DPADD=		${LIBCRYPTO} ${LIBSSL}
LDADD=		-lcrypto -lssl
@


1.26
log
@Reindent, and add parentheses to return statements.  Some functions in
ftp.c and http.c now have exceedingly long lines due to deep nesting;
this will be corrected by reorganizing the code in a later revision.
@
text
@d13 2
@


1.25
log
@Don't build with NDEBUG.

PR:		bin/32615
MFC after:	1 week
@
text
@d5 1
a5 1
WARNS?=		2
@


1.24
log
@Add NO_WERROR so the build won't die because of discarded qualifiers
@
text
@a7 3
.if !defined(DEBUG)
CFLAGS+=	-DNDEBUG
.endif
@


1.23
log
@Tons of type, style and warning fixes that have been rotting in my tree for
ages - some of which wouldn't be necessary if gcc wasn't broken or TPTB were
willing to do something (-fno-builtin) about it.
@
text
@d17 2
@


1.22
log
@Bump major number.
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libfetch/Makefile,v 1.21 2001/03/27 17:27:01 ru Exp $
d5 2
a6 1
CFLAGS+=	-I. -Wall -pedantic
d42 28
a69 7
.for MP in fetchFreeURL fetchGet fetchGetFTP fetchGetFile fetchGetHTTP \
fetchGetURL fetchList fetchListFTP fetchListFile fetchListHTTP fetchListURL \
fetchMakeURL fetchParseURL fetchPut fetchPutFTP fetchPutFile fetchPutHTTP \
fetchPutURL fetchStat fetchStatFTP fetchStatFile fetchStatHTTP fetchStatURL \
fetchXGet fetchXGetFTP fetchXGetFile fetchXGetHTTP fetchXGetURL
MLINKS+= fetch.3 ${MP}.3
.endfor
@


1.21
log
@MAN[1-9] -> MAN.
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libfetch/Makefile,v 1.20 2001/01/08 13:17:21 des Exp $
d16 1
a16 1
SHLIB_MAJOR=    2
@


1.20
log
@Back out previous (accidental) commit.
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libfetch/Makefile,v 1.19 2001/01/08 13:15:14 des Exp $
d13 1
a13 1
MAN3=		fetch.3
@


1.19
log
@Use "anonymous" rather than "ftp" as login name for anonymous ftp.

Rather than have a separate (misnamed) FTP_ANONYMOUS_PASSWORD constant, use
FTP_ANONYMOUS_USER (i.e. "anonymous") to construct the anonymous ftp password
if getlogin() fails.
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libfetch/Makefile,v 1.18 2000/10/28 20:32:39 obrien Exp $
d8 1
a8 1
#CFLAGS+=	-DNDEBUG
@


1.18
log
@Install per function manpages so one doesn't mistakenly think we don't
have manpages for libfetch's functions.
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libfetch/Makefile,v 1.17 2000/05/25 16:24:31 des Exp $
d8 1
a8 1
CFLAGS+=	-DNDEBUG
@


1.17
log
@Dump com_err, it's a stinking crock of shit.
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libfetch/Makefile,v 1.16 2000/05/20 18:23:51 ume Exp $
d40 8
@


1.16
log
@IPv6 support.
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libfetch/Makefile,v 1.15 2000/05/11 15:29:26 des Exp $
d10 3
a12 3
SRCS=		fetch.c common.c ftp.c http.c file.c fetch_err.c \
		fetch_err.h ftperr.h httperr.h
INCS=		fetch.h ${.OBJDIR}/fetch_err.h
d14 1
a14 1
CLEANFILES=	fetch_err.c fetch_err.h ftperr.h httperr.h
a39 6

hdrs: fetch_err.h

.ORDER: fetch_err.c fetch_err.h
fetch_err.c fetch_err.h: fetch_err.et
	compile_et ${.ALLSRC}
@


1.15
log
@Bump major number, since struct url has changed.

Discussed with:	jdp
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libfetch/Makefile,v 1.14 2000/01/14 07:57:29 rgrimes Exp $
d6 1
@


1.14
log
@Replace beforeinstall target with new variables used by .mk system.

Reviewed by:	marcel, and make world
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libfetch/Makefile,v 1.13 1999/08/28 00:04:34 peter Exp $
d15 1
a15 1
SHLIB_MAJOR=    1
@


1.14.2.1
log
@MFC: everything since RELENG_4 branched
@
text
@d1 1
a1 1
# $FreeBSD$
a5 1
CFLAGS+=	-DINET6
d9 3
a11 3
SRCS=		fetch.c common.c ftp.c http.c file.c \
		ftperr.h httperr.h
INCS=		fetch.h
d13 1
a13 1
CLEANFILES=	ftperr.h httperr.h
d15 1
a15 1
SHLIB_MAJOR=    2
d39 6
@


1.14.2.2
log
@MFC: add mlinks.
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libfetch/Makefile,v 1.14.2.1 2000/06/29 08:26:26 des Exp $
a39 8

.for MP in fetchFreeURL fetchGet fetchGetFTP fetchGetFile fetchGetHTTP \
fetchGetURL fetchList fetchListFTP fetchListFile fetchListHTTP fetchListURL \
fetchMakeURL fetchParseURL fetchPut fetchPutFTP fetchPutFile fetchPutHTTP \
fetchPutURL fetchStat fetchStatFTP fetchStatFile fetchStatHTTP fetchStatURL \
fetchXGet fetchXGetFTP fetchXGetFile fetchXGetHTTP fetchXGetURL
MLINKS+= fetch.3 ${MP}.3
.endfor
@


1.14.2.3
log
@MFC: MAN[1-9] -> MAN.
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libfetch/Makefile,v 1.14.2.2 2000/10/30 14:51:37 des Exp $
d13 1
a13 1
MAN=		fetch.3
@


1.14.2.4
log
@MFC: synch with -CURRENT (authentication callbacks, redirect to FTP URLs,
verbosity, various small bug fixes, warnings and style, version bump).
@
text
@d1 1
a1 1
# $FreeBSD$
d5 1
a5 2
WARNS?=		2
CFLAGS+=	-I.
d7 3
d16 1
a16 3
NO_WERROR=	yes

SHLIB_MAJOR=    3
d41 7
a47 28
MLINKS+= fetch.3 fetchFreeURL.3
MLINKS+= fetch.3 fetchGet.3
MLINKS+= fetch.3 fetchGetFTP.3
MLINKS+= fetch.3 fetchGetFile.3
MLINKS+= fetch.3 fetchGetHTTP.3
MLINKS+= fetch.3 fetchGetURL.3
MLINKS+= fetch.3 fetchList.3
MLINKS+= fetch.3 fetchListFTP.3
MLINKS+= fetch.3 fetchListFile.3
MLINKS+= fetch.3 fetchListHTTP.3
MLINKS+= fetch.3 fetchListURL.3
MLINKS+= fetch.3 fetchMakeURL.3
MLINKS+= fetch.3 fetchParseURL.3
MLINKS+= fetch.3 fetchPut.3
MLINKS+= fetch.3 fetchPutFTP.3
MLINKS+= fetch.3 fetchPutFile.3
MLINKS+= fetch.3 fetchPutHTTP.3
MLINKS+= fetch.3 fetchPutURL.3
MLINKS+= fetch.3 fetchStat.3
MLINKS+= fetch.3 fetchStatFTP.3
MLINKS+= fetch.3 fetchStatFile.3
MLINKS+= fetch.3 fetchStatHTTP.3
MLINKS+= fetch.3 fetchStatURL.3
MLINKS+= fetch.3 fetchXGet.3
MLINKS+= fetch.3 fetchXGetFTP.3
MLINKS+= fetch.3 fetchXGetFile.3
MLINKS+= fetch.3 fetchXGetHTTP.3
MLINKS+= fetch.3 fetchXGetURL.3
@


1.14.2.5
log
@Build with SSL support if available.
@
text
@a13 6
.if !defined(NOCRYPT) && !defined(NOSECURE) && !defined(NO_OPENSSL)
CFLAGS+=	-DWITH_SSL
DPADD=		${LIBSSL} ${LIBCRYPTO}
LDADD=		-lssl -lcrypto
.endif

@


1.14.2.6
log
@MFC:
Makefile.inc1 1.361
bin/ed/Makefile 1.22
lib/Makefile 1.157
lib/libcrypt/Makefile 1.31
lib/libfetch/Makefile 1.41
lib/libpam/modules/modules.inc 1.17
libexec/Makefile 1.61
share/examples/etc/make.conf 1.215
share/man/man5/make.conf.5 1.73
usr.bin/Makefile 1.239
usr.bin/fetch/Makefile 1.14
usr.sbin/pkg_install/Makefile 1.14
usr.sbin/pkg_install/add/Makefile 1.17
usr.sbin/pkg_install/info/Makefile 1.17
usr.sbin/pkg_install/version/Makefile 1.12
usr.sbin/ppp/Makefile 1.95, 1.96
usr.sbin/pppd/Makefile 1.25
usr.sbin/sendmail/Makefile 1.40
usr.sbin/tcpdump/tcpdump/Makefile 1.36

Retire the useless NOSECURE knob.

The motivation for this MFC is that MAKE_KERBEROS4 and MAKE_KERBEROS5
are meant to be buildable by various makefiles when NOSECURE is set but
this was broken because Kerberos depends on e.g. des(3) from OpenSSL
which wasn't built when NOSECURE was defined. Fixing the NOSECURE knob
however would have meant to make it do the same as the NOCRYPT knob.
If you had been using the NOSECURE build knob please now use the NOCRYPT
knob instead.

Discussed with:	ru (some months ago)
Reviewed by:	ru (some months ago)
Approved by:	markm (telnet and secure bits, some months ago), kensmith (re)
@
text
@d14 1
a14 1
.if !defined(NOCRYPT) && !defined(NO_OPENSSL)
@


1.14.2.7
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/lib/libfetch/Makefile 138803 2004-12-13 13:50:02Z marius $
@


1.13
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
d11 1
a16 6

beforeinstall:
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/fetch.h \
		${DESTDIR}/usr/include
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 fetch_err.h \
		${DESTDIR}/usr/include
@


1.12
log
@Add MAINTAINER.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.11 1998/12/18 14:32:47 des Exp $
@


1.11
log
@Don't specify a language to compile_et.
Rename fetchConnect to _fetch_connect since it's internal.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.10 1998/12/16 10:24:52 des Exp $
d3 1
@


1.11.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.10
log
@Add verbose flag, and support functions.
Brucify the Makefile.
Differentiate atime and mtime in fetch*Stat().
Fix a few pointer bugs.
Tweak some error messages.
Don't #include sys/param.h and stdio.h in fetch.h.
Document that sys/param.h and stdio.h must be #included before fetch.h.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.9 1998/12/15 12:24:26 des Exp $
d48 1
a48 1
	compile_et -lang c ${.ALLSRC}
@


1.9
log
@Fix the "Unknown HTTP error" message.
Make compile_et generate prototypes.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.8 1998/11/07 08:59:38 des Exp $
d8 2
a9 2
SRCS=		fetch.c common.c ftp.c http.c file.c fetch_err.c
DPSRCS=		ftperr.inc httperr.inc fetch_err.c fetch_err.h
d11 1
a11 1
CLEANFILES=	${DPSRCS}
d16 1
a16 3
beforedepend: ${DPSRCS}

beforeinstall: fetch.h fetch_err.h
d22 1
a22 1
ftperr.inc: ftp.errors
d33 1
a33 2

httperr.inc: http.errors
d44 3
a50 4

.if !exists(${DEPENDFILE})
${OBJS} ${POBJS} ${SOBJS}: ${DPSRCS}
.endif
@


1.8
log
@fetch_err.h is a generated file, so don't look for it in ${.CURDIR}.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.7 1998/11/06 22:14:08 des Exp $
d44 1
a44 1
	@@echo "    { -1, FETCH_UNKNOWN, \"Unknown FTP error\" }" >> ${.TARGET}
d48 1
a48 1
	compile_et ${.ALLSRC}
@


1.7
log
@Second of a series of cleanups to libfetch.

This commit introduces the following features:

 a) the fetchStat*() functions, which return meta-information for a
    document, such as size, modification time, etc.

 b) the use of the com_err(3) facilities to report errors.

It also fixes a bunch of style bugs and a few logic bugs and somewhat
improves the man page.

Changed files, in alphabetical order:

 Makefile:
  Don't generate macros in {ftp,http}err.c.

  Generate category fields for the error message lists.

  Compile the error table.

  Install fetch_err.h along with fetch.h.

 common.c:
  Remove the _netdb_errstring() macro, and add FETCH_ERR_NETDB to the
  error code in the _netdb_seterr() macro.

  Add categories to the _netdb_errlist table.

  Report errors through the Common Error library.

 common.h:
  Add the DEBUG macros.

  Add prototype for fetchConnect().

  Remove the prototype for _fetch_errstring(), which is local to common.c

  Add a categroy field to struct fetcherr, and define constants for
  error categories.

  Define macros for _{url,netdb,ftp,http}_seterr().

 errors.et: (new file)
  List error categories.

 fetch.3:
  Document the fetchStat*() functions.

  Move the "unimplemented functionality" comments from NOTES to BUGS.

  Document that applications which use libfetch must also use
  libcom_err, and list existing error codes.

  Undocument fetchLastErr{Code,String}.

  Remove the (empty) DIAGNOSTICS section.

  Mention Eugene Skepner in the AUTHORS section.

 fetch.c:
  Move the DEBUG macros to common.c

  Add fetchStat() and fetchStatURL().

  Generate error messages for URL parser errors, and fix a minor bug
  in the parser.

  Use 'struct url' instead of 'url_t'.

  Remove fetchLastErr{Code,String}.

 fetch.h:
  Use 'struct url' instead of 'url_t', and remove the typedef.

  Define struct url_stat (used by fetchStat()).

  Add prototypes for fetchStat*().

  Remove the declarations for fetchLastErr{Code,String}.

  Include fetch_err.h.

 fetch_err.et: (new file)
  Error table for libfetch.

 file.c:
  Add fetchStatFile().

  Use 'struct url' instead of 'url_t'.

 ftp.c:
  Add fetchStatFTP().

  Use 'struct url' instead of 'url_t'.

  Don't use fetchLastErrCode.

 ftp.errors:
  Add categories to all error messages.

 http.c:
  Add fetchStatHTTP().

  Use 'struct url' instead of 'url_t'.

  Don't use fetchLastErr{Code,Text}.

 http.errors:
  Add categories to all error messages.

Prompted by: jkh and Eugene Skepner
Numerous sugestions from: Garett Wollman and Eugene Skepner
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.6 1998/11/05 19:48:16 des Exp $
d21 1
a21 1
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/fetch_err.h \
@


1.6
log
@First of a series of cleanups to libfetch. Changed files, in
alphabetical order:

 Makefile:
  Add common.c to SRCS.

  Make debugging easier by making 'CFLAGS += -DNDEBUG' conditional on DEBUG

  Don't declare struct {ftp,http}err in {ftp,http}err.c; use struct fetcherr
  instead.

 README:
  Remove the todo list, which is out of date anyway.

 common.c: (new file)
  Gather utility functions in this file.

  Merge the error reporting functions intp _fetch_errstring(),
  _fetch_seterr() and _fetch_syserr().

  Set fetchLastErrCode and fetchLastErrText appropriately when fetchConnect
  fails.

 common.h: (new file)
  Gather internal prototypes and structures in this files.

 fetch.3:
  Undocument fetchFreeURL().

  Document a few more known bugs.

  Document fetchLastErrCode and fetchLastErrText.

 fetch.c:
  Add descriptive comments to all functions that lacked them.

  Move fetchConnect() to common.c.

  Obviate the need for fetchFreeURL(), and remove it.

 fetch.h:
  Modify struct url_t so the document part is at the end.

 ftp.c:
  Remove code that is duplicated elsewhere.

 http.c:
  Remove code that is duplicated elsewhere.

Prompted by: jkh
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.5 1998/08/17 20:39:09 bde Exp $
d8 2
a9 2
SRCS=		fetch.c common.c ftp.c http.c file.c
DPSRCS=		ftperr.c httperr.c
d18 1
a18 1
beforeinstall:
d21 2
d24 2
a25 2
ftperr.c: ftp.errors
	@@echo "static struct fetcherr _ftp_errlist[] = {" \ >>  ${.TARGET}
d29 2
a30 2
	  | while read NUM STRING; do \
	    echo "    { $${NUM}, \"$${STRING}\" },"; \
d32 1
a32 1
	@@echo "    { -1, \"Unknown FTP error\" }" >> ${.TARGET}
a33 2
	@@echo "#define _ftp_errstring(n) _fetch_errstring(_ftp_errlist, n)" >> ${.TARGET}
	@@echo "#define _ftp_seterr(n) _fetch_seterr(_ftp_errlist, n)" >> ${.TARGET}
d36 2
a37 2
httperr.c: http.errors
	@@echo "static struct fetcherr _http_errlist[] = {" \ >>  ${.TARGET}
d41 2
a42 2
	  | while read NUM STRING; do \
	    echo "    { $${NUM}, \"$${STRING}\" },"; \
d44 1
a44 1
	@@echo "    { -1, \"Unknown HTTP error\" }" >> ${.TARGET}
d46 3
a48 2
	@@echo "#define _http_errstring(n) _fetch_errstring(_http_errlist, n)" >> ${.TARGET}
	@@echo "#define _http_seterr(n) _fetch_seterr(_http_errlist, n)" >> ${.TARGET}
@


1.5
log
@Made this actually work when there's an object directory:
- replaced bogus dependencies of distribution sources on generated
  sources by the same ones that bsd.lib.mk would generate if it knew
  all the sources.  We shoot ourself in the foot by not naming the
  generated (included) sources *.h, so we can just put the generated
  sources in SRCS.
- replaced -I${.CURDIR} by `-I.'.  Here `.' is an alias for ${.OBJDIR}.
  -I${.CURDIR} didn't do anything, since ${.CURDIR} is the default in
  all cases here (it would be necessary for ""-style includes made from
  sources in ${.OBJDIR}.

Don't use `+=' for setting CLEANFILES for the first time.

Added $Id$.
@
text
@d1 1
a1 1
#	$Id$
d4 5
a8 2
CFLAGS+=	-I. -Wall -pedantic -DNDEBUG
SRCS=		fetch.c ftp.c http.c file.c
d23 1
a23 5
	@@echo "struct ftperr {" \ >  ${.TARGET}
	@@echo "    const int num;" \ >>  ${.TARGET}
	@@echo "    const char *string;" \ >>  ${.TARGET}
	@@echo "};" \ >>  ${.TARGET}
	@@echo "static struct ftperr _ftp_errlist[] = {" \ >>  ${.TARGET}
d32 3
d37 1
a37 5
	@@echo "struct httperr {" \ >  ${.TARGET}
	@@echo "    const int num;" \ >>  ${.TARGET}
	@@echo "    const char *string;" \ >>  ${.TARGET}
	@@echo "};" \ >>  ${.TARGET}
	@@echo "static struct httperr _http_errlist[] = {" \ >>  ${.TARGET}
d46 2
@


1.4
log
@Commit a bunch of patches that have been accumulating:

 - Fix the README to reflect the new status of the ftp code.
 - Change tons of 'if (xxx < 0)' to 'if (xxx == -1)'
 - Add two new interface functions
 - Fix the Makefile so it actually works (yay!)

Now the manpage is lagging even further behind... :( Next on the todo
list is to clean up the http code.
@
text
@d1 2
d4 1
a4 1
CFLAGS+=	-I${.CURDIR} -Wall -pedantic -DNDEBUG
d6 1
d8 1
a8 1
CLEANFILES+=	ftperr.c httperr.c
d13 2
a18 1
ftp.c: ftperr.c
a33 1
http.c:	httperr.c
d50 4
@


1.3
log
@Forgot to remove base64.c from SRCS in the Makefile.
@
text
@d2 1
a2 1
CFLAGS+=	-I${.CURDIR} -Wall
d14 3
a16 2
ftperr.c:	ftp.errors
	@@echo "struct ftperr {" \ >>  ${.TARGET}
d30 3
a32 2
httperr.c:	http.errors
	@@echo "struct httperr {" \ >>  ${.TARGET}
@


1.2
log
@Too many changes to list. Basically, FTP is nearly there and error
reporting is kinda sorted out. Now HTTP needs to catch up...
@
text
@d3 1
a3 1
SRCS=		fetch.c ftp.c http.c file.c base64.c
@


1.1
log
@Initial revision
@
text
@d24 1
a24 1
	    echo "    { $${NUM}, \"$${NUM} $${STRING}\" },"; \
d26 1
a26 1
	@@echo "    { 0, \"Unknown FTP error\" }" >> ${.TARGET}
d39 1
a39 1
	    echo "    { $${NUM}, \"$${NUM} $${STRING}\" },"; \
d41 1
a41 1
	@@echo "    { 0, \"Unknown HTTP error\" }" >> ${.TARGET}
@


1.1.1.1
log
@Imported libfetch into the tree. It compiles, but there's still some
work to do. I especially need help with the man page.
@
text
@@
