Skip to content

Commit

Permalink
scripts/Install: Create ${etcdir}/rc.d on FreeBSD
Browse files Browse the repository at this point in the history
If Yaws is installed in a non-standard directory, we must create
${etcdir}/rc.d before copying the init script there.
  • Loading branch information
dumbbell committed Apr 14, 2014
1 parent 52e7b4c commit ab4708c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/Install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab4708c

Please sign in to comment.