Import legacy archive from google code

master
Brie Bruns 2017-12-11 22:33:58 -07:00
commit 7886b02ce2
7 changed files with 19625 additions and 0 deletions

0
README.md Normal file
View File

18
clamav-dll.patch Executable file
View File

@ -0,0 +1,18 @@
diff -u --recursive -N clamav-devel/libclamav/main.c clamav-dll/libclamav/main.c
--- clamav-devel/libclamav/main.c 1969-12-31 19:00:00.000000000 -0500
+++ clamav-dll/libclamav/main.c 2004-09-25 15:51:25.198611200 -0400
@@ -0,0 +1,3 @@
+void main()
+{
+}
--- clamav-dll/libclamav/Makefile.am.orig 2004-11-20 12:18:20.900144000 -0500
+++ clamav-dll/libclamav/Makefile.am 2004-11-20 12:17:39.080009600 -0500
@@ -120,6 +120,7 @@
special.c \
special.h \
binhex.c \
- binhex.h
+ binhex.h \
+ main.c
lib_LTLIBRARIES = libclamav.la

51
clamav-install Executable file
View File

@ -0,0 +1,51 @@
#!/bin/bash
CLAMAV=/cygdrive/c/clamav-devel
WINPATH=C:/clamav-devel
MNTPATH=/mnt/clamav
DOCFILES="NEWS README BUGS AUTHORS ChangeLog FAQ INSTALL COPYING*"
DOCDIR="docs examples contrib test"
DLLFILES="/bin/cygz.dll /bin/cyggmp-3.dll /bin/cygbz2-1.dll /bin/cygminires.dll"
#DLLFILES="$DLLFILES /bin/cygintl-3.dll /bin/cygiconv-2.dll"
DLLFILES="$DLLFILES /bin/cygwin1.dll"
CYGCLAMVER="4"
CYGWINEXE="/bin/mount.exe /bin/umount.exe /usr/src/psmisc-21.5-3/src/killall.exe"
#CLAMVERS=0.93.1
#cd clamav-$CLAMVERS
CWD=`pwd`
echo "Installing ClamAV..."
make install
echo "Copying over the necessary DLL files that make ClamAV Work..."
cp -f --remove-destination $DLLFILES $CYGWINEXE $CLAMAV/bin/
#cp -f -v --remove-destination /bin/cygwin1-1.5.16.dll $CLAMAV/bin/cygwin1.dll
cp --remove-destination libclamav/.libs/cygclamav-$CYGCLAMVER.dll-def libclamav/.libs/cygclamav-$CYGCLAMVER.dll-exp $CLAMAV/lib
echo "Converting text files to standard Windows linefeeds..."
mount -t $WINPATH $MNTPATH
#cd ..
for i in $DOCFILES; do
echo "Converting $i..."
rm -f $MNTPATH/$i
awk 1 $i > $MNTPATH/$i
done
umount $MNTPATH
echo "Copying over documentation, example, and contrib directories..."
cp -f --remove-destination -R $DOCDIR $CLAMAV
#cd $CWD
cp --remove-destination -R idletimeout.patch clamav-sosdg-1.patch clamav-dll.patch configure-clamav-win32 clamav-install "/cygdrive/c/installer scripts/clamav-devel.nsi" $CLAMAV/sosdg/
find $CLAMAV -name CVS | xargs rm -fr
find $CLAMAV -name ".svn" | xargs rm -fr
find $CLAMAV -name ".cvsignore" | xargs rm -fr
find $CLAMAV -name ".\#*" | xargs rm -fr
chown -R Administrators:Users $CLAMAV
echo "Stripping the applications of debugging symbols..."
strip --strip-debug $CLAMAV/bin/{cygz.dll,cyggmp-3.dll,cygbz2-1.dll,cygminires.dll,cygclamav-$CYGCLAMVER.dll}
strip $CLAMAV/bin/*.exe
#strip --strip-debug $CLAMAV/bin/*.dll
cd $CLAMAV/bin
# Dont rebase cygwin1.dll
#ls | grep -v "cygwin1.dll" > files
#rebaseall -T files
#rm -f files
#rebase -b 0x70000000 -v cygwin1.dll
cd $CWD
rm -fr $CLAMAV/docs/clam.eps $CLAMAV/docs/*.tex $CLAMAV/docs/MacOSX
echo "Done!"

19526
clamav-sosdg-1.patch Executable file

File diff suppressed because it is too large Load Diff

12
idletimeout.patch Executable file
View File

@ -0,0 +1,12 @@
--- clamd/server-th.c.orig 2005-01-28 15:57:49.848384200 -0800
+++ clamd/server-th.c 2005-01-28 15:58:37.828811900 -0800
@@ -557,7 +557,7 @@
*/
thrmgr_destroy(thr_pool);
root = reload_db(root, copt, FALSE);
- if((thr_pool=thrmgr_new(max_threads, 30, scanner_thread)) == NULL) {
+ if((thr_pool=thrmgr_new(max_threads, idletimeout, scanner_thread)) == NULL) {
logg("!thrmgr_new failed\n");
pthread_mutex_unlock(&reload_mutex);
exit(-1);

17
merge-svn-changes.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
# Stupidly simple script to merge changes internally, since
# I import from ClamAV SVN tree, add my own changes, then move
# it over to our local tree on google code.
# Ugly hack, but it works!
# -- Brielle Bruns
MASTERDIR=/usr/src/clamav-classic/trunk
SVNWORKINGDIR=/cygdrive/c/projects/google/clamav-win32
make clean
cd $SVNWORKINGDIR
diff -urN -x .svn -x autom4te.cache $SVNWORKINGDIR \
$MASTERDIR \
| patch -p5

1
sosdg-version Normal file
View File

@ -0,0 +1 @@
SOSDG_0.93.1-2