diff options
author | olgeni <olgeni@FreeBSD.org> | 2001-03-27 10:03:22 +0000 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2001-03-27 10:03:22 +0000 |
commit | c8e35afdff8280cfae5e14a8c434162aa2165e2a (patch) | |
tree | b089f4d202897b69ffbc8c6223f2f97c41ab5bd4 /x11 | |
parent | 7fb24910cd2cdaaa534c4e140d2a59a16cc282b8 (diff) | |
download | FreeBSD-ports-c8e35afdff8280cfae5e14a8c434162aa2165e2a.zip FreeBSD-ports-c8e35afdff8280cfae5e14a8c434162aa2165e2a.tar.gz |
Preserve wdm-config at install/deinstall time.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/wdm/Makefile | 14 | ||||
-rw-r--r-- | x11/wdm/pkg-plist | 8 |
2 files changed, 18 insertions, 4 deletions
diff --git a/x11/wdm/Makefile b/x11/wdm/Makefile index 6982223..a69cfcf 100644 --- a/x11/wdm/Makefile +++ b/x11/wdm/Makefile @@ -51,7 +51,19 @@ pre-everything: post-patch: @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/*.man +pre-install: + @if [ -e ${PREFIX}/lib/X11/wdm/wdm-config ]; then \ + ${MV} ${PREFIX}/lib/X11/wdm/wdm-config \ + ${PREFIX}/lib/X11/wdm/wdm-config.preserve; \ + fi + post-install: - ${INSTALL_DATA} ${_DISTDIR}/${DAEMONPIC} ${PREFIX}/lib/X11/wdm/pixmaps + @${CP} ${PREFIX}/lib/X11/wdm/wdm-config \ + ${PREFIX}/lib/X11/wdm/wdm-config.dist; + @if [ -e ${PREFIX}/lib/X11/wdm/wdm-config.preserve ]; then \ + ${MV} ${PREFIX}/lib/X11/wdm/wdm-config.preserve \ + ${PREFIX}/lib/X11/wdm/wdm-config; \ + fi + @${INSTALL_DATA} ${_DISTDIR}/${DAEMONPIC} ${PREFIX}/lib/X11/wdm/pixmaps .include <bsd.port.mk> diff --git a/x11/wdm/pkg-plist b/x11/wdm/pkg-plist index fc70ed2..d70434a 100644 --- a/x11/wdm/pkg-plist +++ b/x11/wdm/pkg-plist @@ -22,11 +22,13 @@ lib/X11/wdm/pixmaps/Stars.jpg lib/X11/wdm/pixmaps/StarsLogo.jpg lib/X11/wdm/pixmaps/daemon1-HQ-1280x960.jpg lib/X11/wdm/pixmaps/gnuLogo.xpm -lib/X11/wdm/wdm-config +@unexec if cmp -s %D/lib/X11/wdm/wdm-config.dist %D/lib/X11/wdm/wdm-config; then rm -f %D/lib/X11/wdm/wdm-config; fi +lib/X11/wdm/wdm-config.dist +@exec [ -f %D/lib/X11/wdm/wdm-config ] || (cp %D/lib/X11/wdm/wdm-config.dist %D/lib/X11/wdm/wdm-config) lib/X11/wdm/wdm-config.in lib/X11/wdm/wdmReconfig -@dirrm lib/X11/wdm/pixmaps +@unexec rmdir %D/lib/X11/wdm/pixmaps 2>/dev/null || true @exec mkdir -p %D/lib/X11/wdm/authdir @unexec rmdir %D/lib/X11/wdm/authdir/authfiles 2>/dev/null || true @dirrm lib/X11/wdm/authdir -@dirrm lib/X11/wdm +@unexec rmdir %D/lib/X11/wdm 2>/dev/null || true |