ports/151907: [NEW PORT] security/sophie: A daemon which uses 'libsavi' library from Sophos
NAKAJI Hiroyuki
nakaji at jp.freebsd.org
Wed Nov 3 05:20:10 UTC 2010
>Number: 151907
>Category: ports
>Synopsis: [NEW PORT] security/sophie: A daemon which uses 'libsavi' library from Sophos
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Nov 03 05:20:08 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: NAKAJI Hiroyuki
>Release: FreeBSD 7.3-STABLE amd64
>Organization:
>Environment:
System: FreeBSD www.heimat.gr.jp 7.3-STABLE FreeBSD 7.3-STABLE #41: Tue May 25 00:21:47 JST 2010
>Description:
Sophie is a daemon which uses 'libsavi' library from Sophos anti virus vendor.
WWW: http://www.sophos.com/
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- sophie-3.05.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# sophie
# sophie/pkg-descr
# sophie/Makefile
# sophie/pkg-plist
# sophie/files
# sophie/files/patch-sav_if:s_comput.h
# sophie/files/sophie.in
# sophie/distinfo
#
echo c - sophie
mkdir -p sophie > /dev/null 2>&1
echo x - sophie/pkg-descr
sed 's/^X//' >sophie/pkg-descr << '3cb2c10b3de34a3d58c47a7a146d5918'
XSophie is a daemon which uses 'libsavi' library from Sophos anti virus vendor.
X
XWWW: http://www.sophos.com/
3cb2c10b3de34a3d58c47a7a146d5918
echo x - sophie/Makefile
sed 's/^X//' >sophie/Makefile << 'd6f72b4397f6c876ca26d7059d2e9d7f'
X# New ports collection makefile for: sophie
X# Date created: 2010-11-03
X# Whom: NAKAJI Hiroyuki <nakaji at jp.freebsd.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= sophie
XPORTVERSION= 3.05
XCATEGORIES= security
XMASTER_SITES= http://www.clanfield.info/sophie/
X
XMAINTAINER= nakaji at jp.freebsd.org
XCOMMENT= A daemon which uses 'libsavi' library from Sophos
X
XGNU_CONFIGURE= yes
XUSE_RC_SUBR= ${PORTNAME}
X
XMAN8= ${PORTNAME}.8
X
X.if (WITH_NETWORK)
XCONFIGURE_ARGS+= --enable-net
X.endif
X
XONLY_FOR_ARCHS= i386 amd64
X
X.include <bsd.port.pre.mk>
X
X.if exists(${LOCALBASE}/lib/libsavi.so.3) && !exists(${LOCALBASE}/lib/libsavi.so)
XFAKELIBDIR=${WRKDIR}/lib
XCONFIGURE_ARGS+=LDDLFLAGS='-shared -L ${FAKELIBDIR}'
X.elif !exists(${LOCALBASE}/lib/libsavi.so)
XIGNORE= please install Sophos Anti-Virus first
X.endif
X
X.if defined(FAKELIBDIR)
Xpre-configure:
X ${MKDIR} ${FAKELIBDIR}
X ${LN} -s ${LOCALBASE}/lib/libsavi.so.3 ${FAKELIBDIR}/libsavi.so
X.endif
X
Xpost-configure:
X @${REINPLACE_CMD} -e 's|/etc/sophie.savi|${PREFIX}/etc/sophie.savi|g' \
X ${WRKSRC}/sophie.cfg
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
X ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.cfg ${PREFIX}/etc/${PORTNAME}.cfg.sample
X ${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.savi ${PREFIX}/etc/${PORTNAME}.savi.sample
X.if !defined(NO_INSTALL_MANPAGES)
X ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MAN8PREFIX}/man/man8
X.endif
X
X.include <bsd.port.post.mk>
d6f72b4397f6c876ca26d7059d2e9d7f
echo x - sophie/pkg-plist
sed 's/^X//' >sophie/pkg-plist << 'fdf6c9176fcbe443a01f24554ae34187'
X at comment $FreeBSD$
Xbin/sophie
Xetc/sophie.cfg.sample
Xetc/sophie.savi.sample
fdf6c9176fcbe443a01f24554ae34187
echo c - sophie/files
mkdir -p sophie/files > /dev/null 2>&1
echo x - sophie/files/patch-sav_if:s_comput.h
sed 's/^X//' >sophie/files/patch-sav_if:s_comput.h << '43c390a3c8d9839cd7ded57f07bb0539'
X--- sav_if/s_comput.h.orig 2009-09-18 21:22:27.000000000 +0900
X+++ sav_if/s_comput.h 2009-09-18 21:22:52.000000000 +0900
X@@ -642,7 +642,7 @@
X * Hardware platform.
X */
X
X-# if defined(__i386__)
X+# if defined(__i386__) || defined(__amd64__)
X # define __SOPHOS_I386__
X # elif (defined(__hppa__) && defined(_PA_RISC1_1))
X # define __SOPHOS_HP_PA__
43c390a3c8d9839cd7ded57f07bb0539
echo x - sophie/files/sophie.in
sed 's/^X//' >sophie/files/sophie.in << '90c54a7c507a1971bdd930a983d897b7'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X#
X# PROVIDE: sophie
X# REQUIRE: NETWORKING SERVERS DAEMON
X# BEFORE: amavisd
X# KEYWORD: shutdown
X#
X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
X# to enable this service:
X#
X#sophie_enable="YES"
X#
X
X. /etc/rc.subr
X
Xname=sophie
Xrcvar=$(set_rcvar)
X
Xload_rc_config ${name}
X
X# Defaults
X: ${sophie_enable:="NO"}
X# Requirements
Xrequired_files="%%PREFIX%%/etc/sophie.cfg"
X
Xcommand=%%PREFIX%%/bin/${name}
Xcommand_args="-D -C %%PREFIX%%/etc/sophie.cfg"
X
Xrun_rc_command "$1"
90c54a7c507a1971bdd930a983d897b7
echo x - sophie/distinfo
sed 's/^X//' >sophie/distinfo << '5743c90f4f37d0ad281fc307a55d5f3f'
XSHA256 (sophie-3.05.tar.gz) = 4531f3a4bea1ad1a936e3beda0dbd2fcdf5f022e34e0b249c2ee9bd26e480021
XSIZE (sophie-3.05.tar.gz) = 190674
5743c90f4f37d0ad281fc307a55d5f3f
exit
--- sophie-3.05.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list