add missing dependencies.
This commit is contained in:
@@ -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")
|
||||
|
||||
+27
@@ -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;
|
||||
@@ -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>
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
#!/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 perlmodules
|
||||
|
||||
def setup():
|
||||
perlmodules.configure()
|
||||
|
||||
def build():
|
||||
perlmodules.make()
|
||||
|
||||
def check():
|
||||
perlmodules.make("test")
|
||||
|
||||
def install():
|
||||
perlmodules.install()
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
diff -uprw razor-agents-2.85.orig/Makefile.PL razor-agents-2.85/Makefile.PL
|
||||
--- razor-agents-2.85.orig/Makefile.PL 2007-05-09 01:47:53.000000000 +0300
|
||||
+++ razor-agents-2.85/Makefile.PL 2015-06-14 20:36:23.677213987 +0300
|
||||
@@ -140,9 +140,9 @@ sub MY::install {
|
||||
my $inherited = $self->SUPER::install(@_);
|
||||
|
||||
my $man5 = q{ \\
|
||||
- $(INST_MAN5DIR) $(INSTALLMAN5DIR)};
|
||||
+ "$(INST_MAN5DIR)" "$(INSTALLMAN5DIR)"};
|
||||
|
||||
- $inherited =~ s/(\$\((?:DEST)?INSTALL\w*MAN1DIR\))/$1$man5/gm;
|
||||
+ $inherited =~ s/("?\$\((?:DEST)?INSTALL\w*MAN1DIR\)"?)/$1$man5/gm;
|
||||
|
||||
return $inherited;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
--- a/lib/Razor2/Client/Version.pm 2007-05-10 22:32:10.000000000 +0200
|
||||
+++ b/lib/Razor2/Client/Version.pm 2010-03-25 11:11:36.911409707 +0100
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
$PROTOCOL = 3;
|
||||
|
||||
-$VERSION = '2.84';
|
||||
+$VERSION = '2.85';
|
||||
|
||||
1;
|
||||
|
||||
--- a/META.yml 2007-05-23 20:29:34.000000000 +0200
|
||||
+++ b/META.yml 2010-03-25 11:11:43.691408628 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
# http://module-build.sourceforge.net/META-spec.html
|
||||
#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
|
||||
name: razor-agents
|
||||
-version: 2.84
|
||||
+version: 2.85
|
||||
version_from: lib/Razor2/Client/Version.pm
|
||||
installdirs: site
|
||||
requires:
|
||||
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>razor</Name>
|
||||
<Homepage>http://razor.sourceforge.net/</Homepage>
|
||||
<Packager>
|
||||
<Name>fury</Name>
|
||||
<Email>uglyside@yandex.ru</Email>
|
||||
</Packager>
|
||||
<License>PerlArtistic</License>
|
||||
<IsA>app</IsA>
|
||||
<PartOf>network.mail</PartOf>
|
||||
<Summary>Razor is a distributed, collaborative, spam detection and filtering network.</Summary>
|
||||
<Description>Vipul's Razor is a distributed, collaborative, spam detection and filtering network. Through user contribution, Razor establishes a distributed and constantly updating catalogue of spam in propagation that is consulted by email clients to filter out known spam. Detection is done with statistical and randomized signatures that efficiently spot mutating spam content. User input is validated through reputation assignments based on consensus on report and revoke assertions which in turn is used for computing confidence values associated with individual signatures.</Description>
|
||||
<Archive sha1sum="bf5797ae9faf20f7e3635883767a95cdf0739ba9" type="tarbz2">
|
||||
mirrors://sourceforge/project/razor/razor-agents/2.85/razor-agents-2.85.tar.bz2
|
||||
</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>perl</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">makefile_quoting_fix.patch</Patch>
|
||||
<Patch level="1">version_fix.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>razor</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>perl</Dependency>
|
||||
<Dependency>perl-URI</Dependency>
|
||||
<Dependency>perl-Net-DNS</Dependency>
|
||||
<Dependency>perl-Digest-SHA1</Dependency>
|
||||
<Dependency>perl-Digest-Nilsimsa</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib/perl5</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2021-09-18</Date>
|
||||
<Version>2.85</Version>
|
||||
<Comment>First build.</Comment>
|
||||
<Name>fury</Name>
|
||||
<Email>uglyside@yandex.ru</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
|
||||
Reference in New Issue
Block a user