Package: dansguardian
Severity: important
Tags: patch

Hi,

currently your package FTBFS on GNU/kFreeBSD with the following errors
(excerpts):
> [...]
> updating cache ./config.cache
> Generating platform specific Makefile...
> ./configure: line 2515: INSTALLPREFIX = : command not found
> ./configure: line 2516: PREFIX = : command not found
> ./configure: line 2517: CONFFILELOCATION = ${PREFIX}/etc/dansguardian/: No 
> such file or directory
> ./configure: line 2518: BINARYLOCATION = ${PREFIX}/usr/sbin/: No such file or 
> directory
> ./configure: line 2519: SYSVLOCATION = ${PREFIX}/etc/init.d/: No such file or 
> directory
> ./configure: line 2520: CGIBINLOCATION = ${PREFIX}/usr/lib/cgi-bin/: No such 
> file or directory
> ./configure: line 2521: MANUALFILES = ${PREFIX}/usr/share/man/: No such file 
> or directory
> ./configure: line 2522: LOGLOCATION = ${PREFIX}/var/log/dansguardian/: No 
> such file or directory
> ./configure: line 2523: LOGROTATELOCATION = ${PREFIX}/etc/logrotate.d/: No 
> such file or directory
> With AV engine: clamav
> Generating platform.h....
> Generating platform specific start/stop script...
> Generating platform specific dansguardian.conf...
> ./configure: line 2966: languagedir = '/etc/dansguardian/\c: No such file or 
> directory
> ./configure: line 3035: custombannedimagefile = '/etc/dansguardian/\c: No 
> such file or directory
> ./configure: line 3049: filtergroupslist = '/etc/dansguardian/\c: No such 
> file or directory
> [...]

Full build logs are available at
<http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=dansguardian>.

This is due to some missing test cases, please see the attached patch. Your
package then builds fine on GNU/kFreeBSD, and might get an chance to build on
GNU/Hurd too (untested however).

Cheers,

-- 
Cyril Brulebois
--- dansguardian-2.8.0.6-antivirus-6.4.4.1/configure    2007-03-11 
06:18:42.746835000 +0100
+++ dansguardian-2.8.0.6-antivirus-6.4.4.1/configure    2007-03-11 
06:24:41.000000000 +0100
@@ -68,7 +68,7 @@
        Darwin*)
                extendedecho='echo -e'
        ;;
-       Linux*)
+       Linux* | GNU/kFreeBSD* | GNU*)
                extendedecho='echo -e'
        ;;
         HP-UX*)
@@ -2703,7 +2703,7 @@
                $extendedecho  "#define __ENDIANH \"$endianh\"" 
>>autoconf/platform.h
                cat autoconf/osx.in >>Makefile
        ;;
-       Linux*)
+       Linux* | GNU/kFreeBSD* | GNU*)
                echo "#undef __BSD" >autoconf/platform.h
                $extendedecho "#define __CONFFILE \"$prefixdir$sysconfdir\c" 
>>autoconf/platform.h;
                echo "dansguardian.conf\"" >>autoconf/platform.h;
@@ -2899,7 +2899,7 @@
                 echo "exit 0" >> dansguardian.bsdv
                 chmod u+x dansguardian.bsdv
        ;;
-       Linux*)
+       Linux* | GNU/kFreeBSD* | GNU*)
                if [ -f dansguardian.sysv ]; then
                         rm -f dansguardian.sysv
                 fi
@@ -3891,7 +3891,7 @@
                echo "dansguardian.sh stop > /dev/null" >>logrotation
                echo "" >>logrotation
        ;;
-       Linux*)
+       Linux* | GNU/kFreeBSD* | GNU*)
                $extendedecho "$prefixdir$sysvdir\c" >>logrotation
                 echo "dansguardian stop > /dev/null" >>logrotation
                 echo "" >>logrotation
@@ -3948,7 +3948,7 @@
                echo "dansguardian.sh start > /dev/null" >>logrotation
                echo "" >>logrotation
        ;;
-       Linux*)
+       Linux* | GNU/kFreeBSD* | GNU*)
              $extendedecho "$prefixdir$sysvdir\c" >>logrotation
               echo "dansguardian start > /dev/null" >>logrotation
               echo "" >>logrotation
@@ -3989,7 +3989,7 @@
                $extendedecho "    $prefixdir$sysvdir\c" 
>>logrotate.dansguardian
                echo "dansguardian.sh stop > /dev/null" >>logrotate.dansguardian
        ;;
-       Linux*)
+       Linux* | GNU/kFreeBSD* | GNU*)
               echo "    killall dansguardian > /dev/null" 
>>logrotate.dansguardian
               echo "    sleep 5" >>logrotate.dansguardian
        ;;
@@ -4020,7 +4020,7 @@
                $extendedecho "    $prefixdir$sysvdir\c" 
>>logrotate.dansguardian
                echo "dansguardian.sh start > /dev/null" 
>>logrotate.dansguardian
        ;;
-       Linux*)
+       Linux* | GNU/kFreeBSD* | GNU*)
              $extendedecho "    $prefixdir$bindir\c" >>logrotate.dansguardian
               echo "dansguardian > /dev/null" >>logrotate.dansguardian
        ;;

Reply via email to