updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / antivir / PKGBUILD
blob46871aafa2f5feba98f1f16e8638e8e1d2afc026
1 # Maintainer: TDY <tdy@gmx.com>
3 pkgname=antivir
4 pkgver=3.1.3.5_0
5 pkgrel=1
6 pkgdesc="Avira's Personal UNIX Workstation Antivirus"
7 arch=('i686' 'x86_64')
8 url="http://www.free-av.com/"
9 license=('custom')
10 depends=('libstdc++5')
11 [[ $CARCH = x86_64 ]] && depends[0]='lib32-libstdc++5'
12 optdepends=('dazukofs: for on-access protection')
13 backup=(etc/avira/av{guard{,-scanner},scan,update-guard}.conf)
14 options=('!strip')
15 install=antivir.install
16 source=(http://dlpe.antivir.com/package/wks_avira/unix/en/pers/antivir_workstation-pers.tar.gz
17         antivir.sh avupdate.hourly avupdate.weekly)
18 md5sums=('b5370dc69ea456af65dcb6fa1971f17d'
19          'f58b0c23272917be4aea252d8226e1ad'
20          '5e401709ba6e4cc4ff30dfdac80f5033'
21          'feacf2e1776e8fc0d61e90498acbefaf')
23 build() {
24   cd "$srcdir/antivir-workstation-pers-${pkgver/_/-}"
25   install -dm755 "$pkgdir"/{etc/avira,usr/{share/doc/antivir,{,s}bin}}
26   install -Dm755 AV_WKS_PERS "$pkgdir/usr/lib/AntiVir/guard/AV_WKS_PERS"
27   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/antivir/LICENSE"
28   ln -sf /usr/lib/AntiVir/guard/avupdater.txt "$pkgdir/usr/share/doc/antivir/"
29   ln -sf /usr/lib/AntiVir/guard/antivir_personal_en.txt \
30     "$pkgdir/usr/share/doc/antivir/"
31   ln -sf /usr/share/licenses/antivir/LICENSE \
32     "$pkgdir/usr/lib/AntiVir/guard/LICENSE-workstation"
34   # Core
35   install -m644 etc/run.inf "$pkgdir/usr/lib/AntiVir/guard/"
36   install -m755 bin/linux_glibc22/a*.so "$pkgdir/usr/lib/AntiVir/guard/"
37   install -m755 bin/linux_glibc22/*.dat "$pkgdir/usr/lib/AntiVir/guard/"
38   install -m755 bin/linux_glibc22/avlinfo "$pkgdir/usr/lib/AntiVir/guard/"
39   install -m755 bin/linux_glibc22/avupdate_msg.avr "$pkgdir/usr/lib/AntiVir/guard/"
40   install -m755 bin/linux_glibc22/avverifier "$pkgdir/usr/lib/AntiVir/guard/"
41   install -m755 bin/linux_glibc22/libsavapi3.so "$pkgdir/usr/lib/AntiVir/guard/"
42   install -m755 bin/linux_glibc22/savapi "$pkgdir/usr/lib/AntiVir/guard/"
43   ln -sf /usr/lib/AntiVir/guard/avlinfo "$pkgdir/usr/bin/"
44   install -m755 bin/linux_glibc22/avupdate.bin "$pkgdir/usr/lib/AntiVir/guard/"
45   install -m644 etc/avupdate.conf "$pkgdir/etc/avira/avupdate-guard.conf"
46   install -m644 etc/avupdate.conf "$pkgdir/etc/avira/avupdate-guard.conf.default"
47   install -m644 doc/avupdater.txt "$pkgdir/usr/lib/AntiVir/guard/"
48   install -m755 script/avupdate.template "$pkgdir/usr/lib/AntiVir/guard/avupdate-guard"
49   install -m755 script/post_install.sh "$pkgdir/usr/lib/AntiVir/guard/"
50   install -m755 script/savapi3_*.sh "$pkgdir/usr/lib/AntiVir/guard/"
51   install -m644 vdf/*.vdf "$pkgdir/usr/lib/AntiVir/guard/"
52   install -m644 hbedv_key "$pkgdir/usr/lib/AntiVir/guard/"
53   install -m644 hbedv_key "$pkgdir/usr/lib/AntiVir/guard/avira_personal.key"
55   # Updates
56   ln -sf /usr/lib/AntiVir/guard/avupdate-guard "$pkgdir/usr/sbin/"
57   install -Dm755 ../avupdate.hourly "$pkgdir/etc/cron.hourly/avupdate"
58   install -Dm755 ../avupdate.weekly "$pkgdir/etc/cron.weekly/avupdate"
60   # Main
61   install -m644 doc/antivir_personal_en.txt "$pkgdir/usr/lib/AntiVir/guard/"
62   install -m755 bin/linux_glibc22/libdazuko*.so "$pkgdir/usr/lib/AntiVir/guard/"
63   install -m755 bin/linux_glibc22/avguard-* "$pkgdir/usr/lib/AntiVir/guard/"
64   install -m755 bin/linux_glibc22/avscan "$pkgdir/usr/lib/AntiVir/guard/"
65   install -m755 bin/linux_glibc22/avsavapi-super "$pkgdir/usr/lib/AntiVir/guard/"
66   install -m755 bin/linux_glibc22/avguard.bin "$pkgdir/usr/lib/AntiVir/guard/"
67   ln -sf libdazuko3compat2.so "$pkgdir/usr/lib/AntiVir/guard/libdazuko.so"
68   install -m644 etc/avscan.conf "$pkgdir/etc/avira/"
69   install -m644 etc/avscan.conf "$pkgdir/etc/avira/avscan.conf.default"
70   install -m644 build.dat "$pkgdir/usr/lib/AntiVir/guard/"
71   install -m755 script/avguard* "$pkgdir/usr/lib/AntiVir/guard/"
72   install -m755 script/start_guard_upgrade.sh "$pkgdir/usr/lib/AntiVir/guard/"
73   install -m755 script/smcagent_reload.sh "$pkgdir/usr/lib/AntiVir/guard/"
74   install -m755 script/avira_start.sh.template "$pkgdir/usr/lib/AntiVir/guard/avguard"
75   ln -sf /usr/lib/AntiVir/guard/avscan "$pkgdir/usr/bin/"
76 #  ln -sf /usr/lib/AntiVir/guard/avscan "$pkgdir/usr/bin/scan"
77   ln -sf /usr/lib/AntiVir/guard/avguard "$pkgdir/usr/sbin/"
78   install -Dm755 ../antivir.sh "$pkgdir/etc/rc.d/antivird"
79   install -m644 etc/avguard.conf "$pkgdir/etc/avira/"
80   install -m644 etc/avguard.conf "$pkgdir/etc/avira/avguard.conf.default"
81   install -m644 etc/avguard-scanner.conf "$pkgdir/etc/avira/"
82   install -m644 etc/avguard-scanner.conf \
83     "$pkgdir/etc/avira/avguard-scanner.conf.default"
85   # SMC
86   install -dm755 "$pkgdir"/usr/lib/AntiVir/{agent,guard/{agent,gui/{bin,cert,src}}}
87   install -m644 smcpkg/scanparameters.txt "$pkgdir/usr/lib/AntiVir/guard/agent/"
88   install -m755 smcpkg/libuxwks.so.linux_glibc22 \
89     "$pkgdir/usr/lib/AntiVir/guard/agent/"
90   ln -sf /usr/lib/AntiVir/guard/agent/libuxwks.so \
91     "$pkgdir/usr/lib/AntiVir/agent/"
92   install -m755 smcpkg/libuxsrv.so.linux_glibc22 \
93     "$pkgdir/usr/lib/AntiVir/guard/agent/"
94   ln -sf /usr/lib/AntiVir/guard/agent/libuxsrv.so \
95     "$pkgdir/usr/lib/AntiVir/agent/"
96   install -m755 script/write_fstab.sh "$pkgdir/usr/lib/AntiVir/guard/agent/"
97   install -m664 bin/linux_glibc22/avgu_stats.lck \
98     "$pkgdir/usr/lib/AntiVir/guard/gui/bin/"
99   install -m750 bin/linux_glibc22/avgu_stats \
100     "$pkgdir/usr/lib/AntiVir/guard/gui/bin/"
101   install -m755 bin/linux_glibc22/antivir_start.real \
102     "$pkgdir/usr/lib/AntiVir/guard/gui/bin/"
103   install -m755 bin/linux_glibc22/antivir_start \
104     "$pkgdir/usr/lib/AntiVir/guard/gui/bin/"
105   install -m644 smcpkg/src/antivir_start.c \
106     "$pkgdir/usr/lib/AntiVir/guard/gui/src/"
107   install -m644 smcpkg/cert/* "$pkgdir/usr/lib/AntiVir/guard/gui/cert/"