Date: Sat, 08 Jan 2005 21:36:05 +0100 From: Rainer Link <link@unfug.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/75966: [patch] improve samba-vscan port Message-ID: <E1CnNJd-000KZD-AA@netclue.de> Resent-Message-ID: <200501082040.j08KeKUT013532@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 75966 >Category: ports >Synopsis: [patch] improve samba-vscan port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Jan 08 20:40:20 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Rainer Link >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD hq.netclue.de 5.3-STABLE FreeBSD 5.3-STABLE #0: Mon Oct 25 17:11:28 CEST 2004 aw@hq.netclue.de:/usr/obj/usr/src/sys/NETCLUE i386 >Description: To build samba-vscan it's not necessary to build Samba; for Samba 2.2 it's sufficient to run configure, for Samba 3.0 "make proto" must be executed as well. As Samba 2.2 is discontinued by the Samba team, the default should be to build samba-vscan for Samba 3.0. Documentation should be installed, at least INSTALL is recommended as this file provides hints for proper installation of the required anti-virus software. >How-To-Repeat: >Fix: Attached is a proposed fix. --- Makefile.dif begins here --- --- Makefile.orig Sat Aug 28 07:08:45 2004 +++ Makefile Sat Jan 8 20:54:02 2005 @@ -16,7 +16,10 @@ MAINTAINER= jmelo@freebsdbrasil.com.br COMMENT= On-access virus scanning with Samba -BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/net/${VSCAN_SAMBA_PORT}:build +BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/net/${VSCAN_SAMBA_PORT}:configure +.if !defined(NOPORTDOCS) +PORTDOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README +.endif USE_BZIP2= yes SAMBA_WRKSRC= `cd ${PORTSDIR}/net/${VSCAN_SAMBA_PORT}; make -V WRKSRC` @@ -25,7 +28,7 @@ CONFIGURE_ARGS= --with-samba-source=${SAMBA_WRKSRC} ETCDIR= ${PREFIX}/etc/samba-vscan PKGMESSAGE= ${WRKDIR}/pkg-message -VSCAN_SAMBA_PORT?=samba +VSCAN_SAMBA_PORT?=samba3 .if ${VSCAN_SAMBA_PORT} == "samba3" PLIST_SUB= VFSDIR=lib/samba/vfs @@ -33,7 +36,18 @@ PLIST_SUB= VFSDIR=lib/samba .endif +pre-configure: +.if ${VSCAN_SAMBA_PORT} == "samba3" + @cd ${SAMBA_WRKSRC}; make proto 2>&1 > /dev/null +.endif + post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for i in ${PORTDOCS} + @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} +.endfor +.endif @${MKDIR} ${PREFIX}/etc/samba-vscan @${INSTALL_DATA} ${WRKSRC}/clamav/vscan-clamav.conf ${ETCDIR} @${INSTALL_DATA} ${WRKSRC}/fprot/vscan-fprotd.conf ${ETCDIR} --- Makefile.dif ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1CnNJd-000KZD-AA>