freebsd-ports/net/dictd/Makefile
Clive Lin d08e472e76 o Swap dependency. Now dictd-database needs dictzip to be built. One of its
dictionary file isn't shipped with .dz format.

o Add a short message in dictd's pkg-message:
  "Don't forget to install ports/net/dictd-database. After that, you
   could run your own dictd server without pain."

o Bump PORTREVISION of both ports.
  (It would heart your brain and waste you time to dig the reason why
   dictd refused to start properly in the previous revision.)

Reviewed by: dictd -t review
2001-05-07 15:21:41 +00:00

48 lines
1.4 KiB
Makefile

# 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.5.5
PORTREVISION= 3
CATEGORIES= net textproc
MASTER_SITES= ftp://ftp.dict.org/pub/dict/
MAINTAINER= ijliao@FreeBSD.org
MAN1= dictzip.1
MAN8= dictd.8
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}"
CONFIGURE_ENV= CFLAGS="${CFLAGS}"
USE_GMAKE= yes
ALL_TARGET= dictd dictzip
INSTALL_TARGET= install.dictd install.dictzip
post-patch:
.for i in dict.1 dictd.8
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/$i
.endfor
.for i in example.conf
@${PERL} -pi -e "s|/usr|${PREFIX}|g" ${WRKSRC}/$i
.endfor
@${PERL} -pi -e "s|%%CFLAGS%%|${CFLAGS}|g" ${WRKSRC}/zlib/Makefile
@${PERL} -pi -e "s|[\ \t]T_USER| T_USERNAME|g" ${WRKSRC}/*.[chly]
post-install:
@${MKDIR} ${PREFIX}/share/${PORTNAME}
.for i in example.conf example.dictrc example.site example2.conf example3.conf
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/${PORTNAME}
.endfor
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.conf > ${PREFIX}/etc/${PORTNAME}.conf
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.sh > ${PREFIX}/etc/rc.d/${PORTNAME}.sh
@${CHMOD} +x ${PREFIX}/etc/rc.d/${PORTNAME}.sh
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${PKGMESSAGE}
.include <bsd.port.mk>