diff options
author | jschauma <jschauma> | 2002-10-14 14:35:23 +0000 |
---|---|---|
committer | jschauma <jschauma> | 2002-10-14 14:35:23 +0000 |
commit | ae102343eb23a66f7f4e94381710477622af627a (patch) | |
tree | ae15022f93945144606728e7bee01845463a2c4c /emulators/suse_x11 | |
parent | a8f8230dfd5c30981dcb52352a28d3bfba80c70e (diff) | |
download | pkgsrc-ae102343eb23a66f7f4e94381710477622af627a.tar.gz |
Add post-install target to create symlinks from foo.so to foo.so.major.
This addresses problem #3 in PR pkg/18606.
Diffstat (limited to 'emulators/suse_x11')
-rw-r--r-- | emulators/suse_x11/Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/emulators/suse_x11/Makefile b/emulators/suse_x11/Makefile index ad874ad7896..ab25b906d27 100644 --- a/emulators/suse_x11/Makefile +++ b/emulators/suse_x11/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2002/08/25 21:49:50 jlam Exp $ +# $NetBSD: Makefile,v 1.20 2002/10/14 14:35:23 jschauma Exp $ DISTNAME= suse_x11-${SUSE_VERSION} PKGREVISION= 2 @@ -33,4 +33,16 @@ RPMIGNOREPATH= usr/X11R6/bin usr/X11R6/include \ usr/X11R6/lib/X11/x11perfcomp .endif +post-install: + @${GREP} "^@exec.*.so" ${PLIST_SRC} | \ + ${SED} -e 's,.*/\(.*\.so\)\.\([0-9]\),@exec ${LN} -sf \ + \1.\2 %D/${EMULSUBDIR}/usr/X11R6/lib/\1,' \ + >> ${PLIST_SRC} + @${GREP} "^@unexec rm -f" ${PLIST_SRC} | \ + ${SED} -e 's,\(.*\)\.[0-9],\1,' >> ${PLIST_SRC} + @for link in `${GREP} "^@exec ln.*.so" ${PLIST_SRC} | \ + ${SED} -e 's,.*/\(.*\.so\.[0-9]\),\1,'`; do \ + cd ${EMULDIR}/usr/X11R6/lib && ${LN} -sf $$link $${link%.[0-9]}; \ + done + .include "../suse_linux/Makefile.common" |