|
|
@@ -37,7 +37,7 @@ Distribution: OpenPKG [EVAL]
|
|
|
Group: System
|
|
|
License: Commercial/Free-Trail
|
|
|
Version: %{V_engine}+%{V_ides}
|
|
|
-Release: 20030822
|
|
|
+Release: 20030910
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://downloads.sophos.com/dp/full/freebsd.elf.tar.Z
|
|
|
@@ -55,8 +55,8 @@ Source7: sweep.mk
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
-BuildPreReq: OpenPKG, openpkg >= 20030717, gcc
|
|
|
-PreReq: OpenPKG, openpkg >= 20030717, curl, infozip
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 20030909, gcc
|
|
|
+PreReq: OpenPKG, openpkg >= 20030909, curl, infozip
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
@@ -69,10 +69,10 @@ AutoReqProv: no
|
|
|
%setup -q -T -c
|
|
|
|
|
|
# select and decompress platform specific anti-virus engine
|
|
|
- case "%{l_target}" in
|
|
|
+ case "%{l_platform -t}" in
|
|
|
*-freebsd* ) engine="%{SOURCE freebsd.elf.tar.Z}" ;;
|
|
|
*-linux* ) engine="%{SOURCE linux.intel.libc6.tar.Z}" ;;
|
|
|
- *-solaris* ) engine="%{SOURCE solaris.sparc.tar.Z}" ;;
|
|
|
+ *-sunos* ) engine="%{SOURCE solaris.sparc.tar.Z}" ;;
|
|
|
* ) echo "Sorry, platform %{l_target} not supported" 1>&2; exit 1 ;;
|
|
|
esac
|
|
|
%{l_gzip} -d -c $engine | %{l_tar} xf -
|
|
|
@@ -82,10 +82,10 @@ AutoReqProv: no
|
|
|
# (for mapping hard-coded /etc/sav.conf to %{l_prefix}/etc/sav/sav.conf)
|
|
|
%{l_shtool} install -c -m 644 %{l_value -s -a} \
|
|
|
%{SOURCE sweep.c} %{SOURCE sweep.mk} ./
|
|
|
- case "%{l_target}" in
|
|
|
+ case "%{l_platform -t}" in
|
|
|
*-freebsd* ) target="freebsd" ;;
|
|
|
*-linux* ) target="linux" ;;
|
|
|
- *-solaris* ) target="solaris" ;;
|
|
|
+ *-sunos* ) target="solaris" ;;
|
|
|
esac
|
|
|
%{l_make} %{l_mflags} -f sweep.mk $target
|
|
|
|