add missing dependencies.

This commit is contained in:
4fury-c3440d8
2021-10-14 06:44:02 +03:00
parent 4e5a883d49
commit def9ce9645
57 changed files with 1968 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
i = "-Wno-unused-function \
-Wno-unused-parameter \
-Wno-unused-result \
-Wno-cast-function-type \
"
def setup():
pisitools.cflags.add(i)
shelltools.system("NOCONFIGURE=1 ./autogen.sh")
autotools.configure("--disable-static")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
# pisitools.dodoc("AUTHORS")
@@ -0,0 +1,27 @@
From 8ceb0cf0191f8b374a7f05974b29c6242ce8f752 Mon Sep 17 00:00:00 2001
From: Damian Poddebniak <poddebniak@fh-muenster.de>
Date: Thu, 23 Jul 2020 19:24:45 +0200
Subject: [PATCH] Detect extra data after STARTTLS response and exit
---
src/low-level/imap/mailimap.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/low-level/imap/mailimap.c b/src/low-level/imap/mailimap.c
index bb17119d..4ffcf55d 100644
--- a/src/low-level/imap/mailimap.c
+++ b/src/low-level/imap/mailimap.c
@@ -2428,6 +2428,13 @@ int mailimap_starttls(mailimap * session)
mailimap_response_free(response);
+ // Detect if the server send extra data after the STARTTLS response.
+ // This *may* be a "response injection attack".
+ if (session->imap_stream->read_buffer_len != 0) {
+ // Since it is also an IMAP protocol violation, exit.
+ return MAILIMAP_ERROR_STARTTLS;
+ }
+
switch (error_code) {
case MAILIMAP_RESP_COND_STATE_OK:
return MAILIMAP_NO_ERROR;
+69
View File
@@ -0,0 +1,69 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>libetpan</Name>
<Homepage>https://www.etpan.org/libetpan.html</Homepage>
<Packager>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Packager>
<License>custom</License>
<IsA>library</IsA>
<PartOf>network.library</PartOf>
<Summary>A portable middleware for email access.</Summary>
<Description>The purpose of this mail library is to provide a portable, efficient framework for different kinds of mail access: IMAP, SMTP, POP and NNTP.</Description>
<Archive sha1sum="cfdfe4329382a30afc5b540e258aaa950fabd25f" type="targz">
https://github.com/dinhvh/libetpan/archive/1.9.4.tar.gz
</Archive>
<BuildDependencies>
<Dependency>db-devel</Dependency>
<Dependency>curl-devel</Dependency>
<Dependency>expat-devel</Dependency>
<Dependency>gnutls-devel</Dependency>
<Dependency>openssl-devel</Dependency>
<Dependency>cyrus-sasl-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">Detect_extra_data_after_STARTTLS_response_and_exit.patch</Patch>
</Patches>
</Source>
<Package>
<Name>libetpan</Name>
<RuntimeDependencies>
<Dependency>db</Dependency>
<Dependency>openssl</Dependency>
<Dependency>cyrus-sasl</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
</Files>
</Package>
<Package>
<Name>libetpan-devel</Name>
<RuntimeDependencies>
<Dependency release="current">libetpan</Dependency>
<Dependency>db-devel</Dependency>
<Dependency>gnutls-devel</Dependency>
<Dependency>openssl-devel</Dependency>
<Dependency>cyrus-sasl-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2021-10-13</Date>
<Version>1.9.4</Version>
<Comment>First build.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
</History>
</PISI>