summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>1999-09-17 19:24:39 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>1999-09-17 19:24:39 +0000
commit07f77bbccee4a56fa28a74b7f1f7ecf00973ae54 (patch)
tree61f82d89303dc37afeddf1333b925a5291447d11 /emulators
parentDon't use ${PREFIX} in pkg/MESSAGE but /usr/local and substitute (diff)
Linux needs a yp.conf file for NIS to work. Install a sample yp.conf so that
NIS users now what to do. Display a note after installation of the port/package to draw attention to it. Creating the proper yp.conf on the fly is being considered... PR: 12748 Originator: Palle Girgensohn <girgen@partitur.se> Solution by: Palle Thanks to: nsayer
Notes
Notes: svn path=/head/; revision=21696
Diffstat (limited to '')
-rw-r--r--emulators/linux_base-6/Makefile4
-rw-r--r--emulators/linux_base-6/files/yp.conf15
-rw-r--r--emulators/linux_base-6/pkg-message3
-rw-r--r--emulators/linux_base-6/pkg-plist.alpha1
-rw-r--r--emulators/linux_base-6/pkg-plist.i3861
-rw-r--r--emulators/linux_base-62/Makefile4
-rw-r--r--emulators/linux_base-62/files/yp.conf15
-rw-r--r--emulators/linux_base-62/pkg-message3
-rw-r--r--emulators/linux_base-62/pkg-plist.alpha1
-rw-r--r--emulators/linux_base-62/pkg-plist.i3861
-rw-r--r--emulators/linux_base-8/Makefile4
-rw-r--r--emulators/linux_base-8/files/yp.conf15
-rw-r--r--emulators/linux_base-8/pkg-message3
-rw-r--r--emulators/linux_base-8/pkg-plist.alpha1
-rw-r--r--emulators/linux_base-8/pkg-plist.i3861
-rw-r--r--emulators/linux_base-rh-9/Makefile4
-rw-r--r--emulators/linux_base-rh-9/files/yp.conf15
-rw-r--r--emulators/linux_base-rh-9/pkg-message3
-rw-r--r--emulators/linux_base-rh-9/pkg-plist.alpha1
-rw-r--r--emulators/linux_base-rh-9/pkg-plist.i3861
-rw-r--r--emulators/linux_base-suse-9.1/Makefile4
-rw-r--r--emulators/linux_base-suse-9.1/files/yp.conf15
-rw-r--r--emulators/linux_base-suse-9.1/pkg-message3
-rw-r--r--emulators/linux_base-suse-9.1/pkg-plist.alpha1
-rw-r--r--emulators/linux_base-suse-9.1/pkg-plist.i3861
-rw-r--r--emulators/linux_base-suse-9.2/Makefile4
-rw-r--r--emulators/linux_base-suse-9.2/files/yp.conf15
-rw-r--r--emulators/linux_base-suse-9.2/pkg-message3
-rw-r--r--emulators/linux_base-suse-9.2/pkg-plist.alpha1
-rw-r--r--emulators/linux_base-suse-9.2/pkg-plist.i3861
-rw-r--r--emulators/linux_base-suse-9.3/Makefile4
-rw-r--r--emulators/linux_base-suse-9.3/files/yp.conf15
-rw-r--r--emulators/linux_base-suse-9.3/pkg-message3
-rw-r--r--emulators/linux_base-suse-9.3/pkg-plist.alpha1
-rw-r--r--emulators/linux_base-suse-9.3/pkg-plist.i3861
-rw-r--r--emulators/linux_base/Makefile4
-rw-r--r--emulators/linux_base/files/yp.conf15
-rw-r--r--emulators/linux_base/pkg-message3
-rw-r--r--emulators/linux_base/pkg-plist.alpha1
-rw-r--r--emulators/linux_base/pkg-plist.i3861
40 files changed, 192 insertions, 0 deletions
diff --git a/emulators/linux_base-6/Makefile b/emulators/linux_base-6/Makefile
index 1604af2de118..d214c72634c8 100644
--- a/emulators/linux_base-6/Makefile
+++ b/emulators/linux_base-6/Makefile
@@ -156,6 +156,10 @@ do-install:
rpm -i ${RPMFLAGS} ${RPMDIR}/$$R; \
done
#
+# Install yp.conf as a hint to NIS users
+#
+ ${INSTALL} ${COPY} -m 644 ${FILESDIR}/yp.conf ${PREFIX}/etc
+#
# Finish
#
.if defined(NEEDLOADLINK)
diff --git a/emulators/linux_base-6/files/yp.conf b/emulators/linux_base-6/files/yp.conf
new file mode 100644
index 000000000000..76d442bd6a87
--- /dev/null
+++ b/emulators/linux_base-6/files/yp.conf
@@ -0,0 +1,15 @@
+# sample yp.conf file
+#
+# Legal entries are:
+#
+# domainname <domain> Override the default YP domain
+# (If not set uses the one from
+# the getdomainname() syscall)
+#
+# ypserver <grape> [<domain>] Define which host to contact
+# for YP service. If the <domain>
+# argument is included then this
+# host service the specified YP
+# domain.
+domainname my.domain
+ypserver localhost
diff --git a/emulators/linux_base-6/pkg-message b/emulators/linux_base-6/pkg-message
index df097041d208..bbfd3e0cad6c 100644
--- a/emulators/linux_base-6/pkg-message
+++ b/emulators/linux_base-6/pkg-message
@@ -4,3 +4,6 @@ Linux binaries, the Linux kernel module
must be loaded. See linux(8). You may
consider loading the Linux kernel module
at boot time. See rc.conf(5).
+
+When using NIS, don't forget to edit
+yp.conf in /compat/linux/etc.
diff --git a/emulators/linux_base-6/pkg-plist.alpha b/emulators/linux_base-6/pkg-plist.alpha
index 3259345d10d8..52c45bbb7074 100644
--- a/emulators/linux_base-6/pkg-plist.alpha
+++ b/emulators/linux_base-6/pkg-plist.alpha
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so
diff --git a/emulators/linux_base-6/pkg-plist.i386 b/emulators/linux_base-6/pkg-plist.i386
index 1e29d3d10ba5..3230303e8eee 100644
--- a/emulators/linux_base-6/pkg-plist.i386
+++ b/emulators/linux_base-6/pkg-plist.i386
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so
diff --git a/emulators/linux_base-62/Makefile b/emulators/linux_base-62/Makefile
index 1604af2de118..d214c72634c8 100644
--- a/emulators/linux_base-62/Makefile
+++ b/emulators/linux_base-62/Makefile
@@ -156,6 +156,10 @@ do-install:
rpm -i ${RPMFLAGS} ${RPMDIR}/$$R; \
done
#
+# Install yp.conf as a hint to NIS users
+#
+ ${INSTALL} ${COPY} -m 644 ${FILESDIR}/yp.conf ${PREFIX}/etc
+#
# Finish
#
.if defined(NEEDLOADLINK)
diff --git a/emulators/linux_base-62/files/yp.conf b/emulators/linux_base-62/files/yp.conf
new file mode 100644
index 000000000000..76d442bd6a87
--- /dev/null
+++ b/emulators/linux_base-62/files/yp.conf
@@ -0,0 +1,15 @@
+# sample yp.conf file
+#
+# Legal entries are:
+#
+# domainname <domain> Override the default YP domain
+# (If not set uses the one from
+# the getdomainname() syscall)
+#
+# ypserver <grape> [<domain>] Define which host to contact
+# for YP service. If the <domain>
+# argument is included then this
+# host service the specified YP
+# domain.
+domainname my.domain
+ypserver localhost
diff --git a/emulators/linux_base-62/pkg-message b/emulators/linux_base-62/pkg-message
index df097041d208..bbfd3e0cad6c 100644
--- a/emulators/linux_base-62/pkg-message
+++ b/emulators/linux_base-62/pkg-message
@@ -4,3 +4,6 @@ Linux binaries, the Linux kernel module
must be loaded. See linux(8). You may
consider loading the Linux kernel module
at boot time. See rc.conf(5).
+
+When using NIS, don't forget to edit
+yp.conf in /compat/linux/etc.
diff --git a/emulators/linux_base-62/pkg-plist.alpha b/emulators/linux_base-62/pkg-plist.alpha
index 3259345d10d8..52c45bbb7074 100644
--- a/emulators/linux_base-62/pkg-plist.alpha
+++ b/emulators/linux_base-62/pkg-plist.alpha
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so
diff --git a/emulators/linux_base-62/pkg-plist.i386 b/emulators/linux_base-62/pkg-plist.i386
index 1e29d3d10ba5..3230303e8eee 100644
--- a/emulators/linux_base-62/pkg-plist.i386
+++ b/emulators/linux_base-62/pkg-plist.i386
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so
diff --git a/emulators/linux_base-8/Makefile b/emulators/linux_base-8/Makefile
index 1604af2de118..d214c72634c8 100644
--- a/emulators/linux_base-8/Makefile
+++ b/emulators/linux_base-8/Makefile
@@ -156,6 +156,10 @@ do-install:
rpm -i ${RPMFLAGS} ${RPMDIR}/$$R; \
done
#
+# Install yp.conf as a hint to NIS users
+#
+ ${INSTALL} ${COPY} -m 644 ${FILESDIR}/yp.conf ${PREFIX}/etc
+#
# Finish
#
.if defined(NEEDLOADLINK)
diff --git a/emulators/linux_base-8/files/yp.conf b/emulators/linux_base-8/files/yp.conf
new file mode 100644
index 000000000000..76d442bd6a87
--- /dev/null
+++ b/emulators/linux_base-8/files/yp.conf
@@ -0,0 +1,15 @@
+# sample yp.conf file
+#
+# Legal entries are:
+#
+# domainname <domain> Override the default YP domain
+# (If not set uses the one from
+# the getdomainname() syscall)
+#
+# ypserver <grape> [<domain>] Define which host to contact
+# for YP service. If the <domain>
+# argument is included then this
+# host service the specified YP
+# domain.
+domainname my.domain
+ypserver localhost
diff --git a/emulators/linux_base-8/pkg-message b/emulators/linux_base-8/pkg-message
index df097041d208..bbfd3e0cad6c 100644
--- a/emulators/linux_base-8/pkg-message
+++ b/emulators/linux_base-8/pkg-message
@@ -4,3 +4,6 @@ Linux binaries, the Linux kernel module
must be loaded. See linux(8). You may
consider loading the Linux kernel module
at boot time. See rc.conf(5).
+
+When using NIS, don't forget to edit
+yp.conf in /compat/linux/etc.
diff --git a/emulators/linux_base-8/pkg-plist.alpha b/emulators/linux_base-8/pkg-plist.alpha
index 3259345d10d8..52c45bbb7074 100644
--- a/emulators/linux_base-8/pkg-plist.alpha
+++ b/emulators/linux_base-8/pkg-plist.alpha
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so
diff --git a/emulators/linux_base-8/pkg-plist.i386 b/emulators/linux_base-8/pkg-plist.i386
index 1e29d3d10ba5..3230303e8eee 100644
--- a/emulators/linux_base-8/pkg-plist.i386
+++ b/emulators/linux_base-8/pkg-plist.i386
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so
diff --git a/emulators/linux_base-rh-9/Makefile b/emulators/linux_base-rh-9/Makefile
index 1604af2de118..d214c72634c8 100644
--- a/emulators/linux_base-rh-9/Makefile
+++ b/emulators/linux_base-rh-9/Makefile
@@ -156,6 +156,10 @@ do-install:
rpm -i ${RPMFLAGS} ${RPMDIR}/$$R; \
done
#
+# Install yp.conf as a hint to NIS users
+#
+ ${INSTALL} ${COPY} -m 644 ${FILESDIR}/yp.conf ${PREFIX}/etc
+#
# Finish
#
.if defined(NEEDLOADLINK)
diff --git a/emulators/linux_base-rh-9/files/yp.conf b/emulators/linux_base-rh-9/files/yp.conf
new file mode 100644
index 000000000000..76d442bd6a87
--- /dev/null
+++ b/emulators/linux_base-rh-9/files/yp.conf
@@ -0,0 +1,15 @@
+# sample yp.conf file
+#
+# Legal entries are:
+#
+# domainname <domain> Override the default YP domain
+# (If not set uses the one from
+# the getdomainname() syscall)
+#
+# ypserver <grape> [<domain>] Define which host to contact
+# for YP service. If the <domain>
+# argument is included then this
+# host service the specified YP
+# domain.
+domainname my.domain
+ypserver localhost
diff --git a/emulators/linux_base-rh-9/pkg-message b/emulators/linux_base-rh-9/pkg-message
index df097041d208..bbfd3e0cad6c 100644
--- a/emulators/linux_base-rh-9/pkg-message
+++ b/emulators/linux_base-rh-9/pkg-message
@@ -4,3 +4,6 @@ Linux binaries, the Linux kernel module
must be loaded. See linux(8). You may
consider loading the Linux kernel module
at boot time. See rc.conf(5).
+
+When using NIS, don't forget to edit
+yp.conf in /compat/linux/etc.
diff --git a/emulators/linux_base-rh-9/pkg-plist.alpha b/emulators/linux_base-rh-9/pkg-plist.alpha
index 3259345d10d8..52c45bbb7074 100644
--- a/emulators/linux_base-rh-9/pkg-plist.alpha
+++ b/emulators/linux_base-rh-9/pkg-plist.alpha
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so
diff --git a/emulators/linux_base-rh-9/pkg-plist.i386 b/emulators/linux_base-rh-9/pkg-plist.i386
index 1e29d3d10ba5..3230303e8eee 100644
--- a/emulators/linux_base-rh-9/pkg-plist.i386
+++ b/emulators/linux_base-rh-9/pkg-plist.i386
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so
diff --git a/emulators/linux_base-suse-9.1/Makefile b/emulators/linux_base-suse-9.1/Makefile
index 1604af2de118..d214c72634c8 100644
--- a/emulators/linux_base-suse-9.1/Makefile
+++ b/emulators/linux_base-suse-9.1/Makefile
@@ -156,6 +156,10 @@ do-install:
rpm -i ${RPMFLAGS} ${RPMDIR}/$$R; \
done
#
+# Install yp.conf as a hint to NIS users
+#
+ ${INSTALL} ${COPY} -m 644 ${FILESDIR}/yp.conf ${PREFIX}/etc
+#
# Finish
#
.if defined(NEEDLOADLINK)
diff --git a/emulators/linux_base-suse-9.1/files/yp.conf b/emulators/linux_base-suse-9.1/files/yp.conf
new file mode 100644
index 000000000000..76d442bd6a87
--- /dev/null
+++ b/emulators/linux_base-suse-9.1/files/yp.conf
@@ -0,0 +1,15 @@
+# sample yp.conf file
+#
+# Legal entries are:
+#
+# domainname <domain> Override the default YP domain
+# (If not set uses the one from
+# the getdomainname() syscall)
+#
+# ypserver <grape> [<domain>] Define which host to contact
+# for YP service. If the <domain>
+# argument is included then this
+# host service the specified YP
+# domain.
+domainname my.domain
+ypserver localhost
diff --git a/emulators/linux_base-suse-9.1/pkg-message b/emulators/linux_base-suse-9.1/pkg-message
index df097041d208..bbfd3e0cad6c 100644
--- a/emulators/linux_base-suse-9.1/pkg-message
+++ b/emulators/linux_base-suse-9.1/pkg-message
@@ -4,3 +4,6 @@ Linux binaries, the Linux kernel module
must be loaded. See linux(8). You may
consider loading the Linux kernel module
at boot time. See rc.conf(5).
+
+When using NIS, don't forget to edit
+yp.conf in /compat/linux/etc.
diff --git a/emulators/linux_base-suse-9.1/pkg-plist.alpha b/emulators/linux_base-suse-9.1/pkg-plist.alpha
index 3259345d10d8..52c45bbb7074 100644
--- a/emulators/linux_base-suse-9.1/pkg-plist.alpha
+++ b/emulators/linux_base-suse-9.1/pkg-plist.alpha
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so
diff --git a/emulators/linux_base-suse-9.1/pkg-plist.i386 b/emulators/linux_base-suse-9.1/pkg-plist.i386
index 1e29d3d10ba5..3230303e8eee 100644
--- a/emulators/linux_base-suse-9.1/pkg-plist.i386
+++ b/emulators/linux_base-suse-9.1/pkg-plist.i386
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so
diff --git a/emulators/linux_base-suse-9.2/Makefile b/emulators/linux_base-suse-9.2/Makefile
index 1604af2de118..d214c72634c8 100644
--- a/emulators/linux_base-suse-9.2/Makefile
+++ b/emulators/linux_base-suse-9.2/Makefile
@@ -156,6 +156,10 @@ do-install:
rpm -i ${RPMFLAGS} ${RPMDIR}/$$R; \
done
#
+# Install yp.conf as a hint to NIS users
+#
+ ${INSTALL} ${COPY} -m 644 ${FILESDIR}/yp.conf ${PREFIX}/etc
+#
# Finish
#
.if defined(NEEDLOADLINK)
diff --git a/emulators/linux_base-suse-9.2/files/yp.conf b/emulators/linux_base-suse-9.2/files/yp.conf
new file mode 100644
index 000000000000..76d442bd6a87
--- /dev/null
+++ b/emulators/linux_base-suse-9.2/files/yp.conf
@@ -0,0 +1,15 @@
+# sample yp.conf file
+#
+# Legal entries are:
+#
+# domainname <domain> Override the default YP domain
+# (If not set uses the one from
+# the getdomainname() syscall)
+#
+# ypserver <grape> [<domain>] Define which host to contact
+# for YP service. If the <domain>
+# argument is included then this
+# host service the specified YP
+# domain.
+domainname my.domain
+ypserver localhost
diff --git a/emulators/linux_base-suse-9.2/pkg-message b/emulators/linux_base-suse-9.2/pkg-message
index df097041d208..bbfd3e0cad6c 100644
--- a/emulators/linux_base-suse-9.2/pkg-message
+++ b/emulators/linux_base-suse-9.2/pkg-message
@@ -4,3 +4,6 @@ Linux binaries, the Linux kernel module
must be loaded. See linux(8). You may
consider loading the Linux kernel module
at boot time. See rc.conf(5).
+
+When using NIS, don't forget to edit
+yp.conf in /compat/linux/etc.
diff --git a/emulators/linux_base-suse-9.2/pkg-plist.alpha b/emulators/linux_base-suse-9.2/pkg-plist.alpha
index 3259345d10d8..52c45bbb7074 100644
--- a/emulators/linux_base-suse-9.2/pkg-plist.alpha
+++ b/emulators/linux_base-suse-9.2/pkg-plist.alpha
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so
diff --git a/emulators/linux_base-suse-9.2/pkg-plist.i386 b/emulators/linux_base-suse-9.2/pkg-plist.i386
index 1e29d3d10ba5..3230303e8eee 100644
--- a/emulators/linux_base-suse-9.2/pkg-plist.i386
+++ b/emulators/linux_base-suse-9.2/pkg-plist.i386
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so
diff --git a/emulators/linux_base-suse-9.3/Makefile b/emulators/linux_base-suse-9.3/Makefile
index 1604af2de118..d214c72634c8 100644
--- a/emulators/linux_base-suse-9.3/Makefile
+++ b/emulators/linux_base-suse-9.3/Makefile
@@ -156,6 +156,10 @@ do-install:
rpm -i ${RPMFLAGS} ${RPMDIR}/$$R; \
done
#
+# Install yp.conf as a hint to NIS users
+#
+ ${INSTALL} ${COPY} -m 644 ${FILESDIR}/yp.conf ${PREFIX}/etc
+#
# Finish
#
.if defined(NEEDLOADLINK)
diff --git a/emulators/linux_base-suse-9.3/files/yp.conf b/emulators/linux_base-suse-9.3/files/yp.conf
new file mode 100644
index 000000000000..76d442bd6a87
--- /dev/null
+++ b/emulators/linux_base-suse-9.3/files/yp.conf
@@ -0,0 +1,15 @@
+# sample yp.conf file
+#
+# Legal entries are:
+#
+# domainname <domain> Override the default YP domain
+# (If not set uses the one from
+# the getdomainname() syscall)
+#
+# ypserver <grape> [<domain>] Define which host to contact
+# for YP service. If the <domain>
+# argument is included then this
+# host service the specified YP
+# domain.
+domainname my.domain
+ypserver localhost
diff --git a/emulators/linux_base-suse-9.3/pkg-message b/emulators/linux_base-suse-9.3/pkg-message
index df097041d208..bbfd3e0cad6c 100644
--- a/emulators/linux_base-suse-9.3/pkg-message
+++ b/emulators/linux_base-suse-9.3/pkg-message
@@ -4,3 +4,6 @@ Linux binaries, the Linux kernel module
must be loaded. See linux(8). You may
consider loading the Linux kernel module
at boot time. See rc.conf(5).
+
+When using NIS, don't forget to edit
+yp.conf in /compat/linux/etc.
diff --git a/emulators/linux_base-suse-9.3/pkg-plist.alpha b/emulators/linux_base-suse-9.3/pkg-plist.alpha
index 3259345d10d8..52c45bbb7074 100644
--- a/emulators/linux_base-suse-9.3/pkg-plist.alpha
+++ b/emulators/linux_base-suse-9.3/pkg-plist.alpha
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so
diff --git a/emulators/linux_base-suse-9.3/pkg-plist.i386 b/emulators/linux_base-suse-9.3/pkg-plist.i386
index 1e29d3d10ba5..3230303e8eee 100644
--- a/emulators/linux_base-suse-9.3/pkg-plist.i386
+++ b/emulators/linux_base-suse-9.3/pkg-plist.i386
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so
diff --git a/emulators/linux_base/Makefile b/emulators/linux_base/Makefile
index 1604af2de118..d214c72634c8 100644
--- a/emulators/linux_base/Makefile
+++ b/emulators/linux_base/Makefile
@@ -156,6 +156,10 @@ do-install:
rpm -i ${RPMFLAGS} ${RPMDIR}/$$R; \
done
#
+# Install yp.conf as a hint to NIS users
+#
+ ${INSTALL} ${COPY} -m 644 ${FILESDIR}/yp.conf ${PREFIX}/etc
+#
# Finish
#
.if defined(NEEDLOADLINK)
diff --git a/emulators/linux_base/files/yp.conf b/emulators/linux_base/files/yp.conf
new file mode 100644
index 000000000000..76d442bd6a87
--- /dev/null
+++ b/emulators/linux_base/files/yp.conf
@@ -0,0 +1,15 @@
+# sample yp.conf file
+#
+# Legal entries are:
+#
+# domainname <domain> Override the default YP domain
+# (If not set uses the one from
+# the getdomainname() syscall)
+#
+# ypserver <grape> [<domain>] Define which host to contact
+# for YP service. If the <domain>
+# argument is included then this
+# host service the specified YP
+# domain.
+domainname my.domain
+ypserver localhost
diff --git a/emulators/linux_base/pkg-message b/emulators/linux_base/pkg-message
index df097041d208..bbfd3e0cad6c 100644
--- a/emulators/linux_base/pkg-message
+++ b/emulators/linux_base/pkg-message
@@ -4,3 +4,6 @@ Linux binaries, the Linux kernel module
must be loaded. See linux(8). You may
consider loading the Linux kernel module
at boot time. See rc.conf(5).
+
+When using NIS, don't forget to edit
+yp.conf in /compat/linux/etc.
diff --git a/emulators/linux_base/pkg-plist.alpha b/emulators/linux_base/pkg-plist.alpha
index 3259345d10d8..52c45bbb7074 100644
--- a/emulators/linux_base/pkg-plist.alpha
+++ b/emulators/linux_base/pkg-plist.alpha
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so
diff --git a/emulators/linux_base/pkg-plist.i386 b/emulators/linux_base/pkg-plist.i386
index 1e29d3d10ba5..3230303e8eee 100644
--- a/emulators/linux_base/pkg-plist.i386
+++ b/emulators/linux_base/pkg-plist.i386
@@ -49,6 +49,7 @@ etc/DIR_COLORS
etc/ld.so.conf
etc/pam.d/su
etc/redhat-release
+etc/yp.conf
lib/ld-2.0.7.so
lib/ld-linux.so.2
lib/libBrokenLocale-2.0.7.so