# New ports collection makefile for:	ftpsearch
# Version required:	1.0
# Date created:		07 Dec 1996
# Whom:			Tor.Egge@idi.ntnu.no
#
# $Id: Makefile,v 1.4 1997/10/30 02:42:19 tegge Exp $
#

DISTNAME=	ftpsearch-1.0
CATEGORIES=	net
MASTER_SITES=	ftp://ftpsearch.ntnu.no/pub/ftpsearch/

MAINTAINER=	Tor.Egge@idi.ntnu.no

NO_PACKAGE=	"Hostname compiled in"

PATCH_SITES =   ftp://ftpsearch.ntnu.no/pub/ftpsearch/
PATCHFILES =	ftpsearch-1.0.patch1 \
		ftpsearch-1.0.patch2 \
		ftpsearch-1.0.patch3 \
		ftpsearch-1.0.patch4 \
		ftpsearch-1.0.patch5 \
		ftpsearch-1.0.patch6 \
		ftpsearch-1.0.patch7 \
		ftpsearch-1.0.patch8

GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	FTPSEARCHROOT=${PREFIX}/ftpsearch

MANPREFIX=${PREFIX}/ftpsearch
MAN1 = ftpsearch.1
MAN5 = cnames.5 ftpcli_config.5 sites.5 sites.alias.5 sites.skip.5
MAN7 = datasets.7
MAN8 =  astat.8 autoupdateconfig.pl.8 cardusage.8 checkenv.pl.8 chknavig.8 \
	chksites.pl.8 domainhelp.8 freq.8 ftpcli.8 \
	ftpsearchshell.8 gateway.8 genaliases.8 gendataset.8 genit.pl.8 \
	genmotd.pl.8 genspecter.8 genspecter2.8 listsite.8 load.8 \
	makesuffix.8 mergesites.8 nsslave.8 parsesite.8 removeoldparsed.pl.8 \
	search.8 sgateway.8 siteadmin.pl.8 sortsuffix.8

pre-install:
	find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} \{} \;

post-install:
	ln -sf ${PREFIX}/ftpsearch/bin/gateway ${PREFIX}/bin/ftpsearch

.include <bsd.port.mk>