|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a3901 |
--- libfetch-2.33/common.h.orig 2010-08-23 22:40:48.000000000 +0200
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a3901 |
+++ libfetch-2.33/common.h 2016-03-09 10:01:24.270907600 +0100
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a3901 |
@@ -47,7 +47,7 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a3901 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a3901 |
#if !defined(__sun) && !defined(__hpux) && !defined(__INTERIX) && \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a3901 |
!defined(__digital__) && !defined(__linux) && !defined(__MINT__) && \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a3901 |
- !defined(__sgi)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a3901 |
+ !defined(__sgi) && !defined(__midipix__)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a3901 |
#define HAVE_SA_LEN
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a3901 |
#endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
5a3901 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
--- libfetch-2.33/Makefile.orig 2010-08-23 20:40:48.000000000 +0000
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+++ libfetch-2.33/Makefile 2016-07-08 22:18:05.749860554 +0000
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
@@ -1,42 +1,93 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-# $NetBSD: Makefile,v 1.5 2010/02/24 22:00:51 joerg Exp $
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-LIB= fetch
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-SRCS= fetch.c common.c ftp.c http.c file.c
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-DPSRCS= ftperr.h httperr.h
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-INCS= fetch.h
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-MAN= fetch.3
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-CLEANFILES= ftperr.h httperr.h
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-MKLINT= no
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-MKPIC= no
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-MKPROFILE= no
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-.include <bsd.own.mk>
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-CPPFLAGS+= -I.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-CPPFLAGS+= -D_LARGEFILE_SOURCE -D_LARGE_FILES
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-FETCH_WITH_INET6?= no
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-FETCH_WITH_OPENSSL?= no
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-.if !empty(FETCH_WITH_INET6:M[yY][eE][sS])
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-CPPFLAGS+= -DINET6
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-.endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-.if !empty(FETCH_WITH_OPENSSL:M[yY][eE][sS])
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-CPPFLAGS+= -DWITH_SSL
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-LDADD= -lssl -lcrypto
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-.endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-CPPFLAGS+= -DFTP_COMBINE_CWDS
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-WARNS?= 4
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-ftperr.h: ${.CURDIR}/ftp.errors ${.CURDIR}/Makefile ${.CURDIR}/errlist.sh
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
- ${.CURDIR}/errlist.sh ftp_errlist FTP \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
- ${.CURDIR}/ftp.errors > ${.TARGET}
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-httperr.h: ${.CURDIR}/http.errors ${.CURDIR}/Makefile ${.CURDIR}/errlist.sh
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
- ${.CURDIR}/errlist.sh http_errlist HTTP \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
- ${.CURDIR}/http.errors > ${.TARGET}
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
-.include <bsd.lib.mk>
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+prefix = /usr
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+DESTDIR =
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+DEBUG = false
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+FETCH_WITH_INET6 = true
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+FETCH_WITH_OPENSSL = true
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+FETCH_WITH_LFS = true
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+WARNINGS = -Wall -Wstrict-prototypes -Wsign-compare -Wchar-subscripts \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ -Wpointer-arith -Wcast-align -Wsign-compare
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+CFLAGS += -O2 -pipe -I. -fPIC $(WARNINGS)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+CFLAGS += -DFTP_COMBINE_CWDS -DNETBSD
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ifeq ($(strip $(FETCH_WITH_LFS)), true)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+CFLAGS+= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ifeq ($(strip $(FETCH_WITH_INET6)), true)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+CFLAGS+= -DINET6
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ifeq ($(strip $(FETCH_WITH_OPENSSL)), true)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+CFLAGS+= -DWITH_SSL
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+LDFLAGS_LIBS+= -lssl -lcrypto
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ifeq ($(strip $(DEBUG)), true)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+CFLAGS += -g -DDEBUG
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+CFLAGS += -UDEBUG
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+CC = $(CROSS_COMPILE)gcc
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+LD = $(CROSS_COMPILE)gcc
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+AR = $(CROSS_COMPILE)ar
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+RANLIB = ranlib
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+INSTALL = install -c -D
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+OBJS= fetch.o common.o ftp.o http.o file.o
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+INCS= fetch.h common.h
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+GEN = ftperr.h httperr.h
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+MAN = libdownload.3
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+#pretty print!
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+E = @echo
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+Q = @
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+all: libfetch.so libfetch.a
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(E) " built with: " $(CFLAGS)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+.PHONY: all
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+%.o: %.c $(INCS) $(GEN)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(E) " compile " $@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) $(CC) $(CFLAGS) -c $<
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ftperr.h: ftp.errors
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(E) " generate " $@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) ./errlist.sh ftp_errlist FTP ftp.errors > $@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+httperr.h: http.errors
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(E) " generate " $@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) ./errlist.sh http_errlist HTTP http.errors > $@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+libfetch.so: $(GEN) $(INCS) $(OBJS)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(E) " build " $@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) rm -f $@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) $(LD) $(LDFLAGS) *.o -shared -o $@ $(LDFLAGS_LIBS)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+libfetch.a: $(GEN) $(INCS) $(OBJS)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(E) " build " $@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) rm -f $@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) $(AR) rcs $@ *.o
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) $(RANLIB) $@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+clean:
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(E) " clean "
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) rm -f libfetch.so libfetch.a *.o $(GEN)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+.PHONY: clean
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+install: all
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) $(INSTALL) -m 755 libfetch.so $(DESTDIR)$(prefix)/lib/libfetch.so
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) $(INSTALL) -m 644 libfetch.a $(DESTDIR)$(prefix)/lib/libfetch.a
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) $(INSTALL) -m 644 fetch.h $(DESTDIR)$(prefix)/include/fetch.h
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) $(INSTALL) -m 644 fetch.3 $(DESTDIR)$(prefix)/share/man/man3/fetch.3
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+.PHONY: install
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+uninstall:
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) rm -f $(DESTDIR)$(prefix)/lib/libfetch.so
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) rm -f $(DESTDIR)$(prefix)/lib/libfetch.a
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) rm -f $(DESTDIR)$(prefix)/include/fetch.h
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+ $(Q) rm -f $(DESTDIR)$(prefix)/share/man/man3/fetch.3
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
820be1 |
+.PHONY: uninstall
|