1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/net-im/iserverd/Makefile
Jason Helfman 4c6703ce1d - adoption of optionsNG framework
Approved by:	portmgr (bapt)
2013-05-23 16:10:43 +00:00

63 lines
1.6 KiB
Makefile

# Created by: Denis Rakhmangulov <danfocus@gmail.com>
# $FreeBSD$
PORTNAME= iserverd
PORTVERSION= 2.5.5
PORTREVISION= 3
CATEGORIES= net-im
MASTER_SITES= http://iserverd.khstu.ru/download/
MAINTAINER= danfocus@gmail.com
COMMENT= Groupware ICQ server clone
USE_PGSQL= YES
GNU_CONFIGURE= YES
USE_RC_SUBR= iserverd
OPTIONS_DEFINE= KQUEUE DEBUG
KQUEUE_DESC= kqueue(2) instead of poll(2)
OPTIONS_DEFAULT= KQUEUE
CONFIGURE_ARGS= --with-pgsql=${LOCALBASE} \
--with-bindir=${PREFIX}/bin \
--with-etcdir=${PREFIX}/etc/iserverd \
--with-vardir=/var/run/iserverd \
--with-sbindir=${PREFIX}/bin \
--with-mandir=${PREFIX}/man \
--with-logdir=/var/log/iserverd
MAN1= db_convert.1
MAN5= iserv.conf.5 v3_proto.conf.5 v5_proto.conf.5
MAN8= iserverd.8
.include <bsd.port.options.mk>
.if ${OSVERSION} >= 700042
.if ${ARCH} == "sparc64"
BROKEN= Does not compile with GCC 4.2
.endif
.endif
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug
.endif
.if ${PORT_OPTIONS:MKQUEUE}
CONFIGURE_ARGS+=--with-kqueue
.endif
post-install:
@${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CHMOD} 644 ${PREFIX}/etc/iserverd/iserv.conf.default
@${CHMOD} 644 ${PREFIX}/etc/iserverd/aim_proto.conf
@${CHMOD} 644 ${PREFIX}/etc/iserverd/actions.conf.default
@${CHMOD} 644 ${PREFIX}/etc/iserverd/v3_proto.conf.default
@${CHMOD} 644 ${PREFIX}/etc/iserverd/v5_proto.conf.default
@${CHMOD} 644 ${PREFIX}/etc/iserverd/v7_proto.conf.default
@${CHMOD} 644 ${PREFIX}/etc/iserverd/texts/*
@${CHMOD} 644 ${PREFIX}/etc/iserverd/translate/*
@${CHOWN} -R iserv /var/log/iserverd
@${CHOWN} -R iserv /var/run/iserverd
.include <bsd.port.mk>