aboutsummaryrefslogtreecommitdiffstats
path: root/irc/ircd-rusnet/Makefile
blob: 709478a08c445203ec88c7e9ca2c634bd2c9d46d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# New ports collection makefile for:    ircd-rusnet
# Date created:                         20 Mar 2005
# Whom:                                 SeaD
#
# $FreeBSD$
#

# Patch for `--with-user' `--with-group' and `--with-netname'
# by Alex Lyashkov <umka at mail.sevinter.net>

# ircd.motd.sample taken from irc.tomsk.ru

PORTNAME=   ircd-rusnet
PORTVERSION=    1.4.2
CATEGORIES= irc russian
MASTER_SITES=   http://freebsd.unixfreunde.de/sources/
DISTNAME=   rusnet-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    RusNet Internet Relay Chat Server

BROKEN= Does not fetch

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  irc_cv_mathlib=-lm

USERS=      ircd
GROUPS=     ${USERS}
NETWORK=    RusNet

VARDIR?=    /var
IRCD_CONFDIR?=  ${PREFIX}/etc/ircd-rusnet
IRCD_CODEPAGES?=    ${IRCD_CONFDIR}/codepages
IRCD_MOTD?= ${IRCD_CONFDIR}/ircd.motd
IRCD_LOGDIR?=   ${VARDIR}/log/ircd
IRCD_RUNDIR?=   ${VARDIR}/run/ircd

CONFIGURE_ARGS= --sysconfdir=${IRCD_CONFDIR} --codepagedir=${IRCD_CODEPAGES} \
        --logdir=${IRCD_LOGDIR} --localstatedir=${IRCD_RUNDIR} \
        --with-user=${USERS} --with-group=${GROUPS} --with-netname=${NETWORK}

ALL_TARGET= server tkserv client
BUILD_WRKSRC=   ${WRKSRC}/build
INSTALL_TARGET= install-server install-tkserv install-client
INSTALL_WRKSRC= ${WRKSRC}/build

CONFLICTS=  ircd-[0-9]*

MAN1=       irc.1
MAN5=       iauth.conf.5
MAN8=       ircd.8 iauth.8 ircdwatch.8

DOCS=       CHANGED FAQ doc/Authors doc/BUGS doc/ChangeLog doc/Etiquette \
        doc/INSTALL.appendix doc/INSTALL.txt doc/LICENSE doc/README \
        doc/RELEASE_NOTES doc/SERVICE.txt doc/alt-irc-faq \
        doc/iauth-internals.txt
LOGS=       ircd.log iauth.log tkserv.log

.if defined(WITHOUT_ZLIB)
CONFIGURE_ARGS+=--without-zlib
.else
CONFIGURE_ARGS+=--with-zlib
.endif

# seems to be broken
# .if defined(ENABLE_IPV6)
# CONFIGURE_ARGS+=--enable-ip6
# .endif

.if defined(ENABLE_DSM)
CONFIGURE_ARGS+=--enable-dsm
.endif

.include <bsd.port.pre.mk>

post-install:
    ${INSTALL_SCRIPT} ${FILESDIR}/ircd.sh.sample ${PREFIX}/etc/rc.d
    ${CP} ${FILESDIR}/ircd.motd.sample ${IRCD_CONFDIR}
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for docfile in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
.endif
.for logfile in ${LOGS}
    ${TOUCH} ${IRCD_LOGDIR}/${logfile}
.endfor
    @${CHOWN} -R ${USERS}:${GROUPS} ${IRCD_LOGDIR}
    @${CHOWN} -R ${USERS}:${GROUPS} ${IRCD_RUNDIR}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>