aboutsummaryrefslogtreecommitdiffstats
path: root/irc/ircd-hybrid/Makefile
blob: ca4fad8a47d288d36f8d0aeb76534e842f45ed4d (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
# New ports collection makefile for:    ircd-hybrid
# Date Created:             2001-10-07
# Whom:                 David Taylor <davidt@yadt.co.uk>
#
# $FreeBSD$
#

PORTNAME=   ircd-hybrid
PORTVERSION=    6.3.1
CATEGORIES= irc
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ircd-hybrid
EXTRACT_SUFX=   .tgz

MAINTAINER= so14k@so14k.com
COMMENT=    An irc daemon with a number of new features

MAN8=       ircd.8

USE_GMAKE=  yes
GNU_CONFIGURE=  yes

CPIO?=      /usr/bin/cpio --quiet -pdum -R

.if !defined(PACKAGE_BUILDING) && !defined(BATCH)
IS_INTERACTIVE= yes
.endif

post-extract:
    @${MV} ${WRKSRC}/include/config.h ${WRKSRC}/include/config.h.in
    @${MV} ${WRKSRC}/tools/install_ircd ${WRKSRC}/tools/install_ircd.in

post-configure:
    ${CHMOD} +x ${WRKSRC}/tools/install_ircd

pre-install:
.if !defined(PACKAGE_BUILDING) && !defined(BATCH)
    @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
.endif

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @cd ${WRKSRC}/doc && ${FIND} * -type f -print \
        | ${CPIO} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
    @${CHMOD} -R ${SHAREMODE} ${DOCSDIR}
    @${CHMOD} -R a+X ${DOCSDIR}
.endif
    @${SED} -e "s#%PREFIX%#${PREFIX}#" ${FILESDIR}/ircd.sh \
        > ${WRKDIR}/ircd.sh
    @${INSTALL_SCRIPT} ${WRKDIR}/ircd.sh ${PREFIX}/etc/rc.d
    @${SED} -e "s#/usr/local/#${PREFIX}/#" ${PKGMESSAGE}

.include <bsd.port.mk>