aboutsummaryrefslogtreecommitdiffstats
path: root/net/tac_plus4/files
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>1999-11-10 15:37:21 +0800
committerandreas <andreas@FreeBSD.org>1999-11-10 15:37:21 +0800
commit43048d72472983e5dab2e2718e9e439349012c5a (patch)
treea171107e2d8ffc6a9c0edd560da8aa5093f32631 /net/tac_plus4/files
parente28cde9e08ed9bc54380c88ce99f5a7fc81bac5b (diff)
downloadfreebsd-ports-graphics-43048d72472983e5dab2e2718e9e439349012c5a.tar.gz
freebsd-ports-graphics-43048d72472983e5dab2e2718e9e439349012c5a.tar.zst
freebsd-ports-graphics-43048d72472983e5dab2e2718e9e439349012c5a.zip
Port update after repository copy
Taken from tasic@planka.carrier.kiev.ua + some modifications by me (style, patch additions to compile cleanly, pkg/*) added convert utility to port/package to enable people to do migrations, if needed, see the docu for details. PR: 13716 Submitted by: tasic@planka.carrier.kiev.ua
Diffstat (limited to 'net/tac_plus4/files')
-rw-r--r--net/tac_plus4/files/extra-patch-ba24
-rw-r--r--net/tac_plus4/files/patch-aa50
-rw-r--r--net/tac_plus4/files/patch-ac156
-rw-r--r--net/tac_plus4/files/patch-ae11
-rw-r--r--net/tac_plus4/files/tac_plus.conf.example4
5 files changed, 111 insertions, 134 deletions
diff --git a/net/tac_plus4/files/extra-patch-ba b/net/tac_plus4/files/extra-patch-ba
index 9cb5ff36426..58d401a07ea 100644
--- a/net/tac_plus4/files/extra-patch-ba
+++ b/net/tac_plus4/files/extra-patch-ba
@@ -1,7 +1,7 @@
-*** authen.c.orig Sat Jul 29 02:49:15 1995
---- authen.c Wed Jul 16 15:00:40 1997
+*** authen.c.orig Thu Sep 9 15:21:09 1999
+--- authen.c Thu Sep 9 15:21:28 1999
***************
-*** 209,217 ****
+*** 227,235 ****
datap->status = TAC_PLUS_AUTHEN_STATUS_GETUSER;
if (datap->service == TAC_PLUS_AUTHEN_SVC_LOGIN) {
@@ -11,7 +11,7 @@
}
send_authen_reply(TAC_PLUS_AUTHEN_STATUS_GETUSER, /* status */
prompt, /* msg */
---- 209,217 ----
+--- 227,235 ----
datap->status = TAC_PLUS_AUTHEN_STATUS_GETUSER;
if (datap->service == TAC_PLUS_AUTHEN_SVC_LOGIN) {
@@ -21,10 +21,10 @@
}
send_authen_reply(TAC_PLUS_AUTHEN_STATUS_GETUSER, /* status */
prompt, /* msg */
-*** default_fn.c.orig Sat Jul 29 02:49:18 1995
---- default_fn.c Wed Jul 16 15:00:52 1997
+*** default_v0_fn.c.orig Thu Sep 9 15:22:52 1999
+--- default_v0_fn.c Thu Sep 9 15:23:09 1999
***************
-*** 76,84 ****
+*** 87,95 ****
/* No username. Try requesting one */
data->status = TAC_PLUS_AUTHEN_STATUS_GETUSER;
if (data->service == TAC_PLUS_AUTHEN_SVC_LOGIN) {
@@ -34,7 +34,7 @@
}
data->server_msg = tac_strdup(prompt);
p->state = STATE_AUTHEN_GETUSER;
---- 76,84 ----
+--- 87,95 ----
/* No username. Try requesting one */
data->status = TAC_PLUS_AUTHEN_STATUS_GETUSER;
if (data->service == TAC_PLUS_AUTHEN_SVC_LOGIN) {
@@ -44,10 +44,10 @@
}
data->server_msg = tac_strdup(prompt);
p->state = STATE_AUTHEN_GETUSER;
-*** skey_fn.c.orig Wed Jul 16 14:38:34 1997
---- skey_fn.c Wed Jul 16 15:01:01 1997
+*** skey_fn.c.orig Thu Sep 9 15:23:23 1999
+--- skey_fn.c Thu Sep 9 15:23:56 1999
***************
-*** 104,112 ****
+*** 116,124 ****
/* No username. Try requesting one */
data->status = TAC_PLUS_AUTHEN_STATUS_GETUSER;
if (data->service == TAC_PLUS_AUTHEN_SVC_LOGIN) {
@@ -57,7 +57,7 @@
}
data->server_msg = tac_strdup(prompt);
p->state = STATE_AUTHEN_GETUSER;
---- 104,112 ----
+--- 116,124 ----
/* No username. Try requesting one */
data->status = TAC_PLUS_AUTHEN_STATUS_GETUSER;
if (data->service == TAC_PLUS_AUTHEN_SVC_LOGIN) {
diff --git a/net/tac_plus4/files/patch-aa b/net/tac_plus4/files/patch-aa
index 3171aeea68a..0ab3ea3f075 100644
--- a/net/tac_plus4/files/patch-aa
+++ b/net/tac_plus4/files/patch-aa
@@ -1,18 +1,24 @@
---- Makefile.orig Sat Jul 29 00:49:20 1995
-+++ Makefile Thu Oct 14 22:12:44 1999
-@@ -22,9 +22,9 @@
- # OSLIBS=-lsocket -lnsl
+--- Makefile.orig Sat Apr 3 08:03:48 1999
++++ Makefile Tue Nov 9 21:48:01 1999
+@@ -31,13 +31,13 @@
+ # 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
+OS=-DFREEBSD
- # You may also need to add
+ # You may also need to add:
-# OSLIBS=-lcrypt
+OSLIBS=-lcrypt
-
- # For LINUX
- # OS=-DLINUX
-@@ -40,23 +40,23 @@
+ # NOTE: If you want your password encryption to be compatible with
+ # e.g. SunOS, you may need to instead use:
+ # OSLIBS=-ldescrypt
+@@ -62,12 +62,12 @@
# FLAGS = -DTAC_PLUS_USERID=$(USERID) -DTAC_PLUS_GROUPID=$(GROUPID)
# Definitions for SKEY functionality
@@ -22,10 +28,13 @@
+LIBS = -lskey -lmd
# INCLUDES = -I../crimelab/skey/src
+ # Debugging flags
-DEBUG = -g
-+#DEBUG = -g
++# DEBUG = -g
- # On startup, tac_plus creates the file /etc/tac_plus.pid (if
+ # Enforce a limit on maximum sessions per user. See the user's guide
+ # for more information.
+@@ -83,13 +83,13 @@
# possible), containing its process id. Uncomment and modify the
# following line to change this filename
@@ -36,8 +45,19 @@
# End of customisable section of Makefile
#
--CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) $(FLAGS) $(OS) $(PIDFILE)
-+CFLAGS += $(DEBUG) $(DEFINES) $(INCLUDES) $(FLAGS) $(OS) $(PIDFILE)
+-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
+
+@@ -128,8 +128,8 @@
+ -rm -f *.o *~ *.BAK tac_plus generate_passwd
+
+ install:
+- cp tac_plus /usr/local/bin
+- cp tac_plus.1 /usr/man/manl/tac_plus.1
++ cp tac_plus $(PREFIX)/sbin
++ cp tac_plus.1 $(PREFIX)/man1/tac_plus.1
- SRCS = acct.c authen.c author.c choose_authen.c config.c do_acct.c \
- do_author.c dump.c encrypt.c expire.c md5.c \
+ depend:
+ makedepend $(CFLAGS) $(SRCS)
diff --git a/net/tac_plus4/files/patch-ac b/net/tac_plus4/files/patch-ac
index bed281b63e1..444a0a67965 100644
--- a/net/tac_plus4/files/patch-ac
+++ b/net/tac_plus4/files/patch-ac
@@ -1,107 +1,49 @@
-*** tac_plus.1.orig Sat Jul 29 02:49:20 1995
---- tac_plus.1 Mon Mar 3 17:34:30 1997
-***************
-*** 30,36 ****
- authorisation and accounting.
- .LP
- On startup, tac_plus creates the file
-! .B /etc/tac_plus.pid ,
- if possible, containing its process id.
- .LP
- .SH ARGUMENTS and OPTIONS
---- 30,36 ----
- authorisation and accounting.
- .LP
- On startup, tac_plus creates the file
-! .B /var/run/tac_plus.pid ,
- if possible, containing its process id.
- .LP
- .SH ARGUMENTS and OPTIONS
-***************
-*** 79,91 ****
- .B \-d <level>
- Switch on debugging and write debug output into
- .B
-! /tmp/var/tac_plus.log.
-
- See the definitions of debugging flags at the bottom of tac_plus.h for
- available flags and their meanings. Most flags cause extra messages
- to be sent to
- .B
-! /tmp/var/tac_plus.log
- and also to
- .B
- syslog.
---- 79,91 ----
- .B \-d <level>
- Switch on debugging and write debug output into
- .B
-! /var/tmp/tac_plus.log.
-
- See the definitions of debugging flags at the bottom of tac_plus.h for
- available flags and their meanings. Most flags cause extra messages
- to be sent to
- .B
-! /var/tmp/tac_plus.log
- and also to
- .B
- syslog.
-***************
-*** 177,183 ****
- facility.
- .nf
-
-! local6.info /var/adm/messages
-
- .fi
- .LP
---- 177,183 ----
- facility.
- .nf
-
-! local6.info /var/log/tac_plus.log
-
- .fi
- .LP
-***************
-*** 194,200 ****
- .B /var/tmp/tac_plus.log
- Contains debugging output when -d is in effect.
- .TP
-! .B /etc/tac_plus.pid
- contains the process id of currently running daemon.
- .SH BUGS
- The configuration file syntax is too complex.
---- 194,200 ----
- .B /var/tmp/tac_plus.log
- Contains debugging output when -d is in effect.
- .TP
-! .B /var/run/tac_plus.pid
- contains the process id of currently running daemon.
- .SH BUGS
- The configuration file syntax is too complex.
-*** users_guide.orig Sat Jul 29 02:49:20 1995
---- users_guide Mon Mar 3 19:51:56 1997
-***************
-*** 996,1005 ****
- and then send the daemon a SIGUSR1. This will cause it to reinitialize
- itself and re-read the configuration file.
-
-! On startup, tac_plus creates the file /etc/tac_plus.pid , if possible,
- containing its process id, so something like the following should work:
-
-! # kill -USR1 `cat /etc/tac_plus.pid`
-
- It's a good idea to check that the daemon is still running after
- sending it a SIGUSR1, since a syntactically incorrect configuration
---- 996,1005 ----
- and then send the daemon a SIGUSR1. This will cause it to reinitialize
- itself and re-read the configuration file.
-
-! On startup, tac_plus creates the file /var/run/tac_plus.pid, if possible,
- containing its process id, so something like the following should work:
-
-! # kill -USR1 `cat /var/run/tac_plus.pid`
-
- It's a good idea to check that the daemon is still running after
- sending it a SIGUSR1, since a syntactically incorrect configuration
+--- tac_plus.1.orig Sat Apr 3 08:03:47 1999
++++ tac_plus.1 Tue Nov 9 21:55:56 1999
+@@ -32,7 +32,7 @@
+ authorisation and accounting.
+ .LP
+ On startup, tac_plus creates the file
+-.B /etc/tac_plus.pid ,
++.B /var/run/tac_plus.pid ,
+ if possible, containing its process id.
+ .LP
+ .SH ARGUMENTS and OPTIONS
+@@ -195,7 +195,7 @@
+ facility.
+ .nf
+
+-local6.info /var/adm/messages
++local6.info /var/log/tac_plus.log
+
+ .fi
+ .LP
+@@ -212,7 +212,7 @@
+ .B /var/tmp/tac_plus.log
+ Contains debugging output when -d is in effect.
+ .TP
+-.B /etc/tac_plus.pid or /etc/tac_plus.pid.port
++.B /var/run/tac_plus.pid or /var/run/tac_plus.pid.port
+ contains the process id of the currently running daemon. The port
+ number is appended to the filename only if the port being used is not
+ the default one of 49.
+--- users_guide.orig Sat Apr 3 08:03:48 1999
++++ users_guide Tue Nov 9 21:57:03 1999
+@@ -1368,7 +1368,7 @@
+ and then send the daemon a SIGUSR1. This will cause it to reinitialize
+ itself and re-read the configuration file.
+
+-On startup, tac_plus creates the file /etc/tac_plus.pid , if possible,
++On startup, tac_plus creates the file /var/run/tac_plus.pid , if possible,
+ containing its process id. If you invoke the daemon so that it listens
+ on a non-standard port, the file created is /etc/tac_plus.pid.<port>
+ instead, where <port> is the port number the daemon is listening on.
+@@ -1376,7 +1376,7 @@
+ Assuming you are listening on the default port 49, something like the
+ following should work:
+
+-# kill -USR1 `cat /etc/tac_plus.pid`
++# kill -USR1 `cat /var/run/tac_plus.pid`
+
+ It's a good idea to check that the daemon is still running after
+ sending it a SIGUSR1, since a syntactically incorrect configuration
diff --git a/net/tac_plus4/files/patch-ae b/net/tac_plus4/files/patch-ae
new file mode 100644
index 00000000000..d4b6b710404
--- /dev/null
+++ b/net/tac_plus4/files/patch-ae
@@ -0,0 +1,11 @@
+--- do_acct.c.orig Tue Nov 9 22:02:51 1999
++++ do_acct.c Tue Nov 9 22:03:30 1999
+@@ -158,7 +158,7 @@
+ #endif
+ entry.ut_time = utime;
+
+- wtmpfd = open(wtmpfile, O_CREAT | O_WRONLY | O_APPEND | O_SYNC, 0666);
++ wtmpfd = open(wtmpfile, O_CREAT | O_WRONLY | O_APPEND, 0666);
+ if (wtmpfd < 0) {
+ report(LOG_ERR, "Can't open wtmp file %s -- %s",
+ wtmpfile, sys_errlist[errno]);
diff --git a/net/tac_plus4/files/tac_plus.conf.example b/net/tac_plus4/files/tac_plus.conf.example
index 0d7b273210a..06a5d5b9a30 100644
--- a/net/tac_plus4/files/tac_plus.conf.example
+++ b/net/tac_plus4/files/tac_plus.conf.example
@@ -1,5 +1,9 @@
# /usr/local/etc/tac_plus.conf
+ # This is example from old version of tac_plus. It will work
+ # but config file have new features. I recomend to read
+ # /usr/local/share/doc/tac_plus/users_guide
+
user=fred {
name = "Fred Flintstone"
login = des mEX027bHtzTlQ