openbsd-ports/net/tacacs+/patches/patch-Makefile
jsyn fca6d5b663 Import of tacacs+-4.0.4a:
--
Cisco's TACACS+ Server

TACACS+ is used for authentication, authorization, and accounting
on Cisco routers. This daemon provides a server for TACACS+ routers.

WWW: http://www.gazi.edu.tr/tacacs/

MAINTAINER= Jeff Bachtel <jeff@cepheid.org>

+ lots of additional mods
+ pvalchev@ helped
+ lebel@ reviewed
2001-07-30 05:18:07 +00:00

54 lines
1.5 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.1.1.1 2001/07/30 05:18:07 jsyn Exp $
--- Makefile.orig Sun Jun 18 12:26:54 2000
+++ Makefile Thu Jul 26 21:22:58 2001
@@ -33,8 +33,8 @@ CC = gcc
# OS=-DMIPS
# For Solaris (SUNOS 5.3, 5.4, 5.5, 5.6) uncomment the following two lines
-OS=-DSOLARIS
-OSLIBS=-lsocket -lnsl
+# OS=-DSOLARIS
+# OSLIBS=-lsocket -lnsl
# For FreeBSD
# OS=-DFREEBSD
@@ -44,6 +44,9 @@ OSLIBS=-lsocket -lnsl
# e.g. SunOS, you may need to instead use:
# OSLIBS=-ldescrypt
+# For OpenBSD
+OS=-DOPENBSD
+
# For LINUX
# OS=-DLINUX
#
@@ -59,9 +62,9 @@ OSLIBS=-lsocket -lnsl
# configuration file and obtaining a privileged socket. If you always
# want tac_plus to run as root, then just comment out the FLAGS line.
-# USERID = 1500
-# GROUPID = 25
-# FLAGS = -DTAC_PLUS_USERID=$(USERID) -DTAC_PLUS_GROUPID=$(GROUPID)
+USERID = 1
+GROUPID = 1
+FLAGS = -DTAC_PLUS_USERID=$(USERID) -DTAC_PLUS_GROUPID=$(GROUPID)
# Definitions for SKEY functionality
# DEFINES = -DSKEY
@@ -85,13 +88,13 @@ MAXSESS = -DMAXSESS
# possible), containing its process id. Uncomment and modify the
# following line to change this filename
-# PIDFILE = -DTAC_PLUS_PIDFILE=\"/var/run/tac_plus.pid\"
+PIDFILE = -DTAC_PLUS_PIDFILE=\"/var/run/tac_plus.pid\"
#
# End of customisable section of Makefile
#
-CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) $(FLAGS) $(OS) $(PIDFILE) $(MAXSESS)
+CFLAGS+= $(DEBUG) $(DEFINES) $(INCLUDES) $(FLAGS) $(OS) $(PIDFILE) $(MAXSESS)
HFILES = expire.h parse.h regmagic.h md5.h regexp.h tac_plus.h