Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Apr 2009 18:08:01 -0400
From:      Jerry <gesbbb@yahoo.com>
To:        freebsd-ports@freebsd.org
Subject:   Unable to get MAN pages installed
Message-ID:  <20090417180801.74461803@scorpio>

next in thread | raw e-mail | index | archive | help
I am in the process of creating a new port. I cannot seem to get the
'man' file installed correctly; however. This is the error message at
the end of the install process. The file 'scamp.1' exists in the $WRKSRC 
directory when I extract the distro.

===>   Compressing manual pages for scamp-5.2a
gzip: can't stat: /usr/local/man/man1/scamp.1: No such file or directory
===>   Registering installation for scamp-5.2a

This is the Makefile for the port. It will probably wrap incorrectly!

# New ports collection makefile for:	scamp
# Date created:	31 March 2009
# Whom:	Gerard Seibert <gerard@seibercom.net>
#
# $FreeBSD$

PORTNAME=	scamp
PORTVERSION=	5.2a
CATEGORIES=	security
MASTER_SITES=	http://site1/ ${MASTER_SITE_SOURCEFORGE:S/$/:sourceforge,TEST/}
DISTFILES=	scamp/scamp-5.2a.tar.gz:sourceforge

MAINTAINER=	gerard@seibercom.net
COMMENT=	Download & Install additional definition files for Clamav

.include <bsd.port.pre.mk>

.if exists (${LOCALBASE}/bin/wget) && ! exists (${LOCALBASE}/bin/curl)
RUN_DEPENDS+=	wget>=1.11.4:${PORTSDIR}/ftp/wget \
		bash>=3.2.48_1:${PORTSDIR}/shells/bash3 \
		clamav>=0.95:${PORTSDIR}/security/clamav \
		gnupg>=2.0.11:${PORTSDIR}/security/gnupg \
		rsync>=3.0.5:${PORTSDIR}/net/rsync
.else
RUN_DEPENDS+=	curl>=7.19.2:${PORTSDIR}/ftp/curl \
		bash>=3.2.48_1:${PORTSDIR}/shells/bash3 \
		clamav>=0.95:${PORTSDIR}/security/clamav \
		gnupg>=2.0.11:${PORTSDIR}/security/gnupg \
		rsync>=3.0.5:${PORTSDIR}/net/rsync
.endif

NO_BUILD=	yes

SUB_FILES=	pkg-message

MAN1=		scamp.1
MANCOMPRESS=	no

post-patch:
	@${REINPLACE_CMD} -e 's|SIG_DB=$${SIG_DB:-""}|SIG_DB=$${SIG_DB:-"/var/db/clamav"}|g' ${WRKSRC}/${PORTNAME}.sh
	@${REINPLACE_CMD} -e 's|CONFIG_DIR="/etc/scamp"|CONFIG_DIR="/usr/local/etc/scamp"|g' ${WRKSRC}/${PORTNAME}.sh

post-install:
	@${INSTALL_DATA} ${FILESDIR}/scamp.conf.sample ${PREFIX}/etc/
		@if [ ! -f ${PREFIX}/etc/scamp.conf ]; then \
			${CP} -p ${PREFIX}/etc/scamp.conf.sample \
			${PREFIX}/etc/scamp.conf ; \
		fi

do-install:
	cd ${WRKSRC} && ${INSTALL_SCRIPT} ${PORTNAME}.sh ${PREFIX}/bin

.ifndef(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} README CHANGE.LOG INSTALL Release.html ${DOCSDIR}
.endif

	${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>


Obviously, I am doing something wrong; I just cannot find it. A scan
with 'portlint -A' did not turn up a single error on the port.

I assume I am giving it the wrong PATH; however, I do not know how 
to correct it.


-- 
Jerry
gesbbb@yahoo.com

Blessed is he who expects nothing, for he shall never be disappointed.

	Alexander Pope




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090417180801.74461803>