#!/bin/sh # # Created by: Vincent Stemen # Date: Mon Jul 5 22:56:40 CDT 2010 # This patch file is self applying. # It can be applied by directly executing it in the directory of the # file, being patched, or it can be applied the usual way # (e.g. patch < this_patch_file). # # Patch to add Dragonfly BSD support patch < $0 exit --- utils/sercmd/Makefile.orig 2010-03-08 15:29:00 -0600 +++ utils/sercmd/Makefile 2010-07-05 22:50:32 -0500 @@ -29,7 +29,12 @@ # from a module Makefile) #LIBS:=$(filter-out -lfl -ldl -lpthread -lssl -lcrypto, $(LIBS)) -LIBS:= -lresolv +ifeq ($(OS), dragonfly) + LIBS:= -L$(LOCALBASE)/lib +else + LIBS:= -lresolv +endif + ifeq ($(OS), solaris) LIBS+= -L$(LOCALBASE)/lib -lxnet -lnsl endif