Browse Source

Import legacy archive from google code

Brielle Bruns 1 year ago
commit
7886b02ce2
7 changed files with 19625 additions and 0 deletions
  1. 0
    0
      README.md
  2. 18
    0
      clamav-dll.patch
  3. 51
    0
      clamav-install
  4. 19526
    0
      clamav-sosdg-1.patch
  5. 12
    0
      idletimeout.patch
  6. 17
    0
      merge-svn-changes.sh
  7. 1
    0
      sosdg-version

+ 0
- 0
README.md View File


+ 18
- 0
clamav-dll.patch View File

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

+ 51
- 0
clamav-install View File

@@ -0,0 +1,51 @@
1
+#!/bin/bash
2
+CLAMAV=/cygdrive/c/clamav-devel
3
+WINPATH=C:/clamav-devel
4
+MNTPATH=/mnt/clamav
5
+DOCFILES="NEWS README BUGS AUTHORS ChangeLog FAQ INSTALL COPYING*"
6
+DOCDIR="docs examples contrib test"
7
+DLLFILES="/bin/cygz.dll /bin/cyggmp-3.dll /bin/cygbz2-1.dll /bin/cygminires.dll" 
8
+#DLLFILES="$DLLFILES /bin/cygintl-3.dll /bin/cygiconv-2.dll"
9
+DLLFILES="$DLLFILES /bin/cygwin1.dll"
10
+CYGCLAMVER="4"
11
+CYGWINEXE="/bin/mount.exe /bin/umount.exe /usr/src/psmisc-21.5-3/src/killall.exe"
12
+#CLAMVERS=0.93.1
13
+#cd clamav-$CLAMVERS
14
+CWD=`pwd`
15
+echo "Installing ClamAV..."
16
+make install
17
+echo "Copying over the necessary DLL files that make ClamAV Work..."
18
+cp -f --remove-destination $DLLFILES $CYGWINEXE $CLAMAV/bin/
19
+#cp -f -v --remove-destination /bin/cygwin1-1.5.16.dll $CLAMAV/bin/cygwin1.dll
20
+cp --remove-destination libclamav/.libs/cygclamav-$CYGCLAMVER.dll-def libclamav/.libs/cygclamav-$CYGCLAMVER.dll-exp $CLAMAV/lib
21
+echo "Converting text files to standard Windows linefeeds..."
22
+mount -t $WINPATH $MNTPATH
23
+#cd ..
24
+for i in $DOCFILES; do
25
+	echo "Converting $i..."
26
+	rm -f $MNTPATH/$i
27
+	awk 1 $i > $MNTPATH/$i
28
+done
29
+umount $MNTPATH
30
+echo "Copying over documentation, example, and contrib directories..."
31
+cp -f --remove-destination -R $DOCDIR $CLAMAV
32
+#cd $CWD
33
+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/
34
+find $CLAMAV -name CVS | xargs rm -fr
35
+find $CLAMAV -name ".svn" | xargs rm -fr
36
+find $CLAMAV -name ".cvsignore" | xargs rm -fr
37
+find $CLAMAV -name ".\#*" | xargs rm -fr
38
+chown -R Administrators:Users $CLAMAV
39
+echo "Stripping the applications of debugging symbols..."
40
+strip --strip-debug $CLAMAV/bin/{cygz.dll,cyggmp-3.dll,cygbz2-1.dll,cygminires.dll,cygclamav-$CYGCLAMVER.dll}
41
+strip $CLAMAV/bin/*.exe
42
+#strip --strip-debug $CLAMAV/bin/*.dll
43
+cd $CLAMAV/bin
44
+# Dont rebase cygwin1.dll
45
+#ls | grep -v "cygwin1.dll" > files
46
+#rebaseall -T files
47
+#rm -f files
48
+#rebase -b 0x70000000 -v cygwin1.dll
49
+cd $CWD
50
+rm -fr $CLAMAV/docs/clam.eps $CLAMAV/docs/*.tex $CLAMAV/docs/MacOSX
51
+echo "Done!"

+ 19526
- 0
clamav-sosdg-1.patch
File diff suppressed because it is too large
View File


+ 12
- 0
idletimeout.patch View File

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

+ 17
- 0
merge-svn-changes.sh View File

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

+ 1
- 0
sosdg-version View File

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

Loading…
Cancel
Save