Changeset 5383:d4a903e7077b
- Timestamp:
- 2008-05-17 17:36:05 (7 months ago)
- Author:
- Brendan Cully <brendan@…>
- Branch:
- HEAD
- Message:
-
Build local md5 tool for hcachever.sh. Closes #3025.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5359
|
r5383
|
|
| 2 | 2 | ^aclocal\.m4$ |
| 3 | 3 | ^autom4te\.cache |
| | 4 | ^compile$ |
| 4 | 5 | ^(contrib/|doc/|imap/|m4/|po/)?Makefile\.in$ |
| 5 | 6 | ^config\.h(\.in~?)?$ |
| … |
… |
|
| 25 | 26 | ^mutt$ |
| 26 | 27 | ^mutt_dotlock(\.c)?$ |
| | 28 | ^mutt_md5$ |
| 27 | 29 | ^patchlist\.c$ |
| 28 | 30 | ^pgpewrap|pgpring$ |
-
|
r5380
|
r5383
|
|
| 1 | | 2008-05-17 12:31 -0700 Brendan Cully <brendan@kublai.com> (fa4990c5b5c6) |
| | 1 | 2008-05-17 12:39 -0700 Brendan Cully <brendan@kublai.com> (692b7c063bf1) |
| | 2 | |
| | 3 | * .hgsigs: mutt-1.5.18 signed |
| | 4 | |
| | 5 | * .hgtags: Added tag mutt-1-5-18-rel for changeset ff9e4d0464b1 |
| | 6 | |
| | 7 | * ChangeLog, VERSION, po/bg.po, po/ca.po, po/cs.po, po/da.po, |
| | 8 | po/de.po, po/el.po, po/eo.po, po/es.po, po/et.po, po/eu.po, |
| | 9 | po/fr.po, po/ga.po, po/gl.po, po/hu.po, po/id.po, po/it.po, |
| | 10 | po/ja.po, po/ko.po, po/lt.po, po/nl.po, po/pl.po, po/pt_BR.po, |
| | 11 | po/ru.po, po/sk.po, po/sv.po, po/tr.po, po/uk.po, po/zh_CN.po, |
| | 12 | po/zh_TW.po: automatic post-release commit for mutt-1.5.18 |
| 2 | 13 | |
| 3 | 14 | * UPDATING: Update UPDATING. |
-
|
r5377
|
r5383
|
|
| 3 | 3 | |
| 4 | 4 | AUTOMAKE_OPTIONS = 1.6 foreign |
| 5 | | EXTRA_PROGRAMS = mutt_dotlock pgpring pgpewrap |
| | 5 | EXTRA_PROGRAMS = mutt_dotlock pgpring pgpewrap mutt_md5 |
| 6 | 6 | |
| 7 | 7 | if BUILD_IMAP |
| … |
… |
|
| 81 | 81 | pgpring_LDADD = @LIBOBJS@ $(INTLLIBS) |
| 82 | 82 | pgpring_DEPENDENCIES = @LIBOBJS@ $(INTLDEPS) |
| | 83 | |
| | 84 | mutt_md5_SOURCES = md5.c |
| | 85 | mutt_md5_CFLAGS = -DMD5UTIL |
| | 86 | |
| | 87 | noinst_PROGRAMS = $(MUTT_MD5) |
| 83 | 88 | |
| 84 | 89 | mutt_dotlock.c: dotlock.c |
-
|
r5362
|
r5383
|
|
| 825 | 825 | |
| 826 | 826 | need_md5="yes" |
| 827 | | |
| 828 | | dnl hcachever.sh tool for calculating struct digest |
| 829 | | AC_CHECK_PROGS([MD5], [md5 md5sum openssl], [none]) |
| 830 | 827 | |
| 831 | 828 | dnl -- QDBM -- |
| … |
… |
|
| 953 | 950 | then |
| 954 | 951 | MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5.o" |
| 955 | | fi |
| | 952 | MUTT_MD5="mutt_md5" |
| | 953 | fi |
| | 954 | AC_SUBST(MUTT_MD5) |
| 956 | 955 | |
| 957 | 956 | AC_SUBST(MUTTLIBS) |
-
|
r5377
|
r5383
|
|
| 2 | 2 | |
| 3 | 3 | BASEVERSION=2 |
| 4 | | |
| 5 | | MD5=@MD5@ |
| 6 | | if test "$MD5" = "openssl" |
| 7 | | then |
| 8 | | MD5="openssl md5 -hex" |
| 9 | | elif test "$MD5" = "none" |
| 10 | | then |
| 11 | | echo "ERROR: no MD5 tool found" |
| 12 | | exit 1 |
| 13 | | fi |
| 14 | 4 | |
| 15 | 5 | cleanstruct () { |
| … |
… |
|
| 92 | 82 | echo " */" >> $TMPD |
| 93 | 83 | |
| 94 | | MD5TEXT=`echo "$TEXT" | $MD5` |
| | 84 | MD5TEXT=`echo "$TEXT" | ./mutt_md5` |
| 95 | 85 | echo "#define HCACHEVER 0x"`echo $MD5TEXT | cut -c-8` >> $TMPD |
| 96 | 86 | |
-
|
r5197
|
r5383
|
|
| 451 | 451 | ctx->D = D; |
| 452 | 452 | } |
| | 453 | |
| | 454 | #ifdef MD5UTIL |
| | 455 | /* local md5 equivalent for header cache versioning */ |
| | 456 | int main(int argc, char** argv) |
| | 457 | { |
| | 458 | unsigned char r[16]; |
| | 459 | int rc; |
| | 460 | |
| | 461 | if ((rc = md5_stream(stdin, r))) |
| | 462 | return rc; |
| | 463 | |
| | 464 | printf("%02x%02x%02x%02x%02x%02x%02x%02x" |
| | 465 | "%02x%02x%02x%02x%02x%02x%02x%02x\n", |
| | 466 | r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], |
| | 467 | r[8], r[9], r[10], r[11], r[12], r[13], r[14], r[15]); |
| | 468 | |
| | 469 | return 0; |
| | 470 | } |
| | 471 | #endif |