1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/net/pipsecd/files/patch-aa

35 lines
1003 B
Plaintext
Raw Normal View History

1999-10-19 04:55:39 +00:00
--- Makefile.orig Thu Sep 16 17:44:50 1999
+++ Makefile Fri Feb 4 15:14:18 2000
@@ -6,23 +6,26 @@
CLEANFILES= *.core *.o pipsecd
# Where your OpenSSL includes are located
-INCDIR=/usr/local/ssl/include
+INCDIR=-I$(OPENSSLINC) -I$(OPENSSLINC)/openssl -I$(LOCALBASE)/include
# Where your libcrypto is located
-LIBDIR=/usr/local/ssl/lib
+LIBDIR=-L$(OPENSSLLIB)
+
1999-10-19 04:55:39 +00:00
+# Misc defines
+DEFINES=-DFILE_PREFIX=\"$(PREFIX)\"
1999-10-19 04:55:39 +00:00
# Optional: use FreeBSD's libmd
-#OPTLIB += -lmd
+OPTLIB += -lmd
#OPTDEF += -DUSE_SYSTEM_HASH
# Optional: use ethertap device under Linux instead of userlink
1999-10-19 04:55:39 +00:00
#OPTDEF += -DUSE_ETHERTAP
pipsecd: tunip.c defs.h
1999-10-19 04:55:39 +00:00
- 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
1999-10-19 04:55:39 +00:00
- install pipsecd /usr/local/sbin/
+ install pipsecd $(PREFIX)/sbin/
tar:
tar cfvz tunip.tar.gz $(DISTFILES)