patch-aa: stop assuming usage of -O if using GCC

patch-ab: respect CFLAGS, PREFIX and change location of optional options
file to /etc
patch-ac and patch-ad: fix location of options file in man pages
This commit is contained in:
brad 1999-12-26 05:33:14 +00:00
parent 5d882cffb0
commit 7bd05d65aa
5 changed files with 74 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.5 1999/09/24 13:07:25 brad Exp $
# $OpenBSD: Makefile,v 1.6 1999/12/26 05:33:14 brad Exp $
DISTNAME= freeze-2.5
CATEGORIES= archivers
@ -8,6 +8,5 @@ MASTER_SITES= ftp://ftp.cdrom.com/pub/unixfreeware/archive/ \
MAINTAINER= ports@openbsd.org
GNU_CONFIGURE= yes
ALL_TARGET= prog
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
--- configure.orig Sat Dec 25 23:57:00 1999
+++ configure Sat Dec 25 23:57:19 1999
@@ -126,7 +126,6 @@
${CC-cc} -E conftest.c > conftest.out 2>&1
if egrep yes conftest.out >/dev/null 2>&1; then
GCC=1 # For later tests.
- CC="$CC -O"
fi
rm -f conftest*

View File

@ -0,0 +1,36 @@
--- Makefile.in.orig Wed Feb 24 08:36:56 1993
+++ Makefile.in Sun Dec 26 00:20:23 1999
@@ -3,7 +3,7 @@
VPATH = $(srcdir)
CC = @CC@
-CFLAGS = -I. # -O2 # for gcc 2.2.2
+CFLAGS += -I.
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -15,10 +15,11 @@
.PHONY: default
+all: prog
default: prog
# Added the prefix macro, so that it was easier to change installation place.
-prefix = /usr/local
+prefix = $(PREFIX)
DEST = $(prefix)/bin
MANDEST = $(prefix)/man/man1
SEC = 1
@@ -32,9 +33,9 @@
# define DEFFILE as a filename with freeze's default Huffman values
# e.g. -DDEFFILE=\"/etc/default/freeze\"
-# !!!! NOTE !!!! default is now $(prefix)/lib/freeze.cnf !!!!!
+# !!!! NOTE !!!! default is now /etc/freeze.cnf !!!!!
-OPTIONS = -DDEFFILE=\"$(prefix)/lib/freeze.cnf\"
+OPTIONS = -DDEFFILE=\"/etc/freeze.cnf\"
LINTFLAGS = -DDEBUG -DGATHER_STAT -x -h

View File

@ -0,0 +1,11 @@
--- freeze.1.orig Sun Dec 26 00:19:16 1999
+++ freeze.1 Sun Dec 26 00:21:11 1999
@@ -109,7 +109,7 @@
of following files in the command string. An explicite definition
of the file's type can give up to 2% of additional compression.
The list of types is stored in file
-.IR /usr/local/lib/freeze.cnf .
+.IR /etc/freeze.cnf .
Types may be abbreviated while not ambigious. You can also determine
values for the static Huffman table by using a list of 8 numbers
separated by commas instead of

View File

@ -0,0 +1,16 @@
--- statist.1.orig Sun Dec 26 00:19:25 1999
+++ statist.1 Sun Dec 26 00:22:59 1999
@@ -102,11 +102,8 @@
percentiles and sigma) are FYI only.
.PP
You may create the
-.IR /etc/default/freeze
-file (if you don't like
-.IR /etc/default/
-directory, choose another - in MS-DOS it is FREEZE.CNF in
-the directory of FREEZE.EXE), which has the following format:
+.IR /etc/freeze.cnf
+file, which has the following format:
.in +8
.I name
=