2001-01-25 15:55:46 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: dictd
|
|
|
|
# Date created: Jan 23, 2001
|
|
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dictd
|
2006-01-02 06:37:41 +00:00
|
|
|
PORTVERSION= 1.10.4
|
2002-07-19 09:14:29 +00:00
|
|
|
CATEGORIES+= net textproc
|
2004-03-03 10:16:02 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2002-06-09 18:58:48 +00:00
|
|
|
MASTER_SITE_SUBDIR= dict
|
2001-01-25 15:55:46 +00:00
|
|
|
|
2002-11-03 06:30:14 +00:00
|
|
|
MAINTAINER?= dd@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Dict protocol (RFC 2229) server
|
2001-01-25 15:55:46 +00:00
|
|
|
|
|
|
|
MAN1= dictzip.1
|
|
|
|
MAN8= dictd.8
|
|
|
|
|
2006-04-14 06:10:26 +00:00
|
|
|
USE_RC_SUBR= ${PORTNAME}.sh
|
2002-06-09 18:58:48 +00:00
|
|
|
USE_BISON= yes
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2001-08-22 17:27:22 +00:00
|
|
|
CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}" \
|
|
|
|
--without-local-zlib
|
2003-10-17 09:11:39 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2004-08-30 07:48:27 +00:00
|
|
|
|
2006-04-14 06:10:26 +00:00
|
|
|
SUB_FILES+= pkg-message
|
|
|
|
SUB_LIST+= PORTSDIR=${PORTSDIR}
|
2004-08-30 07:48:27 +00:00
|
|
|
|
2001-01-25 15:55:46 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
ALL_TARGET= dictd dictzip
|
|
|
|
INSTALL_TARGET= install.dictd install.dictzip
|
|
|
|
|
|
|
|
post-patch:
|
2006-01-02 06:37:41 +00:00
|
|
|
.for i in Makefile.in dict.1.in dictd.8.in
|
2002-11-03 06:39:59 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/$i
|
2001-01-25 15:55:46 +00:00
|
|
|
.endfor
|
2002-11-03 06:40:49 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|\([\ \t(]\)T_USER|\1T_USERNAME|g" ${WRKSRC}/*.[chly]
|
2001-01-25 15:55:46 +00:00
|
|
|
|
|
|
|
post-install:
|
2004-08-29 07:08:03 +00:00
|
|
|
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.conf > ${PREFIX}/etc/${PORTNAME}.conf.sample
|
|
|
|
@[ -f ${PREFIX}/etc/${PORTNAME}.conf ] || ${CP} ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf
|
2006-04-14 06:10:26 +00:00
|
|
|
#@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/etc/rc.d
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2001-01-25 15:55:46 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|