mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
irc/nefarious: stage, unbreak on F10+ and more
* Add stage support * Fix build for clang * convert USE_BZIP2 * Bring in DragonFly support patch * convert USE_OPENSSL and USE_CHROOT knobs to options * rename DOMAIN knob to NEFARIOUS_DOMAIN knob * rename INSTALL_PREFIX knob to NEFARIOUS_INSTALL_PREFIX knob * Make bash dependency work in non-standard location * Tweak pre-configure message accordingly, remove sleep command
This commit is contained in:
parent
2b4f0257f1
commit
907704416b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360820
@ -12,41 +12,46 @@ COMMENT= IRC server used by evilnet based off of Undernet\'s ircu
|
||||
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
|
||||
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
|
||||
|
||||
USE_BZIP2= yes
|
||||
USES= tar:bzip2
|
||||
HAS_CONFIGURE= yes
|
||||
PLIST_SUB+= INSTALL_PREFIX=${INSTALL_PREFIX:S/${PREFIX}\///}
|
||||
MAN8= ircd.8
|
||||
|
||||
.if defined(WITH_OPENSSL)
|
||||
USE_OPENSSL= yes
|
||||
CONFIGURE_ARGS+= --enable-ssl
|
||||
.endif
|
||||
OPTIONS_DEFINE= SSL CHROOT
|
||||
CHROOT_DESC= Chroot the irc daemon within INSTALL_PREFIX
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
SSL_CONFIGURE_ENABLE= ssl
|
||||
|
||||
.if !defined(INSTALL_PREFIX)
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if defined(NEFARIUS_INSTALL_PREFIX)
|
||||
INSTALL_PREFIX=${NEFARIUS_INSTALL_PREFIX}
|
||||
.else
|
||||
INSTALL_PREFIX=${PREFIX}/${PORTNAME}
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CHROOT)
|
||||
.if ${PORT_OPTIONS:MSSL}
|
||||
USE_OPENSSL= yes
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MCHROOT}
|
||||
CONFIGURE_ARGS+= --with-chroot=${INSTALL_PREFIX}
|
||||
.endif
|
||||
|
||||
.if defined(DOMAIN)
|
||||
CONFIGURE_ARGS+= --with-domain=${DOMAIN}
|
||||
.if defined(NEFARIOUS_DOMAIN)
|
||||
CONFIGURE_ARGS+= --with-domain=${NEFARIOUS_DOMAIN}
|
||||
.endif
|
||||
|
||||
CONFIGURE_ARGS+= --prefix=${INSTALL_PREFIX} --mandir=${MANPREFIX}/man --infodir=${PREFIX}/${INFO_PATH}
|
||||
CONFIGURE_ARGS+= --prefix=${STAGEDIR}${INSTALL_PREFIX} \
|
||||
--mandir=${STAGEDIR}${MANPREFIX}/man
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|g' ${WRKSRC}/configure
|
||||
|
||||
pre-configure:
|
||||
@${ECHO_CMD} ""
|
||||
@${ECHO_CMD}
|
||||
@${ECHO_CMD} "User configurable options for ${PORTNAME}:"
|
||||
@${ECHO_CMD} "INSTALL_PREFIX - Where to install all Nefarious files (default: PREFIX/Nefarious)"
|
||||
@${ECHO_CMD} "WITH_OPENSSL - Compile with SSL support"
|
||||
@${ECHO_CMD} "WITH_CHROOT - chroot the ircd within INSTALL_PREFIX"
|
||||
@${ECHO_CMD} "DOMAIN - Domain to use for IRCd"
|
||||
@${ECHO_CMD} ""
|
||||
@sleep 5
|
||||
@${ECHO_CMD} "NEFARIOUS_INSTALL_PREFIX - Install location for Nefarious (default: ${PREFIX}/Nefarious)"
|
||||
@${ECHO_CMD} "NEFARIOUS_DOMAIN - Domain to use for IRCd"
|
||||
@${ECHO_CMD}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,11 +1,20 @@
|
||||
--- configure.orig 2009-07-31 23:06:12.000000000 -0300
|
||||
+++ configure 2009-07-31 23:06:29.000000000 -0300
|
||||
@@ -10364,7 +10364,7 @@
|
||||
--- configure.orig 2008-08-04 02:56:02.000000000 +0000
|
||||
+++ configure
|
||||
@@ -10364,7 +10364,7 @@ fi
|
||||
|
||||
test -n "$BASH" && break
|
||||
done
|
||||
-test -n "$BASH" || BASH="/bin/bash"
|
||||
+test -n "$BASH" || BASH="/usr/local/bin/bash"
|
||||
+test -n "$BASH" || BASH="@PREFIX@/bin/bash"
|
||||
|
||||
|
||||
{ echo "$as_me:$LINENO: checking for posix non-blocking" >&5
|
||||
@@ -10783,7 +10783,7 @@ echo "${ECHO_T}OpenBSD ($host) found." >
|
||||
OSDEP_C=os_openbsd.c
|
||||
;;
|
||||
|
||||
- *-*bsd*)
|
||||
+ *-*bsd*|*-dragonfly*)
|
||||
{ echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
|
||||
echo "${ECHO_T}Generic BSD ($host) found." >&6; }
|
||||
CFLAGS="-Wno-long-long $CFLAGS"
|
||||
|
19
irc/nefarious/files/patch-ircd_m__help.c
Normal file
19
irc/nefarious/files/patch-ircd_m__help.c
Normal file
@ -0,0 +1,19 @@
|
||||
--- ircd/m_help.c.orig 2008-08-04 02:55:42.000000000 +0000
|
||||
+++ ircd/m_help.c
|
||||
@@ -243,6 +243,7 @@ sendhelpfile(struct Client *sptr, const
|
||||
send_reply(sptr, RPL_ENDOFHELP, topic);
|
||||
}
|
||||
|
||||
+void
|
||||
dohelp(struct Client *sptr, const char *hpath, char *topic)
|
||||
{
|
||||
char path[PATH_MAX + 1];
|
||||
@@ -291,7 +292,7 @@ dohelp(struct Client *sptr, const char *
|
||||
sendhelpfile(sptr, path, topic);
|
||||
}
|
||||
|
||||
-int m_help(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
|
||||
+void m_help(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
|
||||
{
|
||||
static time_t last_used = 0;
|
||||
|
@ -1,3 +1,4 @@
|
||||
man/man8/ircd.8.gz
|
||||
%%INSTALL_PREFIX%%/bin/ircd
|
||||
%%INSTALL_PREFIX%%/bin/chkconf
|
||||
%%INSTALL_PREFIX%%/lib/example.conf
|
||||
|
Loading…
Reference in New Issue
Block a user