diff --git a/Makefile b/Makefile deleted file mode 100644 index ec42490..0000000 --- a/Makefile +++ /dev/null @@ -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 $@ diff --git a/clamav-milter.sysv b/clamav-milter.sysv deleted file mode 100644 index 3e37ae0..0000000 --- a/clamav-milter.sysv +++ /dev/null @@ -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 $? diff --git a/clamav-milter.upstart b/clamav-milter.upstart deleted file mode 100644 index 1a10b8e..0000000 --- a/clamav-milter.upstart +++ /dev/null @@ -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 diff --git a/clamd-wrapper b/clamd-wrapper deleted file mode 100644 index 0a30628..0000000 --- a/clamd-wrapper +++ /dev/null @@ -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 diff --git a/clamd.SERVICE.init b/clamd.SERVICE.init deleted file mode 100644 index f2f9191..0000000 --- a/clamd.SERVICE.init +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -# -# chkconfig: - 75 35 -# description: The clamd server running for - -CLAMD_SERVICE= -. /usr/share/clamav/clamd-wrapper diff --git a/clamd.scan.upstart b/clamd.scan.upstart deleted file mode 100644 index 54482e6..0000000 --- a/clamd.scan.upstart +++ /dev/null @@ -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 diff --git a/clamd.sysconfig b/clamd.sysconfig deleted file mode 100644 index 4933e7e..0000000 --- a/clamd.sysconfig +++ /dev/null @@ -1,3 +0,0 @@ -#CLAMD_CONFIGFILE=/etc/clamd.d/.conf -#CLAMD_SOCKET=/var/run/clamd./clamd.sock -#CLAMD_OPTIONS= diff --git a/clamd@scan.service b/clamd@scan.service deleted file mode 100644 index c329612..0000000 --- a/clamd@scan.service +++ /dev/null @@ -1,7 +0,0 @@ -.include /lib/systemd/system/clamd@.service - -[Unit] -Description = Generic clamav scanner daemon - -[Install] -WantedBy = multi-user.target