From 717972e6a0a6f8ccecad9d9ade1e68c32e0d27ef Mon Sep 17 00:00:00 2001 From: riggs Date: Sun, 29 Nov 2015 16:52:05 +0000 Subject: Fix runtime segfault due to uninitialised variable, bump PORTREVISION While on it: - Pet portlint: regenerate patches using 'make makepatch' - Add LICENSE PR: 204845 Submitted by: yama@jasper.co.jp MFH: 2015Q4 (ports-secteam fix blanket) --- comms/efax/Makefile | 5 ++- comms/efax/files/patch-Makefile | 41 +++++++++++++++++++++ comms/efax/files/patch-efaxmsg.c | 36 ++++++++++++++++++ comms/efax/files/patch-fax | 73 +++++++++++++++++++++++++++++++++++++ comms/efax/files/patch-src_Makefile | 41 --------------------- comms/efax/files/patch-src_fax | 73 ------------------------------------- 6 files changed, 154 insertions(+), 115 deletions(-) create mode 100644 comms/efax/files/patch-Makefile create mode 100644 comms/efax/files/patch-efaxmsg.c create mode 100644 comms/efax/files/patch-fax delete mode 100644 comms/efax/files/patch-src_Makefile delete mode 100644 comms/efax/files/patch-src_fax (limited to 'comms') diff --git a/comms/efax/Makefile b/comms/efax/Makefile index 5db25aa6ac23..225659709c0a 100644 --- a/comms/efax/Makefile +++ b/comms/efax/Makefile @@ -3,13 +3,16 @@ PORTNAME= efax-0.9a PORTVERSION= 001114a7 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= comms MASTER_SITES= http://shino.pos.to/linux/ MAINTAINER= ports@FreeBSD.org COMMENT= Fax send/receive program +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + RUN_DEPENDS=xloadimage:${PORTSDIR}/x11/xloadimage DOCSDIR= ${PREFIX}/share/doc/efax diff --git a/comms/efax/files/patch-Makefile b/comms/efax/files/patch-Makefile new file mode 100644 index 000000000000..5a3c9e9f8084 --- /dev/null +++ b/comms/efax/files/patch-Makefile @@ -0,0 +1,41 @@ +--- Makefile.orig 2000-06-29 02:01:22 UTC ++++ Makefile +@@ -3,20 +3,17 @@ + # Change the following to the name of your ANSI C compiler + # (normally gcc). + +-CC=gcc ++CC?=cc + + # Compile/load options. Add -DNO_STRERROR to CFLAGS if _strerror + # is undefined + +-CFLAGS= +-LDFLAGS= +- + # Change the following to the destination directories for + # binaries and man pages. Probably /usr/bin and /usr/man on + # Linux, /usr/local/{bin,man} on other systems. + +-BINDIR=/usr/bin +-MANDIR=/usr/man ++BINDIR=$(PREFIX)/bin ++MANDIR=$(PREFIX)/man + + .c.o: + $(CC) $(CFLAGS) -c $< +@@ -32,11 +29,9 @@ efix: efix.o efaxlib.o efaxmsg.o + strip efix + + install: +- cp fax efax efix $(BINDIR) +- chmod 755 $(BINDIR)/fax $(BINDIR)/efax $(BINDIR)/efix +- cp fax.1 efax.1 efix.1 $(MANDIR)/man1 +- chmod 644 $(MANDIR)/man1/fax.1 $(MANDIR)/man1/efax.1 \ +- $(MANDIR)/man1/efix.1 ++ $(INSTALL_PROGRAM) efax efix $(BINDIR) ++ $(INSTALL_SCRIPT) fax $(BINDIR) ++ $(INSTALL_DATA) fax.1 efax.1 efix.1 $(MANDIR)/man1 + + clean: + rm -f efax efix efax.o efix.o efaxlib.o efaxio.o efaxos.o efaxmsg.o diff --git a/comms/efax/files/patch-efaxmsg.c b/comms/efax/files/patch-efaxmsg.c new file mode 100644 index 000000000000..1ae052080897 --- /dev/null +++ b/comms/efax/files/patch-efaxmsg.c @@ -0,0 +1,36 @@ +--- efaxmsg.c.orig 1999-03-20 04:38:20 UTC ++++ efaxmsg.c +@@ -98,9 +98,6 @@ int msg ( char *fmt, ... ) + int err=0, i, flags=0 ; + char *p ; + +- va_list ap ; +- va_start ( ap, fmt ) ; +- + if ( ! init ) { + logfile[0] = stderr ; + logfile[1] = stdout ; +@@ -112,6 +109,9 @@ int msg ( char *fmt, ... ) + + for ( i=0 ; i&2 <