Permalink
Browse files

scripts/Install: Create ${etcdir}/rc.d on FreeBSD

If Yaws is installed in a non-standard directory, we must create
${etcdir}/rc.d before copying the init script there.
  • Loading branch information...
1 parent 52e7b4c commit ab4708c2fd179112108d5ec6801d2935c7772641 @dumbbell dumbbell committed Apr 14, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 scripts/Install
View
@@ -82,6 +82,7 @@ elif [ "`uname -s`" = "Darwin" -a `id -u` = 0 ]; then
# MacOS is particular about the ownership of startup items.
chown -R root:wheel ${startupdir}
elif [ "`uname -s`" = "FreeBSD" ]; then
+ install -d ${destdir}${etcdir}/rc.d
sed -e "s;%prefix%;$p;g" -e "s;%etcdir%;$e;g" \
freebsd/yaws > ${destdir}${etcdir}/rc.d/yaws
elif [ "`uname -s`" = "NetBSD" ]; then

0 comments on commit ab4708c

Please sign in to comment.