Репозитории ALT
S: | 1.2.1-alt1 |
5.1: | 1.1.35-alt2 |
4.1: | 1.1.35-alt1 |
4.0: | 1.1.31-alt1.1 |
3.0: | 1.1.31-alt1 |
Группа :: Коммуникации
Пакет: mgetty
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: mgetty-1.1.31-policy.patch
Скачать
Скачать
diff --git a/mgetty/policy.h-dist b/mgetty/policy.h-dist
index de5ec77..e724216 100644
--- a/mgetty/policy.h-dist
+++ b/mgetty/policy.h-dist
@@ -94,7 +94,7 @@
* ZyXELs use S40.2=1.
* If the path doesn't start with "/", it's relative to CONFDIR.
*/
-/* #define CNDFILE "dialin.config" */
+#define CNDFILE "dialin.config"
/* If you want to use /etc/gettydefs to set tty flags, define this
@@ -123,7 +123,7 @@
/* group id that the device is chown()ed to. If not defined, the
* primary group of "DEVICE_OWNER" is used.
*/
-#define DEVICE_GROUP "modem"
+#define DEVICE_GROUP "uucp"
/* access mode for the line while getty has it - it should be accessible
* by uucp / uucp, but not by others (imagine someone dialing into your
@@ -157,7 +157,7 @@
*
* if the directory does not exist, the log file goes to CONSOLE (!)
*/
-#define LOG_PATH "/var/log/mgetty.%s"
+#define LOG_PATH "/var/log/mgetty/%s.log"
/* Default log error level threshold. Possible error levels are
* L_FATAL, L_ERROR, L_AUDIT, L_WARN, L_MESG, L_NOISE, L_JUNK (see mgetty.h)
@@ -182,15 +182,20 @@
* mgetty will use the facility "LOG_AUTH", and the priorities
* LOG_NOTICE, LOG_ERR and LOG_ALERT, respectively.
*/
-/* #define SYSLOG */
+#define SYSLOG
/* Syslog facility
*
* This is the facility mgetty uses for logging. Ususally, this will be
* LOG_AUTH, but on some systems, this may not exist, try LOG_DAEMON
* instead (or look into the syslog manpage for available options)
+ * Note that LOG_AUTH is deprecated where LOG_AUTHPRIV is defined.
*/
+#ifdef LOG_AUTHPRIV
+#define SYSLOG_FC LOG_AUTHPRIV
+#else
#define SYSLOG_FC LOG_AUTH
+#endif
/* login stuff */
@@ -203,8 +208,9 @@
* The "@", "\\D" and "\\T" escapes will be replaced by SYSTEM, the
* current date and time, respectively.
* override with "-p <prompt>" switch
+ * Modified to match the defaults for mingetty and login.
*/
-#define LOGIN_PROMPT "@!login: "
+#define LOGIN_PROMPT "@ login: "
/* The old '#define ENV_TTYPROMPT' option has been superseded by setting
* "login-env-ttyprompt-hack yes" in mgetty.config. See mgetty.texi for
@@ -223,7 +229,7 @@
* (after that time a warning will be issued, after that, the call is
* dropped). To disable that feature, do not define it.
*/
-#define MAX_LOGIN_TIME 240
+#define MAX_LOGIN_TIME 60
/* nologin file
*
@@ -257,7 +263,7 @@
# define LOCK "/usr/spool/uucp/LCK/LCK..%s"
# endif
# ifdef linux
-# define LOCK "/var/lock/LCK..%s"
+# define LOCK "/var/lock/serial/LCK..%s"
# endif
# if defined(__FreeBSD__) || defined(__NetBSD__)
# define LOCK "/var/spool/lock/LCK..%s"
@@ -301,7 +307,7 @@
* WARNING2: Speeds higher than 38400 aren't supported on all platforms,
* and sometimes you have to use "50" to get 57600 or so!
*/
-#define DEFAULT_PORTSPEED 38400
+#define DEFAULT_PORTSPEED 57600
/* the modem initialization string
*
@@ -469,7 +475,7 @@
* watch out: if you run 'sendfax' as non-privileged user (user 'fax' etc.)
* you might need to create this file manually and chown it to 'fax'
*/
-#define FAX_LOG "/var/log/sendfax.log"
+#define FAX_LOG "/var/log/mgetty/sendfax.log"
/* local station ID (your fax number)
* 20 character string, most faxmodem allow all ascii characters 32..127,
@@ -537,8 +543,9 @@
* (with or without leading /dev/)
* If you don't adapt this for your needs, sendfax won't run (you can
* set it from the sendfax.config file, though)!
+ * We have no way of knowing. Punt.
*/
-#define FAX_MODEM_TTYS "tty4c:tty4d"
+#define FAX_MODEM_TTYS "modem"
/* Xon or not?
*
@@ -573,7 +580,7 @@
/* where to send notify mail about incoming faxes to
* (remember to create an mail alias if no such user exists!)
*/
-#define MAIL_TO "faxadmin"
+#define MAIL_TO "root"
/* after a fax has arrived, mgetty can call a program for further
* processing of this fax.
@@ -588,7 +595,7 @@
* If you don't want this type of service, do not define it at all
* Absolute path name has to be used here!
*/
-#define FAX_NOTIFY_PROGRAM "/usr/local/lib/mgetty+sendfax/new_fax"
+#define FAX_NOTIFY_PROGRAM "/etc/mgetty+sendfax/new_fax"
/* default minimum space required on spooling partition for receiving a FAX
* (in KILObytes)