summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormezcal2015-07-16 09:19:08 +0200
committermezcal2015-07-16 09:19:08 +0200
commitfe614abc085764dd246b629625a570a0d7d4517c (patch)
treecaac02f2f5a04ef8ebfc65ae38fe299cc1ba46e8
downloadaur-fe614abc085764dd246b629625a570a0d7d4517c.tar.gz
Package imported from AUR3
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD48
-rw-r--r--esets.install30
-rw-r--r--esets.service11
4 files changed, 104 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e46c4750b56
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = esets
+ pkgdesc = ESET Mail Security provides comercial Antivirus and Antispam
+ pkgver = 4.0.10
+ pkgrel = 1
+ url = http://www.eset.com/
+ install = esets.install
+ arch = i686
+ arch = x86_64
+ license = ESET
+ backup = etc/opt/eset/esets/esets.cfg
+ source = http://:@download.eset.com/download/unix/esets..tgz.bin
+ source = esets.service
+
+pkgname = esets
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6b518756610
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# $Id$
+# Contributor: filip <fila pruda.com>
+
+pkgname=esets
+pkgver=4.0.10
+pkgrel=1
+pkgdesc="ESET Mail Security provides comercial Antivirus and Antispam"
+arch=('i686' 'x86_64')
+license=(ESET)
+url="http://www.eset.com/"
+[ "$CARCH" = "i686" ] && depends=()
+[ "$CARCH" = "x86_64" ] && depends=('lib32-glibc')
+backup=(etc/opt/eset/esets/esets.cfg)
+install=$pkgname.install
+options=()
+
+
+[ "$CARCH" = "i686" ] && _arch=i386
+[ "$CARCH" = "x86_64" ] && _arch=amd64
+
+#fill your username and password
+_username=
+_password=
+
+source=("http://$_username:$_password@download.eset.com/download/unix/esets.$_arch.tgz.bin" "esets.service")
+
+[ "$CARCH" = "i686" ] && md5sums=('d6040b2923e107d871cc7fabddecf05b' '8140d3acd8021b81adc67acf8a34ddc2')
+[ "$CARCH" = "x86_64" ] && md5sums=('bce9a4da472e36a08fba827675ba7416' '8140d3acd8021b81adc67acf8a34ddc2')
+
+
+
+build() {
+
+ tail -n +`awk '/^exit$/ { print NR + 1; exit }' "esets.$_arch.tgz.bin"` "esets.$_arch.tgz.bin" > "esets-$pkgver.$_arch.tgz"
+ tar xfz "esets-$pkgver.$_arch.tgz"
+
+}
+
+
+package() {
+
+ cd "$pkgdir"
+ cpio -iumd --quiet < "$srcdir/epkg.cpio"
+
+ rm -rf "etc/init.d"
+ install -D -m644 "$srcdir/esets.service" "usr/lib/systemd/system/esets.service"
+
+}
diff --git a/esets.install b/esets.install
new file mode 100644
index 00000000000..3ccf74555fb
--- /dev/null
+++ b/esets.install
@@ -0,0 +1,30 @@
+
+post_install() {
+
+ ELIC="/opt/eset/esets/sbin/esets_lic"
+ CFG_FILE="/etc/opt/eset/esets/esets.cfg"
+ GUIDE_FILE="/opt/eset/esets/share/doc/guide_*.txt.gz"
+
+ echo ""
+ echo "To COMPLETED INSTALLATION or UPDATING the Product:"
+ echo " * Import the license file: $ELIC --import file.lic"
+ echo " * Enter acquired username/password information into the global section"
+ echo " of main configuration file $CFG_FILE"
+ echo ""
+ echo "To KEEP your KNOWLEDGE Up-To-Date:"
+ echo " * Read the User's Guide ${GUIDE_FILE}."
+ echo " * Read manual page esets.cfg(5) (use 'man esets.cfg')."
+ echo ""
+ echo "To REPORT Bugs or Problems:"
+ echo " * Please, visit: www.eset.com/support"
+ echo ""
+
+
+}
+
+
+pre_remove() {
+ getent passwd esets &>/dev/null && userdel esets >/dev/null
+ getent group esets &>/dev/null && groupdel esets >/dev/null
+ true
+}
diff --git a/esets.service b/esets.service
new file mode 100644
index 00000000000..da3b78695aa
--- /dev/null
+++ b/esets.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=ESET Security Daemon
+
+[Service]
+Type=forking
+ExecStart=/opt/eset/esets/sbin/esets_daemon
+ExecReload=/bin/kill -HUP $MAINPID
+PIDFile=/var/run/esets_daemon.pid
+
+[Install]
+WantedBy=multi-user.target