diff options
author | Jimmy Olgeni <olgeni@FreeBSD.org> | 2001-06-17 10:46:32 +0000 |
---|---|---|
committer | Jimmy Olgeni <olgeni@FreeBSD.org> | 2001-06-17 10:46:32 +0000 |
commit | 1802695c0365ec93e5d22b5552ec0ba97a3c5df2 (patch) | |
tree | 162b8ac257e877876c37431bdd3d3b84a8bc63e4 /x11-wm/fvwm2 | |
parent | Initial import of httrack-3.02, an easy-to-use offline browser (diff) |
Add proper management of etc/system.fvwm2rc (preserve changes at deinstall
time).
Notes
Notes:
svn path=/head/; revision=44099
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 |