From abdbe10c856e70db986cfbd1d1cde279407eda20 Mon Sep 17 00:00:00 2001 From: jschauma Date: Mon, 14 Oct 2002 14:35:23 +0000 Subject: Add post-install target to create symlinks from foo.so to foo.so.major. This addresses problem #3 in PR pkg/18606. --- emulators/suse_x11/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'emulators') 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" -- cgit v1.2.3