openbsd-ports/net/sslh/patches/patch-Makefile
dcoppa fb0a569aa0 Disable libwrap support.
Ok Bjorn Ketelaars (maintainer)
2014-03-24 21:46:16 +00:00

49 lines
1.2 KiB
Plaintext

--- Makefile.orig Sat Jul 27 16:25:04 2013
+++ Makefile Mon Mar 24 18:28:02 2014
@@ -2,35 +2,20 @@
VERSION="1.15"
USELIBCONFIG=1 # Use libconfig? (necessary to use configuration files)
-USELIBWRAP= # Use libwrap?
COV_TEST= # Perform test coverage?
PREFIX=/usr/local
-MAN=sslh.8.gz # man page name
+MAN=sslh.8 # man page name
# End of configuration -- the rest should take care of
# itself
-ifneq ($(strip $(COV_TEST)),)
- CFLAGS_COV=-fprofile-arcs -ftest-coverage
-endif
-
CC ?= gcc
CFLAGS ?=-Wall -g $(CFLAGS_COV)
LIBS=$(LDFLAGS)
OBJS=common.o sslh-main.o probe.o
-ifneq ($(strip $(USELIBWRAP)),)
- LIBS:=$(LIBS) -lwrap
- CFLAGS:=$(CFLAGS) -DLIBWRAP
-endif
-
-ifneq ($(strip $(USELIBCONFIG)),)
- LIBS:=$(LIBS) -lconfig
- CFLAGS:=$(CFLAGS) -DLIBCONFIG
-endif
-
all: sslh $(MAN) echosrv
.c.o: *.h
@@ -51,7 +36,7 @@ echosrv: $(OBJS) echosrv.o
$(CC) $(CFLAGS) -o echosrv echosrv.o probe.o common.o $(LIBS)
$(MAN): sslh.pod Makefile
- pod2man --section=8 --release=$(VERSION) --center=" " sslh.pod | gzip -9 - > $(MAN)
+ pod2man --section=8 --release=$(VERSION) --center=" " sslh.pod > $(MAN)
# Create release: export clean tree and tag current
# configuration