path: root/mcon/U/d_newsadm.U
diff options
Diffstat (limited to 'mcon/U/d_newsadm.U')
1 files changed, 72 insertions, 0 deletions
diff --git a/mcon/U/d_newsadm.U b/mcon/U/d_newsadm.U
new file mode 100644
index 0000000..6a01138
--- /dev/null
+++ b/mcon/U/d_newsadm.U
@@ -0,0 +1,72 @@
+?RCS: $Id: d_newsadm.U,v 1997/02/28 15:36:53 ram Exp $
+?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: of the source tree for dist 3.0.
+?RCS: $Log: d_newsadm.U,v $
+?RCS: Revision 1997/02/28 15:36:53 ram
+?RCS: patch61: added Guess dependency
+?RCS: Revision 1994/10/29 16:14:33 ram
+?RCS: patch36: call ./eunice explicitely instead of relying on PATH
+?RCS: Revision 3.0 1993/08/18 12:06:42 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?MAKE:d_newsadm newsadmin: cat contains Guess Setvar Myread Oldconfig
+?MAKE: -pick add $@ %<
+?S: This variable conditionally defines the NEWS_ADMIN symbol, which
+?S: indicates to the C program that there is a user who is in charge
+?S: of news administration.
+?S: This variable holds the login name of the news administrator, if any.
+?C: This symbol, if defined, contains the login name of the news
+?C: administrator.
+?H:#$d_newsadm NEWS_ADMIN "$newsadmin" /**/
+?LINT:set d_newsadm
+: get news administrator name
+case "$newsadmin" in
+ if $contains "^news:" /etc/passwd >/dev/null 2>&1 ; then
+ dflt=news
+ elif $contains "^usenet:" /etc/passwd >/dev/null 2>&1 ; then
+ dflt=usenet
+ elif ./eunice; then
+ dflt=system
+ else
+ dflt=root
+ fi
+ ;;
+ dflt="$newsadmin"
+ ;;
+$cat <<'EOM'
+Many systems keep their news in a private directory, or have a non-superuser
+in charge of administering news. (If you don't have such a user, take the
+default answer.) I need the login name (not directory) which is used for
+news administration.
+rp="News admin login?"
+. ./myread
+case "$newsadmin" in
+root) val="$undef" ;;
+*) val="$define" ;;
+set d_newsadm
+eval $setvar