mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Fix runtime when built with clang [1] [2]
- Support stage [3] - Switch to options helpers - Update patches, and rename them to follow makepatch naming maintainer timeout [1] [2] [3] -> take over maintainership PR: ports/184150 [1], ports/187117 [2], ports/189615 [3] Submitted by: Ryan Frederick [1], Jean-Sébastien Pédron [2], Ryan Frederick [3] Sponsored by: Absolight
This commit is contained in:
parent
c1b4c17b3b
commit
9fec22bd72
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355584
11 changed files with 117 additions and 136 deletions
|
@ -3,11 +3,12 @@
|
||||||
|
|
||||||
PORTNAME= Unreal
|
PORTNAME= Unreal
|
||||||
PORTVERSION= 3.2.10.2
|
PORTVERSION= 3.2.10.2
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= irc ipv6
|
CATEGORIES= irc ipv6
|
||||||
MASTER_SITES= http://www.unrealircd.com/downloads/
|
MASTER_SITES= http://www.unrealircd.com/downloads/
|
||||||
DISTNAME= ${PORTNAME}${PORTVERSION}
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
||||||
|
|
||||||
MAINTAINER= tanawts@gmail.com
|
MAINTAINER= mat@FreeBSD.org
|
||||||
COMMENT= Unreal - the next generation ircd
|
COMMENT= Unreal - the next generation ircd
|
||||||
|
|
||||||
LICENSE= GPLv2
|
LICENSE= GPLv2
|
||||||
|
@ -56,48 +57,24 @@ ZIPLINKS_DESC= Enable ziplinks support
|
||||||
PREFIXAQ_DESC= Enable prefixes for chanadmin and chanowner
|
PREFIXAQ_DESC= Enable prefixes for chanadmin and chanowner
|
||||||
REMOTE_DESC= Enable remote includes
|
REMOTE_DESC= Enable remote includes
|
||||||
|
|
||||||
NO_STAGE= yes
|
PORTDOCS= *
|
||||||
.include <bsd.port.options.mk>
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MDOCS}
|
|
||||||
DOCS= Donation doc/Authors doc/coding-guidelines \
|
DOCS= Donation doc/Authors doc/coding-guidelines \
|
||||||
doc/example.conf doc/tao.of.irc \
|
doc/example.conf doc/tao.of.irc \
|
||||||
doc/translations.txt doc/unreal32docs.html \
|
doc/translations.txt doc/unreal32docs.html \
|
||||||
doc/technical/005.txt doc/technical/base64.txt \
|
doc/technical/005.txt doc/technical/base64.txt \
|
||||||
doc/technical/protoctl.txt doc/technical/token.txt \
|
doc/technical/protoctl.txt doc/technical/token.txt \
|
||||||
doc/technical/vl.txt
|
doc/technical/vl.txt
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MHUB}
|
HUB_CONFIGURE_ENABLE= hub
|
||||||
CONFIGURE_ARGS+= --enable-hub
|
NOSPOOF_CONFIGURE_ENABLE= nospoof
|
||||||
.endif
|
ZIPLINKS_CONFIGURE_ENABLE= ziplinks
|
||||||
|
IPV6_CONFIGURE_ENABLE= inet6
|
||||||
.if ${PORT_OPTIONS:MNOSPOOF}
|
SSL_CONFIGURE_ENABLE= ssl
|
||||||
CONFIGURE_ARGS+= --enable-nospoof
|
SSL_USE= OPENSSL=yes
|
||||||
.endif
|
REMOTE_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
|
||||||
|
REMOTE_CONFIGURE_ON= --enable-libcurl=${LOCALBASE}
|
||||||
.if ${PORT_OPTIONS:MZIPLINKS}
|
REMOTE_CONFIGURE_OFF= --disable-libcurl
|
||||||
CONFIGURE_ARGS+= --enable-ziplinks
|
PREFIXAQ_CONFIGURE_ENABLE= prefixaq
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MIPV6}
|
|
||||||
CONFIGURE_ARGS+= --enable-inet6
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MSSL}
|
|
||||||
CONFIGURE_ARGS+= --enable-ssl
|
|
||||||
# we can't use USE_OPENSSL=yes after including bsd.port.pre.mk
|
|
||||||
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MREMOTE}
|
|
||||||
LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl
|
|
||||||
CONFIGURE_ARGS+= --enable-libcurl=${LOCALBASE}
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MPREFIXAQ}
|
|
||||||
CONFIGURE_ARGS+= --enable-prefixaq
|
|
||||||
.endif
|
|
||||||
|
|
||||||
SQLMOD= ${PORTNAME}/SQLMod.tar.gz
|
SQLMOD= ${PORTNAME}/SQLMod.tar.gz
|
||||||
|
|
||||||
|
@ -134,52 +111,32 @@ post-patch:
|
||||||
.endif
|
.endif
|
||||||
@${REINPLACE_CMD} -e "/Your system does not support IPv6/ s|as_fn_error|echo|" ${WRKSRC}/configure
|
@${REINPLACE_CMD} -e "/Your system does not support IPv6/ s|as_fn_error|echo|" ${WRKSRC}/configure
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL} -m 0700 ${WRKSRC}/src/ircd ${PREFIX}/libexec/ircd
|
${INSTALL} -m 0700 ${WRKSRC}/src/ircd ${STAGEDIR}${PREFIX}/libexec/ircd
|
||||||
${MKDIR} ${MODULESDIR}
|
${MKDIR} ${STAGEDIR}${MODULESDIR}
|
||||||
${MKDIR} ${CONFIGDIR} || true
|
${MKDIR} ${STAGEDIR}${CONFIGDIR} || true
|
||||||
${MKDIR} ${CONFIGDIR}/aliases || true
|
${MKDIR} ${STAGEDIR}${CONFIGDIR}/aliases || true
|
||||||
${MKDIR} ${EXAMPLESDIR}/aliases
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/aliases
|
||||||
${MKDIR} ${RUNDIR}/tmp
|
${MKDIR} ${STAGEDIR}${RUNDIR}/tmp
|
||||||
${MKDIR} ${LOGDIR}
|
${MKDIR} ${STAGEDIR}${LOGDIR}
|
||||||
${TOUCH} ${CONFIGDIR}/ircd.motd
|
${TOUCH} ${STAGEDIR}${CONFIGDIR}/ircd.motd
|
||||||
${TOUCH} ${CONFIGDIR}/ircd.rules
|
${TOUCH} ${STAGEDIR}${CONFIGDIR}/ircd.rules
|
||||||
${INSTALL_DATA} ${WRKSRC}/badwords.*.conf ${EXAMPLESDIR}
|
${INSTALL_DATA} ${WRKSRC}/badwords.*.conf ${STAGEDIR}${EXAMPLESDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/help.conf ${EXAMPLESDIR}
|
${INSTALL_DATA} ${WRKSRC}/help.conf ${STAGEDIR}${EXAMPLESDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/spamfilter.conf ${EXAMPLESDIR}
|
${INSTALL_DATA} ${WRKSRC}/spamfilter.conf ${STAGEDIR}${EXAMPLESDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/doc/example.conf ${EXAMPLESDIR}/unrealircd.conf
|
${INSTALL_DATA} ${WRKSRC}/doc/example.conf ${STAGEDIR}${EXAMPLESDIR}/unrealircd.conf
|
||||||
${INSTALL_DATA} ${WRKSRC}/aliases/*.conf ${EXAMPLESDIR}/aliases
|
${INSTALL_DATA} ${WRKSRC}/aliases/*.conf ${STAGEDIR}${EXAMPLESDIR}/aliases
|
||||||
${INSTALL} ${WRKSRC}/src/modules/*.so ${MODULESDIR}
|
${INSTALL} ${WRKSRC}/src/modules/*.so ${STAGEDIR}${MODULESDIR}
|
||||||
.if ${PORT_OPTIONS:MDOCS}
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
${MKDIR} ${DOCSDIR}
|
|
||||||
.for file in ${DOCS}
|
.for file in ${DOCS}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
@[ -f ${CONFIGDIR}/aliases/aliases.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/aliases/aliases.conf ${CONFIGDIR}/aliases
|
|
||||||
@[ -f ${CONFIGDIR}/aliases/anope.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/aliases/anope.conf ${CONFIGDIR}/aliases
|
|
||||||
@[ -f ${CONFIGDIR}/aliases/auspice.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/aliases/auspice.conf ${CONFIGDIR}/aliases
|
|
||||||
@[ -f ${CONFIGDIR}/aliases/cygnus.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/aliases/cygnus.conf ${CONFIGDIR}/aliases
|
|
||||||
@[ -f ${CONFIGDIR}/aliases/epona.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/aliases/epona.conf ${CONFIGDIR}/aliases
|
|
||||||
@[ -f ${CONFIGDIR}/aliases/generic.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/aliases/generic.conf ${CONFIGDIR}/aliases
|
|
||||||
@[ -f ${CONFIGDIR}/aliases/genericstats.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/aliases/genericstats.conf ${CONFIGDIR}/aliases
|
|
||||||
@[ -f ${CONFIGDIR}/aliases/ircservices.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/aliases/ircservices.conf ${CONFIGDIR}/aliases
|
|
||||||
@[ -f ${CONFIGDIR}/aliases/operstats.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/aliases/operstats.conf ${CONFIGDIR}/aliases
|
|
||||||
@[ -f ${CONFIGDIR}/badwords.channel.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/badwords.channel.conf ${CONFIGDIR}
|
|
||||||
@[ -f ${CONFIGDIR}/badworks.message.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/badwords.message.conf ${CONFIGDIR}
|
|
||||||
@[ -f ${CONFIGDIR}/badwords.quit.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/badwords.quit.conf ${CONFIGDIR}
|
|
||||||
@[ -f ${CONFIGDIR}/help.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/help.conf ${CONFIGDIR}
|
|
||||||
@[ -f ${CONFIGDIR}/spamfilter.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/spamfilter.conf ${CONFIGDIR}
|
|
||||||
@[ -f ${CONFIGDIR}/unrealircd.conf ] || ${INSTALL_DATA} ${EXAMPLESDIR}/unrealircd.conf ${CONFIGDIR}
|
|
||||||
@${CHOWN} -R ${USERS}:${GROUPS} ${CONFIGDIR}
|
|
||||||
@${CHOWN} ${USERS}:${GROUPS} ${RUNDIR}
|
|
||||||
@${CHOWN} ${USERS}:${GROUPS} ${LOGDIR}
|
|
||||||
.if defined(WITH_SQLMOD)
|
.if defined(WITH_SQLMOD)
|
||||||
@${CP} ${WRKSRC}/SQLMod/sample.conf ${CONFIGDIR}/m_sqlmod.conf
|
@${CP} ${WRKSRC}/SQLMod/sample.conf ${STAGEDIR}${CONFIGDIR}/m_sqlmod.conf
|
||||||
@${CP} ${WRKSRC}/SQLMod/Changes ${DOCSDIR}/Changes.sqlmod
|
@${CP} ${WRKSRC}/SQLMod/Changes ${STAGEDIR}${DOCSDIR}/Changes.sqlmod
|
||||||
@${CP} ${WRKSRC}/SQLMod/README ${DOCSDIR}/README.sqlmod
|
@${CP} ${WRKSRC}/SQLMod/README ${STAGEDIR}${DOCSDIR}/README.sqlmod
|
||||||
@${CP} ${WRKSRC}/SQLMod/LICENSE ${DOCSDIR}/LICENSE.sqlmod
|
@${CP} ${WRKSRC}/SQLMod/LICENSE ${STAGEDIR}${DOCSDIR}/LICENSE.sqlmod
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
$FreeBSD$
|
--- ./Makefile.in.orig 2013-11-24 20:24:26.000000000 +0100
|
||||||
|
+++ ./Makefile.in 2014-05-23 00:34:32.000000000 +0200
|
||||||
--- Makefile.in 2011-11-05 02:25:24.000000000 -0700
|
|
||||||
+++ Makefile.in 2011-11-28 10:21:38.000000000 -0800
|
|
||||||
@@ -38,7 +38,7 @@
|
@@ -38,7 +38,7 @@
|
||||||
CRYPTOLIB=@CRYPTOLIB@
|
CRYPTOLIB=@CRYPTOLIB@
|
||||||
OPENSSLINCLUDES=
|
OPENSSLINCLUDES=
|
||||||
|
|
20
irc/unreal/files/patch-configure
Normal file
20
irc/unreal/files/patch-configure
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
--- configure 2014-02-27 14:03:45.132445608 +0100
|
||||||
|
+++ configure 2014-02-27 14:03:05.502448091 +0100
|
||||||
|
@@ -6356,7 +6356,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
hold_cflags=$CFLAGS
|
||||||
|
-CFLAGS="$CFLAGS -export-dynamic"
|
||||||
|
+CFLAGS="$CFLAGS -Wl,-export-dynamic"
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need the -export-dynamic flag" >&5
|
||||||
|
$as_echo_n "checking if we need the -export-dynamic flag... " >&6; }
|
||||||
|
if ${ac_cv_export_dynamic+:} false; then :
|
||||||
|
@@ -6395,7 +6395,7 @@
|
||||||
|
else
|
||||||
|
|
||||||
|
if test "$ac_cv_c_compiler_gnu" = "yes"; then
|
||||||
|
- ac_cv_pic="-fPIC -DPIC -shared"
|
||||||
|
+ ac_cv_pic="-std=gnu89 -fPIC -DPIC -shared"
|
||||||
|
case `uname -s` in
|
||||||
|
Darwin*)
|
||||||
|
ac_cv_pic="-bundle -flat_namespace -undefined suppress"
|
20
irc/unreal/files/patch-configure.ac
Normal file
20
irc/unreal/files/patch-configure.ac
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
--- configure.ac 2013-11-24 20:24:26.000000000 +0100
|
||||||
|
+++ configure.ac 2014-02-27 14:02:58.916469490 +0100
|
||||||
|
@@ -107,7 +107,7 @@
|
||||||
|
])])
|
||||||
|
|
||||||
|
hold_cflags=$CFLAGS
|
||||||
|
-CFLAGS="$CFLAGS -export-dynamic"
|
||||||
|
+CFLAGS="$CFLAGS -Wl,-export-dynamic"
|
||||||
|
AC_CACHE_CHECK(if we need the -export-dynamic flag, ac_cv_export_dynamic, [
|
||||||
|
AC_TRY_LINK(, [int i];, ac_cv_export_dynamic=yes, ac_cv_export_dynamic=no)])
|
||||||
|
if test "$ac_cv_export_dynamic" = "no"; then
|
||||||
|
@@ -116,7 +116,7 @@
|
||||||
|
|
||||||
|
AC_CACHE_CHECK(for compiler option to produce PIC,ac_cv_pic,[
|
||||||
|
if test "$ac_cv_prog_gcc" = "yes"; then
|
||||||
|
- ac_cv_pic="-fPIC -DPIC -shared"
|
||||||
|
+ ac_cv_pic="-std=gnu89 -fPIC -DPIC -shared"
|
||||||
|
case `uname -s` in
|
||||||
|
Darwin*[)]
|
||||||
|
ac_cv_pic="-bundle -flat_namespace -undefined suppress"
|
|
@ -1,17 +1,17 @@
|
||||||
--- doc/example.conf 2009-04-13 13:03:55.000000000 +0200
|
--- ./doc/example.conf.orig 2013-11-24 20:24:26.000000000 +0100
|
||||||
+++ doc/example.conf 2009-08-18 16:36:29.000000000 +0200
|
+++ ./doc/example.conf 2014-05-23 00:34:32.000000000 +0200
|
||||||
@@ -33,8 +33,8 @@
|
@@ -33,8 +33,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* FOR *NIX, uncomment the following 2lines: */
|
/* FOR *NIX, uncomment the following 2lines: */
|
||||||
-//loadmodule "src/modules/commands.so";
|
-//loadmodule "src/modules/commands.so";
|
||||||
-//loadmodule "src/modules/cloak.so";
|
-//loadmodule "src/modules/cloak.so";
|
||||||
+//loadmodule "%%PREFIX%%/lib/Unreal/commands.so";
|
+loadmodule "%%PREFIX%%/lib/Unreal/commands.so";
|
||||||
+//loadmodule "%%PREFIX%%/lib/Unreal/cloak.so";
|
+loadmodule "%%PREFIX%%/lib/Unreal/cloak.so";
|
||||||
|
|
||||||
/* FOR Windows, uncomment the following 2 lines: */
|
/* FOR Windows, uncomment the following 2 lines: */
|
||||||
//loadmodule "modules/commands.dll";
|
//loadmodule "modules/commands.dll";
|
||||||
@@ -377,7 +377,7 @@
|
@@ -379,7 +379,7 @@
|
||||||
* };
|
* };
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
--- include/config.h 2009-04-13 13:03:57.000000000 +0200
|
--- ./include/config.h.orig 2013-11-24 20:24:26.000000000 +0100
|
||||||
+++ include/config.h 2009-08-18 16:16:39.000000000 +0200
|
+++ ./include/config.h 2014-05-23 00:34:32.000000000 +0200
|
||||||
@@ -210,16 +210,16 @@
|
@@ -242,16 +242,16 @@
|
||||||
* these are only the recommened names and paths. Change as needed.
|
* line argument. These used as the default values for options absent from the user's
|
||||||
* You must define these to something, even if you don't really want them.
|
* unrealircd.conf.
|
||||||
*/
|
*/
|
||||||
-#define CPATH "unrealircd.conf" /* server configuration file */
|
-#define CPATH "unrealircd.conf" /* server configuration file */
|
||||||
-#define MPATH "ircd.motd" /* server MOTD file */
|
-#define MPATH "ircd.motd" /* server MOTD file */
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
/* CHROOTDIR
|
/* CHROOTDIR
|
||||||
*
|
*
|
||||||
@@ -245,8 +245,8 @@
|
@@ -277,8 +277,8 @@
|
||||||
* define IRC_USER to that user name. This should only be defined if you
|
* define IRC_USER to that user name. This should only be defined if you
|
||||||
* are running as root and even then perhaps not.
|
* are running as root and even then perhaps not.
|
||||||
*/
|
*/
|
|
@ -1,8 +1,6 @@
|
||||||
$FreeBSD$
|
--- ./src/ircd.c.orig 2013-11-24 20:24:26.000000000 +0100
|
||||||
|
+++ ./src/ircd.c 2014-05-23 00:34:32.000000000 +0200
|
||||||
--- src/ircd.c 2011-11-05 02:25:24.000000000 -0700
|
@@ -1410,12 +1410,12 @@
|
||||||
+++ src/ircd.c 2011-11-28 10:21:38.000000000 -0800
|
|
||||||
@@ -1407,12 +1407,12 @@
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
@ -17,4 +15,3 @@ $FreeBSD$
|
||||||
#if defined(USE_LIBCURL) && defined(REMOTEINC_SPECIALCACHE)
|
#if defined(USE_LIBCURL) && defined(REMOTEINC_SPECIALCACHE)
|
||||||
mkdir("cache");
|
mkdir("cache");
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- src/modules.c 2009-04-13 13:03:58.000000000 +0200
|
--- ./src/modules.c.orig 2013-11-24 20:24:26.000000000 +0100
|
||||||
+++ src/modules.c 2009-08-20 15:32:56.000000000 +0200
|
+++ ./src/modules.c 2014-05-23 00:34:33.000000000 +0200
|
||||||
@@ -177,12 +177,12 @@
|
@@ -183,12 +183,12 @@
|
||||||
{
|
{
|
||||||
char tempbuf[PATH_MAX+1];
|
char tempbuf[PATH_MAX+1];
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
if (!loop.ircd_booted)
|
if (!loop.ircd_booted)
|
||||||
exit(7);
|
exit(7);
|
||||||
@@ -193,19 +193,19 @@
|
@@ -199,19 +199,19 @@
|
||||||
{
|
{
|
||||||
if (!strcmp(dir->d_name, ".") || !strcmp(dir->d_name, ".."))
|
if (!strcmp(dir->d_name, ".") || !strcmp(dir->d_name, ".."))
|
||||||
continue;
|
continue;
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
strcat(tempbuf, hData.cFileName);
|
strcat(tempbuf, hData.cFileName);
|
||||||
remove(tempbuf);
|
remove(tempbuf);
|
||||||
}
|
}
|
||||||
@@ -214,7 +214,7 @@
|
@@ -220,7 +220,7 @@
|
||||||
{
|
{
|
||||||
if (!strcmp(hData.cFileName, ".") || !strcmp(hData.cFileName, ".."))
|
if (!strcmp(hData.cFileName, ".") || !strcmp(hData.cFileName, ".."))
|
||||||
continue;
|
continue;
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
strcat(tempbuf, hData.cFileName);
|
strcat(tempbuf, hData.cFileName);
|
||||||
remove(tempbuf);
|
remove(tempbuf);
|
||||||
}
|
}
|
||||||
@@ -323,7 +323,7 @@
|
@@ -329,7 +329,7 @@
|
||||||
path = path_;
|
path = path_;
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
$FreeBSD$
|
--- ./src/s_conf.c.orig 2013-11-24 20:24:26.000000000 +0100
|
||||||
|
+++ ./src/s_conf.c 2014-05-23 00:34:33.000000000 +0200
|
||||||
--- src/s_conf.c 2011-11-05 02:25:24.000000000 -0700
|
@@ -9832,7 +9832,7 @@
|
||||||
+++ src/s_conf.c 2011-11-28 10:21:38.000000000 -0800
|
|
||||||
@@ -9652,7 +9652,7 @@
|
|
||||||
{
|
{
|
||||||
char *urlfile = url_getfilename(url);
|
char *urlfile = url_getfilename(url);
|
||||||
char *file_basename = unreal_getfilename(urlfile);
|
char *file_basename = unreal_getfilename(urlfile);
|
|
@ -1,6 +1,6 @@
|
||||||
--- src/url.c 2012-12-28 08:04:54.000000000 -0800
|
--- ./src/url.c.orig 2013-11-24 20:24:26.000000000 +0100
|
||||||
+++ src/url.c 2012-12-31 18:03:14.000000000 -0800
|
+++ ./src/url.c 2014-05-23 00:34:33.000000000 +0200
|
||||||
@@ -171,7 +171,7 @@
|
@@ -174,7 +174,7 @@
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
char *file = url_getfilename(url);
|
char *file = url_getfilename(url);
|
||||||
char *filename = unreal_getfilename(file);
|
char *filename = unreal_getfilename(file);
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
FILE *fd;
|
FILE *fd;
|
||||||
|
|
||||||
|
|
||||||
@@ -356,7 +356,7 @@
|
@@ -359,7 +359,7 @@
|
||||||
{
|
{
|
||||||
char *file = url_getfilename(url);
|
char *file = url_getfilename(url);
|
||||||
char *filename = unreal_getfilename(file);
|
char *filename = unreal_getfilename(file);
|
|
@ -110,18 +110,6 @@ lib/Unreal/m_who.so
|
||||||
lib/Unreal/m_whois.so
|
lib/Unreal/m_whois.so
|
||||||
lib/Unreal/m_whowas.so
|
lib/Unreal/m_whowas.so
|
||||||
libexec/ircd
|
libexec/ircd
|
||||||
%%DOCSDIR%%/005.txt
|
|
||||||
%%DOCSDIR%%/Authors
|
|
||||||
%%DOCSDIR%%/Donation
|
|
||||||
%%DOCSDIR%%/base64.txt
|
|
||||||
%%DOCSDIR%%/coding-guidelines
|
|
||||||
%%DOCSDIR%%/example.conf
|
|
||||||
%%DOCSDIR%%/protoctl.txt
|
|
||||||
%%DOCSDIR%%/tao.of.irc
|
|
||||||
%%DOCSDIR%%/token.txt
|
|
||||||
%%DOCSDIR%%/translations.txt
|
|
||||||
%%DOCSDIR%%/unreal32docs.html
|
|
||||||
%%DOCSDIR%%/vl.txt
|
|
||||||
%%EXAMPLESDIR%%/aliases/aliases.conf
|
%%EXAMPLESDIR%%/aliases/aliases.conf
|
||||||
%%EXAMPLESDIR%%/aliases/anope.conf
|
%%EXAMPLESDIR%%/aliases/anope.conf
|
||||||
%%EXAMPLESDIR%%/aliases/atheme.conf
|
%%EXAMPLESDIR%%/aliases/atheme.conf
|
||||||
|
@ -138,17 +126,18 @@ libexec/ircd
|
||||||
%%EXAMPLESDIR%%/help.conf
|
%%EXAMPLESDIR%%/help.conf
|
||||||
%%EXAMPLESDIR%%/spamfilter.conf
|
%%EXAMPLESDIR%%/spamfilter.conf
|
||||||
%%EXAMPLESDIR%%/unrealircd.conf
|
%%EXAMPLESDIR%%/unrealircd.conf
|
||||||
%%SQLMOD%%%%DOCSDIR%%/Changes.sqlmod
|
|
||||||
%%SQLMOD%%%%DOCSDIR%%/LICENSE.sqlmod
|
|
||||||
%%SQLMOD%%%%DOCSDIR%%/README.sqlmod
|
|
||||||
%%SQLMOD%%%%ETCDIR%%/m_sqlmod.conf
|
%%SQLMOD%%%%ETCDIR%%/m_sqlmod.conf
|
||||||
%%SQLMOD%%lib/Unreal/m_sqlmod.so
|
%%SQLMOD%%lib/Unreal/m_sqlmod.so
|
||||||
@dirrm %%DOCSDIR%%
|
@dirrmtry lib/Unreal
|
||||||
@dirrm %%EXAMPLESDIR%%
|
@dirrmtry %%EXAMPLESDIR%%/aliases
|
||||||
@dirrm %%EXAMPLESDIR%%/aliases
|
@dirrmtry %%EXAMPLESDIR%%
|
||||||
@dirrm lib/Unreal
|
@owner ircd
|
||||||
@dirrmtry %%ETCDIR%%
|
@group ircd
|
||||||
@dirrmtry %%ETCDIR%%/aliases
|
@dirrmtry %%ETCDIR%%/aliases
|
||||||
|
@dirrmtry %%ETCDIR%%
|
||||||
|
@unexec rmdir "/var/log/ircd" >/dev/null 2>&1 || :
|
||||||
|
@unexec rmdir "/var/run/ircd/tmp" >/dev/null 2>&1 || :
|
||||||
|
@unexec rmdir "/var/run/ircd" >/dev/null 2>&1 || :
|
||||||
@unexec if cmp -s %D/etc/Unreal/aliases/aliases.conf %D/%%EXAMPLESDIR%%/aliases/aliases.conf; then rm -f %D/etc/Unreal/aliases/aliases.conf; fi
|
@unexec if cmp -s %D/etc/Unreal/aliases/aliases.conf %D/%%EXAMPLESDIR%%/aliases/aliases.conf; then rm -f %D/etc/Unreal/aliases/aliases.conf; fi
|
||||||
@exec [ -f %D/etc/Unreal/aliases/aliases.conf ] || cp %D/%%EXAMPLESDIR%%/aliases/aliases.conf %D/etc/Unreal/aliases/aliases.conf
|
@exec [ -f %D/etc/Unreal/aliases/aliases.conf ] || cp %D/%%EXAMPLESDIR%%/aliases/aliases.conf %D/etc/Unreal/aliases/aliases.conf
|
||||||
@unexec if cmp -s %D/etc/Unreal/aliases/atheme.conf %D/%%EXAMPLESDIR%%/aliases/atheme.conf; then rm -f %D/etc/Unreal/aliases/atheme.conf; fi
|
@unexec if cmp -s %D/etc/Unreal/aliases/atheme.conf %D/%%EXAMPLESDIR%%/aliases/atheme.conf; then rm -f %D/etc/Unreal/aliases/atheme.conf; fi
|
||||||
|
@ -181,3 +170,5 @@ libexec/ircd
|
||||||
@exec [ -f %D/etc/Unreal/spamfilter.conf ] || cp %D/%%EXAMPLESDIR%%/spamfilter.conf %D/etc/Unreal/spamfilter.conf
|
@exec [ -f %D/etc/Unreal/spamfilter.conf ] || cp %D/%%EXAMPLESDIR%%/spamfilter.conf %D/etc/Unreal/spamfilter.conf
|
||||||
@unexec if cmp -s %D/etc/Unreal/unrealircd.conf %D/%%EXAMPLESDIR%%/unrealircd.conf; then rm -f %D/etc/Unreal/unrealircd.conf; fi
|
@unexec if cmp -s %D/etc/Unreal/unrealircd.conf %D/%%EXAMPLESDIR%%/unrealircd.conf; then rm -f %D/etc/Unreal/unrealircd.conf; fi
|
||||||
@exec [ -f %D/etc/Unreal/unrealircd.conf ] || cp %D/%%EXAMPLESDIR%%/unrealircd.conf %D/etc/Unreal/unrealircd.conf
|
@exec [ -f %D/etc/Unreal/unrealircd.conf ] || cp %D/%%EXAMPLESDIR%%/unrealircd.conf %D/etc/Unreal/unrealircd.conf
|
||||||
|
@owner root
|
||||||
|
@group wheel
|
||||||
|
|
Loading…
Add table
Reference in a new issue