diff options
author | olgeni <olgeni@FreeBSD.org> | 2001-06-17 18:46:32 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2001-06-17 18:46:32 +0800 |
commit | 14599998f5c454524954246147e44e1ad888ac3e (patch) | |
tree | 9bbd5ac3bdcca63003e606963ad5113b000dd241 /x11-wm/fvwm2 | |
parent | e4e930460d409b56d03f4895e74ab9bf81dd7857 (diff) | |
download | freebsd-ports-gnome-14599998f5c454524954246147e44e1ad888ac3e.tar.gz freebsd-ports-gnome-14599998f5c454524954246147e44e1ad888ac3e.tar.zst freebsd-ports-gnome-14599998f5c454524954246147e44e1ad888ac3e.zip |
Add proper management of etc/system.fvwm2rc (preserve changes at deinstall
time).
Diffstat (limited to 'x11-wm/fvwm2')
-rw-r--r-- | x11-wm/fvwm2/Makefile | 5 | ||||
-rw-r--r-- | x11-wm/fvwm2/pkg-plist | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/x11-wm/fvwm2/Makefile b/x11-wm/fvwm2/Makefile index 50d2680815ba..2bf7f4ffffab 100644 --- a/x11-wm/fvwm2/Makefile +++ b/x11-wm/fvwm2/Makefile @@ -30,7 +30,10 @@ MAN1= FvwmAnimate.1 FvwmAudio.1 FvwmAuto.1 FvwmBacker.1 FvwmBanner.1 \ post-install: @${MKDIR} ${PREFIX}/etc - @${CP} ${WRKSRC}/sample.fvwmrc/system.fvwm2rc ${PREFIX}/etc + @${CP} ${WRKSRC}/sample.fvwmrc/system.fvwm2rc ${PREFIX}/etc/system.fvwm2rc.dist + @if [ ! -e ${PREFIX}/etc/system.fvwm2rc ]; then \ + ${CP} ${WRKSRC}/sample.fvwmrc/system.fvwm2rc ${PREFIX}/etc/system.fvwm2rc.dist; \ + fi @${MKDIR} ${PREFIX}/lib/X11/fvwm2/pixmaps ${INSTALL_DATA} ${WRKSRC}/icons/*.xpm \ ${PREFIX}/lib/X11/fvwm2/pixmaps diff --git a/x11-wm/fvwm2/pkg-plist b/x11-wm/fvwm2/pkg-plist index 4d668ebfbf70..dcf1731633e5 100644 --- a/x11-wm/fvwm2/pkg-plist +++ b/x11-wm/fvwm2/pkg-plist @@ -1,7 +1,9 @@ bin/FvwmCommand bin/fvwm2 bin/xpmroot -etc/system.fvwm2rc +@unexec if cmp -s %D/etc/system.fvwm2rc %D/etc/system.fvwm2rc.dist; then rm -f %D/etc/system.fvwm2rc; fi +etc/system.fvwm2rc.dist +@exec [ -f %B/system.fvwm2rc ] || cp %B/%f %B/system.fvwm2rc lib/X11/fvwm2/pixmaps/Jlock.xpm lib/X11/fvwm2/pixmaps/Jnews.xpm lib/X11/fvwm2/pixmaps/Jrecycle.xpm |