diff options
author | olgeni <olgeni@FreeBSD.org> | 2001-03-30 03:19:19 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2001-03-30 03:19:19 +0800 |
commit | 0270f6779e5f0b593d9154bd02b42b417f296799 (patch) | |
tree | 7de2d770a060b62193cafa01c2b6b4506cead05c /x11 | |
parent | f0b292604d9dee97034221e957b11e67ebaa5bcb (diff) | |
download | freebsd-ports-gnome-0270f6779e5f0b593d9154bd02b42b417f296799.tar.gz freebsd-ports-gnome-0270f6779e5f0b593d9154bd02b42b417f296799.tar.zst freebsd-ports-gnome-0270f6779e5f0b593d9154bd02b42b417f296799.zip |
Preserve Xsetup_0 at install/deinstall time.
Some directories in plist had to be removed with rmdir at deinstall time.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/wdm/Makefile | 12 | ||||
-rw-r--r-- | x11/wdm/pkg-plist | 6 |
2 files changed, 15 insertions, 3 deletions
diff --git a/x11/wdm/Makefile b/x11/wdm/Makefile index a69cfcf4dc8b..c87c7294faba 100644 --- a/x11/wdm/Makefile +++ b/x11/wdm/Makefile @@ -56,14 +56,24 @@ pre-install: ${MV} ${PREFIX}/lib/X11/wdm/wdm-config \ ${PREFIX}/lib/X11/wdm/wdm-config.preserve; \ fi + @if [ -e ${PREFIX}/lib/X11/wdm/Xsetup_0 ]; then \ + ${MV} ${PREFIX}/lib/X11/wdm/Xsetup_0 \ + ${PREFIX}/lib/X11/wdm/Xsetup_0.preserve; \ + fi post-install: @${CP} ${PREFIX}/lib/X11/wdm/wdm-config \ - ${PREFIX}/lib/X11/wdm/wdm-config.dist; + ${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 + @${CP} ${PREFIX}/lib/X11/wdm/Xsetup_0 \ + ${PREFIX}/lib/X11/wdm/Xsetup_0.dist + @if [ -e ${PREFIX}/lib/X11/wdm/Xsetup_0.preserve ]; then \ + ${MV} ${PREFIX}/lib/X11/wdm/Xsetup_0.preserve \ + ${PREFIX}/lib/X11/wdm/Xsetup_0; \ + 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 d70434ab12b1..3654c9b8facb 100644 --- a/x11/wdm/pkg-plist +++ b/x11/wdm/pkg-plist @@ -12,7 +12,9 @@ lib/X11/wdm/Xservers.ws lib/X11/wdm/Xsession lib/X11/wdm/Xsession.XFree86 lib/X11/wdm/Xsession.in -lib/X11/wdm/Xsetup_0 +@unexec if cmp -s %D/lib/X11/wdm/Xsetup_0.dist %D/lib/X11/wdm/Xsetup_0; then rm -f %D/lib/X11/wdm/Xsetup_0; fi +lib/X11/wdm/Xsetup_0.dist +@exec [ -f %D/lib/X11/wdm/Xsetup_0 ] || (cp %D/lib/X11/wdm/Xsetup_0.dist %D/lib/X11/wdm/Xsetup_0) lib/X11/wdm/pixmaps/Eagle.xpm lib/X11/wdm/pixmaps/Earth.jpg lib/X11/wdm/pixmaps/Earth200x130.xpm @@ -30,5 +32,5 @@ lib/X11/wdm/wdmReconfig @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 +@unexec rmdir %D/lib/X11/wdm/authdir 2>/dev/null || true @unexec rmdir %D/lib/X11/wdm 2>/dev/null || true |