diff options
author | demon <demon@FreeBSD.org> | 2003-05-19 18:07:37 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2003-05-19 18:07:37 +0800 |
commit | 7cd94cd370d67da7b1e9fd3de549804aa9ecd5e8 (patch) | |
tree | cb6e467839cc07f96c8c48087c5a0ce7b67dcdcf /emulators | |
parent | 27eb49256a070e9495b4c7dfc76e6946ed1a88ce (diff) | |
download | freebsd-ports-gnome-7cd94cd370d67da7b1e9fd3de549804aa9ecd5e8.tar.gz freebsd-ports-gnome-7cd94cd370d67da7b1e9fd3de549804aa9ecd5e8.tar.zst freebsd-ports-gnome-7cd94cd370d67da7b1e9fd3de549804aa9ecd5e8.zip |
Install a script into etc/rc.d/ to run ldconfig after reboots so
Wine libraries could be found.
Approved by: maintainer
Diffstat (limited to 'emulators')
-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 |