openbsd-ports/www/yaws/patches/patch-scripts_regular-install
2012-10-30 20:29:21 +00:00

28 lines
1.2 KiB
Plaintext

$OpenBSD: patch-scripts_regular-install,v 1.2 2012/10/30 20:29:21 jasper Exp $
--- scripts/regular-install.orig Wed Oct 17 20:14:43 2012
+++ scripts/regular-install Tue Oct 30 21:20:53 2012
@@ -10,7 +10,7 @@ set -e
./Install "${PREFIX}" "${ERL}" "${WERL}" "${ETCDIR}/" \
"${VARDIR}/" "${ERLBINDIR}/" "${DESTDIR}" "${LIBDIR}"
-conffile="${DESTDIR}${ETCDIR}/yaws/yaws.conf"
+conffile="${DESTDIR}${PREFIX}/share/examples/yaws/yaws.conf"
if [ -f "$conffile" ]; then
echo "Keeping old config file $conffile"
cp yaws.conf "${conffile}.template"
@@ -19,11 +19,10 @@ else
if [ -n "$DESTDIR" ]; then
[ -d "$DESTDIR" ] || mkdir "$DESTDIR"
fi
- [ -d "${DESTDIR}${ETCDIR}" ] || mkdir "${DESTDIR}${ETCDIR}"
- [ -d "${DESTDIR}${ETCDIR}/yaws" ] || mkdir "${DESTDIR}${ETCDIR}/yaws"
+ [ -d "${DESTDIR}${ETCDIR}/yaws" ] || mkdir "${DESTDIR}${PREFIX}/share/examples/yaws"
cp yaws.conf "$conffile"
fi
-cp ../ssl/yaws-cert.pem "${DESTDIR}${ETCDIR}/yaws"
-cp ../ssl/yaws-key.pem "${DESTDIR}${ETCDIR}/yaws"
+cp ../ssl/yaws-cert.pem "${DESTDIR}${PREFIX}/share/examples/yaws"
+cp ../ssl/yaws-key.pem "${DESTDIR}${PREFIX}/share/examples/yaws"
exit 0