diff options
Diffstat (limited to 'emulators/linux_base-8')
-rw-r--r-- | emulators/linux_base-8/Makefile | 10 | ||||
-rw-r--r-- | emulators/linux_base-8/pkg-message | 15 |
2 files changed, 15 insertions, 10 deletions
diff --git a/emulators/linux_base-8/Makefile b/emulators/linux_base-8/Makefile index 4b2e1cd958d8..756cf87721e6 100644 --- a/emulators/linux_base-8/Makefile +++ b/emulators/linux_base-8/Makefile @@ -60,7 +60,7 @@ CONFLICTS= linux_base-7* linux_base-deb* linux_base-gentoo* \ linux_base-rh* linux_base-suse* ONLY_FOR_ARCHS= i386 amd64 DIST_SUBDIR= rpm/${ARCH}/${PORTVERSION} -PREFIX= ${LINUXBASE} +PREFIX?= ${LINUXBASE} NO_BUILD= yes NO_FILTER_SHLIBS= yes NO_MTREE= yes @@ -106,12 +106,6 @@ pre-install: @cd ${WRKSRC}/lib && ${LN} -sf libtermcap.so.2.0.8 libtermcap.so.2 @${RPM} --initdb --root ${WRKSRC} --dbpath ${DBPATH} # -# Make sure we have a /dev/null in the chrooted environment. - @${MKDIR} ${WRKSRC}/dev - @${RM} -f ${WRKSRC}/dev/null - @mknod ${WRKSRC}/dev/null c 2 2 - @${CHMOD} 666 ${WRKSRC}/dev/null -# # Install all packages. Ignore dependencies just like the Red Hat installer. # Also, set the ELF fallback brand to Linux, so that we don't have to do # anything special to run staticly linked binaries. @@ -121,7 +115,7 @@ pre-install: ${RPM} -U ${RPMFLAGS} ${RPMDIR}/$$R; \ done @for F in ${BRAND_FILES}; do \ - brandelf -t Linux ${WRKSRC}/$$F; \ + ${BRANDELF} -t Linux ${WRKSRC}/$$F; \ done @/sbin/sysctl -w ${FALLBACK_ELF_MIB}=${PREVIOUS_ELF} # diff --git a/emulators/linux_base-8/pkg-message b/emulators/linux_base-8/pkg-message index b7d8d197ca8f..29791da973dc 100644 --- a/emulators/linux_base-8/pkg-message +++ b/emulators/linux_base-8/pkg-message @@ -8,5 +8,16 @@ is now enabled. Linux mode can be enabled permanently with the linux_enable variable of rc.conf(5). -When using NIS, don't forget to edit -yp.conf in /compat/linux/etc. +To make use of NIS you have to adjust yp.conf and nsswitch.conf in +/compat/linux/etc/ accordingly. For example: + +Set your yp-server and yp-domainname in yp.conf: +domainname my.yp.domainname +ypserver my.yp.server + +Let your lists for hosts, passwd and group be resolved via nsswitch.conf: +passwd: files nis +shadow: files nis +group: files nis +hosts: files dns nis + |