1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-25 21:07:40 +00:00
freebsd-ports/net/dictd/Makefile
Clive Lin f0ad3af744 o Fix pkg-comment, this port only contains dict server
o Fix pkg-message, dict client is right at textproc/dict
o Add missing pkg-plist entry
o Really destroy T_USER conflicts. *SIGH*
o Fix dictd.sh startup script. Dictd itself won't generate
  any pid file. Thus I use my own trick.

pkg-* reported by: "Donald J . Maddox" <dmaddox@sc.rr.com>
2001-01-28 21:23:04 +00:00

51 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= 1
CATEGORIES= net textproc
MASTER_SITES= ftp://ftp.dict.org/pub/dict/
MAINTAINER= ijliao@FreeBSD.org
RUN_DEPENDS= ${LOCALBASE}/lib/dict/wn.index:${PORTSDIR}/net/dictd-database
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 dictd.conf 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
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/dictd.sh > ${PREFIX}/etc/rc.d/dictd.sh
@${CHMOD} +x ${PREFIX}/etc/rc.d/dictd.sh
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${PKGMESSAGE}
.include <bsd.port.mk>