diff options
Diffstat (limited to 'mail-mta/netqmail')
-rw-r--r-- | mail-mta/netqmail/Manifest | 23 | ||||
-rw-r--r-- | mail-mta/netqmail/files/1.06-exit.patch | 18 | ||||
-rw-r--r-- | mail-mta/netqmail/files/1.06-fbsd-utmpx.patch | 64 | ||||
-rw-r--r-- | mail-mta/netqmail/files/1.06-readwrite.patch | 13 | ||||
-rw-r--r-- | mail-mta/netqmail/files/genqmail-20080406-ldflags.patch | 13 | ||||
-rw-r--r-- | mail-mta/netqmail/files/qmail-smtputf8.patch | 242 | ||||
-rw-r--r-- | mail-mta/netqmail/files/use-new-path-for-functions.sh.patch | 11 | ||||
-rw-r--r-- | mail-mta/netqmail/metadata.xml | 17 | ||||
-rw-r--r-- | mail-mta/netqmail/netqmail-1.06-r1.ebuild | 161 | ||||
-rw-r--r-- | mail-mta/netqmail/netqmail-1.06-r2.ebuild | 169 | ||||
-rw-r--r-- | mail-mta/netqmail/netqmail-1.06-r3.ebuild | 172 | ||||
-rw-r--r-- | mail-mta/netqmail/netqmail-1.06-r4.ebuild | 177 | ||||
-rw-r--r-- | mail-mta/netqmail/netqmail-1.06-r5.ebuild | 182 | ||||
-rw-r--r-- | mail-mta/netqmail/netqmail-1.06.ebuild | 148 |
14 files changed, 1410 insertions, 0 deletions
diff --git a/mail-mta/netqmail/Manifest b/mail-mta/netqmail/Manifest new file mode 100644 index 000000000000..a8e32b50b30f --- /dev/null +++ b/mail-mta/netqmail/Manifest @@ -0,0 +1,23 @@ +AUX 1.06-exit.patch 551 SHA256 400ab4719d145e29b08d266b38766b80d894d5473e4c4f3b5e436916a36a4333 SHA512 9623d4c045d1399ca035ad49f82e50a344529edffaf7c0e2f1015fe0958dfaf8814462a70b944403203d84b86852e8a01f6a3c4688228b45443258dc908e9236 WHIRLPOOL 9e7df2a478efe792fb6b392429ce32e2920baeaa4a7082493a7ddb208927d344185ddab245e2b92ec05c5471c08c18d4b75f04f093849c2305d140f8cde13a83 +AUX 1.06-fbsd-utmpx.patch 1903 SHA256 dc21eb0ce3f199e346e50a51324120310a88a2f00f7e2c6d06b1b09e3c06a373 SHA512 b6e8ff4f6f582e0d6d69072547a68a3741345d08041e29285a3bf39c016b2b15231d5b0370123a95b35473d67f1780b69d19b61ddfbddae5f463709575344481 WHIRLPOOL c78df462488090e2656aa7a5a5918fbf8bf594eaced99fb6c51c5ccaffa8fa295563abee3e9ca56e7f9cce45686e3c304f9be27be4c33b446d159994a985ab50 +AUX 1.06-readwrite.patch 237 SHA256 71b60967ca83d9c8ac0ae041298ade87174930472f4eb2628a26e30665aafd35 SHA512 4cfb7991f2b30740d007a655743e77f5271ebefb4ed31ceb44d10ee53168eec713bbe64ff3616c372851c5fe1f04e57601dc83a27f1ce9cccdd0e2fbc942b550 WHIRLPOOL 34768aaa96a56b324755187b8edc64cbd84afa3562bd7f01cf136c4c8fd91999e351221d7bb5379977887c6128efeec581b20b34f7a8e597971c25e5e1cb84d9 +AUX genqmail-20080406-ldflags.patch 456 SHA256 595d1aa847ff678754245c292f64b87305f16a175ef1ec030d479c7fb5adcba8 SHA512 2e0061f135bafb6eba363c165e3282992d326a581adbeac5d790fb665b251ed2a2b5febed4987bafd39b33fe8275cc81a3523eb77418543c2bc7923647df1dd5 WHIRLPOOL 00ff535ef475f2d0ab894bce40d4cdfe20b32edb64227abac69a1827ec208c0018262c11b9fe00cb454920bda902e5dcce067e53cf8fa43ac7e2a6b75d1d67db +AUX qmail-smtputf8.patch 6693 SHA256 cf3a802d439fe53e9cecbeb82a6ce6ff5c71b5fcd0b053eac5a19df918724cfa SHA512 8cafdf1a4f1fd41e6b11ee2abddac5c3da4a1d2ab17b5d3847433875a91f867a26eb358ae8c41791f1e77758e5a2c311134a286d888ccd23fbede6d9f0b475c4 WHIRLPOOL 36d2a822cf42efbe34e0e95da6e171a3394c049cfbcf2a3b68efe789b4199f00fcdb942d1e93268283a4eec15ad3ead7a58df31a327ade517c218fb18f8a7801 +AUX use-new-path-for-functions.sh.patch 410 SHA256 715ae19d940f49e106ac38427115ee717d32dff2484312cd7600e6a29a78bad4 SHA512 72f31612286d6869078f6546966cc005b6d413a154fbe20bda97da15851b81c309a6ee3e5ae8b03124ad6e20773dee393fb8a029b48b8d8a903e92fe224df565 WHIRLPOOL 50ccdfd95f7cd6f67f8f1049e4ea4fdc302df272157023185591d5862bd452ef1b503a7a8524d13708225cb16ad502cfe3f2776ee9846096c850ea844ac83fb3 +DIST big-todo.103.patch 5546 SHA256 afa0a249e3271badd442f0bdae39997d9fe536157d8a0d62b6706f3dfcd11a72 SHA512 fe6e19a94fb7dbe51f7164e38a91d8edb636251569d44ace1e146fe5f607b240edafb2884daaac481ff3219142ab553cfd5b01786e0dfc4662ef07336b789975 WHIRLPOOL ac9c2ce18e8c3bda85287c998661f2192c986daaad197bd358e1966cb97b4dbe0146bc0e334a251fc0ec3e42a7caa3f9a479a8c2c8e7777c790cb8af078d5d13 +DIST genqmail-20080406.tar.bz2 10252 SHA256 501ca2120c7619569bd9ac3e0035cb0022bfd0cdc9c720b5c43c9e3a4eb07ce8 SHA512 744d0968307bfedebf0ca7bc0d5bd0780884326acaf5fea0a66fb91f8b0caf5ba52eb443c9cb2a7d6389622ca5c87100c3204ec3408aed8ef5fb1e7f80ff0d35 WHIRLPOOL b385cd2d5e88795f163a4f49dc81a2080d7076ec2016ee7d8154df4488effa7112caf0577c8dc8ff654665213aa4120a21de8223f3dd51056fa189546ace3cf5 +DIST netqmail-1.05-tls-smtpauth-20070417.patch 67942 SHA256 573de07d57ac6941a42dda645079213cf36fcbb7f3a8c254b8447709e5e5cd60 SHA512 ce5fb50ae9a7683b708eeb65c68a0db47c5817eb3fc14457c4f7c5746916ca2734c647a2369bf6f1240477ee818e3e7d7870aec3edbad2eaace179cba6267e41 WHIRLPOOL a5bf8ecfcd6f0b76d9c10a318d93aecbf7778e59a1a88432f38e051859fc926a7e2a688d55e8326d6c58c1690f453025eeb1dd64b9b603f37b132c18d22fbcd8 +DIST netqmail-1.06.tar.gz 260941 SHA256 8e7d98d15211fc9f9c28109e942e2268f42a6672d68df92a42f2afa90ff00532 SHA512 de40a6d8fac502bd785010434d99b99f2c0524e10aea3d0f2a0d35c70fce91e991eb1fb8f20a1276eb56d7e73130ea5e2c178f6075d138af47b28d9ca6e6046b WHIRLPOOL 167bd5c290f13bf7d39daae0a6245afa1bcf760b01fd7ffcc88676f02a9ed1013c545c9f87c4d6e05ee7b073c838ee1613f97cb75ae3eab65106e32040d74712 +DIST qmail-103.patch 2104 SHA256 4cad53c7a6628a600c74c36bfee327db5052ca24c222d4013e4dfcd7f427653d SHA512 b81062bb0b0023f474c0b6af40601926e1c04ad395de480d114809e48a8060c06d99bdbdeb6f44d9e24ae1acedabb094b979193d305371aed958f18fc6eee354 WHIRLPOOL 5785684b98b9d9732ed14aa1b53910746bd09aa93514e0e6ef3d74831c3df8ed0a55f257057488f34a3d462e485b7a4417ed255f66abaff6dd63d881b9230063 +DIST qmail-smtputf8.patch 6693 SHA256 cf3a802d439fe53e9cecbeb82a6ce6ff5c71b5fcd0b053eac5a19df918724cfa SHA512 8cafdf1a4f1fd41e6b11ee2abddac5c3da4a1d2ab17b5d3847433875a91f867a26eb358ae8c41791f1e77758e5a2c311134a286d888ccd23fbede6d9f0b475c4 WHIRLPOOL 36d2a822cf42efbe34e0e95da6e171a3394c049cfbcf2a3b68efe789b4199f00fcdb942d1e93268283a4eec15ad3ead7a58df31a327ade517c218fb18f8a7801 +DIST qmail-spp-0.42.tar.gz 18689 SHA256 1518e7e82d10fbbb8ecc520f51daf503edeb9c3a9fb935be65a8185e7b53808d SHA512 03449862886a0ca20fbadab4c94b34b55d185f8df3261bd68aea99e9ded9edfab4477c6b38a8e0295e9b38b0045615da8b1a906a458f28745eadd3c4d882bcbf WHIRLPOOL 2f8525bb264fbec4b057bad6d92968e29085fdf10b8538b8e572d81ea8793e74c07c6093d0cc2a34de00b629e797b048007b30e3845dce76829037fdb44f527c +DIST vu555316.patch 617 SHA256 cc7b2876ecb183fe55c280404c1c825a6bd1f6ccc87db67e7cfc8bc6336f9b0f SHA512 5d7810360e5eaa8e8ee141fe92c765d9458aa12198a8d0ac702e0630e08d060ad4a1d33690d434f20f5aff79eb200cd8173bebc334c411e340c0198b5d8d1a65 WHIRLPOOL 2564d5622576b89918e247de5dd830011e8ef18a50fd03e6f48e98ebf4a53db2f4994eb0fb22a76c4cd0cbb35b457ac2a5507e05159130a72685866137c5ebc1 +EBUILD netqmail-1.06-r1.ebuild 3690 SHA256 2fcd941b70bf694c9cf93162aba01441b757d822af58365a316312e7aa0469ec SHA512 f609b723de624a87863eb152739439a0ec9fe73ac0f451b3ba0d767e79c94264212db0c67fa6561c6760ef72fa840edca3ad4c3535423f7665ea0d62b3050dac WHIRLPOOL 3c5a654e2ccac13b463e6d8d4edb1c58df48308d34bdf79779ad09262da7c60f42b9ad6d913ab349eaf853f3dec7a31f781f0d40155fe9996645952c3ca0078a +EBUILD netqmail-1.06-r2.ebuild 3953 SHA256 5e94d61facb4538f6d226c39289827e4acba31cd6cb02556c79d9015b5293274 SHA512 3cffc0efc1d4e2a0aa9c33a67db7c2f2afb000f2b87e87805d1b2a028e3664e49cbea0a03dcfc5903512bb82fddc50d3db6b2df30edd69a7648cc9ccfff7dafa WHIRLPOOL f1b7b7db0610b9bdfb15d4690880b30e50ddc9e9cae8f95ea49aaba47828a8893ad62abba364add9502e80a56b8a5ddffe56a75444553d898bab8dbb92f75123 +EBUILD netqmail-1.06-r3.ebuild 4027 SHA256 f7afb14cdcffc59ffa590417320e37164c3c7468f8bb528d310cedcb52f58c17 SHA512 aff0744852e34f905bdc6f8d2e43faff84af611b4406b823e6e41b6fcaf8336a099620ff766841341a588db7719505a379425b6ecb860b1ffec78732c0d095cd WHIRLPOOL 639199045fb437c3191623137c6014fb859ae4a747b4b5bfe9f20fb677f1aaaed59795931b5c521382a6c79ef68f011721ebb344f5059b72c6ac0fe0ff93fbd9 +EBUILD netqmail-1.06-r4.ebuild 4178 SHA256 ddc0587fbc16e9343d706e56f7c154658db948fc1042eeb17219fc5ab0a6c655 SHA512 e492ab72c3b29fc8ed3e6b14a5ce7cdecda279ad6d37e8dfa9af5f68fc054692a9680220509f984dc78e36e42b790987afb10a361df08b69b04ffc803feebaa0 WHIRLPOOL f428b836b921b6229235653258ac07f27e30247dc5943439881aa7ce8d9a0a65fca0b1b56b19bbc8fa2400e59515f86f792028b4c70aa351a4df3ee391a8cb68 +EBUILD netqmail-1.06-r5.ebuild 4308 SHA256 6bced3f2af4754003535b24fbd42a9d6b3d60ee278ab19f801d557071e3e9feb SHA512 83b4ada94ccd29c97ceb81c97b5f2e932fba156b6b534866853d8cc0cd15853c8e82faaf0ebc32dc535459ff0d3b6391c4660cb108b9165bfefccc8b67577375 WHIRLPOOL 48dada415315330a772cf7d33cdeab4e3eeeefaa8173a14d5e1ccbbee2295d655e740d498cb0b81a368fc20e9a7cc9a63dc6a583ff4de4d5df69680dbabce84a +EBUILD netqmail-1.06.ebuild 3289 SHA256 92558ca27bd5a4aaab379a64e20702bed7e3e5f1c97117b23bacbe5b414fef52 SHA512 7bee6b14ef4d02650d7e502fcd1d4efbb61a40073ea0b4ded730f6fde4d8a309f24d489b5388b86854237b3d990a5a57d5792d57f2d88ada42492034d6d23d4a WHIRLPOOL 7f8998e6fc043fc52bafafe7a518b123af309bec2d3f25dadb0e1a643bda063ed664023830c835dfe25c764da728faa387d963901afbb4c7c621778326784547 +MISC ChangeLog 3885 SHA256 9d47b49eab81a9e7a3c62b44c4a63499b981cb0e68f59161c7804d1e6e125a1a SHA512 b67ae602ab16213ce98f41f2a2adba4df094214a68b1afae50a68e3c10d55eb8252cd36817dba3ac1c49cd9cdb1c67bcd1c5224721030b042527774c40d1425b WHIRLPOOL 2cc2e0de19a14e9af0bc0d6036db15f1c52c90f2e0ab2db3517a55732cdb7b1a74c7188789d4ace36c8fb0d1faff94fd811c98ec5f962aec1c28065f416728dc +MISC ChangeLog-2015 11663 SHA256 9abd30bb8b56ccfcbe1a636b6320efc110689af18f2d324c8de36d62770d1d7e SHA512 85f07e8c8e79b4779ab099742fbbb76cb0f7f31a0c7c0ec55a28e6703ae86214a7f9cf950df4830e0d34bf346fc4f38e3964a7ec512b7aabbe080e64cee581a7 WHIRLPOOL 0026b621d7da8e3ea2bde86184a2f8a7f107c5a78d2d481bc80f5467a64c5f2cb27df25c053c501dae0c11331d558dacb6cc4e6a2dee5a963b01ad82dee2fd09 +MISC metadata.xml 555 SHA256 038169531a07406b31f808c87525167cd8e8fbfb32e26e05b3df516172341426 SHA512 dec725506e819558500bc86ce215370a6576bfe47baae06da3e12315fbd0395d2d8237d85e41996d6e5b11878bfe7ed2e1bbeb81061351b3bb9729749f702eba WHIRLPOOL 1ffae1b66096ad0e43a1e274f0c67d480214f39395d8dfb355da1f04df3692c92e017cdea13ea77a8f83c2c2ed9c67a95b986a2b4a1991e93229b6fe007e2c92 diff --git a/mail-mta/netqmail/files/1.06-exit.patch b/mail-mta/netqmail/files/1.06-exit.patch new file mode 100644 index 000000000000..e0e7dea0f324 --- /dev/null +++ b/mail-mta/netqmail/files/1.06-exit.patch @@ -0,0 +1,18 @@ +Index: netqmail-1.06/qmail-pw2u.c +=================================================================== +--- netqmail-1.06.orig/qmail-pw2u.c ++++ netqmail-1.06/qmail-pw2u.c +@@ -1,3 +1,4 @@ ++#include <unistd.h> + #include <sys/types.h> + #include <sys/stat.h> + #include "substdio.h" +Index: netqmail-1.06/qmail-qmtpd.c +=================================================================== +--- netqmail-1.06.orig/qmail-qmtpd.c ++++ netqmail-1.06/qmail-qmtpd.c +@@ -1,3 +1,4 @@ ++#include <unistd.h> + #include "stralloc.h" + #include "substdio.h" + #include "qmail.h" diff --git a/mail-mta/netqmail/files/1.06-fbsd-utmpx.patch b/mail-mta/netqmail/files/1.06-fbsd-utmpx.patch new file mode 100644 index 000000000000..8500eb53e3ee --- /dev/null +++ b/mail-mta/netqmail/files/1.06-fbsd-utmpx.patch @@ -0,0 +1,64 @@ +--- qbiff.c.orig 2010-04-06 08:43:28.000000000 -0300 ++++ qbiff.c 2010-04-06 08:44:35.000000000 -0300 +@@ -1,13 +1,6 @@ + #include <sys/types.h> + #include <sys/stat.h> +-#include <utmp.h> +-#ifndef UTMP_FILE +-#ifdef _PATH_UTMP +-#define UTMP_FILE _PATH_UTMP +-#else +-#define UTMP_FILE "/etc/utmp" +-#endif +-#endif ++#include <utmpx.h> + #include "readwrite.h" + #include "stralloc.h" + #include "substdio.h" +@@ -21,15 +14,12 @@ + #include "env.h" + #include "exit.h" + +-substdio ssutmp; +-char bufutmp[sizeof(struct utmp) * 16]; +-int fdutmp; + substdio sstty; + char buftty[1024]; + int fdtty; + +-struct utmp ut; +-char line[sizeof(ut.ut_line) + 1]; ++struct utmpx *ut; ++char line[sizeof(ut->ut_line) + 1]; + stralloc woof = {0}; + stralloc tofrom = {0}; + stralloc text = {0}; +@@ -64,7 +54,7 @@ + if (!(user = env_get("USER"))) _exit(0); + if (!(sender = env_get("SENDER"))) _exit(0); + if (!(userext = env_get("LOCAL"))) _exit(0); +- if (str_len(user) > sizeof(ut.ut_name)) _exit(0); ++ if (str_len(user) > sizeof(ut->ut_user)) _exit(0); + + if (!stralloc_copys(&tofrom,"*** TO <")) _exit(0); + if (!stralloc_cats(&tofrom,userext)) _exit(0); +@@ -89,15 +79,11 @@ + if (!stralloc_cat(&woof,&text)) _exit(0); + if (!stralloc_cats(&woof,"\015\n")) _exit(0); + +- fdutmp = open_read(UTMP_FILE); +- if (fdutmp == -1) _exit(0); +- substdio_fdbuf(&ssutmp,read,fdutmp,bufutmp,sizeof(bufutmp)); +- +- while (substdio_get(&ssutmp,&ut,sizeof(ut)) == sizeof(ut)) +- if (!str_diffn(ut.ut_name,user,sizeof(ut.ut_name))) ++ while ((ut = getutxent()) != NULL) ++ if (ut->ut_type == USER_PROCESS && !str_diffn(ut->ut_user,user,sizeof(ut->ut_user))) + { +- byte_copy(line,sizeof(ut.ut_line),ut.ut_line); +- line[sizeof(ut.ut_line)] = 0; ++ byte_copy(line,sizeof(ut->ut_line),ut->ut_line); ++ line[sizeof(ut->ut_line)] = 0; + if (line[0] == '/') continue; + if (!line[0]) continue; + if (line[str_chr(line,'.')]) continue; diff --git a/mail-mta/netqmail/files/1.06-readwrite.patch b/mail-mta/netqmail/files/1.06-readwrite.patch new file mode 100644 index 000000000000..a2fbe5fe695e --- /dev/null +++ b/mail-mta/netqmail/files/1.06-readwrite.patch @@ -0,0 +1,13 @@ +diff --git a/readwrite.h b/readwrite.h +index 2a64968..0a641a3 100644 +--- a/readwrite.h ++++ b/readwrite.h +@@ -1,7 +1,4 @@ + #ifndef READWRITE_H + #define READWRITE_H +- +-extern int read(); +-extern int write(); +- ++#include <unistd.h> + #endif diff --git a/mail-mta/netqmail/files/genqmail-20080406-ldflags.patch b/mail-mta/netqmail/files/genqmail-20080406-ldflags.patch new file mode 100644 index 000000000000..1eb334c259c1 --- /dev/null +++ b/mail-mta/netqmail/files/genqmail-20080406-ldflags.patch @@ -0,0 +1,13 @@ +diff -Nuar genqmail-20080406.orig/spp/Makefile genqmail-20080406/spp/Makefile +--- genqmail-20080406.orig/spp/Makefile 2008-04-06 15:44:14.000000000 +0000 ++++ genqmail-20080406/spp/Makefile 2013-05-27 00:37:58.687763457 +0000 +@@ -14,7 +14,7 @@ + rm -f $(TARGETS) + + $(RESOLV_OBJS): +- $(CC) $(CFLAGS) -o $@ $@.c -lresolv ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $@.c -lresolv + + $(SIMPLE_OBJS): +- $(CC) $(CFLAGS) -o $@ $@.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $@.c diff --git a/mail-mta/netqmail/files/qmail-smtputf8.patch b/mail-mta/netqmail/files/qmail-smtputf8.patch new file mode 100644 index 000000000000..5b656b9dbd9d --- /dev/null +++ b/mail-mta/netqmail/files/qmail-smtputf8.patch @@ -0,0 +1,242 @@ +This patch adds EAI support to qmail; EAI allows UTF8 almost everywhere in +email. + +Thanks for CNNIC for sponsoring this work. + +--- /dev/null ++++ netqmail-1.06/Makefile +@@ -1446,7 +1446,7 @@ substdio.a error.a str.a fs.a auto_qmail.o dns.lib socket.lib + timeoutwrite.o timeoutconn.o tcpto.o now.o dns.o ip.o \ + ipalloc.o ipme.o quote.o ndelay.a case.a sig.a open.a \ + lock.a seek.a getln.a stralloc.a alloc.a substdio.a error.a \ +- str.a fs.a auto_qmail.o `cat dns.lib` `cat socket.lib` ++ str.a fs.a auto_qmail.o `cat dns.lib` `cat socket.lib` -lidn2 + + qmail-remote.0: \ + qmail-remote.8 +--- /dev/null ++++ netqmail-1.06/qmail-remote.c +@@ -2,6 +2,7 @@ + #include <sys/socket.h> + #include <netinet/in.h> + #include <arpa/inet.h> ++#include <idn2.h> + #include "sig.h" + #include "stralloc.h" + #include "substdio.h" +@@ -42,6 +43,7 @@ + stralloc routes = {0}; + struct constmap maproutes; + stralloc host = {0}; ++stralloc asciihost = {0}; + stralloc sender = {0}; + + saa reciplist = {0}; +@@ -53,12 +55,13 @@ + # include "tls.h" + # include "ssl_timeoutio.h" + # include <openssl/x509v3.h> +-# define EHLO 1 + + int tls_init(); + const char *ssl_err_str = 0; + #endif + ++# define EHLO 1 ++ + void out(s) char *s; { if (substdio_puts(subfdoutsmall,s) == -1) _exit(0); } + void zero() { if (substdio_put(subfdoutsmall,"\0",1) == -1) _exit(0); } + void zerodie() { zero(); substdio_flush(subfdoutsmall); _exit(0); } +@@ -156,6 +159,7 @@ + substdio smtpfrom = SUBSTDIO_FDBUF(saferead,-1,smtpfrombuf,sizeof smtpfrombuf); + + stralloc smtptext = {0}; ++stralloc firstpart = {0}; + + void get(ch) + char *ch; +@@ -308,6 +312,8 @@ + int r; + char ch; + ++ substdio_put(&smtpto,firstpart.s,firstpart.len); ++ + for (;;) { + r = substdio_get(&ssin,&ch,1); + if (r == 0) break; +@@ -518,6 +524,88 @@ + + stralloc recip = {0}; + ++int containsutf8(p, l) unsigned char * p; int l; ++{ ++ int i = 0; ++ while (i<l) ++ if(p[i++] > 127) return 1; ++ return 0; ++} ++ ++int utf8message; ++ ++void checkutf8message() ++{ ++ int pos; ++ int i; ++ int r; ++ char ch; ++ int state; ++ ++ if (containsutf8(sender.s, sender.len)) { utf8message = 1; return; } ++ for (i = 0;i < reciplist.len;++i) ++ if (containsutf8(reciplist.sa[i].s, reciplist.sa[i].len)) { ++ utf8message = 1; ++ return; ++ } ++ ++ state = 0; ++ pos = 0; ++ for (;;) { ++ r = substdio_get(&ssin,&ch,1); ++ if (r == 0) break; ++ if (r == -1) temp_read(); ++ ++ if (!stralloc_append(&firstpart,&ch)) temp_nomem(); ++ ++ if (ch == '\r') ++ continue; ++ if (ch == '\t') ++ ch = ' '; ++ ++ switch (state) { ++ case 6: /* in Received, at LF but before WITH clause */ ++ if (ch == ' ') { state = 3; pos = 1; continue; } ++ state = 0; ++ /* FALL THROUGH */ ++ ++ case 0: /* start of header field */ ++ if (ch == '\n') return; ++ state = 1; ++ pos = 0; ++ /* FALL THROUGH */ ++ ++ case 1: /* partway through "Received:" */ ++ if (ch != "RECEIVED:"[pos] && ch != "received:"[pos]) { state = 2; continue; } ++ if (++pos == 9) { state = 3; pos = 0; } ++ continue; ++ ++ case 2: /* other header field */ ++ if (ch == '\n') state = 0; ++ continue; ++ ++ case 3: /* in Received, before WITH clause or partway though " with " */ ++ if (ch == '\n') { state = 6; continue; } ++ if (ch != " WITH "[pos] && ch != " with "[pos]) { pos = 0; continue; } ++ if (++pos == 6) { state = 4; pos = 0; } ++ continue; ++ ++ case 4: /* in Received, having seen with, before the argument */ ++ if (pos == 0 && (ch == ' ' || ch == '\t')) continue; ++ if (ch != "UTF8"[pos] && ch != "utf8"[pos]) { state = 5; continue; } ++ if(++pos == 4) { utf8message = 1; state = 5; continue; } ++ continue; ++ ++ case 5: /* after the RECEIVED WITH argument */ ++ /* blast() assumes that it copies whole lines */ ++ if (ch == '\n') return; ++ state = 1; ++ pos = 0; ++ continue; ++ } ++ } ++} ++ + void smtp() + { + unsigned long code; +@@ -571,9 +659,12 @@ + } + #endif + ++ checkutf8message(); + substdio_puts(&smtpto,"MAIL FROM:<"); + substdio_put(&smtpto,sender.s,sender.len); +- substdio_puts(&smtpto,">\r\n"); ++ substdio_puts(&smtpto,">"); ++ if (utf8message) substdio_puts(&smtpto," SMTPUTF8"); ++ substdio_puts(&smtpto,"\r\n"); + substdio_flush(&smtpto); + code = smtpcode(); + if (code >= 500) quit("DConnected to "," but sender was rejected"); +@@ -702,9 +793,17 @@ + relayhost[i] = 0; + } + if (!stralloc_copys(&host,relayhost)) temp_nomem(); ++ } else { ++ char * ascii = 0; ++ host.s[host.len] = '\0'; ++ switch (idn2_lookup_u8(host.s, (uint8_t**)&ascii, IDN2_NFC_INPUT)) { ++ case IDN2_OK: break; ++ case IDN2_MALLOC: temp_nomem(); ++ default: perm_dns(); ++ } ++ if (!stralloc_copys(&asciihost, ascii)) temp_nomem(); + } + +- + addrmangle(&sender,argv[2],&flagalias,0); + + if (!saa_readyplus(&reciplist,0)) temp_nomem(); +@@ -723,7 +822,7 @@ + + + random = now() + (getpid() << 16); +- switch (relayhost ? dns_ip(&ip,&host) : dns_mxip(&ip,&host,random)) { ++ switch (relayhost ? dns_ip(&ip,&host) : dns_mxip(&ip,&asciihost,random)) { + case DNS_MEM: temp_nomem(); + case DNS_SOFT: temp_dns(); + case DNS_HARD: perm_dns(); +--- /dev/null ++++ netqmail-1.06/qmail-smtpd.c +@@ -273,6 +273,7 @@ + stralloc rcptto = {0}; + stralloc fuser = {0}; + stralloc mfparms = {0}; ++int smtputf8 = 0; + + int mailfrom_size(arg) char *arg; + { +@@ -323,6 +324,7 @@ + while (len) { + arg++; len--; + if (*arg == ' ' || *arg == '\0' ) { ++ if (case_starts(mfparms.s,"SMTPUTF8")) smtputf8 = 1; + if (case_starts(mfparms.s,"SIZE=")) if (mailfrom_size(mfparms.s+5)) { flagsize = 1; return; } + if (case_starts(mfparms.s,"AUTH=")) mailfrom_auth(mfparms.s+5,mfparms.len-5); + if (!stralloc_copys(&mfparms,"")) die_nomem; +@@ -351,7 +353,7 @@ + out("\r\n250-STARTTLS"); + #endif + size[fmt_ulong(size,(unsigned int) databytes)] = 0; +- out("\r\n250-PIPELINING\r\n250-8BITMIME\r\n"); ++ out("\r\n250-PIPELINING\r\n250-SMTPUTF8\r\n250-8BITMIME\r\n"); + out("250-SIZE "); out(size); out("\r\n"); + #ifdef CRAM_MD5 + out("250 AUTH LOGIN PLAIN CRAM-MD5\r\n"); +@@ -516,7 +518,15 @@ + if (qmail_open(&qqt) == -1) { err_qqt(); return; } + qp = qmail_qp(&qqt); + out("354 go ahead\r\n"); +- ++ ++ if (smtputf8) { ++ stralloc utf8proto = {0}; ++ if ('E' == *protocol) protocol++; ++ if (!stralloc_copys(&utf8proto, "UTF8")) die_nomem(); ++ if (!stralloc_cats(&utf8proto, protocol)) die_nomem(); ++ utf8proto.s[utf8proto.len] = '\0'; ++ protocol = utf8proto.s; ++ } + received(&qqt,protocol,local,remoteip,remotehost,remoteinfo,fakehelo); + blast(&hops); + hops = (hops >= MAXHOPS); + diff --git a/mail-mta/netqmail/files/use-new-path-for-functions.sh.patch b/mail-mta/netqmail/files/use-new-path-for-functions.sh.patch new file mode 100644 index 000000000000..52f3d8e9a957 --- /dev/null +++ b/mail-mta/netqmail/files/use-new-path-for-functions.sh.patch @@ -0,0 +1,11 @@ +--- genqmail-20080406.orig/ssl/mkservercert.orig 2015-10-18 12:46:40.082559295 -0200 ++++ genqmail-20080406/ssl/mkservercert 2015-10-18 12:49:03.749576181 -0200 +@@ -5,7 +5,7 @@ + # Based on mkimapdcert from courier-imap. + + test -x /usr/bin/openssl || exit 0 +-source /etc/init.d/functions.sh || exit 1 ++source /lib/gentoo/functions.sh || exit 1 + + filedir="/var/qmail/control" + pemfile="${filedir}/servercert.pem" diff --git a/mail-mta/netqmail/metadata.xml b/mail-mta/netqmail/metadata.xml new file mode 100644 index 000000000000..7a28acdda64f --- /dev/null +++ b/mail-mta/netqmail/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>net-mail@gentoo.org</email> + <name>Net-Mail</name> + </maintainer> + <use> + <flag name="authcram">Enable AUTHCRAM support</flag> + <flag name="gencertdaily">Generate SSL certificates daily instead of + hourly</flag> + <flag name="highvolume">Prepare netqmail for high volume servers</flag> + </use> + <upstream> + <remote-id type="sourceforge">qmail-spp</remote-id> + </upstream> +</pkgmetadata> diff --git a/mail-mta/netqmail/netqmail-1.06-r1.ebuild b/mail-mta/netqmail/netqmail-1.06-r1.ebuild new file mode 100644 index 000000000000..1ae9ddbc91b1 --- /dev/null +++ b/mail-mta/netqmail/netqmail-1.06-r1.ebuild @@ -0,0 +1,161 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +GENQMAIL_PV=20080406 +QMAIL_SPP_PV=0.42 + +QMAIL_TLS_PV=20070417 +QMAIL_TLS_F=${PN}-1.05-tls-smtpauth-${QMAIL_TLS_PV}.patch + +QMAIL_BIGTODO_PV=103 +QMAIL_BIGTODO_F=big-todo.${QMAIL_BIGTODO_PV}.patch + +QMAIL_LARGE_DNS='qmail-103.patch' + +inherit eutils qmail + +DESCRIPTION="qmail -- a secure, reliable, efficient, simple message transfer agent" +HOMEPAGE=" + http://netqmail.org + http://cr.yp.to/qmail.html + http://qmail.org +" +SRC_URI="mirror://qmail/${P}.tar.gz + https://dev.gentoo.org/~hollow/distfiles/${GENQMAIL_F} + http://www.ckdhr.com/ckd/${QMAIL_LARGE_DNS} + !vanilla? ( + highvolume? ( mirror://qmail/${QMAIL_BIGTODO_F} ) + qmail-spp? ( mirror://sourceforge/qmail-spp/${QMAIL_SPP_F} ) + ssl? ( http://shupp.org/patches/${QMAIL_TLS_F} ) + ) +" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="authcram gencertdaily highvolume qmail-spp ssl vanilla" +REQUIRED_USE='vanilla? ( !ssl !qmail-spp !highvolume )' +RESTRICT="test" + +DEPEND=" + !mail-mta/qmail + net-mail/queue-repair + ssl? ( dev-libs/openssl ) +" +RDEPEND=" + !mail-mta/courier + !mail-mta/esmtp + !mail-mta/exim + !mail-mta/mini-qmail + !mail-mta/msmtp[mta] + !mail-mta/nullmailer + !mail-mta/postfix + !mail-mta/qmail-ldap + !mail-mta/sendmail + !<mail-mta/ssmtp-2.64-r2 + !>=mail-mta/ssmtp-2.64-r2[mta] + >=sys-apps/ucspi-tcp-0.88-r17 + ssl? ( >=sys-apps/ucspi-ssl-0.70-r1 ) + virtual/daemontools + >=net-mail/dot-forward-0.71-r3 + virtual/checkpassword + authcram? ( >=net-mail/cmd5checkpw-0.30 ) + ${DEPEND} +" + +pkg_setup() { + if [[ -n "${QMAIL_PATCH_DIR}" ]]; then + eerror + eerror "The QMAIL_PATCH_DIR variable for custom patches" + eerror "has been removed from ${PN}. If you need custom patches" + eerror "you should create a copy of this ebuild in an overlay." + eerror + die "QMAIL_PATCH_DIR is not supported anymore" + fi + + qmail_create_users +} + +src_unpack() { + genqmail_src_unpack + use qmail-spp && qmail_spp_src_unpack + + unpack ${P}.tar.gz +} + +src_prepare() { + epatch "${FILESDIR}"/${PV}-exit.patch + epatch "${FILESDIR}"/${PV}-readwrite.patch + epatch "${DISTDIR}"/${QMAIL_LARGE_DNS} + + ht_fix_file Makefile* + + if ! use vanilla; then + # This patch contains relative paths and needs to be cleaned up. + sed 's~^--- ../../~--- ~g' \ + <"${DISTDIR}"/${QMAIL_TLS_F} \ + >"${T}"/${QMAIL_TLS_F} + use ssl && epatch "${T}"/${QMAIL_TLS_F} + use highvolume && epatch "${DISTDIR}"/${QMAIL_BIGTODO_F} + + if use qmail-spp; then + if use ssl; then + epatch "${QMAIL_SPP_S}"/qmail-spp-smtpauth-tls-20060105.diff + else + epatch "${QMAIL_SPP_S}"/netqmail-spp.diff + fi + fi + fi + + qmail_src_postunpack + + # Fix bug #33818 but for netqmail (Bug 137015) + if ! use authcram; then + einfo "Disabled CRAM_MD5 support" + sed -e 's,^#define CRAM_MD5$,/*&*/,' -i "${S}"/qmail-smtpd.c + else + einfo "Enabled CRAM_MD5 support" + fi +} + +src_compile() { + qmail_src_compile + use qmail-spp && qmail_spp_src_compile +} + +src_install() { + qmail_src_install +} + +pkg_postinst() { + qmail_queue_setup + qmail_rootmail_fixup + qmail_tcprules_build + + qmail_config_notice + qmail_supervise_config_notice + elog + elog "If you are looking for documentation, check those links:" + elog "https://wiki.gentoo.org/wiki/Virtual_mail_hosting_with_qmail" + elog " -- qmail/vpopmail Virtual Mail Hosting System Guide" + elog "http://www.lifewithqmail.com/" + elog " -- Life with qmail" + elog +} + +pkg_preinst() { + qmail_tcprules_fixup +} + +pkg_config() { + # avoid some weird locale problems + export LC_ALL=C + + qmail_config_fast + qmail_tcprules_config + qmail_tcprules_build + + use ssl && qmail_ssl_generate +} diff --git a/mail-mta/netqmail/netqmail-1.06-r2.ebuild b/mail-mta/netqmail/netqmail-1.06-r2.ebuild new file mode 100644 index 000000000000..77aa72ee1424 --- /dev/null +++ b/mail-mta/netqmail/netqmail-1.06-r2.ebuild @@ -0,0 +1,169 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +GENQMAIL_PV=20080406 +QMAIL_SPP_PV=0.42 + +QMAIL_TLS_PV=20070417 +QMAIL_TLS_F=${PN}-1.05-tls-smtpauth-${QMAIL_TLS_PV}.patch +QMAIL_TLS_CVE=vu555316.patch + +QMAIL_BIGTODO_PV=103 +QMAIL_BIGTODO_F=big-todo.${QMAIL_BIGTODO_PV}.patch + +QMAIL_LARGE_DNS='qmail-103.patch' + +inherit eutils qmail + +DESCRIPTION="qmail -- a secure, reliable, efficient, simple message transfer agent" +HOMEPAGE=" + http://netqmail.org + http://cr.yp.to/qmail.html + http://qmail.org +" +SRC_URI="mirror://qmail/${P}.tar.gz + https://dev.gentoo.org/~hollow/distfiles/${GENQMAIL_F} + http://www.ckdhr.com/ckd/${QMAIL_LARGE_DNS} + http://inoa.net/qmail-tls/${QMAIL_TLS_CVE} + !vanilla? ( + highvolume? ( mirror://qmail/${QMAIL_BIGTODO_F} ) + qmail-spp? ( mirror://sourceforge/qmail-spp/${QMAIL_SPP_F} ) + ssl? ( http://shupp.org/patches/${QMAIL_TLS_F} ) + ) +" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="authcram gencertdaily highvolume qmail-spp ssl vanilla" +REQUIRED_USE='vanilla? ( !ssl !qmail-spp !highvolume )' +RESTRICT="test" + +DEPEND=" + !mail-mta/qmail + net-mail/queue-repair + ssl? ( dev-libs/openssl ) + sys-apps/groff +" +RDEPEND=" + !mail-mta/courier + !mail-mta/esmtp + !mail-mta/exim + !mail-mta/mini-qmail + !mail-mta/msmtp[mta] + !mail-mta/nullmailer + !mail-mta/postfix + !mail-mta/qmail-ldap + !mail-mta/sendmail + !<mail-mta/ssmtp-2.64-r2 + !>=mail-mta/ssmtp-2.64-r2[mta] + >=sys-apps/ucspi-tcp-0.88-r17 + ssl? ( >=sys-apps/ucspi-ssl-0.70-r1 ) + virtual/daemontools + >=net-mail/dot-forward-0.71-r3 + virtual/checkpassword + authcram? ( >=net-mail/cmd5checkpw-0.30 ) + ${DEPEND} +" + +pkg_setup() { + if [[ -n "${QMAIL_PATCH_DIR}" ]]; then + eerror + eerror "The QMAIL_PATCH_DIR variable for custom patches" + eerror "has been removed from ${PN}. If you need custom patches" + eerror "you should create a copy of this ebuild in an overlay." + eerror + die "QMAIL_PATCH_DIR is not supported anymore" + fi + + qmail_create_users +} + +src_unpack() { + genqmail_src_unpack + use qmail-spp && qmail_spp_src_unpack + + unpack ${P}.tar.gz +} + +src_prepare() { + epatch "${FILESDIR}"/${PV}-exit.patch + epatch "${FILESDIR}"/${PV}-readwrite.patch + epatch "${DISTDIR}"/${QMAIL_LARGE_DNS} + epatch "${FILESDIR}"/${PV}-fbsd-utmpx.patch + + ht_fix_file Makefile* + + if ! use vanilla; then + # This patch contains relative paths and needs to be cleaned up. + sed 's~^--- ../../~--- ~g' \ + <"${DISTDIR}"/${QMAIL_TLS_F} \ + >"${T}"/${QMAIL_TLS_F} + use ssl && epatch "${T}"/${QMAIL_TLS_F} + use ssl && epatch "${DISTDIR}"/${QMAIL_TLS_CVE} + use highvolume && epatch "${DISTDIR}"/${QMAIL_BIGTODO_F} + + if use qmail-spp; then + if use ssl; then + epatch "${QMAIL_SPP_S}"/qmail-spp-smtpauth-tls-20060105.diff + else + epatch "${QMAIL_SPP_S}"/netqmail-spp.diff + fi + cd "${WORKDIR}" + epatch "${FILESDIR}"/genqmail-20080406-ldflags.patch + cd - + fi + fi + + qmail_src_postunpack + + # Fix bug #33818 but for netqmail (Bug 137015) + if ! use authcram; then + einfo "Disabled CRAM_MD5 support" + sed -e 's,^#define CRAM_MD5$,/*&*/,' -i "${S}"/qmail-smtpd.c + else + einfo "Enabled CRAM_MD5 support" + fi +} + +src_compile() { + qmail_src_compile + use qmail-spp && qmail_spp_src_compile +} + +src_install() { + qmail_src_install +} + +pkg_postinst() { + qmail_queue_setup + qmail_rootmail_fixup + qmail_tcprules_build + + qmail_config_notice + qmail_supervise_config_notice + elog + elog "If you are looking for documentation, check those links:" + elog "https://wiki.gentoo.org/wiki/Virtual_mail_hosting_with_qmail" + elog " -- qmail/vpopmail Virtual Mail Hosting System Guide" + elog "http://www.lifewithqmail.com/" + elog " -- Life with qmail" + elog +} + +pkg_preinst() { + qmail_tcprules_fixup +} + +pkg_config() { + # avoid some weird locale problems + export LC_ALL=C + + qmail_config_fast + qmail_tcprules_config + qmail_tcprules_build + + use ssl && qmail_ssl_generate +} diff --git a/mail-mta/netqmail/netqmail-1.06-r3.ebuild b/mail-mta/netqmail/netqmail-1.06-r3.ebuild new file mode 100644 index 000000000000..d939d63049c3 --- /dev/null +++ b/mail-mta/netqmail/netqmail-1.06-r3.ebuild @@ -0,0 +1,172 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +GENQMAIL_PV=20080406 +QMAIL_SPP_PV=0.42 + +QMAIL_TLS_PV=20070417 +QMAIL_TLS_F=${PN}-1.05-tls-smtpauth-${QMAIL_TLS_PV}.patch +QMAIL_TLS_CVE=vu555316.patch + +QMAIL_BIGTODO_PV=103 +QMAIL_BIGTODO_F=big-todo.${QMAIL_BIGTODO_PV}.patch + +QMAIL_LARGE_DNS='qmail-103.patch' + +inherit eutils qmail + +DESCRIPTION="qmail -- a secure, reliable, efficient, simple message transfer agent" +HOMEPAGE=" + http://netqmail.org + http://cr.yp.to/qmail.html + http://qmail.org +" +SRC_URI="mirror://qmail/${P}.tar.gz + https://dev.gentoo.org/~hollow/distfiles/${GENQMAIL_F} + http://www.ckdhr.com/ckd/${QMAIL_LARGE_DNS} + http://inoa.net/qmail-tls/${QMAIL_TLS_CVE} + !vanilla? ( + highvolume? ( mirror://qmail/${QMAIL_BIGTODO_F} ) + qmail-spp? ( mirror://sourceforge/qmail-spp/${QMAIL_SPP_F} ) + ssl? ( http://shupp.org/patches/${QMAIL_TLS_F} ) + ) +" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="authcram gencertdaily highvolume libressl qmail-spp ssl vanilla" +REQUIRED_USE='vanilla? ( !ssl !qmail-spp !highvolume )' +RESTRICT="test" + +DEPEND=" + !mail-mta/qmail + net-mail/queue-repair + ssl? ( + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl ) + ) + sys-apps/groff +" +RDEPEND=" + !mail-mta/courier + !mail-mta/esmtp + !mail-mta/exim + !mail-mta/mini-qmail + !mail-mta/msmtp[mta] + !mail-mta/nullmailer + !mail-mta/postfix + !mail-mta/qmail-ldap + !mail-mta/sendmail + !<mail-mta/ssmtp-2.64-r2 + !>=mail-mta/ssmtp-2.64-r2[mta] + >=sys-apps/ucspi-tcp-0.88-r17 + ssl? ( >=sys-apps/ucspi-ssl-0.70-r1 ) + virtual/daemontools + >=net-mail/dot-forward-0.71-r3 + virtual/checkpassword + authcram? ( >=net-mail/cmd5checkpw-0.30 ) + ${DEPEND} +" + +pkg_setup() { + if [[ -n "${QMAIL_PATCH_DIR}" ]]; then + eerror + eerror "The QMAIL_PATCH_DIR variable for custom patches" + eerror "has been removed from ${PN}. If you need custom patches" + eerror "you should create a copy of this ebuild in an overlay." + eerror + die "QMAIL_PATCH_DIR is not supported anymore" + fi + + qmail_create_users +} + +src_unpack() { + genqmail_src_unpack + use qmail-spp && qmail_spp_src_unpack + + unpack ${P}.tar.gz +} + +src_prepare() { + epatch "${FILESDIR}"/${PV}-exit.patch + epatch "${FILESDIR}"/${PV}-readwrite.patch + epatch "${DISTDIR}"/${QMAIL_LARGE_DNS} + epatch "${FILESDIR}"/${PV}-fbsd-utmpx.patch + + ht_fix_file Makefile* + + if ! use vanilla; then + # This patch contains relative paths and needs to be cleaned up. + sed 's~^--- ../../~--- ~g' \ + <"${DISTDIR}"/${QMAIL_TLS_F} \ + >"${T}"/${QMAIL_TLS_F} + use ssl && epatch "${T}"/${QMAIL_TLS_F} + use ssl && epatch "${DISTDIR}"/${QMAIL_TLS_CVE} + use highvolume && epatch "${DISTDIR}"/${QMAIL_BIGTODO_F} + + if use qmail-spp; then + if use ssl; then + epatch "${QMAIL_SPP_S}"/qmail-spp-smtpauth-tls-20060105.diff + else + epatch "${QMAIL_SPP_S}"/netqmail-spp.diff + fi + cd "${WORKDIR}" + epatch "${FILESDIR}"/genqmail-20080406-ldflags.patch + cd - + fi + fi + + qmail_src_postunpack + + # Fix bug #33818 but for netqmail (Bug 137015) + if ! use authcram; then + einfo "Disabled CRAM_MD5 support" + sed -e 's,^#define CRAM_MD5$,/*&*/,' -i "${S}"/qmail-smtpd.c + else + einfo "Enabled CRAM_MD5 support" + fi +} + +src_compile() { + qmail_src_compile + use qmail-spp && qmail_spp_src_compile +} + +src_install() { + qmail_src_install +} + +pkg_postinst() { + qmail_queue_setup + qmail_rootmail_fixup + qmail_tcprules_build + + qmail_config_notice + qmail_supervise_config_notice + elog + elog "If you are looking for documentation, check those links:" + elog "https://wiki.gentoo.org/wiki/Virtual_mail_hosting_with_qmail" + elog " -- qmail/vpopmail Virtual Mail Hosting System Guide" + elog "http://www.lifewithqmail.com/" + elog " -- Life with qmail" + elog +} + +pkg_preinst() { + qmail_tcprules_fixup +} + +pkg_config() { + # avoid some weird locale problems + export LC_ALL=C + + qmail_config_fast + qmail_tcprules_config + qmail_tcprules_build + + use ssl && qmail_ssl_generate +} diff --git a/mail-mta/netqmail/netqmail-1.06-r4.ebuild b/mail-mta/netqmail/netqmail-1.06-r4.ebuild new file mode 100644 index 000000000000..7ccc3f851fa5 --- /dev/null +++ b/mail-mta/netqmail/netqmail-1.06-r4.ebuild @@ -0,0 +1,177 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +GENQMAIL_PV=20080406 +QMAIL_SPP_PV=0.42 + +QMAIL_TLS_PV=20070417 +QMAIL_TLS_F=${PN}-1.05-tls-smtpauth-${QMAIL_TLS_PV}.patch +QMAIL_TLS_CVE=vu555316.patch + +QMAIL_BIGTODO_PV=103 +QMAIL_BIGTODO_F=big-todo.${QMAIL_BIGTODO_PV}.patch + +QMAIL_LARGE_DNS='qmail-103.patch' + +inherit eutils qmail + +DESCRIPTION="qmail -- a secure, reliable, efficient, simple message transfer agent" +HOMEPAGE=" + http://netqmail.org + http://cr.yp.to/qmail.html + http://qmail.org +" +SRC_URI="mirror://qmail/${P}.tar.gz + https://dev.gentoo.org/~hollow/distfiles/${GENQMAIL_F} + http://www.ckdhr.com/ckd/${QMAIL_LARGE_DNS} + http://inoa.net/qmail-tls/${QMAIL_TLS_CVE} + !vanilla? ( + highvolume? ( mirror://qmail/${QMAIL_BIGTODO_F} ) + qmail-spp? ( mirror://sourceforge/qmail-spp/${QMAIL_SPP_F} ) + ssl? ( http://shupp.org/patches/${QMAIL_TLS_F} ) + ) +" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="authcram gencertdaily highvolume libressl qmail-spp ssl vanilla" +REQUIRED_USE='vanilla? ( !ssl !qmail-spp !highvolume )' +RESTRICT="test" + +DEPEND=" + !mail-mta/qmail + net-mail/queue-repair + ssl? ( + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl ) + ) + sys-apps/gentoo-functions + sys-apps/groff +" +RDEPEND=" + !mail-mta/courier + !mail-mta/esmtp + !mail-mta/exim + !mail-mta/mini-qmail + !mail-mta/msmtp[mta] + !mail-mta/nullmailer + !mail-mta/postfix + !mail-mta/qmail-ldap + !mail-mta/sendmail + !<mail-mta/ssmtp-2.64-r2 + !>=mail-mta/ssmtp-2.64-r2[mta] + >=sys-apps/ucspi-tcp-0.88-r17 + ssl? ( >=sys-apps/ucspi-ssl-0.70-r1 ) + virtual/daemontools + >=net-mail/dot-forward-0.71-r3 + virtual/checkpassword + authcram? ( >=net-mail/cmd5checkpw-0.30 ) + ${DEPEND} +" + +pkg_setup() { + if [[ -n "${QMAIL_PATCH_DIR}" ]]; then + eerror + eerror "The QMAIL_PATCH_DIR variable for custom patches" + eerror "has been removed from ${PN}. If you need custom patches" + eerror "you should create a copy of this ebuild in an overlay." + eerror + die "QMAIL_PATCH_DIR is not supported anymore" + fi + + qmail_create_users +} + +src_unpack() { + genqmail_src_unpack + use qmail-spp && qmail_spp_src_unpack + + unpack ${P}.tar.gz +} + +src_prepare() { + epatch "${FILESDIR}"/${PV}-exit.patch + epatch "${FILESDIR}"/${PV}-readwrite.patch + epatch "${DISTDIR}"/${QMAIL_LARGE_DNS} + epatch "${FILESDIR}"/${PV}-fbsd-utmpx.patch + + ht_fix_file Makefile* + + if ! use vanilla; then + # This patch contains relative paths and needs to be cleaned up. + sed 's~^--- ../../~--- ~g' \ + <"${DISTDIR}"/${QMAIL_TLS_F} \ + >"${T}"/${QMAIL_TLS_F} || die + use ssl && epatch "${T}"/${QMAIL_TLS_F} + use ssl && epatch "${DISTDIR}"/${QMAIL_TLS_CVE} + use highvolume && epatch "${DISTDIR}"/${QMAIL_BIGTODO_F} + + if use qmail-spp; then + if use ssl; then + epatch "${QMAIL_SPP_S}"/qmail-spp-smtpauth-tls-20060105.diff + else + epatch "${QMAIL_SPP_S}"/netqmail-spp.diff + fi + cd "${WORKDIR}" || die + epatch "${FILESDIR}"/genqmail-20080406-ldflags.patch + cd - || die + fi + fi + + cd "${WORKDIR}" || die + epatch "${FILESDIR}"/use-new-path-for-functions.sh.patch + cd - || die + + qmail_src_postunpack + + # Fix bug #33818 but for netqmail (Bug 137015) + if ! use authcram; then + einfo "Disabled CRAM_MD5 support" + sed -e 's,^#define CRAM_MD5$,/*&*/,' -i "${S}"/qmail-smtpd.c || die + else + einfo "Enabled CRAM_MD5 support" + fi +} + +src_compile() { + qmail_src_compile + use qmail-spp && qmail_spp_src_compile +} + +src_install() { + qmail_src_install +} + +pkg_postinst() { + qmail_queue_setup + qmail_rootmail_fixup + qmail_tcprules_build + + qmail_config_notice + qmail_supervise_config_notice + elog + elog "If you are looking for documentation, check those links:" + elog "https://wiki.gentoo.org/wiki/Virtual_mail_hosting_with_qmail" + elog " -- qmail/vpopmail Virtual Mail Hosting System Guide" + elog "http://www.lifewithqmail.com/" + elog " -- Life with qmail" + elog +} + +pkg_preinst() { + qmail_tcprules_fixup +} + +pkg_config() { + # avoid some weird locale problems + export LC_ALL=C + + qmail_config_fast + qmail_tcprules_config + qmail_tcprules_build + + use ssl && qmail_ssl_generate +} diff --git a/mail-mta/netqmail/netqmail-1.06-r5.ebuild b/mail-mta/netqmail/netqmail-1.06-r5.ebuild new file mode 100644 index 000000000000..54751d00c833 --- /dev/null +++ b/mail-mta/netqmail/netqmail-1.06-r5.ebuild @@ -0,0 +1,182 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +GENQMAIL_PV=20080406 +QMAIL_SPP_PV=0.42 + +QMAIL_TLS_PV=20070417 +QMAIL_TLS_F=${PN}-1.05-tls-smtpauth-${QMAIL_TLS_PV}.patch +QMAIL_TLS_CVE=vu555316.patch + +QMAIL_BIGTODO_PV=103 +QMAIL_BIGTODO_F=big-todo.${QMAIL_BIGTODO_PV}.patch + +QMAIL_LARGE_DNS='qmail-103.patch' + +QMAIL_SMTPUTF8='qmail-smtputf8.patch' + +inherit eutils qmail + +DESCRIPTION="qmail -- a secure, reliable, efficient, simple message transfer agent" +HOMEPAGE=" + http://netqmail.org + http://cr.yp.to/qmail.html + http://qmail.org +" +SRC_URI="mirror://qmail/${P}.tar.gz + https://dev.gentoo.org/~hollow/distfiles/${GENQMAIL_F} + http://www.ckdhr.com/ckd/${QMAIL_LARGE_DNS} + http://inoa.net/qmail-tls/${QMAIL_TLS_CVE} + http://arnt.gulbrandsen.priv.no/qmail/qmail-smtputf8.patch + !vanilla? ( + highvolume? ( mirror://qmail/${QMAIL_BIGTODO_F} ) + qmail-spp? ( mirror://sourceforge/qmail-spp/${QMAIL_SPP_F} ) + ssl? ( http://shupp.org/patches/${QMAIL_TLS_F} ) + ) +" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86" +IUSE="authcram gencertdaily highvolume libressl qmail-spp ssl vanilla" +REQUIRED_USE='vanilla? ( !ssl !qmail-spp !highvolume )' +RESTRICT="test" + +DEPEND=" + !mail-mta/qmail + net-mail/queue-repair + ssl? ( + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl ) + ) + sys-apps/gentoo-functions + sys-apps/groff + net-dns/libidn2 +" +RDEPEND=" + !mail-mta/courier + !mail-mta/esmtp + !mail-mta/exim + !mail-mta/mini-qmail + !mail-mta/msmtp[mta] + !mail-mta/nullmailer + !mail-mta/postfix + !mail-mta/qmail-ldap + !mail-mta/sendmail + !<mail-mta/ssmtp-2.64-r2 + !>=mail-mta/ssmtp-2.64-r2[mta] + >=sys-apps/ucspi-tcp-0.88-r17 + ssl? ( >=sys-apps/ucspi-ssl-0.70-r1 ) + virtual/daemontools + >=net-mail/dot-forward-0.71-r3 + virtual/checkpassword + authcram? ( >=net-mail/cmd5checkpw-0.30 ) + ${DEPEND} +" + +pkg_setup() { + if [[ -n "${QMAIL_PATCH_DIR}" ]]; then + eerror + eerror "The QMAIL_PATCH_DIR variable for custom patches" + eerror "has been removed from ${PN}. If you need custom patches" + eerror "you should create a copy of this ebuild in an overlay." + eerror + die "QMAIL_PATCH_DIR is not supported anymore" + fi + + qmail_create_users +} + +src_unpack() { + genqmail_src_unpack + use qmail-spp && qmail_spp_src_unpack + + unpack ${P}.tar.gz +} + +src_prepare() { + epatch "${FILESDIR}"/${PV}-exit.patch + epatch "${FILESDIR}"/${PV}-readwrite.patch + epatch "${DISTDIR}"/${QMAIL_LARGE_DNS} + epatch "${FILESDIR}"/${PV}-fbsd-utmpx.patch + + ht_fix_file Makefile* + + if ! use vanilla; then + # This patch contains relative paths and needs to be cleaned up. + sed 's~^--- ../../~--- ~g' \ + <"${DISTDIR}"/${QMAIL_TLS_F} \ + >"${T}"/${QMAIL_TLS_F} || die + use ssl && epatch "${T}"/${QMAIL_TLS_F} + use ssl && epatch "${DISTDIR}"/${QMAIL_TLS_CVE} + use highvolume && epatch "${DISTDIR}"/${QMAIL_BIGTODO_F} + + if use qmail-spp; then + if use ssl; then + epatch "${QMAIL_SPP_S}"/qmail-spp-smtpauth-tls-20060105.diff + else + epatch "${QMAIL_SPP_S}"/netqmail-spp.diff + fi + cd "${WORKDIR}" || die + epatch "${FILESDIR}"/genqmail-20080406-ldflags.patch + cd - || die + fi + fi + + cd "${WORKDIR}" || die + epatch "${FILESDIR}"/use-new-path-for-functions.sh.patch + epatch "${FILESDIR}"/qmail-smtputf8.patch + cd - || die + + qmail_src_postunpack + + # Fix bug #33818 but for netqmail (Bug 137015) + if ! use authcram; then + einfo "Disabled CRAM_MD5 support" + sed -e 's,^#define CRAM_MD5$,/*&*/,' -i "${S}"/qmail-smtpd.c || die + else + einfo "Enabled CRAM_MD5 support" + fi +} + +src_compile() { + qmail_src_compile + use qmail-spp && qmail_spp_src_compile +} + +src_install() { + qmail_src_install +} + +pkg_postinst() { + qmail_queue_setup + qmail_rootmail_fixup + qmail_tcprules_build + + qmail_config_notice + qmail_supervise_config_notice + elog + elog "If you are looking for documentation, check those links:" + elog "https://wiki.gentoo.org/wiki/Virtual_mail_hosting_with_qmail" + elog " -- qmail/vpopmail Virtual Mail Hosting System Guide" + elog "http://www.lifewithqmail.com/" + elog " -- Life with qmail" + elog +} + +pkg_preinst() { + qmail_tcprules_fixup +} + +pkg_config() { + # avoid some weird locale problems + export LC_ALL=C + + qmail_config_fast + qmail_tcprules_config + qmail_tcprules_build + + use ssl && qmail_ssl_generate +} diff --git a/mail-mta/netqmail/netqmail-1.06.ebuild b/mail-mta/netqmail/netqmail-1.06.ebuild new file mode 100644 index 000000000000..9860351a1fa0 --- /dev/null +++ b/mail-mta/netqmail/netqmail-1.06.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +GENQMAIL_PV=20080406 +QMAIL_SPP_PV=0.42 + +QMAIL_TLS_PV=20070417 +QMAIL_TLS_F=${PN}-1.05-tls-smtpauth-${QMAIL_TLS_PV}.patch + +QMAIL_BIGTODO_PV=103 +QMAIL_BIGTODO_F=big-todo.${QMAIL_BIGTODO_PV}.patch + +inherit eutils qmail + +DESCRIPTION="qmail -- a secure, reliable, efficient, simple message transfer agent" +HOMEPAGE=" + http://netqmail.org + http://cr.yp.to/qmail.html + http://qmail.org +" +SRC_URI="mirror://qmail/${P}.tar.gz + https://dev.gentoo.org/~hollow/distfiles/${GENQMAIL_F} + !vanilla? ( + highvolume? ( mirror://qmail/${QMAIL_BIGTODO_F} ) + qmail-spp? ( mirror://sourceforge/qmail-spp/${QMAIL_SPP_F} ) + ssl? ( http://shupp.org/patches/${QMAIL_TLS_F} ) + ) +" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="authcram gencertdaily highvolume qmail-spp ssl vanilla" +RESTRICT="test" + +DEPEND=" + !mail-mta/qmail + net-mail/queue-repair + ssl? ( dev-libs/openssl ) +" +RDEPEND=" + !mail-mta/courier + !mail-mta/esmtp + !mail-mta/exim + !mail-mta/mini-qmail + !mail-mta/msmtp + !mail-mta/nullmailer + !mail-mta/postfix + !mail-mta/qmail-ldap + !mail-mta/sendmail + !mail-mta/ssmtp + >=sys-apps/ucspi-tcp-0.88-r17 + ssl? ( >=sys-apps/ucspi-ssl-0.70-r1 ) + virtual/daemontools + >=net-mail/dot-forward-0.71-r3 + virtual/checkpassword + authcram? ( >=net-mail/cmd5checkpw-0.30 ) + ${DEPEND} +" + +pkg_setup() { + if [[ -n "${QMAIL_PATCH_DIR}" ]]; then + eerror + eerror "The QMAIL_PATCH_DIR variable for custom patches" + eerror "has been removed from ${PN}. If you need custom patches" + eerror "you should create a copy of this ebuild in an overlay." + eerror + die "QMAIL_PATCH_DIR is not supported anymore" + fi + + qmail_create_users +} + +src_unpack() { + genqmail_src_unpack + use qmail-spp && qmail_spp_src_unpack + + unpack ${P}.tar.gz + cd "${S}" + + epatch "${FILESDIR}"/${PV}-exit.patch + epatch "${FILESDIR}"/${PV}-readwrite.patch + + ht_fix_file Makefile* + + if ! use vanilla; then + use ssl && epatch "${DISTDIR}"/${QMAIL_TLS_F} + use highvolume && epatch "${DISTDIR}"/${QMAIL_BIGTODO_F} + + if use qmail-spp; then + if use ssl; then + epatch "${QMAIL_SPP_S}"/qmail-spp-smtpauth-tls-20060105.diff + else + epatch "${QMAIL_SPP_S}"/netqmail-spp.diff + fi + fi + fi + + qmail_src_postunpack + + # Fix bug #33818 but for netqmail (Bug 137015) + if ! use authcram; then + einfo "Disabled CRAM_MD5 support" + sed -e 's,^#define CRAM_MD5$,/*&*/,' -i "${S}"/qmail-smtpd.c + else + einfo "Enabled CRAM_MD5 support" + fi +} + +src_compile() { + qmail_src_compile + use qmail-spp && qmail_spp_src_compile +} + +src_install() { + qmail_src_install +} + +pkg_postinst() { + qmail_queue_setup + qmail_rootmail_fixup + qmail_tcprules_build + + qmail_config_notice + qmail_supervise_config_notice + elog + elog "If you are looking for documentation, check those links:" + elog "https://wiki.gentoo.org/wiki/Virtual_mail_hosting_with_qmail" + elog " -- qmail/vpopmail Virtual Mail Hosting System Guide" + elog "http://www.lifewithqmail.com/" + elog " -- Life with qmail" + elog +} + +pkg_preinst() { + qmail_tcprules_fixup +} + +pkg_config() { + # avoid some weird locale problems + export LC_ALL=C + + qmail_config_fast + qmail_tcprules_config + qmail_tcprules_build + + use ssl && qmail_ssl_generate +} |