diff options
author | garga <garga@FreeBSD.org> | 2006-01-31 00:31:34 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2006-01-31 00:31:34 +0800 |
commit | 636f0d1385539b58193de67dd3bc8ce69a65ad95 (patch) | |
tree | b6b6de7a778abe12dfeefa43a5d04e67faf64486 /mail | |
parent | db6682ffeab35503a129ba1acd7b2f22ad438c28 (diff) | |
download | freebsd-ports-gnome-636f0d1385539b58193de67dd3bc8ce69a65ad95.tar.gz freebsd-ports-gnome-636f0d1385539b58193de67dd3bc8ce69a65ad95.tar.zst freebsd-ports-gnome-636f0d1385539b58193de67dd3bc8ce69a65ad95.zip |
- Add a patch to read tai64n date format with no need of tai64nlocal
external application [1]
- Remove USEREINPLACE
- Unquote BROKEN
PR: ports/92425 [1]
Submitted by: Luca Morettoni <luca@morettoni.net> [1]
Diffstat (limited to 'mail')
-rw-r--r-- | mail/qmailanalog/Makefile | 7 | ||||
-rw-r--r-- | mail/qmailanalog/files/patch-matchup.c | 63 |
2 files changed, 67 insertions, 3 deletions
diff --git a/mail/qmailanalog/Makefile b/mail/qmailanalog/Makefile index d2b0b233c28c..9109f76c21cd 100644 --- a/mail/qmailanalog/Makefile +++ b/mail/qmailanalog/Makefile @@ -9,7 +9,9 @@ PORTNAME= qmailanalog PORTVERSION= 0.70 PORTREVISION= 2 CATEGORIES= mail -MASTER_SITES= http://cr.yp.to/software/ +MASTER_SITES= http://cr.yp.to/software/ \ + http://www.emaillab.org/djb/qmailanalog/ \ + http://summersoft.fay.ar.us/pub/qmail/qmailanalog/ MAINTAINER= garga@FreeBSD.org COMMENT= A collection of tools to analyze qmail-send's activity @@ -34,12 +36,11 @@ PREFIX?= ${QMAIL_PREFIX} QMPREFIX?= ${PREFIX}/${MYSUBDIR} NO_MTREE= yes -USE_REINPLACE= yes .include <bsd.port.pre.mk> .if ${PREFIX} != ${QMAIL_PREFIX} -BROKEN= "Cannot Make and Install with different PREFIX or QMAIL_PREFIX" +BROKEN= Cannot Make and Install with different PREFIX or QMAIL_PREFIX .endif post-patch: diff --git a/mail/qmailanalog/files/patch-matchup.c b/mail/qmailanalog/files/patch-matchup.c new file mode 100644 index 000000000000..3525169b62da --- /dev/null +++ b/mail/qmailanalog/files/patch-matchup.c @@ -0,0 +1,63 @@ +*** matchup.c-orig Fri Jul 1 12:28:28 2005 +--- matchup.c Fri Jul 1 14:06:04 2005 +*************** +*** 417,422 **** +--- 417,463 ---- + + stralloc outline = {0}; + ++ void fix_taia() ++ { ++ stralloc tai = {0}; ++ stralloc tmp = {0}; ++ char *p = line.s+field[0]+1; ++ unsigned long secs; ++ unsigned long nanosecs; ++ unsigned long u; ++ char ch; ++ ++ secs = 0; ++ nanosecs = 0; ++ for (;;) { ++ ch = *p++; ++ u = ch - '0'; ++ if (u >= 10) { ++ u = ch - 'a'; ++ if (u >= 6) break; ++ u += 10; ++ } ++ secs <<= 4; ++ secs += nanosecs >> 28; ++ nanosecs &= 0xfffffff; ++ nanosecs <<= 4; ++ nanosecs += u; ++ } ++ secs -= 4611686018427387914ULL; ++ ++ if (!stralloc_copyb(&tai, strnum,fmt_ulong(strnum,secs))) nomem(); ++ if (!stralloc_cats(&tai,".")) nomem(); ++ if (!stralloc_catb(&tai, strnum,fmt_ulong(strnum,nanosecs))) nomem(); ++ if (!stralloc_0(&tai)) nomem(); ++ ++ if (!stralloc_copy(&tmp,&tai)) nomem(); ++ while (tmp.len < field[1]) ++ if (!stralloc_cats(&tmp," ")) nomem(); ++ if (!stralloc_cats(&tmp,line.s + field[1])) nomem(); ++ if (!stralloc_copy(&line,&tmp)) nomem(); ++ if (!stralloc_0(&line)) nomem(); ++ } ++ + void main() + { + int i; +*************** +*** 452,457 **** +--- 493,500 ---- + while (j < line.len) if (!line.s[j]) break; else ++j; + } + if (!stralloc_0(&line)) nomem(); ++ ++ if ((line.s[field[0]]) == '@') fix_taia(); + + if (str_equal(line.s + field[1],"status:")) ; + else if (str_equal(line.s + field[1],"starting")) starting(); |