openbsd-ports/net/irc/Makefile

69 lines
1.7 KiB
Makefile
Raw Normal View History

2013-03-11 07:35:43 -04:00
# $OpenBSD: Makefile,v 1.36 2013/03/11 11:35:48 espie Exp $
1999-03-09 21:37:44 -05:00
COMMENT= internet relay chat (irc) server
DISTNAME= irc2.10.3p1
PKGNAME= ${DISTNAME:S/irc/irc-/:S/p/./}
REVISION= 2
1997-11-14 19:04:24 -05:00
CATEGORIES= net
2002-10-27 20:38:44 -05:00
MASTER_SITES= ftp://ftp.irc.org/irc/server/Old/ \
ftp://ftp.ntua.gr/pub/net/irc/server/
EXTRACT_SUFX= .tgz
1997-11-14 19:04:24 -05:00
2002-05-08 13:06:05 -04:00
MAINTAINER= Brian Caswell <bmc@openbsd.org>
1997-11-14 19:04:24 -05:00
# GPLv1+
2000-06-08 16:32:35 -04:00
PERMIT_PACKAGE_CDROM= Yes
2004-12-15 19:31:20 -05:00
WANTLIB= c m z
2000-02-12 03:02:07 -05:00
2012-04-28 06:51:44 -04:00
LOCALSTATEDIR= ${BASELOCALSTATEDIR}/run
CONFDIR= ${SYSCONFDIR}/ircd
CONFIGURE_STYLE= gnu old
2004-08-03 14:24:40 -04:00
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/support
CONFIGURE_ARGS= --logdir="/var/log/ircd" \
--sysconfdir=${CONFDIR}
2010-10-18 17:50:38 -04:00
USE_GROFF = Yes
FLAVORS= ipv6 hub
FLAVOR?=
.if ${FLAVOR:Mipv6}
CONFIGURE_ARGS+= --enable-ip6
.endif
1999-03-09 21:37:44 -05:00
# syslog facility to use for logging
SYSLOG_FACILITY= LOG_LOCAL5
1999-03-09 21:37:44 -05:00
ALL_TARGET= server
1999-03-09 21:37:44 -05:00
WRKBUILD= ${WRKSRC}/support
1997-11-14 19:04:24 -05:00
SUBST_VARS= CONFDIR
pre-configure:
.if ${FLAVOR:Mhub}
@perl -pi -e 's,^/\* #define\tHUB \*/,#define\tHUB,g' ${WRKSRC}/support/config.h.dist
.endif
@cp $(WRKSRC)/support/config.h.dist $(WRKSRC)/support/config.h
2013-03-11 07:35:43 -04:00
NO_TEST= Yes
2002-10-27 20:38:44 -05:00
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ircd
cd ${WRKBUILD}; ${INSTALL_PROGRAM} \
iauth chkconf ircdwatch ircd-mkpasswd ircd \
${PREFIX}/sbin
cd ${WRKSRC}/doc; ${INSTALL_MAN} ircd.8 iauth.8 \
${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/doc/iauth.conf.5 ${PREFIX}/man/man5
${INSTALL_DATA} ${WRKSRC}/support/iauth.conf \
${PREFIX}/share/examples/ircd/iauth.conf-sample
${INSTALL_DATA} ${WRKSRC}/support/iauth.conf \
${PREFIX}/share/examples/ircd/ircd.m4
${INSTALL_DATA} ${WRKSRC}/doc/example.conf \
${PREFIX}/share/examples/ircd/ircd.conf-sample
1999-03-09 21:37:44 -05:00
1997-11-14 19:04:24 -05:00
.include <bsd.port.mk>