summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormezcal2018-11-30 13:49:28 +0100
committermezcal2018-11-30 13:49:28 +0100
commitb7ff92c2b2c6d146c31cbced975fe54c5804f25f (patch)
treea03da992f937db243f605fa9907db50d9ba17d83
parent24ad74360e8058fdbdf7e4ca197e608460daf0f6 (diff)
downloadaur-esets.tar.gz
clean up
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD18
-rw-r--r--esets.service11
3 files changed, 10 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dff910ccfcd..d7b2751c805 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = esets
pkgdesc = ESET Mail Security provides comercial Antivirus and Antispam
pkgver = 4.5.11.0
- pkgrel = 1
+ pkgrel = 2
url = http://www.eset.com/
install = esets.install
arch = x86_64
@@ -9,10 +9,8 @@ pkgbase = esets
depends = lib32-glibc
backup = etc/opt/eset/esets/esets.cfg
source = http://:@download.eset.com/download/unix/esets.amd64.tgz.bin
- source = esets.service
source = esets.sysusers
md5sums = dd13190fadb01e4637777afe7a3b3153
- md5sums = 8140d3acd8021b81adc67acf8a34ddc2
md5sums = e68ea38f9bcaf5c3394051d04a6f4e65
pkgname = esets
diff --git a/PKGBUILD b/PKGBUILD
index 160f23f4e1c..9fd8056722f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=esets
pkgver=4.5.11.0
-pkgrel=1
+pkgrel=2
pkgdesc="ESET Mail Security provides comercial Antivirus and Antispam"
arch=('x86_64')
license=('ESET')
@@ -17,9 +17,9 @@ options=()
_username=
_password=
-source=("http://$_username:$_password@download.eset.com/download/unix/esets.amd64.tgz.bin" "esets.service" "esets.sysusers")
+source=("http://$_username:$_password@download.eset.com/download/unix/esets.amd64.tgz.bin" "esets.sysusers")
-md5sums=('dd13190fadb01e4637777afe7a3b3153' '8140d3acd8021b81adc67acf8a34ddc2' 'e68ea38f9bcaf5c3394051d04a6f4e65')
+md5sums=('dd13190fadb01e4637777afe7a3b3153' 'e68ea38f9bcaf5c3394051d04a6f4e65')
@@ -27,18 +27,18 @@ build() {
tail -n +`awk '/^exit$/ { print NR + 1; exit }' "esets.amd64.tgz.bin"` "esets.amd64.tgz.bin" > "esets-$pkgver.amd64.tgz"
tar xfz "esets-$pkgver.amd64.tgz"
+
+ mkdir -p "esets-src"
+ (cd "esets-src" && cpio -iumd --quiet < "$srcdir/epkg.cpio")
}
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"
+ cp -a "$srcdir/esets-src/"* "$pkgdir"
- install -D -m644 "$srcdir/esets.sysusers" "usr/lib/sysusers.d/esets.conf"
+ install -D -m644 "$srcdir/esets.sysusers" "$pkgdir/usr/lib/sysusers.d/esets.conf"
+ install -D -m644 "$srcdir/esets-src/opt/eset/esets/etc/systemd/esets.service" "$pkgdir/usr/lib/systemd/system/esets.service"
}
diff --git a/esets.service b/esets.service
deleted file mode 100644
index da3b78695aa..00000000000
--- a/esets.service
+++ /dev/null
@@ -1,11 +0,0 @@
-[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