FreeBSD Bugzilla – Attachment 108046 Details for
Bug 148859
Fix config file handling for mail/alpine
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 4.59 KB, created by
Ganael LAPLANCHE
on 2010-07-23 10:00:13 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Ganael LAPLANCHE
Created:
2010-07-23 10:00:13 UTC
Size:
4.59 KB
patch
obsolete
>diff -aurN alpine.orig/Makefile alpine/Makefile >--- alpine.orig/Makefile 2010-07-22 16:44:26.487772607 +0000 >+++ alpine/Makefile 2010-07-23 07:59:57.635039788 +0000 >@@ -7,7 +7,7 @@ > > PORTNAME?= alpine > PORTVERSION= 2.00 >-PORTREVISION?= 1 >+PORTREVISION?= 2 > CATEGORIES?= mail news ipv6 > MASTER_SITES= ftp://ftp.cac.washington.edu/alpine/ \ > http://dougbarton.us/Downloads/alpine-${PORTVERSION}/ >@@ -182,8 +182,12 @@ > ${INSTALL_DATA} ${WRKSRC}/doc/tech-notes.txt ${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/doc/tech-notes/*.html ${DOCSDIR}/tech-notes > .endif >- ${PREFIX}/bin/alpine -P ${PREFIX}/etc/alpine.conf -conf >${WRKSRC}/alpine.conf >- ${INSTALL_DATA} ${WRKSRC}/alpine.conf ${PREFIX}/etc/alpine.conf >+ ${PREFIX}/bin/alpine -P /dev/null -conf >${WRKSRC}/alpine.conf.sample >+ ${INSTALL_DATA} ${WRKSRC}/alpine.conf.sample \ >+ ${PREFIX}/etc/alpine.conf.sample >+ @if [ ! -f ${PREFIX}/etc/alpine.conf ]; then \ >+ ${CP} -p ${PREFIX}/etc/alpine.conf.sample \ >+ ${PREFIX}/etc/alpine.conf; fi > > @${CAT} ${PKGMESSAGE} > .endif # !defined(PICO_ALPINE_SLAVE) >diff -aurN alpine.orig/files/patch-alpine-conf-option alpine/files/patch-alpine-conf-option >--- alpine.orig/files/patch-alpine-conf-option 1970-01-01 00:00:00.000000000 +0000 >+++ alpine/files/patch-alpine-conf-option 2010-07-23 08:46:55.846999548 +0000 >@@ -0,0 +1,70 @@ >+--- alpine/arg.c.orig 2010-07-22 16:47:48.668603132 +0000 >++++ alpine/arg.c 2010-07-22 16:56:39.038755763 +0000 >+@@ -839,8 +839,12 @@ >+ exit(0); >+ } >+ >+- if(do_conf) >+- dump_global_conf(); >++ if(do_conf) { >++ if(pine_state->pconf) >++ dump_global_conf(pine_state->pconf->name); >++ else >++ dump_global_conf(SYSTEM_PINERC); >++ } >+ >+ if(pinerc_file) >+ dump_new_pinerc(pinerc_file); >+--- pith/conf.c.orig 2010-07-22 16:45:34.449756882 +0000 >++++ pith/conf.c 2010-07-22 17:06:36.641670938 +0000 >+@@ -6028,16 +6028,16 @@ >+ >+ /*------------------------------------------------------------ >+ Dump out a global pine.conf on the standard output with fresh >+- comments. Preserves variables currently set in SYSTEM_PINERC, if any. >++ comments. Preserves variables currently set in refPrc, if any. >+ ----*/ >+ void >+-dump_global_conf(void) >++dump_global_conf(char *refPrc) >+ { >+ FILE *f; >+ struct variable *var; >+ PINERC_S *prc; >+ >+- prc = new_pinerc_s(SYSTEM_PINERC); >++ prc = new_pinerc_s(refPrc); >+ read_pinerc(prc, variables, ParseGlobal); >+ if(prc) >+ free_pinerc_s(&prc); >+--- pith/conf.h.orig 2010-07-22 17:09:08.101585257 +0000 >++++ pith/conf.h 2010-07-22 17:09:26.156839207 +0000 >+@@ -853,7 +853,7 @@ >+ int write_pinerc(struct pine *, EditWhich, int); >+ void quit_to_edit_msg(PINERC_S *); >+ int var_in_pinerc(char *); >+-void dump_global_conf(void); >++void dump_global_conf(char *); >+ void dump_new_pinerc(char *); >+ int set_variable(int, char *, int, int, EditWhich); >+ int set_variable_list(int, char **, int, EditWhich); >+--- doc/alpine.1.orig 2008-08-22 20:40:16.000000000 +0000 >++++ doc/alpine.1 2010-07-23 06:02:09.000000000 +0000 >+@@ -111,12 +111,13 @@ >+ .I -f >+ argument is applied to the first defined folder-collection. >+ .IP \fB-conf\fR 20 >+-Produce a sample/fresh copy of the >+-system-wide configuration file, >++Produce a copy of the system-wide configuration file, >+ .I pine.conf, >+-on the standard output. This is distinct from the per-user >++with fresh comments on the standard output. >++This is distinct from the per-user >+ .I .pinerc >+-file. >++file and will preserve variables currently set in the default >++system-wide configuration file (or the file specified with -P, if any). >+ .IP \fB-convert_sigs\ \fI-p\ pinerc\fR 20 >+ Convert signature files into literal signatures. >+ .IP \fB-copy_abook\ <\fIlocal_abook\fR>\ <\fIremote_abook\fR> 20 >diff -aurN alpine.orig/pkg-plist alpine/pkg-plist >--- alpine.orig/pkg-plist 2010-07-22 16:44:26.478771743 +0000 >+++ alpine/pkg-plist 2010-07-23 07:58:45.404206679 +0000 >@@ -1,11 +1,9 @@ >-@unexec %D/bin/alpine -conf >%D/etc/alpine.conf.tmp >-@unexec if cmp -s %D/etc/alpine.conf %D/etc/alpine.conf.tmp; then rm -f %D/etc/alpine.conf; fi >-@unexec rm -f %D/etc/alpine.conf.tmp >+@unexec if cmp -s %D/etc/alpine.conf.sample %D/etc/alpine.conf; then rm -f %D/etc/alpine.conf; fi >+etc/alpine.conf.sample >+@exec if [ ! -f %D/etc/alpine.conf ]; then cp -p %D/%F %B/alpine.conf; fi > bin/alpine > bin/rpdump > bin/rpload >-@exec %D/bin/alpine -P %D/etc/alpine.conf -conf >%D/etc/alpine.conf.tmp >-@exec /bin/mv %D/etc/alpine.conf.tmp %D/etc/alpine.conf > %%PORTDOCS%%%%DOCSDIR%%/LICENSE > %%PORTDOCS%%%%DOCSDIR%%/NOTICE > %%PORTDOCS%%%%DOCSDIR%%/README
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 148859
: 108046