Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147814117
D52834.id163262.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D52834.id163262.diff
View Options
diff --git a/etc/Makefile b/etc/Makefile
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -64,11 +64,18 @@
${INSTALL_SYMLINK} -T "package=runtime" ../var/run/os-release \
${DESTDIR}/etc/os-release
.if ${MK_UNBOUND} != "no"
+# If NO_ROOT is defined, we are doing a stage install and always need to
+# install the /etc/unbound symlink, otherwise, don't overwrite the user's
+# existing symlink.
+.if defined(NO_ROOT)
+ ${INSTALL_SYMLINK} -T "package=unbound" ../var/unbound \
+ ${DESTDIR}/etc/unbound
+.else
if [ ! -e ${DESTDIR}/etc/unbound ]; then \
- ${INSTALL_SYMLINK} -T "package=unbound" \
- ../var/unbound ${DESTDIR}/etc/unbound; \
+ ${INSTALL_SYMLINK} ../var/unbound ${DESTDIR}/etc/unbound
fi
.endif
+.endif
.if ${MK_SENDMAIL} != "no"
${_+_}cd ${.CURDIR}/sendmail; ${MAKE} distribution
.endif
@@ -82,12 +89,19 @@
.if ${MK_MAIL} != "no"
cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
-T "package=runtime,config" ${ETCMAIL} ${DESTDIR}/etc/mail
- if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
- ! -f ${DESTDIR}/etc/aliases ]; then \
- ${INSTALL_SYMLINK} -T "package=runtime" \
- mail/aliases ${DESTDIR}/etc/aliases; \
+# If NO_ROOT is defined, we are doing a stage install and always need to
+# install the /etc/aliases symlink, otherwise, don't overwrite the user's
+# existing symlink.
+.if defined(NO_ROOT)
+ ${INSTALL_SYMLINK} -T "package=runtime" mail/aliases ${DESTDIR}/etc/aliases
+.else
+ if [ -f ${DESTDIR}/etc/mail/aliases -a \
+ ! -f ${DESTDIR}/etc/aliases ]; then \
+ ${INSTALL_SYMLINK} mail/aliases ${DESTDIR}/etc/aliases; \
fi
-.endif
+.endif # defined(NO_ROOT)
+.endif # ${MK_MAIL} != "no"
+
.if ${MK_SENDMAIL} != "no"
cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
-T "package=sendmail" ${ETCMAIL_SENDMAIL} ${DESTDIR}/etc/mail
diff --git a/usr.sbin/ypserv/Makefile b/usr.sbin/ypserv/Makefile
--- a/usr.sbin/ypserv/Makefile
+++ b/usr.sbin/ypserv/Makefile
@@ -41,7 +41,10 @@
FILESDIR= /var/yp
SCRIPTS= ypinit.sh
-.if !exists(${DESTDIR}${FILESDIR}/Makefile)
+# If NO_ROOT is defined, we are doing a stage install and always need to
+# install the symlink, otherwise, don't overwrite the user's existing
+# symlink.
+.if defined(NO_ROOT) || !exists(${DESTDIR}${FILESDIR}/Makefile)
SYMLINKS= ${FILESNAME} ${FILESDIR}/Makefile
.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 14, 9:05 PM (13 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29686166
Default Alt Text
D52834.id163262.diff (2 KB)
Attached To
Mode
D52834: etc, ypserv: Fix symlink creation for pkgbase
Attached
Detach File
Event Timeline
Log In to Comment