freebsd-ports/security/fwtk/files/patch-aa
Renato Botelho 4f96abae66 - The current fwtk port will not build on FreeBSD => 5.x, this is
because of the S/Key library requirements.  Moved the S/Key support
  behind the WITH_SKEY knob and added a WITH_SNK knob as well.  Now
  the system will build on FreeBSD 6.1 systems if WITH_SKEY is NOT
  set.
- Change varargs.h to stdarg.h, to build with the newer version of gcc.
- Pass the maintainership to submitter.
- Bump PORTREVISION

PR:		ports/97633
Submitted by:	pirzyk
2006-06-01 15:33:32 +00:00

83 lines
2.1 KiB
Text

--- Makefile.config.orig Tue Mar 4 22:17:46 1997
+++ Makefile.config Sun May 21 18:01:05 2006
@@ -24,13 +24,15 @@
# Defines for your operating system
#
-DEFINES=
+.if defined(WITH_SKEY)
+DEFINES= -D_SKEY_INTERNAL
+.endif
#DEFINES=-DSYSV -DSOLARIS
# Options for your compiler (eg, "-g" for debugging, "-O" for
# optimizing, or "-g -O" for both under GCC)
#COPT= -g -traditional $(DEFINES)
-COPT= -g $(DEFINES)
+COPT= $(DEFINES)
#COPT= -O $(DEFINES)
# Version of "make" you want to use
@@ -44,16 +46,20 @@
# Destination directory for installation of binaries
-DEST= /usr/local/etc
+DEST= $(PREFIX)/libexec
# Destination directory for installation of man pages
-#DESTMAN= $(DEST)/../man
+DESTMAN= $(DEST)/../man
# Names of any auxiliary libraries your system may require (e.g., -lsocket)
# If you want to link against a resolver library, specify it here.
-AUXLIB=
+.if defined(WITH_SKEY)
+AUXLIB= -lcrypt -lskey -lmd
+.else
+AUXLIB= -lcrypt -lmd
+.endif
#AUXLIB= -lsocket
#AUXLIB= -lresolv
# For Solaris:
@@ -72,23 +78,23 @@
# or -Bstatic for static binaries under SunOS 4.1.x)
#LDFL= -Bstatic
#LDFL=
-LDFL= -g
+#LDFL= -g
# Flags for X gateway link - usually the same as LDFL
XLDFL=$(LDFL)
# Location of the fwtk sources [For #include by any external tools needing it]
-FWTKSRCDIR=/u/b/mjr/firewall/fwtk
+FWTKSRCDIR=/FBSD/pkg/Fix/fwtk/work/fwtk
#FWTKSRCDIR=/usr/local/src/fwtk
# Location of X libraries for X-gw
-XLIBDIR=/usr/X11/lib
+XLIBDIR=$(X11BASE)/lib
#XLIBDIR=/usr/local/X11R5/lib
# X Libraries
# For BSD:
-XLIBS= -L$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11 -lSM -lICE -lipc
+XLIBS= -L$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11 -lSM -lICE
#XLIBS = -L$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11
# for Linux:
#XLIBS = -L$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11 -lc
@@ -98,8 +104,8 @@
#XLIBS = -L$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11
# Location of X include files
-XINCLUDE=/usr/X11/include
+XINCLUDE=$(X11BASE)/include
#XINCLUDE=/usr/local/X11R5/include
# Objects to include in libfwall for SYSV
-SYSVOBJ= signal.o
+#SYSVOBJ= signal.o