diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2003-09-28 13:29:28 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2003-09-28 13:29:28 +0000 |
commit | 5e2bc95fa1f0bd453129c777beb94396393dda0a (patch) | |
tree | cf7e544c9bcad15e703bcdc275554076c4fc2d69 /security/clamav/files | |
parent | Update port: security/pf - OpenBSD 3.4 pf (diff) |
- don't remove clamav account on deinstall
- use included libtool (seems heavily patched)
- make packageable and include a working configure file
- add a rcNG start/stop script
- added web site
- don't install useless .la files
- use DATADIR
- 510001 is FreeBSD 5.10, 5.1-CURRENT is 501100
- minor cleanup
PR: 57256
Submitted by: eikemeier@fillmore-labs.com
Diffstat (limited to 'security/clamav/files')
-rw-r--r-- | security/clamav/files/clamd.sh | 42 | ||||
-rw-r--r-- | security/clamav/files/patch-ltmain.sh | 23 |
2 files changed, 65 insertions, 0 deletions
diff --git a/security/clamav/files/clamd.sh b/security/clamav/files/clamd.sh new file mode 100644 index 000000000000..3254acb2a0cb --- /dev/null +++ b/security/clamav/files/clamd.sh @@ -0,0 +1,42 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: clamd +# REQUIRE: LOGIN +# BEFORE: mail +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable clamd: +# +#clamd_enable="YES" +# +# See clamd(8) for flags +# + +. %%RC_SUBR%% + +name=clamd +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/clamd +pidfile=/var/run/clamav/clamd.pid +required_dirs=%%DATADIR%% +required_files=%%PREFIX%%/etc/clamav.conf + +stop_postcmd=stop_postcmd + +stop_postcmd() +{ + rm -f $pidfile +} + +# set defaults + +clamd_enable=${clamd_enable:-"NO"} +clamd_flags=${clamd_flags:-""} + +load_rc_config $name +run_rc_command "$1" diff --git a/security/clamav/files/patch-ltmain.sh b/security/clamav/files/patch-ltmain.sh new file mode 100644 index 000000000000..74d32db0b279 --- /dev/null +++ b/security/clamav/files/patch-ltmain.sh @@ -0,0 +1,23 @@ +--- ltmain.sh.orig Sat Sep 27 05:20:20 2003 ++++ ltmain.sh Sat Sep 27 05:24:02 2003 +@@ -4259,10 +4259,16 @@ + fi + + # Install the pseudo-library for information purposes. +- name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` +- instname="$dir/$name"i +- $show "$install_prog $instname $destdir/$name" +- $run eval "$install_prog $instname $destdir/$name" || exit $? ++ case $host in ++ *-*-freebsd*) ++ # Do not install the useless pseudo-library ++ ;; ++ *) ++ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` ++ instname="$dir/$name"i ++ $show "$install_prog $instname $destdir/$name" ++ $run eval "$install_prog $instname $destdir/$name" || exit $? ++ esac + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" |