Delete unused files
This commit is contained in:
parent
9833a06d13
commit
258d82c028
14
Makefile
14
Makefile
@ -1,14 +0,0 @@
|
|||||||
MAKEFILE_COMMON = $(HOME)/.fedora/common.mk
|
|
||||||
-include $(MAKEFILE_COMMON)
|
|
||||||
|
|
||||||
# can not use final tarball name here as it will conflict with rules
|
|
||||||
# within Makefile.common
|
|
||||||
TARBALL_CLEAN = ${NAME}-${VERSION}-norar.tar.xz.tmp
|
|
||||||
TARBALL = ${NAME}-${VERSION}.tar.gz
|
|
||||||
|
|
||||||
clean-sources: ${TARBALL_CLEAN}
|
|
||||||
|
|
||||||
${TARBALL_CLEAN}: ${TARBALL}
|
|
||||||
rm -f $@.tmp
|
|
||||||
zcat $< | tar --delete -f - '*/libclamunrar/*' | xz -c > $@.tmp
|
|
||||||
mv $@.tmp $@
|
|
@ -1,93 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# clamav-milter Starts/stop the "clamav-milter" daemon
|
|
||||||
#
|
|
||||||
# chkconfig: - 79 31
|
|
||||||
# description: A virus scanning milter
|
|
||||||
|
|
||||||
# Source function library.
|
|
||||||
. /etc/rc.d/init.d/functions
|
|
||||||
|
|
||||||
exec=/usr/sbin/clamav-milter
|
|
||||||
prog="clamav-milter"
|
|
||||||
|
|
||||||
OPTS='-c /etc/mail/clamav-milter.conf'
|
|
||||||
[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
|
|
||||||
|
|
||||||
pidfile=/var/run/clamav-milter/milter.pid
|
|
||||||
lockfile=/var/lock/subsys/$prog
|
|
||||||
|
|
||||||
start() {
|
|
||||||
[ -x $exec ] || exit 5
|
|
||||||
[ -f $config ] || exit 6
|
|
||||||
echo -n $"Starting $prog: "
|
|
||||||
daemon --pidfile=${pidfile} $exec $OPTS --foreground=no --pid=${pidfile}
|
|
||||||
retval=$?
|
|
||||||
echo
|
|
||||||
[ $retval -eq 0 ] && touch $lockfile
|
|
||||||
return $retval
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
echo -n $"Stopping $prog: "
|
|
||||||
killproc -p "${pidfile}" $exec
|
|
||||||
retval=$?
|
|
||||||
echo
|
|
||||||
[ $retval -eq 0 ] && rm -f $lockfile
|
|
||||||
return $retval
|
|
||||||
}
|
|
||||||
|
|
||||||
restart() {
|
|
||||||
stop
|
|
||||||
start
|
|
||||||
}
|
|
||||||
|
|
||||||
reload() {
|
|
||||||
restart
|
|
||||||
}
|
|
||||||
|
|
||||||
force_reload() {
|
|
||||||
restart
|
|
||||||
}
|
|
||||||
|
|
||||||
rh_status() {
|
|
||||||
# run checks to determine if the service is running or use generic status
|
|
||||||
status -p "${pidfile}" $prog
|
|
||||||
}
|
|
||||||
|
|
||||||
rh_status_q() {
|
|
||||||
rh_status >/dev/null 2>&1
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
start)
|
|
||||||
rh_status_q && exit 0
|
|
||||||
$1
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
rh_status_q || exit 0
|
|
||||||
$1
|
|
||||||
;;
|
|
||||||
restart)
|
|
||||||
$1
|
|
||||||
;;
|
|
||||||
reload)
|
|
||||||
rh_status_q || exit 7
|
|
||||||
$1
|
|
||||||
;;
|
|
||||||
force-reload)
|
|
||||||
force_reload
|
|
||||||
;;
|
|
||||||
status)
|
|
||||||
rh_status
|
|
||||||
;;
|
|
||||||
condrestart|try-restart)
|
|
||||||
rh_status_q || exit 0
|
|
||||||
restart
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
|
|
||||||
exit 2
|
|
||||||
esac
|
|
||||||
exit $?
|
|
@ -1,14 +0,0 @@
|
|||||||
### !!! Uncomment only *one* of the 'start on' statements !!!
|
|
||||||
|
|
||||||
### Uncomment these lines when you want clamav-milter to be a milter
|
|
||||||
### for a locally running MTA
|
|
||||||
#start on (starting sendmail or starting postfix)
|
|
||||||
|
|
||||||
### Uncomment these lines when you want clamav-milter to be a milter
|
|
||||||
### for a remotely running MTA
|
|
||||||
#start on runlevel [345] and starting local
|
|
||||||
|
|
||||||
stop on runlevel [!345]
|
|
||||||
|
|
||||||
respawn
|
|
||||||
exec /usr/sbin/clamav-milter -c /etc/mail/clamav-milter.conf --foreground=yes
|
|
@ -1,90 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Xchkconfig: - 75 35
|
|
||||||
# Xdescription: The clamd daemon listens for incoming connections on \
|
|
||||||
# Unix or TCP socket and scans files or directories on demand.
|
|
||||||
|
|
||||||
test "$CLAMD_SERVICE" || {
|
|
||||||
echo $"*** $0 can not be called in this way"
|
|
||||||
echo $"*** Please see /usr/share/doc/clamav-server-*/README how"
|
|
||||||
echo $"*** the clamav-server can be configured"
|
|
||||||
exit 6
|
|
||||||
}
|
|
||||||
|
|
||||||
# Source function library.
|
|
||||||
. /etc/init.d/functions
|
|
||||||
|
|
||||||
# Get config.
|
|
||||||
test -r /etc/sysconfig/network && . /etc/sysconfig/network
|
|
||||||
|
|
||||||
# Check that networking is up.
|
|
||||||
test "$NETWORKING" != "no" || exit 6
|
|
||||||
|
|
||||||
lockfile=/var/lock/subsys/clamd.${CLAMD_SERVICE}
|
|
||||||
sysconffile=/etc/sysconfig/clamd.${CLAMD_SERVICE}
|
|
||||||
procname=clamd.${CLAMD_SERVICE}
|
|
||||||
|
|
||||||
CLAMD_CONFIGFILE=/etc/clamd.d/${CLAMD_SERVICE}.conf
|
|
||||||
CLAMD_OPTIONS=
|
|
||||||
CLAMD_PIDFILE=/var/run/clamd.${CLAMD_SERVICE}/clamd.pid
|
|
||||||
## backward-compatibility check...
|
|
||||||
for i in /var/run/clamd.${CLAMD_SERVICE}/clamd.sock \
|
|
||||||
/var/run/clamav.${CLAMD_SERVICE}/clamd.sock; do
|
|
||||||
CLAMD_SOCKET=$i
|
|
||||||
test ! -e "$i" || break
|
|
||||||
done
|
|
||||||
test -f "$sysconffile" && . "$sysconffile"
|
|
||||||
|
|
||||||
|
|
||||||
RETVAL=0
|
|
||||||
prog="clamd.${CLAMD_SERVICE}"
|
|
||||||
|
|
||||||
start () {
|
|
||||||
echo -n $"Starting $prog: "
|
|
||||||
daemon --pidfile=${CLAMD_PIDFILE} \
|
|
||||||
exec -a $procname /usr/sbin/clamd \
|
|
||||||
${CLAMD_CONFIGFILE:+-c $CLAMD_CONFIGFILE} ${CLAMD_OPTIONS} --pid ${CLAMD_PIDFILE}
|
|
||||||
RETVAL=$?
|
|
||||||
echo
|
|
||||||
[ $RETVAL -eq 0 ] && touch $lockfile
|
|
||||||
return $RETVAL
|
|
||||||
}
|
|
||||||
|
|
||||||
stop () {
|
|
||||||
echo -n $"Stopping $prog: "
|
|
||||||
killproc -p ${CLAMD_PIDFILE} $procname
|
|
||||||
RETVAL=$?
|
|
||||||
echo
|
|
||||||
[ $RETVAL -eq 0 ] && rm -f $lockfile
|
|
||||||
return $RETVAL
|
|
||||||
}
|
|
||||||
|
|
||||||
reload() {
|
|
||||||
rc=0
|
|
||||||
echo -n $"Reloading $prog: "
|
|
||||||
killproc -p ${CLAMD_PIDFILE} $procname -HUP || rc=$?
|
|
||||||
echo
|
|
||||||
echo -n $"Loading new virus-database: "
|
|
||||||
killproc -p ${CLAMD_PIDFILE} $procname -USR2 || rc=$?
|
|
||||||
echo
|
|
||||||
return $rc
|
|
||||||
}
|
|
||||||
|
|
||||||
restart () {
|
|
||||||
stop
|
|
||||||
start
|
|
||||||
}
|
|
||||||
|
|
||||||
# See how we were called.
|
|
||||||
case "$1" in
|
|
||||||
start|stop|restart|reload)
|
|
||||||
$1 ;;
|
|
||||||
status)
|
|
||||||
status -p ${CLAMD_PIDFILE} $procname ;;
|
|
||||||
condrestart)
|
|
||||||
test ! -f $lockfile || restart
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
|
|
||||||
exit 2
|
|
||||||
esac
|
|
@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# chkconfig: - 75 35
|
|
||||||
# description: The clamd server running for <SERVICE>
|
|
||||||
|
|
||||||
CLAMD_SERVICE=<SERVICE>
|
|
||||||
. /usr/share/clamav/clamd-wrapper
|
|
@ -1,14 +0,0 @@
|
|||||||
### !!! Uncomment only *one* of the 'start on' statements !!!
|
|
||||||
|
|
||||||
### Uncomment this line when you want clamd.scan to be a scanner for a
|
|
||||||
### locally running clamav-milter
|
|
||||||
#start on starting clamav-milter
|
|
||||||
|
|
||||||
### Uncomment this line when you want clamd.scan to be a generic
|
|
||||||
### scanner service
|
|
||||||
#start on runlevel [345] and starting local
|
|
||||||
|
|
||||||
stop on runlevel [!345]
|
|
||||||
|
|
||||||
respawn
|
|
||||||
exec /usr/sbin/clamd -c /etc/clamd.d/scan.conf --foreground=yes
|
|
@ -1,3 +0,0 @@
|
|||||||
#CLAMD_CONFIGFILE=/etc/clamd.d/<SERVICE>.conf
|
|
||||||
#CLAMD_SOCKET=/var/run/clamd.<SERVICE>/clamd.sock
|
|
||||||
#CLAMD_OPTIONS=
|
|
@ -1,7 +0,0 @@
|
|||||||
.include /lib/systemd/system/clamd@.service
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description = Generic clamav scanner daemon
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy = multi-user.target
|
|
Loading…
x
Reference in New Issue
Block a user