Lines 8-24
Link Here
|
8 |
# |
8 |
# |
9 |
|
9 |
|
10 |
PORTNAME= Unreal |
10 |
PORTNAME= Unreal |
11 |
PORTVERSION= 3.2 |
11 |
PORTVERSION= 3.2.1 |
12 |
CATEGORIES= irc |
12 |
CATEGORIES= irc |
13 |
MASTER_SITES= http://mirror.nimsay-networks.com/unrealircd/ \ |
13 |
MASTER_SITES= http://mirror.nimsay-networks.com/unrealircd/ \ |
14 |
http://unrealircd.za.net/ \ |
14 |
http://unrealircd.za.net/ \ |
15 |
ftp://unrealircd.za.net/pub/UnrealIRCd/ |
15 |
ftp://unrealircd.za.net/pub/UnrealIRCd/ |
16 |
DISTNAME= ${PORTNAME}${PORTVERSION} |
16 |
DISTNAME= ${PORTNAME}${PORTVERSION} |
|
|
17 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} |
17 |
|
18 |
|
18 |
MAINTAINER= tux@pinguru.net |
19 |
MAINTAINER= tux@pinguru.net |
19 |
COMMENT= Unreal - the next generation ircd |
20 |
COMMENT= Unreal - the next generation ircd |
20 |
|
21 |
|
21 |
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION} |
22 |
SQLMOD= Unreal/SQLMod.tar.gz |
|
|
23 |
|
24 |
WRKSRC= ${WRKDIR}/${PORTNAME}3.2 |
22 |
|
25 |
|
23 |
HAS_CONFIGURE= yes |
26 |
HAS_CONFIGURE= yes |
24 |
|
27 |
|
Lines 35-40
Link Here
|
35 |
--with-fd-setsize=1024 \ |
38 |
--with-fd-setsize=1024 \ |
36 |
--enable-dynamic-linking |
39 |
--enable-dynamic-linking |
37 |
|
40 |
|
|
|
41 |
.include <bsd.port.pre.mk> |
42 |
|
43 |
.if exists(${DISTDIR}/${SQLMOD}) |
44 |
USE_MYSQL= yes |
45 |
WITH_SQLMOD= yes |
46 |
MAKE_ARGS= all custommodule MODULEFILE=m_sqlmod |
47 |
PLIST_FILES+= Unreal/modules/m_sqlmod.so Unreal/m_sqlmod.conf \ |
48 |
Unreal/doc/Changes.sqlmod Unreal/doc/README.sqlmod \ |
49 |
Unreal/doc/LICENSE.sqlmod |
50 |
.endif |
51 |
|
38 |
.if defined(WITH_IPV6) |
52 |
.if defined(WITH_IPV6) |
39 |
CONFIGURE_ARGS+= --enable-inet6 |
53 |
CONFIGURE_ARGS+= --enable-inet6 |
40 |
.endif |
54 |
.endif |
Lines 44-47
Link Here
|
44 |
USE_OPENSSL= yes |
58 |
USE_OPENSSL= yes |
45 |
.endif |
59 |
.endif |
46 |
|
60 |
|
47 |
.include <bsd.port.mk> |
61 |
post-extract: |
|
|
62 |
.if defined(WITH_SQLMOD) |
63 |
@${TAR} xfz ${DISTDIR}/${SQLMOD} -C ${WRKSRC} |
64 |
@${MV} ${WRKSRC}/SQLMod* ${WRKSRC}/SQLMod |
65 |
@${CP} -r ${WRKSRC}/SQLMod/m_sqlmod.c ${WRKSRC}/src/modules |
66 |
.endif |
67 |
|
68 |
post-patch: |
69 |
.if defined(WITH_SQLMOD) |
70 |
@${PATCH} -d ${WRKSRC} < ${WRKSRC}/SQLMod/patch |
71 |
.endif |
72 |
|
73 |
post-install: |
74 |
.if defined(WITH_SQLMOD) |
75 |
@${CP} ${WRKSRC}/SQLMod/sample.conf ${PREFIX}/Unreal/m_sqlmod.conf |
76 |
@${CP} ${WRKSRC}/SQLMod/Changes ${PREFIX}/Unreal/doc/Changes.sqlmod |
77 |
@${CP} ${WRKSRC}/SQLMod/README ${PREFIX}/Unreal/doc/README.sqlmod |
78 |
@${CP} ${WRKSRC}/SQLMod/LICENSE ${PREFIX}/Unreal/doc/LICENSE.sqlmod |
79 |
@${INSTALL} ${WRKSRC}/src/modules/m_sqlmod.so ${PREFIX}/Unreal/modules/m_sqlmod.so |
80 |
.endif |
81 |
|
82 |
.include <bsd.port.post.mk> |