1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/net/dictd/Makefile

50 lines
1.3 KiB
Makefile
Raw Normal View History

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