FreeBSD Bugzilla – Attachment 226030 Details for
Bug 256804
misc/mc: stop wrecking customised config files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Prevent customised config from being overwritten
mc_conffiles.diff (text/plain), 1.59 KB, created by
ice
on 2021-06-24 11:48:34 UTC
(
hide
)
Description:
Prevent customised config from being overwritten
Filename:
MIME Type:
Creator:
ice
Created:
2021-06-24 11:48:34 UTC
Size:
1.59 KB
patch
obsolete
>diff --git a/misc/mc/Makefile b/misc/mc/Makefile >index 87f5ef38bbe5..15e625430730 100644 >--- a/misc/mc/Makefile >+++ b/misc/mc/Makefile >@@ -2,7 +2,7 @@ > > PORTNAME= mc > PORTVERSION= 4.8.26 >-PORTREVISION= 2 >+PORTREVISION= 3 > CATEGORIES= misc shells > MASTER_SITES= http://ftp.midnight-commander.org/ \ > https://ftp.osuosl.org/pub/midnightcommander/ >@@ -92,6 +92,12 @@ post-install-X11-on: > ${STAGEDIR}${PREFIX}/share/pixmaps/ > ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR} > >+post-install: >+.for i in edit.indent.rc filehighlight.ini mc.default.keymap mc.emacs.keymap \ >+ mc.ext mc.menu mcedit.menu sfs.ini >+ ${MV} ${STAGEDIR}${ETCDIR}/${i} ${STAGEDIR}${ETCDIR}/${i}.sample >+.endfor >+ > .include <bsd.port.pre.mk> > > .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200030 >diff --git a/misc/mc/pkg-plist b/misc/mc/pkg-plist >index 2b28e35bed07..c768b39be8b2 100644 >--- a/misc/mc/pkg-plist >+++ b/misc/mc/pkg-plist >@@ -2,15 +2,15 @@ bin/mc > bin/mcdiff > %%EDITOR%%bin/mcedit > bin/mcview >-%%ETCDIR%%/edit.indent.rc >-%%ETCDIR%%/filehighlight.ini >-%%ETCDIR%%/mc.default.keymap >-%%ETCDIR%%/mc.emacs.keymap >-%%ETCDIR%%/mc.ext >+@sample %%ETCDIR%%/edit.indent.rc.sample >+@sample %%ETCDIR%%/filehighlight.ini.sample >+@sample %%ETCDIR%%/mc.default.keymap.sample >+@sample %%ETCDIR%%/mc.emacs.keymap.sample >+@sample %%ETCDIR%%/mc.ext.sample >+@sample %%ETCDIR%%/mc.menu.sample >+@sample %%ETCDIR%%/mcedit.menu.sample >+@sample %%ETCDIR%%/sfs.ini.sample > %%ETCDIR%%/mc.keymap >-%%ETCDIR%%/mc.menu >-%%ETCDIR%%/mcedit.menu >-%%ETCDIR%%/sfs.ini > libexec/mc/ext.d/archive.sh > libexec/mc/ext.d/doc.sh > libexec/mc/ext.d/image.sh
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 256804
: 226030