summaryrefslogtreecommitdiff
path: root/net/pipsecd/files/patch-Makefile
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-29 01:59:16 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-29 01:59:16 +0000
commit69ea23ed7175d5c34a21bba1ef9262f311c69284 (patch)
treee2e604e83659be7f58596e80b3cf18e9d7d06dae /net/pipsecd/files/patch-Makefile
parentStage net-mgmt/routers2 and cleanup (diff)
Rename net/ patch-xy patches to reflect the files they modify.
Approve by: portmgr (not really, but one of these is modifying an unstaged port)
Notes
Notes: svn path=/head/; revision=363285
Diffstat (limited to 'net/pipsecd/files/patch-Makefile')
-rw-r--r--net/pipsecd/files/patch-Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/net/pipsecd/files/patch-Makefile b/net/pipsecd/files/patch-Makefile
new file mode 100644
index 000000000000..d16d9ddcd1ae
--- /dev/null
+++ b/net/pipsecd/files/patch-Makefile
@@ -0,0 +1,31 @@
+--- Makefile.orig Thu Sep 16 17:44:50 1999
++++ Makefile Sun Feb 20 20:41:18 2000
+@@ -6,10 +6,13 @@
+ CLEANFILES= *.core *.o pipsecd
+
+ # Where your OpenSSL includes are located
+-INCDIR=/usr/local/ssl/include
++INCDIR=-I$(OPENSSLINC)/openssl -I$(OPENSSLINC) -I$(LOCALBASE)/include
+
+ # Where your libcrypto is located
+-LIBDIR=/usr/local/ssl/lib
++LIBDIR=-L$(OPENSSLLIB)
++
++# Misc defines
++DEFINES=-DFILE_PREFIX=\"$(PREFIX)\"
+
+ # Optional: use FreeBSD's libmd
+ #OPTLIB += -lmd
+@@ -19,10 +22,10 @@
+ #OPTDEF += -DUSE_ETHERTAP
+
+ pipsecd: tunip.c defs.h
+- gcc -Wall -I$(INCDIR) -g $(OPTDEF) -o pipsecd tunip.c -L$(LIBDIR) $(OPTLIB) -lcrypto
++ $(CC) -Wall $(INCDIR) -g $(CFLAGS) $(OPENSSL_CFLAGS) $(OPTDEF) -o pipsecd tunip.c $(LIBDIR) -lcrypto $(OPTLIB) $(EXTRA_SSL_LIBS) $(DEFINES)
+
+ install: pipsecd
+- install pipsecd /usr/local/sbin/
++ install pipsecd $(PREFIX)/sbin/
+
+ tar:
+ tar cfvz tunip.tar.gz $(DISTFILES)