Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mail/mls: improve and unbreak with -fno-common
- liberally sprinkle extern all over the place - define LICENSE - take over maintainership of this unmaintained port - ship examples and html files - define DOCS and EXAMPLES options - pacify portlint and portclippy - add a pkg-message as the author intended - remove dead MASTER_SITES entry PR: 259586 Approved by: flo (mentor) Differential Revision: https://reviews.freebsd.org/D38516
- Loading branch information
1 parent
195a90a
commit 342a19d
Showing
9 changed files
with
86 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,43 @@ | ||
PORTNAME= mls | ||
PORTVERSION= 1.3 | ||
PORTREVISION= 1 | ||
PORTREVISION= 2 | ||
CATEGORIES= mail | ||
MASTER_SITES= http://www.marki-online.net/MLS/ \ | ||
http://marki.host.sk/MLS/ | ||
EXTRACT_SUFX= .tgz | ||
MASTER_SITES= https://www.marki-online.net/MLS/ | ||
|
||
MAINTAINER= ports@FreeBSD.org | ||
MAINTAINER= fuz@FreeBSD.org | ||
COMMENT= Program for generating various statistics on emails | ||
WWW= https://www.marki-online.net/MLS/ | ||
|
||
BROKEN_FreeBSD_13= ld: error: duplicate symbol: r_base64 | ||
BROKEN_FreeBSD_14= ld: error: duplicate symbol: r_base64 | ||
LICENSE= GPLv2 | ||
LICENSE_FILE= ${WRKSRC}/COPYING.gz | ||
|
||
PLIST_FILES= bin/mls man/man1/mls.1.gz | ||
USES= tar:tgz | ||
|
||
MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS}" | ||
ALL_TARGET= mls | ||
|
||
SUB_FILES= pkg-message | ||
PLIST_FILES= bin/mls man/man1/mls.1.gz | ||
PORTDATA= html/bar.gif html/mls_class.php html/style_mls.css | ||
PORTDOCS= README.txt | ||
PORTEXAMPLES= README example.php forward procmailrc | ||
|
||
OPTIONS_DEFINE= DOCS EXAMPLES | ||
|
||
post-install: | ||
${MKDIR} ${STAGEDIR}${DATADIR}/html | ||
.for f in ${PORTDATA} | ||
${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DATADIR}/html/ | ||
.endfor | ||
|
||
post-install-DOCS-on: | ||
${MKDIR} ${STAGEDIR}${DOCSDIR} | ||
${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR} | ||
|
||
post-install-EXAMPLES-on: | ||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} | ||
.for f in ${PORTEXAMPLES} | ||
${INSTALL_DATA} ${WRKSRC}/examples/$f ${STAGEDIR}${EXAMPLESDIR} | ||
.endfor | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
TIMESTAMP = 1676377151 | ||
SHA256 (mls-1.3.tgz) = f2aabb6010dfe61751ec138a922e7f72a9d0b23f01c955079cb56a5c1673bfea | ||
SIZE (mls-1.3.tgz) = 45481 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- mls.c.orig 2003-05-27 21:47:26 UTC | ||
+++ mls.c | ||
@@ -51,6 +51,16 @@ time_t t; // actual time - to be added to out | ||
time_t t_oldest, | ||
t_newest; // date of oldest/newest message found | ||
|
||
+// Reg. expressions | ||
+regex_t r_from, r_time, r_re, r_date, r_dow, r_mail, | ||
+ r_m_ims, r_m_bat, r_m_lot, r_m_oue, r_m_ouc, r_m_oum, r_m_out, | ||
+ r_m_cal, r_m_moz, r_m_peg, r_m_eud, r_m_ope, r_m_opw, r_m_pos, | ||
+ r_m_pob, r_m_kma, r_m_imp, r_m_mut, r_m_pin, r_m_pi2, r_m_syl, | ||
+ r_m_pan, r_m_4td, r_m_fag, r_m_mpg, r_m_xws, r_m_knd, r_m_hst, | ||
+ r_m_nnr; | ||
+ | ||
+regex_t r_qp, r_base64, r_hex; | ||
+ | ||
/* ************************************************* Other * FUNCTIONS *** */ | ||
/* ***** banner ********************************************************** */ | ||
void banner() { // print greeting banner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- mls_mime.h.orig 2021-11-01 09:11:54 UTC | ||
+++ mls_mime.h | ||
@@ -21,7 +21,7 @@ | ||
#ifndef _MLS_MIME_H | ||
#define _MLS_MIME_H 1 | ||
|
||
-regex_t r_qp, r_base64, r_hex; | ||
+extern regex_t r_qp, r_base64, r_hex; | ||
|
||
/* ********************************************* FUNCTION DECLARATIONS *** */ | ||
int base64_table(char *lookup); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
To use the HTML feature or the PHP wrapper, copy the | ||
contents of %%DATADIR%%/html to a location | ||
accessible by your webserver. For more information, | ||
see %%DOCSDIR%%/README.txt! | ||
|
||
See also %%EXAMPLESDIR%% for some hints... |