# 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: # # /usr/ports/local/scamp # /usr/ports/local/scamp/files # /usr/ports/local/scamp/files/pkg-message.in # /usr/ports/local/scamp/files/scamp.conf.sample # /usr/ports/local/scamp/Makefile # /usr/ports/local/scamp/pkg-descr # /usr/ports/local/scamp/distinfo # /usr/ports/local/scamp/pkg-plist # echo c - /usr/ports/local/scamp mkdir -p /usr/ports/local/scamp > /dev/null 2>&1 echo c - /usr/ports/local/scamp/files mkdir -p /usr/ports/local/scamp/files > /dev/null 2>&1 echo x - /usr/ports/local/scamp/files/pkg-message.in sed 's/^X//' >/usr/ports/local/scamp/files/pkg-message.in << 'END-of-/usr/ports/local/scamp/files/pkg-message.in' X X X ************************************************** X * * X * To configure this script prior to running it * X * the first time, please use the [-c] command * X * line option; i.e.: scamp.sh -c * X * * X * This will create a new config file and exit. * X * * X ************************************************** X END-of-/usr/ports/local/scamp/files/pkg-message.in echo x - /usr/ports/local/scamp/files/scamp.conf.sample sed 's/^X//' >/usr/ports/local/scamp/files/scamp.conf.sample << 'END-of-/usr/ports/local/scamp/files/scamp.conf.sample' XConfig_Version { XCONFIG_VER=3.2 X} Xdefault { XSIG_DB=/var/db/clamav XT_DIR=${SIG_DB}/tmp XMSR_DIR=${T_DIR}/msr XSI_DIR=${T_DIR}/securite XMW_DIR=${T_DIR}/malware XC_GROUP=clamav XC_PID=/var/run/clamav/clamd.pid XREST=0 XC_USER=clamav XGET_MALWARE=1 XGET_MSRBL=1 XGET_SANE=1 XGET_SECURITE=1 Xgpg_key_url=http://www.sanesecurity.net/publickey.gpg XMSRBL=rsync://rsync.mirror.msrbl.com/msrbl/ XMW_FILE=mbl.ndb XMW_URL=http://www.malware.com.br/cgi/submit?action=list_clamav_ext XGET_LDB=1 XRELOAD=1 XSANE=rsync://rsync.sanesecurity.net/sanesecurity XSANE_DB=${T_DIR}/sane XSI_URL1=http://clamav.securiteinfo.com/vx.hdb.gz XSI_URL2=http://clamav.securiteinfo.com/honeynet.hdb.gz XSI_URL3=http://clamav.securiteinfo.com/securiteinfo.hdb.gz XSI_URL4=http://clamav.securiteinfo.com/antispam.ndb.gz XSI_URL=$SI_URL1" "$SI_URL2" "$SI_URL3" "$SI_URL4 Xmsrbl_Images=MSRBL-Images.hdb Xmsrbl_SPAM_CR=MSRBL-SPAM-CR.ndb Xmsrbl_SPAM=MSRBL-SPAM.ndb XW_SUM=1 XMK_LOG=0 X} END-of-/usr/ports/local/scamp/files/scamp.conf.sample echo x - /usr/ports/local/scamp/Makefile sed 's/^X//' >/usr/ports/local/scamp/Makefile << 'END-of-/usr/ports/local/scamp/Makefile' X# New ports collection makefile for: scamp X# Date created: 31 March 2009 X# Whom: Gerard Seibert X# X# $FreeBSD$ X XPORTNAME= scamp XPORTVERSION= 5.2 XCATEGORIES= security XMASTER_SITES= http://site1/ ${MASTER_SITE_SOURCEFORGE:S/$/:sourceforge,TEST/} XDISTFILES= scamp/scamp-5.2.tar.gz:sourceforge X XMAINTAINER= gerard@seibercom.net XCOMMENT= Download & Install additional definition files for Clamav X X.include X X.if exists (${LOCALBASE}/bin/wget) && ! exists (${LOCALBASE}/bin/curl) XRUN_DEPENDS+= wget>=1.11.4:${PORTSDIR}/ftp/wget \ X bash>=3.2.48_1:${PORTSDIR}/shells/bash3 \ X clamav>=0.95:${PORTSDIR}/security/clamav \ X gnupg>=2.0.11:${PORTSDIR}/security/gnupg \ X rsync>=3.0.5:${PORTSDIR}/net/rsync X.else XRUN_DEPENDS+= curl>=7.19.2:${PORTSDIR}/ftp/curl \ X bash>=3.2.48_1:${PORTSDIR}/shells/bash3 \ X clamav>=0.95:${PORTSDIR}/security/clamav \ X gnupg>=2.0.11:${PORTSDIR}/security/gnupg \ X rsync>=3.0.5:${PORTSDIR}/net/rsync X.endif X XNO_BUILD= yes X XSUB_FILES= pkg-message X Xpost-patch: X @${REINPLACE_CMD} -e 's|SIG_DB=$${SIG_DB:-""}|SIG_DB=$${SIG_DB:-"/var/db/clamav"}|g' ${WRKSRC}/${PORTNAME}.sh X @${REINPLACE_CMD} -e 's|CONFIG_FILE=$${CONFIG_FILE:-/etc/$${SCRIPT_NAME}.conf}|CONFIG_FILE=$${CONFIG_FILE:-/usr/local/etc/$${SCRIPT_NAME}.conf}|g' ${WRKSRC}/${PORTNAME}.sh X Xpost-install: X @${INSTALL_DATA} ${FILESDIR}/scamp.conf.sample ${PREFIX}/etc/ X @if [ ! -f ${PREFIX}/etc/scamp.conf ]; then \ X ${CP} -p ${PREFIX}/etc/scamp.conf.sample \ X ${PREFIX}/etc/scamp.conf ; \ X fi X Xdo-install: X cd ${WRKSRC} && ${INSTALL_SCRIPT} ${PORTNAME}.sh ${PREFIX}/bin X X.ifndef(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X cd ${WRKSRC} && ${INSTALL_DATA} README CHANGE.LOG INSTALL Release.html ${DOCSDIR} X.endif X X ${CAT} ${PKGMESSAGE} X X.include END-of-/usr/ports/local/scamp/Makefile echo x - /usr/ports/local/scamp/pkg-descr sed 's/^X//' >/usr/ports/local/scamp/pkg-descr << 'END-of-/usr/ports/local/scamp/pkg-descr' XThis Bash script will download and install definition files for Clamav from the Xfollowing sites: X Xsanesecurity.com Xmalware.com.br Xmsrbl.com Xclamav.securiteinfo.com X XSite Address: X XWWW: https://sourceforge.net/projects/scamp/ END-of-/usr/ports/local/scamp/pkg-descr echo x - /usr/ports/local/scamp/distinfo sed 's/^X//' >/usr/ports/local/scamp/distinfo << 'END-of-/usr/ports/local/scamp/distinfo' XMD5 (scamp/scamp-5.2.tar.gz) = 95eb72d3f3a8bf5fe35e40fdff0141bf XSHA256 (scamp/scamp-5.2.tar.gz) = a265ccdb142cf1e2696da4b03218cd0dd463138918e0ce8a0d9d3d002d0afdd0 XSIZE (scamp/scamp-5.2.tar.gz) = 19240 END-of-/usr/ports/local/scamp/distinfo echo x - /usr/ports/local/scamp/pkg-plist sed 's/^X//' >/usr/ports/local/scamp/pkg-plist << 'END-of-/usr/ports/local/scamp/pkg-plist' Xbin/scamp.sh X%%PORTDOCS%%%%DOCSDIR%%/CHANGE.LOG X%%PORTDOCS%%%%DOCSDIR%%/INSTALL X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%%%DOCSDIR%%/Release.html X%%PORTDOCS%%@dirrm %%DOCSDIR%% X@unexec if cmp -s %D/etc/scamp.conf.sample %D/etc/scamp.conf; then rm -f %D/etc/scamp.conf; fi Xetc/scamp.conf.sample X@exec if [ ! -f %D/etc/scamp.conf ] ; then cp -p %D/%F %B/scamp.conf; fi END-of-/usr/ports/local/scamp/pkg-plist exit