- Update to 5.3

- Define LICENSE
- Remove redundant MANCOMPRESSED=no
- Use ${ETCDIR} where possible

PR:		ports/152243
Submitted by:	Gerard Seibert <gerard@seibercom.net> (maintainer)
This commit is contained in:
Sahil Tandon 2010-11-22 00:22:47 +00:00
parent 5c243d5c84
commit 115ab42446
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264894
5 changed files with 48 additions and 39 deletions

View file

@ -5,44 +5,44 @@
# $FreeBSD$
PORTNAME= scamp
PORTVERSION= 5.2j
PORTVERSION= 5.3
CATEGORIES= security
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= gerard@seibercom.net
COMMENT= Download & Install additional definition files for Clamav
RUN_DEPENDS+= bash>=4.1.5_2:${PORTSDIR}/shells/bash \
clamav>=0.96.1:${PORTSDIR}/security/clamav \
gnupg>=2.0.14_2:${PORTSDIR}/security/gnupg \
RUN_DEPENDS= bash>=4.1.9:${PORTSDIR}/shells/bash \
clamav>=0.96.4:${PORTSDIR}/security/clamav \
gnupg>=2.0.16_2:${PORTSDIR}/security/gnupg \
rsync>=3.0.7:${PORTSDIR}/net/rsync
LICENSE= BSD
.if exists (${LOCALBASE}/bin/wget) && ! exists (${LOCALBASE}/bin/curl)
RUN_DEPENDS+= wget>=1.12:${PORTSDIR}/ftp/wget
RUN_DEPENDS+= wget>=1.12_2:${PORTSDIR}/ftp/wget
.else
RUN_DEPENDS+= curl>=7.20.1:${PORTSDIR}/ftp/curl
RUN_DEPENDS+= curl>=7.21.1:${PORTSDIR}/ftp/curl
.endif
NO_BUILD= yes
SUB_FILES= pkg-message
MAN1= scamp.1
MANCOMPRESSED= no
post-patch:
@${REINPLACE_CMD} -e 's|CLAMAV_DB=$${CLAMAV_DB:-""}|CLAMAV_DB=$${CLAMAV_DB:-\"/var/db/clamav\"}|g' ${WRKSRC}/${PORTNAME}.sh
@${REINPLACE_CMD} -e 's|CONFIG_DIR=$${CONFIG_DIR:-"/etc/scamp"}|CONFIG_DIR=$${CONFIG_DIR:-\"${PREFIX}/etc/scamp\"}|g' ${WRKSRC}/${PORTNAME}.sh
@${REINPLACE_CMD} -e 's|CONFIG_DIR=$${CONFIG_DIR:-"/etc/scamp"}|CONFIG_DIR=$${CONFIG_DIR:-"${ETCDIR}"}|g' ${WRKSRC}/${PORTNAME}.sh
post-install:
@if [ ! -d ${PREFIX}/etc/scamp ]; then \
${MKDIR} ${PREFIX}/etc/scamp ; \
@if [ ! -d ${ETCDIR} ]; then \
${MKDIR} ${ETCDIR} ; \
fi
@${INSTALL_DATA} ${FILESDIR}/default.sample ${PREFIX}/etc/scamp/
@if [ ! -f ${PREFIX}/etc/scamp/default ]; then \
${CP} -p ${PREFIX}/etc/scamp/default.sample \
${PREFIX}/etc/scamp/default ; \
@${INSTALL_DATA} ${FILESDIR}/default.sample ${ETCDIR}
@if [ ! -f ${ETCDIR}/default ]; then \
${CP} -p ${ETCDIR}/default.sample \
${ETCDIR}/default ; \
fi
do-install:

View file

@ -1,3 +1,2 @@
MD5 (scamp-5.2j.tar.gz) = e987825d06849c40370a32d2b063a68d
SHA256 (scamp-5.2j.tar.gz) = 042e10f426df3d9967c395279b331fafa57a77626d9ad082495716c1c425299a
SIZE (scamp-5.2j.tar.gz) = 24827
SHA256 (scamp-5.3.tar.gz) = b622b3be38d76d656134e134c6c929c1b7b184fb36a3d66e016371b683fd5a05
SIZE (scamp-5.3.tar.gz) = 28949

View file

@ -1,7 +1,7 @@
# This is the /usr/local/etc/scamp/default file.
# Created June 10, 2010 @ 15:37:48
# Created November 14, 2010 @ 07:09:46
SCAMP_VERSION=5.2j
SCAMP_VERSION=5.3
CLAMAV_DB=/var/db/clamav
T_DIR=/var/db/clamav/tmp
C_GROUP=clamav

View file

@ -1,15 +1,25 @@
***********************************************************************
** WARNING ** *
*
* Please read the README file before running "scamp.sh" *
* If updating from an earlier version, it is suggested *
* that you first run: *
* *
* "scamp.sh -D" to delete all old configuration. Then, running *
* "scamp.sh" will cause the script to create a new configuration *
* *
* You will need to manually create any additional configuration files.*
* Read the README or type "man scamp" for further assistance. *
* *
***********************************************************************
************************************************************************
* ** WARNING ** *
* *
* Please read the README file before running "scamp.sh" *
* If updating from a version earlier than 5.2j, it is suggested *
* that you first run: "scamp.sh -D" to delete all old configurations. *
* Then, running "scamp.sh" will cause the script to create a new *
* configuration file. *
* *
* Check the "README" or "man scamp" for further information. *
* *
* The new versions of "scamp" can download definition files not *
* previously available in the older versions. *
* *
* You will also have to recreate any other additional configuration *
* files you might have used previously. *
* *
* I apologize for this inconvenience; however, it is the only feasible *
* way to insure that you have the most up-to-date configuration. *
* *
* You will need to manually create any additional configuration files. *
* Read the README or type "man scamp" for further assistance. *
* *
************************************************************************

View file

@ -4,8 +4,8 @@ bin/scamp.sh
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/Release.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@unexec if cmp -s %D/etc/scamp/default.sample %D/etc/scamp/default; then rm -f %D/etc/scamp/default; fi
etc/scamp/default.sample
@exec if [ ! -f %D/etc/scamp/default ] ; then cp -p %D/%F %B/default; fi
@exec mkdir -p %D/etc/scamp
@dirrmtry etc/scamp
@unexec if cmp -s %D/%%ETCDIR%%/default.sample %D/%%ETCDIR%%/default; then rm -f %D/%%ETCDIR%%/default; fi
%%ETCDIR%%/default.sample
@exec if [ ! -f %D/%%ETCDIR%%/default ] ; then cp -p %D/%F %B/default; fi
@exec mkdir -p %D/%%ETCDIR%%
@dirrmtry %%ETCDIR%%