diff options
-rw-r--r-- | emulators/wine-devel/Makefile | 7 | ||||
-rw-r--r-- | emulators/wine-devel/files/wine.sh | 15 | ||||
-rw-r--r-- | emulators/wine-devel/pkg-plist | 1 | ||||
-rw-r--r-- | emulators/wine/Makefile | 7 | ||||
-rw-r--r-- | emulators/wine/files/wine.sh | 15 | ||||
-rw-r--r-- | emulators/wine/pkg-plist | 1 |
6 files changed, 46 insertions, 0 deletions
diff --git a/emulators/wine-devel/Makefile b/emulators/wine-devel/Makefile index 0a46ca4c4813..fa41aedb7ab3 100644 --- a/emulators/wine-devel/Makefile +++ b/emulators/wine-devel/Makefile @@ -50,6 +50,10 @@ pre-extract: @${ECHO} "that when running, only when it has to enter the debugger...)" .endif +post-extract: + @${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/wine.sh \ + > ${WRKSRC}/wine.sh + post-configure: cd ${WRKSRC} && make depend @@ -89,4 +93,7 @@ do-install: ${ECHO} @${SED} s+%%PREFIX%%+${PREFIX}+g <${PKGMESSAGE} +post-install: + @$INSTALL_SCRIPT} ${WRKSRC}/wine.sh > ${PREFIX}/etc/rc.d/000.wine.sh + .include <bsd.port.post.mk> diff --git a/emulators/wine-devel/files/wine.sh b/emulators/wine-devel/files/wine.sh new file mode 100644 index 000000000000..fe67ceb5d4e2 --- /dev/null +++ b/emulators/wine-devel/files/wine.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/lib/wine + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac diff --git a/emulators/wine-devel/pkg-plist b/emulators/wine-devel/pkg-plist index a03b1ba6bc0c..1b125dcdb845 100644 --- a/emulators/wine-devel/pkg-plist +++ b/emulators/wine-devel/pkg-plist @@ -28,6 +28,7 @@ bin/winewrap bin/winhelp bin/wmc bin/wrc +etc/rc.d/000.wine.sh @unexec if cmp -s %D/etc/wine.conf %D/etc/wine.conf.sample; then rm -f %D/etc/wine.conf; fi etc/wine.conf.sample include/wine/debug.h diff --git a/emulators/wine/Makefile b/emulators/wine/Makefile index 0a46ca4c4813..fa41aedb7ab3 100644 --- a/emulators/wine/Makefile +++ b/emulators/wine/Makefile @@ -50,6 +50,10 @@ pre-extract: @${ECHO} "that when running, only when it has to enter the debugger...)" .endif +post-extract: + @${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/wine.sh \ + > ${WRKSRC}/wine.sh + post-configure: cd ${WRKSRC} && make depend @@ -89,4 +93,7 @@ do-install: ${ECHO} @${SED} s+%%PREFIX%%+${PREFIX}+g <${PKGMESSAGE} +post-install: + @$INSTALL_SCRIPT} ${WRKSRC}/wine.sh > ${PREFIX}/etc/rc.d/000.wine.sh + .include <bsd.port.post.mk> diff --git a/emulators/wine/files/wine.sh b/emulators/wine/files/wine.sh new file mode 100644 index 000000000000..fe67ceb5d4e2 --- /dev/null +++ b/emulators/wine/files/wine.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/lib/wine + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac diff --git a/emulators/wine/pkg-plist b/emulators/wine/pkg-plist index a03b1ba6bc0c..1b125dcdb845 100644 --- a/emulators/wine/pkg-plist +++ b/emulators/wine/pkg-plist @@ -28,6 +28,7 @@ bin/winewrap bin/winhelp bin/wmc bin/wrc +etc/rc.d/000.wine.sh @unexec if cmp -s %D/etc/wine.conf %D/etc/wine.conf.sample; then rm -f %D/etc/wine.conf; fi etc/wine.conf.sample include/wine/debug.h |