On Thu, 04 Jun 2026 21:13:21 +0200, Theo Buehler <[email protected]> wrote: > > The dumb diff below makes sysutils/modlogan build. With plenty of > remaining warnings. The errors come from a systematic mistake pervading > the code base: gzopen returns gzFile, not gzFile *. So we get to change > ~30 files with a trivial *-removal patch. > > This could be avoided with a dirty preprocessor trick in config.h.in: > > typedef struct gzFile_s mlgzFile; > #define gzFile mlgzFile > > Then we need to #undef gzFile twice where they accidentally got it > right. 10% patches, 1000% yuck factor. > > ModLogAn was declared dead in 2006: > > https://web.archive.org/web/20061005153345/http://jan.kneschke.de/projects/modlogan/ > > I think it's time for the boatswain's call.
Maybe retire it? Only we and FreeBSD actually has it, at least from Repology point of view: https://repology.org/project/modlogan/versions > > Index: Makefile > =================================================================== > RCS file: /cvs/ports/sysutils/modlogan/Makefile,v > diff -u -p -r1.38 Makefile > --- Makefile 25 Jul 2025 14:33:56 -0000 1.38 > +++ Makefile 4 Jun 2026 18:38:39 -0000 > @@ -1,10 +1,10 @@ > COMMENT= modular log analyzer > > DISTNAME= modlogan-0.8.13 > -REVISION= 13 > +REVISION= 14 > CATEGORIES= sysutils www > > -HOMEPAGE= http://jan.kneschke.de/projects/modlogan/ > +HOMEPAGE= https://jan.kneschke.de/projects/modlogan/ > > SITES= ${HOMEPAGE}/download/ > > Index: patches/patch-configure > =================================================================== > RCS file: /cvs/ports/sysutils/modlogan/patches/patch-configure,v > diff -u -p -r1.3 patch-configure > --- patches/patch-configure 11 Mar 2022 19:57:42 -0000 1.3 > +++ patches/patch-configure 4 Jun 2026 18:32:40 -0000 > @@ -1,6 +1,7 @@ > ---- configure.orig Mon Apr 21 23:13:06 2003 > -+++ configure Mon Apr 21 23:13:31 2003 > -@@ -16778,7 +16778,7 @@ echo $ECHO_N "checking gd and its deps.. > +Index: configure > +--- configure.orig > ++++ configure > +@@ -26622,7 +26622,7 @@ echo $ECHO_N "checking gd and its deps... $ECHO_C" > >&6 > HAVE_LIBGD=false > > # gd + png support > Index: patches/patch-src_datatypes_brokenlink_datatype_c > =================================================================== > RCS file: patches/patch-src_datatypes_brokenlink_datatype_c > diff -N patches/patch-src_datatypes_brokenlink_datatype_c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_brokenlink_datatype_c 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/brokenlink/datatype.c > +--- src/datatypes/brokenlink/datatype.c.orig > ++++ src/datatypes/brokenlink/datatype.c > +@@ -39,7 +39,7 @@ > + > + extern size_t mem_mdata_type_count[M_DATA_TYPE_IPPLWATCH]; > + > +-int mdata_BrokenLink_to_xml(gzFile *fd, mdata *data) { > ++int mdata_BrokenLink_to_xml(gzFile fd, mdata *data) { > + #define WR(x,f) \ > + gzprintf(fd, "<%s>%"#f"</%s>\n", #x, data->data.brokenlink.x, #x); > + #define WRS(x,f) \ > Index: patches/patch-src_datatypes_brokenlink_datatype_h > =================================================================== > RCS file: patches/patch-src_datatypes_brokenlink_datatype_h > diff -N patches/patch-src_datatypes_brokenlink_datatype_h > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_brokenlink_datatype_h 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/brokenlink/datatype.h > +--- src/datatypes/brokenlink/datatype.h.orig > ++++ src/datatypes/brokenlink/datatype.h > +@@ -30,7 +30,7 @@ > + > + #include "mdatatypes.h" > + > +-int mdata_BrokenLink_to_xml(gzFile *fd, mdata *data); > ++int mdata_BrokenLink_to_xml(gzFile fd, mdata *data); > + int mdata_BrokenLink_from_xml(void *user_data, m_tag tagtype, const > xmlChar *value, const xmlChar **attrs); > + > + mdata *mdata_BrokenLink_create(const char *key, > Index: patches/patch-src_datatypes_count_datatype_c > =================================================================== > RCS file: patches/patch-src_datatypes_count_datatype_c > diff -N patches/patch-src_datatypes_count_datatype_c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_count_datatype_c 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/count/datatype.c > +--- src/datatypes/count/datatype.c.orig > ++++ src/datatypes/count/datatype.c > +@@ -38,7 +38,7 @@ > + /* begin of Count */ > + extern size_t mem_mdata_type_count[M_DATA_TYPE_IPPLWATCH]; > + > +-int mdata_Count_to_xml(gzFile *fd, mdata *data) { > ++int mdata_Count_to_xml(gzFile fd, mdata *data) { > + #define WR(x,f) \ > + gzprintf(fd, "<%s>%"#f"</%s>\n", #x, data->data.count.x, #x); > + > Index: patches/patch-src_datatypes_count_datatype_h > =================================================================== > RCS file: patches/patch-src_datatypes_count_datatype_h > diff -N patches/patch-src_datatypes_count_datatype_h > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_count_datatype_h 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/count/datatype.h > +--- src/datatypes/count/datatype.h.orig > ++++ src/datatypes/count/datatype.h > +@@ -30,7 +30,7 @@ > + > + #include "mdatatypes.h" > + > +-int mdata_Count_to_xml(gzFile *fd, mdata *data); > ++int mdata_Count_to_xml(gzFile fd, mdata *data); > + int mdata_Count_from_xml(void *user_data, int tagtype, const xmlChar > *value, const xmlChar **attrs); > + > + mdata *mdata_Count_init(); > Index: patches/patch-src_datatypes_ipplwatch_datatype_c > =================================================================== > RCS file: patches/patch-src_datatypes_ipplwatch_datatype_c > diff -N patches/patch-src_datatypes_ipplwatch_datatype_c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_ipplwatch_datatype_c 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/ipplwatch/datatype.c > +--- src/datatypes/ipplwatch/datatype.c.orig > ++++ src/datatypes/ipplwatch/datatype.c > +@@ -44,7 +44,7 @@ > + #define DEBUG_SETDATA > + #endif > + > +-int mdata_IpplWatch_to_xml(gzFile *fd, mdata *data) { > ++int mdata_IpplWatch_to_xml(gzFile fd, mdata *data) { > + #define WR(x,f) \ > + gzprintf(fd, "<%s>%"#f"</%s>\n", #x, data->data.ipplwatch->x, #x); > + #define WRS(x) \ > Index: patches/patch-src_datatypes_ipplwatch_datatype_h > =================================================================== > RCS file: patches/patch-src_datatypes_ipplwatch_datatype_h > diff -N patches/patch-src_datatypes_ipplwatch_datatype_h > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_ipplwatch_datatype_h 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/ipplwatch/datatype.h > +--- src/datatypes/ipplwatch/datatype.h.orig > ++++ src/datatypes/ipplwatch/datatype.h > +@@ -35,7 +35,7 @@ > + > + #include "mdatatypes.h" > + > +-int mdata_IpplWatch_to_xml(gzFile *fd, mdata *data); > ++int mdata_IpplWatch_to_xml(gzFile fd, mdata *data); > + int mdata_IpplWatch_from_xml(mstate_stack *m, int tagtype, const > xmlChar *value, const xmlChar **attrs); > + > + mdata *mdata_IpplWatch_create(const char *str, time_t ts, char *dt, int > type, long count); > Index: patches/patch-src_datatypes_location_datatype_c > =================================================================== > RCS file: patches/patch-src_datatypes_location_datatype_c > diff -N patches/patch-src_datatypes_location_datatype_c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_location_datatype_c 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/location/datatype.c > +--- src/datatypes/location/datatype.c.orig > ++++ src/datatypes/location/datatype.c > +@@ -38,7 +38,7 @@ > + > + /* begin of Location */ > + > +-int mdata_Location_to_xml(gzFile *fd, mdata *data) { > ++int mdata_Location_to_xml(gzFile fd, mdata *data) { > + #define WR(x,f) \ > + gzprintf(fd, "<%s>%"#f"</%s>\n", #x, data->data.location->x, #x); > + #define WRS(x,f) \ > Index: patches/patch-src_datatypes_location_datatype_h > =================================================================== > RCS file: patches/patch-src_datatypes_location_datatype_h > diff -N patches/patch-src_datatypes_location_datatype_h > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_location_datatype_h 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/location/datatype.h > +--- src/datatypes/location/datatype.h.orig > ++++ src/datatypes/location/datatype.h > +@@ -30,7 +30,7 @@ > + > + #include "mdatatypes.h" > + > +-int mdata_Location_to_xml(gzFile *fd, mdata *data); > ++int mdata_Location_to_xml(gzFile fd, mdata *data); > + int mdata_Location_from_xml(void *user_data, int tagtype, const xmlChar > *value, const xmlChar **attrs); > + > + mdata *mdata_Location_init(); > Index: patches/patch-src_datatypes_mailhist_datatype_c > =================================================================== > RCS file: patches/patch-src_datatypes_mailhist_datatype_c > diff -N patches/patch-src_datatypes_mailhist_datatype_c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_mailhist_datatype_c 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/mailhist/datatype.c > +--- src/datatypes/mailhist/datatype.c.orig > ++++ src/datatypes/mailhist/datatype.c > +@@ -37,7 +37,7 @@ > + > + /* begin of Mailhist */ > + > +-int mdata_Mailhist_to_xml(gzFile *fd, mdata *data) { > ++int mdata_Mailhist_to_xml(gzFile fd, mdata *data) { > + #define WR(x,f) \ > + gzprintf(fd, "<%s>%"#f"</%s>\n", #x, data->data.hist->data.mail.x, #x); > + > Index: patches/patch-src_datatypes_mailhist_datatype_h > =================================================================== > RCS file: patches/patch-src_datatypes_mailhist_datatype_h > diff -N patches/patch-src_datatypes_mailhist_datatype_h > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_mailhist_datatype_h 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/mailhist/datatype.h > +--- src/datatypes/mailhist/datatype.h.orig > ++++ src/datatypes/mailhist/datatype.h > +@@ -31,7 +31,7 @@ > + #include "mstate.h" > + #include "mdatatypes.h" > + > +-int mdata_Mailhist_to_xml(gzFile *fd, mdata *data); > ++int mdata_Mailhist_to_xml(gzFile fd, mdata *data); > + int mdata_Mailhist_from_xml(void *user_data, int tagtype, const xmlChar > *value, const xmlChar **attrs); > + > + mdata *mdata_Mailhist_create(const char *str, > Index: patches/patch-src_datatypes_sublist_datatype_c > =================================================================== > RCS file: patches/patch-src_datatypes_sublist_datatype_c > diff -N patches/patch-src_datatypes_sublist_datatype_c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_sublist_datatype_c 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/sublist/datatype.c > +--- src/datatypes/sublist/datatype.c.orig > ++++ src/datatypes/sublist/datatype.c > +@@ -39,7 +39,7 @@ > + > + /* begin of SubList */ > + > +-int mdata_SubList_to_xml(gzFile *fd, mdata *data) { > ++int mdata_SubList_to_xml(gzFile fd, mdata *data) { > + #define WR(x,f) \ > + gzprintf(fd, "<%s>%"#f"</%s>\n", #x, data->data.sublist.x, #x); > + > Index: patches/patch-src_datatypes_sublist_datatype_h > =================================================================== > RCS file: patches/patch-src_datatypes_sublist_datatype_h > diff -N patches/patch-src_datatypes_sublist_datatype_h > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_sublist_datatype_h 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/sublist/datatype.h > +--- src/datatypes/sublist/datatype.h.orig > ++++ src/datatypes/sublist/datatype.h > +@@ -31,7 +31,7 @@ > + #include "mdatatypes.h" > + #include "mlist.h" > + > +-int mdata_SubList_to_xml(gzFile *fd, mdata *data); > ++int mdata_SubList_to_xml(gzFile fd, mdata *data); > + int mdata_SubList_from_xml(void *user_data, int tagtype, const xmlChar > *value, const xmlChar **attrs); > + > + mdata *mdata_SubList_init(); > Index: patches/patch-src_datatypes_visit_datatype_c > =================================================================== > RCS file: patches/patch-src_datatypes_visit_datatype_c > diff -N patches/patch-src_datatypes_visit_datatype_c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_visit_datatype_c 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/visit/datatype.c > +--- src/datatypes/visit/datatype.c.orig > ++++ src/datatypes/visit/datatype.c > +@@ -63,7 +63,7 @@ static int is_md5(char *s) { > + return 1; > + } > + > +-int mdata_Visit_to_xml(gzFile *fd, mdata *data) { > ++int mdata_Visit_to_xml(gzFile fd, mdata *data) { > + #define WR(x,f) \ > + gzprintf(fd, "<%s>%"#f"</%s>\n", #x, data->data.visit->x, #x); > + #define WRS(x,f) \ > Index: patches/patch-src_datatypes_visit_datatype_h > =================================================================== > RCS file: patches/patch-src_datatypes_visit_datatype_h > diff -N patches/patch-src_datatypes_visit_datatype_h > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_visit_datatype_h 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/visit/datatype.h > +--- src/datatypes/visit/datatype.h.orig > ++++ src/datatypes/visit/datatype.h > +@@ -30,7 +30,7 @@ > + #include <zlib.h> > + #include "mdatatypes.h" > + > +-int mdata_Visit_to_xml(gzFile *fd, mdata *data); > ++int mdata_Visit_to_xml(gzFile fd, mdata *data); > + int mdata_Visit_from_xml(void *user_data, int tagtype, const xmlChar > *value, const xmlChar **attrs); > + > + mdata *mdata_Visit_create(const char *str, > Index: patches/patch-src_datatypes_visited_datatype_c > =================================================================== > RCS file: patches/patch-src_datatypes_visited_datatype_c > diff -N patches/patch-src_datatypes_visited_datatype_c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_visited_datatype_c 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/visited/datatype.c > +--- src/datatypes/visited/datatype.c.orig > ++++ src/datatypes/visited/datatype.c > +@@ -41,7 +41,7 @@ > + /* begin of Visited */ > + extern size_t mem_mdata_type_count[M_DATA_TYPE_IPPLWATCH]; > + > +-int mdata_Visited_to_xml(gzFile *fd, mdata *data) { > ++int mdata_Visited_to_xml(gzFile fd, mdata *data) { > + #define WR(x,f) \ > + gzprintf(fd, "<%s>%"#f"</%s>\n", #x, data->data.visited.x, #x); > + > Index: patches/patch-src_datatypes_visited_datatype_h > =================================================================== > RCS file: patches/patch-src_datatypes_visited_datatype_h > diff -N patches/patch-src_datatypes_visited_datatype_h > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_visited_datatype_h 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/visited/datatype.h > +--- src/datatypes/visited/datatype.h.orig > ++++ src/datatypes/visited/datatype.h > +@@ -30,7 +30,7 @@ > + > + #include "mdatatypes.h" > + > +-int mdata_Visited_to_xml(gzFile *fd, mdata *data); > ++int mdata_Visited_to_xml(gzFile fd, mdata *data); > + int mdata_Visited_from_xml(void *user_data, int tagtype, const xmlChar > *value, const xmlChar **attrs); > + > + mdata *mdata_Visited_init(); > Index: patches/patch-src_datatypes_webhist_datatype_c > =================================================================== > RCS file: patches/patch-src_datatypes_webhist_datatype_c > diff -N patches/patch-src_datatypes_webhist_datatype_c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_webhist_datatype_c 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/webhist/datatype.c > +--- src/datatypes/webhist/datatype.c.orig > ++++ src/datatypes/webhist/datatype.c > +@@ -36,7 +36,7 @@ > + > + /* begin of WebHist */ > + > +-int mdata_WebHist_to_xml(gzFile *fd, mdata *data) { > ++int mdata_WebHist_to_xml(gzFile fd, mdata *data) { > + #define WR(x,f) \ > + gzprintf(fd, "<%s>%"#f"</%s>\n", #x, data->data.hist->data.web.x, #x); > + > Index: patches/patch-src_datatypes_webhist_datatype_h > =================================================================== > RCS file: patches/patch-src_datatypes_webhist_datatype_h > diff -N patches/patch-src_datatypes_webhist_datatype_h > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_datatypes_webhist_datatype_h 4 Jun 2026 18:32:40 > -0000 > @@ -0,0 +1,12 @@ > +Index: src/datatypes/webhist/datatype.h > +--- src/datatypes/webhist/datatype.h.orig > ++++ src/datatypes/webhist/datatype.h > +@@ -31,7 +31,7 @@ > + #include "mdatatypes.h" > + #include "mstate.h" > + > +-int mdata_WebHist_to_xml(gzFile *fd, mdata *data); > ++int mdata_WebHist_to_xml(gzFile fd, mdata *data); > + int mdata_WebHist_from_xml(void *user_data, int tagtype, const xmlChar > *value, const xmlChar **attrs); > + > + mdata *mdata_WebHist_create(const char *str, > Index: patches/patch-src_marray_c > =================================================================== > RCS file: patches/patch-src_marray_c > diff -N patches/patch-src_marray_c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_marray_c 4 Jun 2026 18:32:40 -0000 > @@ -0,0 +1,12 @@ > +Index: src/marray.c > +--- src/marray.c.orig > ++++ src/marray.c > +@@ -215,7 +215,7 @@ int marray_append (marray *a, mdata *data) { > + return 0; > + } > + > +-int marray_write(gzFile *fd, marray *a) { > ++int marray_write(gzFile fd, marray *a) { > + size_t i; > + > + for (i = 0; i < a->used; i++) { > Index: patches/patch-src_marray_h > =================================================================== > RCS file: patches/patch-src_marray_h > diff -N patches/patch-src_marray_h > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_marray_h 4 Jun 2026 18:32:40 -0000 > @@ -0,0 +1,12 @@ > +Index: src/marray.h > +--- src/marray.h.orig > ++++ src/marray.h > +@@ -21,7 +21,7 @@ int marray_insert_replace(marray *a, mdata *data); > + size_t *marray_sort_by_count(marray *a); > + int marray_is_empty(marray *a); > + int marray_append (marray *a, mdata *data); > +-int marray_write(gzFile *fd, marray *a); > ++int marray_write(gzFile fd, marray *a); > + int marray_count(marray *a); > + mdata *marray_get_data(marray *a, const char *str); > + int marray_in_array(marray *a, const char *str); > Index: patches/patch-src_mdatatypes_c > =================================================================== > RCS file: patches/patch-src_mdatatypes_c > diff -N patches/patch-src_mdatatypes_c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_mdatatypes_c 4 Jun 2026 18:32:40 -0000 > @@ -0,0 +1,21 @@ > +Index: src/mdatatypes.c > +--- src/mdatatypes.c.orig > ++++ src/mdatatypes.c > +@@ -229,7 +229,7 @@ mdata *mdata_init () { > + * @return -1 on error or the return value of the specific _to_xml function > + */ > + > +-int mdata_datatype_to_xml(gzFile *fd, mdata *data) { > ++int mdata_datatype_to_xml(gzFile fd, mdata *data) { > + if (!data) return -1; > + > + switch (data->type) { > +@@ -284,7 +284,7 @@ mdata *mdata_datatype_init(int type) { > + * @param data the datatype which > + */ > + > +-int mdata_write(gzFile *fd, mdata *data) { > ++int mdata_write(gzFile fd, mdata *data) { > + /* encode key with url-encoding */ > + char *encoded_key; > + > Index: patches/patch-src_mdatatypes_h > =================================================================== > RCS file: patches/patch-src_mdatatypes_h > diff -N patches/patch-src_mdatatypes_h > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_mdatatypes_h 4 Jun 2026 18:32:40 -0000 > @@ -0,0 +1,12 @@ > +Index: src/mdatatypes.h > +--- src/mdatatypes.h.orig > ++++ src/mdatatypes.h > +@@ -351,7 +351,7 @@ typedef struct { > + > + mdata *mdata_init(); > + void mdata_free(mdata *data); > +-int mdata_write(gzFile *fd, mdata *data); > ++int mdata_write(gzFile fd, mdata *data); > + int mdata_read(void *user_data, m_tag tagtype, const xmlChar *value, > const xmlChar **attrs); > + int mdata_show(const mdata *data); > + > Index: patches/patch-src_mhistory_c > =================================================================== > RCS file: patches/patch-src_mhistory_c > diff -N patches/patch-src_mhistory_c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_mhistory_c 4 Jun 2026 18:32:40 -0000 > @@ -0,0 +1,12 @@ > +Index: src/mhistory.c > +--- src/mhistory.c.orig > ++++ src/mhistory.c > +@@ -58,7 +58,7 @@ > + > + int history_write(mconfig *conf, mlist *l, char *subpath) { > + char filename[255]; > +- gzFile *fd; > ++ gzFile fd; > + > + /* protect buffer */ > + if (subpath) { > Index: patches/patch-src_mlist_c > =================================================================== > RCS file: patches/patch-src_mlist_c > diff -N patches/patch-src_mlist_c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_mlist_c 4 Jun 2026 18:32:40 -0000 > @@ -0,0 +1,12 @@ > +Index: src/mlist.c > +--- src/mlist.c.orig > ++++ src/mlist.c > +@@ -338,7 +338,7 @@ int mlist_append (mlist *l, mdata *ins_data) { > + return 0; > + } > + > +-int mlist_write(gzFile *fd, mlist *l) { > ++int mlist_write(gzFile fd, mlist *l) { > + while (l) { > + if (l->data) { > + mdata_write(fd, l->data); > Index: patches/patch-src_mlist_h > =================================================================== > RCS file: patches/patch-src_mlist_h > diff -N patches/patch-src_mlist_h > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_mlist_h 4 Jun 2026 18:32:40 -0000 > @@ -0,0 +1,12 @@ > +Index: src/mlist.h > +--- src/mlist.h.orig > ++++ src/mlist.h > +@@ -48,7 +48,7 @@ int mlist_insert_replace (mlist *lstp, mdata *ins_data > + int mlist_insert_sorted (mlist *l, mdata *ins_data); > + int mlist_append (mlist *lstp, mdata *ins_data); > + int mlist_is_empty(mlist *l); > +-int mlist_write(gzFile *fd, mlist *l); > ++int mlist_write(gzFile fd, mlist *l); > + int mlist_count(mlist *l); > + > + mlist* mlist_sort_full_by_string (mlist *l); > Index: patches/patch-src_mstate_c > =================================================================== > RCS file: patches/patch-src_mstate_c > diff -N patches/patch-src_mstate_c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-src_mstate_c 4 Jun 2026 18:32:40 -0000 > @@ -0,0 +1,56 @@ > +Index: src/mstate.c > +--- src/mstate.c.orig > ++++ src/mstate.c > +@@ -357,7 +357,7 @@ void mstate_free_ippl( mstate_ippl *state) { > + free(state); > + } > + > +-int mhash_write(gzFile *fd, mhash *h) { > ++int mhash_write(gzFile fd, mhash *h) { > + int i; > + > + for (i = 0; i < h->size; i++) { > +@@ -369,7 +369,7 @@ int mhash_write(gzFile *fd, mhash *h) { > + return 0; > + } > + > +-int mstate_write_web (mconfig *conf, mstate_web *state, gzFile *fd) { > ++int mstate_write_web (mconfig *conf, mstate_web *state, gzFile fd) { > + int i; > + > + gzprintf(fd, "<%s>\n", M_STATE_SECTION_WEB); > +@@ -518,7 +518,7 @@ int mstate_write_web (mconfig *conf, mstate_web *state > + return 0; > + } > + > +-int mstate_write_mail (mconfig *conf, mstate_mail *state, gzFile *fd) { > ++int mstate_write_mail (mconfig *conf, mstate_mail *state, gzFile fd) { > + int i; > + > + gzprintf(fd, "<%s>\n", M_STATE_SECTION_MAIL); > +@@ -587,21 +587,21 @@ int mstate_write_mail (mconfig *conf, mstate_mail *sta > + return 0; > + } > + > +-int mstate_write_ippl(mconfig *conf, mstate_ippl *state, gzFile *fd) { > ++int mstate_write_ippl(mconfig *conf, mstate_ippl *state, gzFile fd) { > + return 0; > + } > + > +-int mstate_write_telecom (mconfig *conf, mstate_telecom *state, gzFile *fd) > { > ++int mstate_write_telecom (mconfig *conf, mstate_telecom *state, gzFile fd) { > + return 0; > + } > + > +-int mstate_write_traffic (mconfig *conf, mstate_traffic *state, gzFile *fd) > { > ++int mstate_write_traffic (mconfig *conf, mstate_traffic *state, gzFile fd) { > + return 0; > + } > + > + int mstate_write (mconfig *conf, mstate *state, int _add_month, char > *subpath) { > + char filename[255], *s; > +- gzFile *fd; > ++ gzFile fd; > + > + if (state == NULL) return -1; > + > Index: pkg/PLIST > =================================================================== > RCS file: /cvs/ports/sysutils/modlogan/pkg/PLIST,v > diff -u -p -r1.10 PLIST > --- pkg/PLIST 11 Mar 2022 19:57:42 -0000 1.10 > +++ pkg/PLIST 4 Jun 2026 18:36:54 -0000 > @@ -1,122 +1,122 @@ > @bin bin/modlogan > lib/modlogan/ > -lib/modlogan/libmla_input_bsdftpd.a > +@static-lib lib/modlogan/libmla_input_bsdftpd.a > lib/modlogan/libmla_input_bsdftpd.la > -lib/modlogan/libmla_input_bsdftpd.so > -lib/modlogan/libmla_input_clf.a > +@so lib/modlogan/libmla_input_bsdftpd.so > +@static-lib lib/modlogan/libmla_input_clf.a > lib/modlogan/libmla_input_clf.la > -lib/modlogan/libmla_input_clf.so > -lib/modlogan/libmla_input_cp_ims_login.a > +@so lib/modlogan/libmla_input_clf.so > +@static-lib lib/modlogan/libmla_input_cp_ims_login.a > lib/modlogan/libmla_input_cp_ims_login.la > -lib/modlogan/libmla_input_cp_ims_login.so > -lib/modlogan/libmla_input_cp_ims_smtp.a > +@so lib/modlogan/libmla_input_cp_ims_login.so > +@static-lib lib/modlogan/libmla_input_cp_ims_smtp.a > lib/modlogan/libmla_input_cp_ims_smtp.la > -lib/modlogan/libmla_input_cp_ims_smtp.so > -lib/modlogan/libmla_input_flowraw.a > +@so lib/modlogan/libmla_input_cp_ims_smtp.so > +@static-lib lib/modlogan/libmla_input_flowraw.a > lib/modlogan/libmla_input_flowraw.la > -lib/modlogan/libmla_input_flowraw.so > -lib/modlogan/libmla_input_ipchains.a > +@so lib/modlogan/libmla_input_flowraw.so > +@static-lib lib/modlogan/libmla_input_ipchains.a > lib/modlogan/libmla_input_ipchains.la > -lib/modlogan/libmla_input_ipchains.so > -lib/modlogan/libmla_input_ippl.a > +@so lib/modlogan/libmla_input_ipchains.so > +@static-lib lib/modlogan/libmla_input_ippl.a > lib/modlogan/libmla_input_ippl.la > -lib/modlogan/libmla_input_ippl.so > -lib/modlogan/libmla_input_isdn4bsd.a > +@so lib/modlogan/libmla_input_ippl.so > +@static-lib lib/modlogan/libmla_input_isdn4bsd.a > lib/modlogan/libmla_input_isdn4bsd.la > -lib/modlogan/libmla_input_isdn4bsd.so > -lib/modlogan/libmla_input_isdnlog.a > +@so lib/modlogan/libmla_input_isdn4bsd.so > +@static-lib lib/modlogan/libmla_input_isdnlog.a > lib/modlogan/libmla_input_isdnlog.la > -lib/modlogan/libmla_input_isdnlog.so > -lib/modlogan/libmla_input_mod_log_sql.a > +@so lib/modlogan/libmla_input_isdnlog.so > +@static-lib lib/modlogan/libmla_input_mod_log_sql.a > lib/modlogan/libmla_input_mod_log_sql.la > -lib/modlogan/libmla_input_mod_log_sql.so > -lib/modlogan/libmla_input_msiis.a > +@so lib/modlogan/libmla_input_mod_log_sql.so > +@static-lib lib/modlogan/libmla_input_msiis.a > lib/modlogan/libmla_input_msiis.la > -lib/modlogan/libmla_input_msiis.so > -lib/modlogan/libmla_input_msmedia.a > +@so lib/modlogan/libmla_input_msiis.so > +@static-lib lib/modlogan/libmla_input_msmedia.a > lib/modlogan/libmla_input_msmedia.la > -lib/modlogan/libmla_input_msmedia.so > -lib/modlogan/libmla_input_netscape.a > +@so lib/modlogan/libmla_input_msmedia.so > +@static-lib lib/modlogan/libmla_input_netscape.a > lib/modlogan/libmla_input_netscape.la > -lib/modlogan/libmla_input_netscape.so > -lib/modlogan/libmla_input_null.a > +@so lib/modlogan/libmla_input_netscape.so > +@static-lib lib/modlogan/libmla_input_null.a > lib/modlogan/libmla_input_null.la > -lib/modlogan/libmla_input_null.so > -lib/modlogan/libmla_input_postfix.a > +@so lib/modlogan/libmla_input_null.so > +@static-lib lib/modlogan/libmla_input_postfix.a > lib/modlogan/libmla_input_postfix.la > -lib/modlogan/libmla_input_postfix.so > -lib/modlogan/libmla_input_pureftpd.a > +@so lib/modlogan/libmla_input_postfix.so > +@static-lib lib/modlogan/libmla_input_pureftpd.a > lib/modlogan/libmla_input_pureftpd.la > -lib/modlogan/libmla_input_pureftpd.so > -lib/modlogan/libmla_input_qmail.a > +@so lib/modlogan/libmla_input_pureftpd.so > +@static-lib lib/modlogan/libmla_input_qmail.a > lib/modlogan/libmla_input_qmail.la > -lib/modlogan/libmla_input_qmail.so > -lib/modlogan/libmla_input_qmailscanner.a > +@so lib/modlogan/libmla_input_qmail.so > +@static-lib lib/modlogan/libmla_input_qmailscanner.a > lib/modlogan/libmla_input_qmailscanner.la > -lib/modlogan/libmla_input_qmailscanner.so > -lib/modlogan/libmla_input_qtss.a > +@so lib/modlogan/libmla_input_qmailscanner.so > +@static-lib lib/modlogan/libmla_input_qtss.a > lib/modlogan/libmla_input_qtss.la > -lib/modlogan/libmla_input_qtss.so > -lib/modlogan/libmla_input_realserver.a > +@so lib/modlogan/libmla_input_qtss.so > +@static-lib lib/modlogan/libmla_input_realserver.a > lib/modlogan/libmla_input_realserver.la > -lib/modlogan/libmla_input_realserver.so > -lib/modlogan/libmla_input_rsync.a > +@so lib/modlogan/libmla_input_realserver.so > +@static-lib lib/modlogan/libmla_input_rsync.a > lib/modlogan/libmla_input_rsync.la > -lib/modlogan/libmla_input_rsync.so > -lib/modlogan/libmla_input_sendmail.a > +@so lib/modlogan/libmla_input_rsync.so > +@static-lib lib/modlogan/libmla_input_sendmail.a > lib/modlogan/libmla_input_sendmail.la > -lib/modlogan/libmla_input_sendmail.so > -lib/modlogan/libmla_input_shoutcast.a > +@so lib/modlogan/libmla_input_sendmail.so > +@static-lib lib/modlogan/libmla_input_shoutcast.a > lib/modlogan/libmla_input_shoutcast.la > -lib/modlogan/libmla_input_shoutcast.so > -lib/modlogan/libmla_input_squid.a > +@so lib/modlogan/libmla_input_shoutcast.so > +@static-lib lib/modlogan/libmla_input_squid.a > lib/modlogan/libmla_input_squid.la > -lib/modlogan/libmla_input_squid.so > -lib/modlogan/libmla_input_viruswall.a > +@so lib/modlogan/libmla_input_squid.so > +@static-lib lib/modlogan/libmla_input_viruswall.a > lib/modlogan/libmla_input_viruswall.la > -lib/modlogan/libmla_input_viruswall.so > -lib/modlogan/libmla_input_wuftpd.a > +@so lib/modlogan/libmla_input_viruswall.so > +@static-lib lib/modlogan/libmla_input_wuftpd.a > lib/modlogan/libmla_input_wuftpd.la > -lib/modlogan/libmla_input_wuftpd.so > -lib/modlogan/libmla_output_csv.a > +@so lib/modlogan/libmla_input_wuftpd.so > +@static-lib lib/modlogan/libmla_output_csv.a > lib/modlogan/libmla_output_csv.la > -lib/modlogan/libmla_output_csv.so > -lib/modlogan/libmla_output_modlogan.a > +@so lib/modlogan/libmla_output_csv.so > +@static-lib lib/modlogan/libmla_output_modlogan.a > lib/modlogan/libmla_output_modlogan.la > -lib/modlogan/libmla_output_modlogan.so > -lib/modlogan/libmla_output_null.a > +@so lib/modlogan/libmla_output_modlogan.so > +@static-lib lib/modlogan/libmla_output_null.a > lib/modlogan/libmla_output_null.la > -lib/modlogan/libmla_output_null.so > -lib/modlogan/libmla_output_template.a > +@so lib/modlogan/libmla_output_null.so > +@static-lib lib/modlogan/libmla_output_template.a > lib/modlogan/libmla_output_template.la > -lib/modlogan/libmla_output_template.so > -lib/modlogan/libmla_output_text.a > +@so lib/modlogan/libmla_output_template.so > +@static-lib lib/modlogan/libmla_output_text.a > lib/modlogan/libmla_output_text.la > -lib/modlogan/libmla_output_text.so > -lib/modlogan/libmla_output_webalizer.a > +@so lib/modlogan/libmla_output_text.so > +@static-lib lib/modlogan/libmla_output_webalizer.a > lib/modlogan/libmla_output_webalizer.la > -lib/modlogan/libmla_output_webalizer.so > -lib/modlogan/libmla_processor_accounting.a > +@so lib/modlogan/libmla_output_webalizer.so > +@static-lib lib/modlogan/libmla_processor_accounting.a > lib/modlogan/libmla_processor_accounting.la > -lib/modlogan/libmla_processor_accounting.so > -lib/modlogan/libmla_processor_firewall.a > +@so lib/modlogan/libmla_processor_accounting.so > +@static-lib lib/modlogan/libmla_processor_firewall.a > lib/modlogan/libmla_processor_firewall.la > -lib/modlogan/libmla_processor_firewall.so > -lib/modlogan/libmla_processor_ippl.a > +@so lib/modlogan/libmla_processor_firewall.so > +@static-lib lib/modlogan/libmla_processor_ippl.a > lib/modlogan/libmla_processor_ippl.la > -lib/modlogan/libmla_processor_ippl.so > -lib/modlogan/libmla_processor_mail.a > +@so lib/modlogan/libmla_processor_ippl.so > +@static-lib lib/modlogan/libmla_processor_mail.a > lib/modlogan/libmla_processor_mail.la > -lib/modlogan/libmla_processor_mail.so > -lib/modlogan/libmla_processor_null.a > +@so lib/modlogan/libmla_processor_mail.so > +@static-lib lib/modlogan/libmla_processor_null.a > lib/modlogan/libmla_processor_null.la > -lib/modlogan/libmla_processor_null.so > -lib/modlogan/libmla_processor_telecom.a > +@so lib/modlogan/libmla_processor_null.so > +@static-lib lib/modlogan/libmla_processor_telecom.a > lib/modlogan/libmla_processor_telecom.la > -lib/modlogan/libmla_processor_telecom.so > -lib/modlogan/libmla_processor_web.a > +@so lib/modlogan/libmla_processor_telecom.so > +@static-lib lib/modlogan/libmla_processor_web.a > lib/modlogan/libmla_processor_web.la > -lib/modlogan/libmla_processor_web.so > +@so lib/modlogan/libmla_processor_web.so > @man man/man1/modlogan.1 > share/doc/modlogan/ > @comment share/doc/modlogan/Changes-0.7.0.txt > -- wbr, Kirill
