aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTF2022-01-10 11:33:00 +0100
committerTF2022-01-11 14:20:40 +0100
commit2c962d16fa5e7dac9b8dc475282d0cf8da74a301 (patch)
treecac20bdf51792b961eb09938995600a59f35571c
downloadaur-2c962d16fa5e7dac9b8dc475282d0cf8da74a301.tar.gz
initial version: 11.2.0.4528-1
Signed-off-by: TF <mail@sedi.one>
-rw-r--r--.SRCINFO32
-rw-r--r--.gitignore3
-rw-r--r--LICENSE339
-rw-r--r--PKGBUILD96
-rw-r--r--README.md2
-rw-r--r--kesl-gui.install19
-rw-r--r--kesl.changelog182
-rw-r--r--kesl.ini44
-rw-r--r--kesl.install120
9 files changed, 837 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..6ffff473a370
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = kesl
+ pkgdesc = Kaspersky Endpoint Security 11.2.0 for Linux
+ pkgver = 11.2.0.4528
+ pkgrel = 1
+ url = https://www.kaspersky.de/small-to-medium-business-security/endpoint-linux
+ install = kesl.install
+ changelog = kesl.changelog
+ arch = x86_64
+ license = custom
+ depends = perl
+ conflicts = eea
+ conflicts = esets
+ conflicts = eea-dkms
+ conflicts = eea7-dkms
+ noextract = kesl_11.2.0-4528_amd64.deb
+ noextract = kesl-gui_11.2.0-4528_amd64.deb
+ options = !strip
+ source = https://products.s.kaspersky-labs.com/endpoints/keslinux10/11.2.0.4528/multilanguage-11.2.0.4528/3437313131347c44454c7c31/kesl_11.2.0-4528_amd64.deb
+ source = https://products.s.kaspersky-labs.com/endpoints/keslinux10/11.2.0.4528/multilanguage-11.2.1.4528/3437373638347c44454c7c4e554c4c/kesl-gui_11.2.0-4528_amd64.deb
+ source = kesl.install
+ source = kesl.ini
+ sha256sums = 44aef3025d9c440a87effa684169057d4a50d31dca9cc1e2e1d91a2cd42f6160
+ sha256sums = dc2c5c82cac25ba6ebf02220deb5c40fd2035bd24e74a62fb6d0bf3933e7db31
+ sha256sums = cb38324aa6740235b47a10d992a25d73d40676aa35b9e49cdb5822fa0d3228f5
+ sha256sums = 8c69e0f55258d08ffaa1a9bed483ad4ff248b2fd2b73f47f00a231a01f791c07
+
+pkgname = kesl
+
+pkgname = kesl-gui
+ pkgdesc = Kaspersky Endpoint Security 11.2.0 for Linux (GUI)
+ install = kesl-gui.install
+ depends = kesl
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..a12ffb857a64
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/dl.url
+*.deb
+*.zst
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000000..d159169d1050
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..62ab09f6e8ac
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,96 @@
+# Maintainer: TF <mail | at | sedi [DOT] one>
+pkgname=('kesl' 'kesl-gui')
+pkgver=11.2.0.4528
+pkgver_gui=11.2.1.4528
+_pkgverbuild=$(echo ${pkgver} | cut -d "." -f 4)
+_pkgver=$(echo ${pkgver} | cut -d "." -f 1-3)
+pkgrel=1
+arch=('x86_64')
+pkgdesc='Kaspersky Endpoint Security 11.2.0 for Linux'
+url='https://www.kaspersky.de/small-to-medium-business-security/endpoint-linux'
+license=('custom')
+noextract=("kesl_${_pkgver}-${_pkgverbuild}_amd64.deb" "kesl-gui_${_pkgver}-${_pkgverbuild}_amd64.deb")
+depends=('perl')
+# stripping binaries and libs will break hash verify of the integrity check!
+options=("!strip")
+conflicts=( 'eea'
+ 'esets'
+ 'eea-dkms'
+ 'eea7-dkms')
+install=${pkgname}.install
+changelog=${pkgname}.changelog
+# https://www.kaspersky.com/small-to-medium-business-security/downloads/endpoint?ignoreredirects=true
+source=( "https://products.s.kaspersky-labs.com/endpoints/keslinux10/${pkgver}/multilanguage-${pkgver}/3437313131347c44454c7c31/kesl_${_pkgver}-${_pkgverbuild}_amd64.deb"
+ "https://products.s.kaspersky-labs.com/endpoints/keslinux10/${pkgver}/multilanguage-${pkgver_gui}/3437373638347c44454c7c4e554c4c/kesl-gui_${_pkgver}-${_pkgverbuild}_amd64.deb"
+ "${pkgname}.install"
+ "kesl.ini")
+sha256sums=('44aef3025d9c440a87effa684169057d4a50d31dca9cc1e2e1d91a2cd42f6160'
+ 'dc2c5c82cac25ba6ebf02220deb5c40fd2035bd24e74a62fb6d0bf3933e7db31'
+ 'cb38324aa6740235b47a10d992a25d73d40676aa35b9e49cdb5822fa0d3228f5'
+ '8c69e0f55258d08ffaa1a9bed483ad4ff248b2fd2b73f47f00a231a01f791c07')
+
+package_kesl() {
+ # prepare dirs
+ mkdir -p ${pkgdir}/usr/src
+ mkdir -p ${pkgdir}/etc/init.d
+
+ KESLIDIR=${pkgdir}/var/opt/kaspersky/kesl/install
+
+ # uncompress base packages
+ bsdtar -xf kesl_${_pkgver}-${_pkgverbuild}_amd64.deb
+ bsdtar -xf data.tar.xz -C ${pkgdir}/
+
+ # install deb post/pre scripts
+ [ ! -d "${pkgdir}/var/opt/kaspersky/kesl/pkgscripts" ] && mkdir -p ${pkgdir}/var/opt/kaspersky/kesl/pkgscripts
+ bsdtar -xf control.tar.gz -C ${pkgdir}/var/opt/kaspersky/kesl/pkgscripts
+ cp kesl.ini ${pkgdir}/var/opt/kaspersky/kesl/pkgscripts/
+
+ # /usr/local/share/man is owned by pkg filesystem
+ mv ${KESLIDIR}/usr/local/share ${KESLIDIR}/usr/
+ chmod 755 -R ${KESLIDIR}/usr/
+ rm -rf ${KESLIDIR}/usr/local/ ${pkgdir}/usr/local
+
+ # man pages
+ [ ! -d ${KESLIDIR}/usr/local/share/man/man1 ] && mkdir -p ${KESLIDIR}/usr/local/share/man/man1
+ for m in $(find ${KESLIDIR}/usr/share/man/man1 -maxdepth 1 -mindepth 1 -type f);do
+ ln -s /usr/share/man/man1/${m/*\/} ${KESLIDIR}/usr/local/share/man/man1/${m/*\/}
+ done
+ [ ! -d ${KESLIDIR}/usr/local/share/man/man5 ] && mkdir -p ${KESLIDIR}/usr/local/share/man/man5
+ for m in $(find ${KESLIDIR}/usr/share/man/man5 -maxdepth 1 -mindepth 1 -type f);do
+ ln -s /usr/share/man/man5/${m/*\/} ${KESLIDIR}/usr/local/share/man/man5/${m/*\/}
+ done
+
+ # install licenses
+ for lic in $(find ${pkgdir}/var/opt/kaspersky/kesl/install/opt/kaspersky/kesl/doc/ -maxdepth 1 -mindepth 1 -type f |grep license);do
+ install -Dm644 ${lic} "$pkgdir/usr/share/licenses/$pkgname/${lic/*\/}"
+ done
+}
+
+package_kesl-gui(){
+ pkgdesc='Kaspersky Endpoint Security 11.2.0 for Linux (GUI)'
+ depends=('kesl')
+ install=${pkgname}.install
+
+ KESLIDIR=${pkgdir}/var/opt/kaspersky/kesl/install
+
+ bsdtar -xf kesl-gui_${_pkgver}-${_pkgverbuild}_amd64.deb
+ bsdtar -xf data.tar.xz -C ${pkgdir}/
+
+ [ ! -d "${pkgdir}/var/opt/kaspersky/kesl-gui/pkgscripts" ] && mkdir -p ${pkgdir}/var/opt/kaspersky/kesl-gui/pkgscripts
+ bsdtar -xf control.tar.gz -C ${pkgdir}/var/opt/kaspersky/kesl-gui/pkgscripts
+
+ chmod 711 ${pkgdir}/var/opt/kaspersky/kesl/install/opt/ \
+ ${pkgdir}/var/opt/kaspersky/kesl/install/opt/kaspersky \
+ ${pkgdir}/var/opt/kaspersky/kesl/install/opt/kaspersky/kesl/ \
+ ${pkgdir}/var/opt/kaspersky/kesl/install/opt/kaspersky/kesl/shared/loc/
+
+ chmod 511 ${pkgdir}/var/opt/kaspersky/kesl/ \
+ ${pkgdir}/var/opt/kaspersky/kesl/install \
+ ${pkgdir}/var/opt/kaspersky/kesl/install/opt/kaspersky/kesl/bin/ \
+ ${pkgdir}/var/opt/kaspersky/kesl/install/opt/kaspersky/kesl/lib64/ \
+ ${pkgdir}/var/opt/kaspersky/kesl/install/opt/kaspersky/kesl/libexec/ \
+ ${pkgdir}/var/opt/kaspersky/kesl/install/opt/kaspersky/kesl/shared/ \
+ ${pkgdir}/var/opt/kaspersky/kesl/install/opt/kaspersky/kesl/shared/init/storage/
+
+ chmod 500 ${pkgdir}/var/opt/kaspersky/kesl/install/opt/kaspersky/kesl/shared/init/
+}
diff --git a/README.md b/README.md
new file mode 100644
index 000000000000..b256759119dc
--- /dev/null
+++ b/README.md
@@ -0,0 +1,2 @@
+# arch_kesl
+Arch package for Kaspersky Endpoint Security 11.2.0 for Linux
diff --git a/kesl-gui.install b/kesl-gui.install
new file mode 100644
index 000000000000..eaa6476d757e
--- /dev/null
+++ b/kesl-gui.install
@@ -0,0 +1,19 @@
+
+post_install(){
+ echo $FUNCNAME
+ /var/opt/kaspersky/kesl-gui/pkgscripts/postinst configure
+
+ # execute the kesl installer with preconfigured settings
+ echo -e "\e[32m\e[1m ... starting '/opt/kaspersky/kesl/bin/kesl-setup.pl' now\e[0m\n(no need to execute it again after installation has finished)."
+ /opt/kaspersky/kesl/bin/kesl-setup.pl --autoinstall=/var/opt/kaspersky/kesl/pkgscripts/kesl.ini
+}
+
+post_upgrade(){
+ post_install
+}
+
+pre_remove(){
+ echo $FUNCNAME
+ /var/opt/kaspersky/kesl-gui/pkgscripts/prerm remove
+}
+
diff --git a/kesl.changelog b/kesl.changelog
new file mode 100644
index 000000000000..32bab6e5495e
--- /dev/null
+++ b/kesl.changelog
@@ -0,0 +1,182 @@
+Kaspersky Endpoint Security 11.2.1 for Linux (11.2.0.4528) RELEASE NOTES
+==============================================================================
+Version released on: 14.07.2021
+
+Contents:
+ * What's new
+ * System requirements
+ * Installing the application
+ * Known issues and solutions
+ * Sources of information about the application
+
+
+What's new
+--------------------------------------------------------------------------------
+The following features and improvements have been implemented in Kaspersky Endpoint Security:
+
+Kaspersky Endpoint Security 11.2.1 for Linux:
+ * Added the ability to manage devices on which Kaspersky Endpoint Security is installed using Kaspersky Security Center Web Console and Kaspersky Security Center Cloud Console.
+
+Kaspersky Endpoint Security 11.2.0 for Linux:
+ * The ability to control application launches on user’s computers has been implemented (Application Control task).
+ * A task that obtains information about all the executable files of applications stored on the computers has been implemented (Inventory task).
+ * Support for integration with the CRI-O environment, the Podman and runc utilities is implemented.
+ * Application distribution kit includes files for building a container application (hereinafter referred to as KESL container) with a REST API for embedding into external systems.
+ * Integration with Kaspersky Managed Detection and Response (MDR) is implemented, which provides continuous search, detection and elimination of threats aimed at your organization.
+ * The Boot sector scan (Boot_Scan) and Process and kernel memory scan (Memory_Scan) tasks are moved to the new Critical area scan task (Critical_Areas_Scan), which allows you to scan startup objects, boot sectors, process memory, and kernel memory. Individual Boot sector scan (Boot_Scan) and Process and kernel memory scan (Memory_Scan) tasks have been removed.
+ * The ability to specify one of three priorities for the following tasks has been implemented: Virus scan, Custom scan, Inventory, and ContainerScan.
+ * Capability to enable generation of trace files at application startup is implemented.
+ * Support for working with policy profiles in Kaspersky Security Center is implemented.
+ * The proxy server settings used to connect to Kaspersky update servers and to custom update sources in the Update task have been removed.
+ * Updated the list of supported operating systems.
+
+
+System requirements
+--------------------------------------------------------------------------------
+Minimum hardware requirements for 32-bit operating systems:
+ * CPU: Core 2 Duo 1.86 GHz or higher
+ * Swap partition of at least 1 GB
+ * 1 GB of RAM
+ * 4 GB of free hard disk space for installation of the application and storage of temporary and log files.
+
+Minimum hardware requirements for 64-bit operating systems:
+ * CPU: Core 2 Duo 1.86 GHz or higher
+ * Swap partition of at least 1 GB
+ * 2 GB of RAM
+ * 4 GB of free hard disk space for installation of the application and storage of temporary and log files.
+
+Software requirements:
+
+1. Supported operating systems:
+ 32-bit operating systems:
+ * CentOS 6.7 and later
+ * Debian GNU / Linux 9.4 and later
+ * Debian GNU / Linux 10.1 and later
+ * Linux Mint 19 and later
+ * Mageia 4
+ * Red Hat® Enterprise Linux® 6.7 and later
+ * ALT Education 9
+ * ALT Workstation 9
+ * ALT Server 9
+ 64-bit operating systems:
+ * AlterOS 7.5 and later
+ * Amazon Linux 2
+ * Astra Linux 1.5 (generic and PaX kernel)
+ Astra Linux 1.6 (generic and PaX kernel)
+ Astra Linux Common Edition "Oryol" 2.12
+ * CentOS 6.7 and later
+ * CentOS 7.2 and later
+ * CentOS 8.0 and later
+ * Debian GNU / Linux 9.4 and later
+ * Debian GNU / Linux 10.1 and later
+ * Linux Mint 19 and later
+ * Linux Mint 20.1 and later
+ * openSUSE® Leap 15.0 and later
+ * Oracle Linux 7.3 and later
+ * Oracle Linux 8.0 and later
+ * Pardus OS 19.1
+ * Red Hat Enterprise Linux 6.7 and later
+ * Red Hat Enterprise Linux 7.2 and later
+ * Red Hat Enterprise Linux 8.0 and later
+ * SUSE® Linux Enterprise Server 15 and later
+ * Ubuntu 18.04 LTS and later
+ * Ubuntu 20.04 LTS
+ * ALT Education 9
+ * ALT Workstation 9
+ * ALT Server 9
+ * GosLinux 7.2
+ * Red OS 7.3
+2. Perl interpreter: version 5.10 or later (www.perl.org)
+3. Installed the which utility
+4. Packages for compiling application and running tasks (gcc, binutils, glibc, glibc-devel, make, ld, rpcbind) and operating system kernel source code for compiling application modules in the operating systems that do not support fanotify must be installed.
+5. Prior to installing the application and Network Agent on the SUSE Linux Enterprise Server 15 operating system, the insserv-compat package must be installed.
+6. The perl-Getopt-Long package must be installed for the Red Hat® Enterprise Linux® 8 and CentOS 8 operating systems.
+7. For the Web_Threat_Protection task to operate correctly with Mozilla Firefox, the browser version must be 58 or higher.
+8. Kaspersky Endpoint Security is compatible with the following Kaspersky Security Center versions:
+ * Kaspersky Security Center 10 Service Pack 3.
+ * Kaspersky Security Center 11
+ * Kaspersky Security Center 12
+ * Kaspersky Security Center 13
+ * Kaspersky Security Center 13.1
+
+
+Installing and updating the application
+--------------------------------------------------------------------------------
+Installing and updating the application is described in the online help: https://support.kaspersky.com/help/KES4Linux/11.2.1/en-US/197896.htm.
+
+After updating, Kaspersky Endpoint Security for Linux is started, even if it was stopped before the update process.
+
+
+Known issues and solutions
+--------------------------------------------------------------------------------
+* 2181748. Anti-Cryptor works with SMB1, SMB2, SMB3, and NFS3 protocols.
+
+* 1933381. The application may not be terminated correctly in the operating systems of the Red Hat® Enterprise Linux® 7.3 family when working with the NFS4 protocol.
+Possible solution: Configure the network partitions to use NFS3.
+
+* 1936085, 2038451. When the application is running in the operating systems of the Red Hat® Enterprise Linux® 7.2 family, files larger than 2 GB may be blocked.
+Possible solution: Upgrade the operating system to Red Hat® Enterprise Linux® 7.3 and later.
+
+* 2066268. When the application is running in the operating systems of the Red Hat® Enterprise Linux® 7 family and the CIFS (SMB1) protocol is used, files in remote network partitions can take a long time to be created.
+Possible solution: Switch to SMB2 protocol and disable CIFS oplock.
+
+* 2009503. If network connection is broken when the remote network partitions are actively used, delays in the operating system operation may occur.
+
+* 1709422. It may be impossible to scan a file whose name is specified in the encoding that differs from the operating system encoding using the scan-file command.
+Possible solution: Change the file name or configure a scan of the entire folder, or use the standard ODS task.
+
+* 1762651. The application may not process files in virtual pseudo-file systems.
+Possible solution: Use the mount command to connect network or local partitions.
+
+* In the Mageia 4 operating system, remote installation of Kaspersky Security Center package klnagent\kesl via the SSH protocol does not work.
+Possible solution: in the /etc/sudoers configuration file, remove the Defaults requiretty parameter.
+
+* 3908879. In the Red Hat® Enterprise Linux® 8 operating system, if the firewall blocks the SMB protocol, errors may occur when the application is unloaded or the File Threat Protection task is stopped.
+Possible solution: Remove the block of the SMB protocol for the mounted SMB partition.
+
+* 3883615. When using Docker container system, the threats inside the containers may not be intercepted immediately.
+
+* 3163038. When the value of the SizeLimit setting is changed from the command line, the current value is not changed until application restart.
+Possible solution: restart the application after changing this setting.
+
+* 3307326. The klnagent-astra package cannot be removed by Kaspersky Security Center tools.
+Possible solution: remove the package manually from the command line.
+
+* 3734131. In the Red Hat® Enterprise Linux® 8 operating system, firewall is managed through the iptables-legacy package.
+Possible solution: do not use nftables to manage the firewall rules.
+
+* 3710494. When using Docker container system, the application Storage contains only one instance of the malicious object for the containers started from one image.
+
+* 3275738. The Device Control (Device_Control) task does not block floppy discs connected using the ISA bus.
+
+* 3337145. When changing the user role from "admin" to "user" and vice versa, the new role will not be assigned until GUI is restarted. Restart the GUI to assign a new role.
+
+* 4084284. When the application is running on a special-purpose operating system "Astra Linux Special Edition" (release "Smolensk", version 1.5), numerous errors and performance slowdown may occur during the execution of the File Threat Protection (File_Threat_Protection) task.
+
+* If an SMB server is not responding in the Red Hat Enterprise Linux 8.1 operation system, it may cause the File Threat Protection (File_Threat_Protection) task to hang in the Starting or Stopping state.
+A possible solution is described in the Red Hat Knowledge Base article, "SMB: Processes do not exit when accessing an unresponsive SMB server" (https://access.redhat.com/solutions/4771201).
+
+* 4326124. When the "Stop" action is selected for the container (OnAccessContainerScanAction=StopContainer), the container may not be stopped if the File Threat Protection task has detected and removed a threat on the host before scanning the container. In this case, the File Threat Protection task does not detect this threat in the container during scan, and the container is not stopped.
+Possible solution: when using "union filesystems aufs" and "overlay" the application scans the files twice (the first time at the host filesystem level, and the second time at the union filesystem level). Thus it is recommended to add the container storage directory of the host filesystem (usually the /var/lib/docker or /var/lib/containers/storage directory) to the exclusions of the File Threat Protection task to improve performance.
+
+* 4686247. When the application is running in the Red Hat Enterprise Linux 6.7 operating systems, the Network Threat Protection task (Network_Threat_Protection) does not start.
+Possible solution: disable IPv6 addressing support using the ipv6.disable=1 kernel parameter and restart the operating system.
+
+* 4730506. When the application is running in systems that require the kernel interceptor module (redirfs) usage, the GPFS file system is excluded from scan.
+
+* Application Control does not work if the application is running in the operating systems that do not support the fanotify technology.
+
+* 5028782. If Private KSN usage is disabled in the Administration Server settings, the KSN participation settings specified in the policy are not passed to the user computers during their synchronization with the Administration Server.
+To pass the KSN participation settings, manually apply or activate the Kaspersky Endpoint Security 11.2.0 for Linux policy.
+
+
+Sources of information about the application
+--------------------------------------------------------------------------------
+The application page on the Kaspersky website: https://www.kaspersky.com/small-to-medium-business-security/endpoint-linux
+The application page on the Technical Support website (Knowledge Base): https://support.kaspersky.com/kes11linux
+Online help: https://support.kaspersky.com/help/KES4Linux/11.2.1/en-US/219385.htm
+Kaspersky community: https://community.kaspersky.com
+
+
+2021 AO Kaspersky Lab.
+
diff --git a/kesl.ini b/kesl.ini
new file mode 100644
index 000000000000..fa16b2133802
--- /dev/null
+++ b/kesl.ini
@@ -0,0 +1,44 @@
+# initial configuration file
+# all possible options: https://support.kaspersky.com/KES4Linux/11/en-US/184644.htm
+
+# auto acceppt EULA and privacy policy
+# /usr/share/licenses/kesl
+# License file: /opt/kaspersky/kesl/doc/ksn_license.de
+EULA_AGREED=Yes
+PRIVACY_POLICY_AGREED=Yes
+
+# Acceptance of the Kaspersky Security Network Statement
+# https://www.kaspersky.com/ksn
+USE_KSN=No
+
+# Start database update task during setup
+# Note: upgrading the database can take a LONG time while any other pacman
+# jobs will wait until this has been finished. It is recommended to do
+# this manually instead:
+# /opt/kaspersky/kesl/bin/kesl-control --start-task Update --progress
+UPDATE_EXECUTE=No
+
+# source for updates
+#UPDATER_SOURCE=KLServers
+
+# Automatic start of kernel module compilation (if no fanotify avail)
+KERNEL_SRCS_INSTALL=No
+
+# Enable the use of the graphical user interface
+USE_GUI=Yes
+
+# Proxy server for upgrading
+#PROXY_SERVER=
+
+# If the LOCALE setting is not specified, the system locale is set by default.
+#LOCALE=
+
+# Activation code or key file
+# Default (if unset) using current license. if there is no license use a trial instead
+#INSTALL_LICENSE=
+
+# Only users with the Administrator role have full access to Kaspersky
+# Endpoint Security management by command line and GUI.
+# Default (if unset) is none (i.e root only)
+# Package default is the user currently installing
+#ADMIN_USER=
diff --git a/kesl.install b/kesl.install
new file mode 100644
index 000000000000..1c5eb2718173
--- /dev/null
+++ b/kesl.install
@@ -0,0 +1,120 @@
+export TMPDIR=/tmp
+# avoid re-creating tmp dir when already exists
+[ -d "$KTMP" ] || KTMP=$(mktemp -d -t kesl.XXXXX)
+
+# man pages are special here:
+# 1) usr/local/share is protected (owned by filesystem package)
+# 2) when modding /opt/kaspersky/kesl/libexec/symlinks/man directly the hash will break and kesl won't work properly
+# 3) to be flexible for future changes we backup the symlink defs to tmp, replace, run installer, revert original
+# this ensures that the kesl install dir isn't tampered and future changes will be added automagically or by
+# extending the following func:
+man_pre(){
+ # man pages
+ cp /var/opt/kaspersky/kesl/install/opt/kaspersky/kesl/libexec/symlinks/man $KTMP/
+ sed -i 's#usr/local/#usr/#g' /var/opt/kaspersky/kesl/install/opt/kaspersky/kesl/libexec/symlinks/man
+}
+
+man_post(){
+ # revert man pages symlinks
+ cp $KTMP/man /var/opt/kaspersky/kesl/install/opt/kaspersky/kesl/libexec/symlinks/man
+ [ -d "/opt/kaspersky/kesl/libexec/symlinks" ] && cp $KTMP/man /opt/kaspersky/kesl/libexec/symlinks/man
+}
+
+# create all directories referenced by the kesl installer
+# no idea why this is not covered by it but this ensures nothing breaks during the install
+kesl_symlinks(){
+ man_pre
+ # create any directory expected to be there for symlinking
+ for sl in $(cat /var/opt/kaspersky/kesl/install/opt/kaspersky/kesl/libexec/symlinks/*);do
+ sld=$(dirname $sl)
+ [ ! -d $sld ] && mkdir -p $sld
+ done
+}
+
+kesl_updatedb(){
+ # upgrading the database can take a LONG time while any other pacman
+ # jobs would wait until this has been finished. It is recommended to do
+ # this manually:
+ echo -e "\n\n\e[93m\e[1mPlease update the AV database MANUALLY with the following command (or use the GUI):\e[0m\nsudo /opt/kaspersky/kesl/bin/kesl-control --start-task Update --progress\n\n"
+}
+
+pre_install(){
+ echo $FUNCNAME
+ # this always breaks post_install:
+ #/var/opt/kaspersky/kesl/pkgscripts/preinst install
+}
+
+post_install(){
+ echo $FUNCNAME
+
+ # load preconfiguration variables and export them
+ source /var/opt/kaspersky/kesl/pkgscripts/kesl.ini
+ for k in $(egrep -v "^#" /var/opt/kaspersky/kesl/pkgscripts/kesl.ini);do
+ key=${k/=*}; kkey="KESL_${key}"; v="${k/*=}"
+ export ${key}=$v ${kkey}=$v
+ done
+
+ kesl_symlinks
+
+ # manually add the link to /opt (really wondering why this is not covered
+ # anywhere but likely I am blind:
+ ln -s /var/opt/kaspersky/kesl/install/opt/kaspersky/kesl /opt/kaspersky/
+
+ # exec the debian package postinst
+ /var/opt/kaspersky/kesl/pkgscripts/postinst configure
+
+ man_post
+
+ # execute the kesl installer with preconfigured settings
+ echo -e "\e[32m\e[1m ... starting '/opt/kaspersky/kesl/bin/kesl-setup.pl' now\e[0m\n(no need to execute it again after installation has finished)."
+ /opt/kaspersky/kesl/bin/kesl-setup.pl --autoinstall=/var/opt/kaspersky/kesl/pkgscripts/kesl.ini
+
+ kesl-control -L --query
+
+ kesl_updatedb
+}
+
+pre_upgrade(){
+ echo $FUNCNAME
+ for k in $(egrep -v "^#" /var/opt/kaspersky/kesl/pkgscripts/kesl.ini);do
+ key=${k/=*}; kkey="KESL_${key}"; v="${k/*=}"
+ export ${key}=$v ${kkey}=$v
+ done
+
+ # exec the debian package preinst
+ man_pre
+ /var/opt/kaspersky/kesl/pkgscripts/preinst upgrade
+ man_post
+}
+
+post_upgrade(){
+ echo $FUNCNAME
+
+ # load preconfiguration variables and export them
+ source /var/opt/kaspersky/kesl/pkgscripts/kesl.ini
+ for k in $(egrep -v "^#" /var/opt/kaspersky/kesl/pkgscripts/kesl.ini);do
+ key=${k/=*}; kkey="KESL_${key}"; v="${k/*=}"
+ export ${key}=$v ${kkey}=$v
+ done
+ kesl_symlinks
+
+ # exec the debian package postinst
+ /var/opt/kaspersky/kesl/pkgscripts/preinst configure
+ man_post
+
+ kesl_updatedb
+}
+
+pre_remove(){
+ echo $FUNCNAME
+ # exec the debian package rm scripts (post_remove is too late)
+ /var/opt/kaspersky/kesl/pkgscripts/prerm remove
+ /var/opt/kaspersky/kesl/pkgscripts/postrm remove
+}
+
+post_remove(){
+ echo $FUNCNAME
+ rm -rf /etc/opt/kaspersky/ /opt/kaspersky/ /usr/share/licenses/kesl /var/opt/kaspersky
+}
+
+#rm -rf $KTMP/