- Use OPTIONS and add more options
- Add rc.d script - Bump PORTREVISION PR: 93285 Submitted by: mnag Approved by: maintainer
This commit is contained in:
parent
5fa7679490
commit
d403e8a330
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155947
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
PORTNAME= ngircd
|
PORTNAME= ngircd
|
||||||
PORTVERSION= 0.9.2
|
PORTVERSION= 0.9.2
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= irc
|
CATEGORIES= irc
|
||||||
MASTER_SITES= http://download.berlios.de/ngircd/ \
|
MASTER_SITES= http://download.berlios.de/ngircd/ \
|
||||||
ftp://ftp.berlios.de/pub/ngircd/
|
ftp://ftp.berlios.de/pub/ngircd/
|
||||||
@ -14,22 +15,27 @@ MASTER_SITES= http://download.berlios.de/ngircd/ \
|
|||||||
MAINTAINER= laszlof@vonostingroup.com
|
MAINTAINER= laszlof@vonostingroup.com
|
||||||
COMMENT= Free open source daemon for Internet Relay Chat (IRC)
|
COMMENT= Free open source daemon for Internet Relay Chat (IRC)
|
||||||
|
|
||||||
|
USE_RC_SUBR= ngircd
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||||
LIBS="-L${LOCALBASE}/lib"
|
LIBS="-L${LOCALBASE}/lib"
|
||||||
|
|
||||||
MAN5= ngircd.conf.5
|
MAN5= ngircd.conf.5
|
||||||
MAN8= ngircd.8
|
MAN8= ngircd.8
|
||||||
|
|
||||||
.if exists(/usr/include/tcpd.h)
|
OPTIONS= TCP_WRAPPERS "Enable TCP wrappers support" on \
|
||||||
WITH_TCP_WRAPPERS= yes
|
SYSLOG "Enable SYSLOG support" on \
|
||||||
CONFIGURE_ARGS+= --with-tcp-wrappers
|
ZLIB "Enable ZLIB compression" on \
|
||||||
.endif
|
IRCPLUS "Enable IRC+ protocol" on \
|
||||||
|
IDENT "Enable IDENT (AUTH) protocol support" off \
|
||||||
|
SNIFFER "Enable IRC traffic sniffer" off \
|
||||||
|
DEBUG "Show additional debug output" off
|
||||||
|
|
||||||
.if defined(WITH_IDENT)
|
.include <bsd.port.pre.mk>
|
||||||
LIB_DEPENDS+= ident.0:${PORTSDIR}/security/libident
|
|
||||||
CONFIGURE_ARGS+= --with-ident
|
.if exists(/usr/include/tcpd.h) && !defined(WITHOUT_TCP_WRAPPERS)
|
||||||
|
CONFIGURE_ARGS+= --with-tcp-wrappers
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITHOUT_SYSLOG)
|
.if defined(WITHOUT_SYSLOG)
|
||||||
@ -40,31 +46,27 @@ CONFIGURE_ARGS+= --without-syslog
|
|||||||
CONFIGURE_ARGS+= --without-zlib
|
CONFIGURE_ARGS+= --without-zlib
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
pre-configure:
|
.if defined(WITHOUT_IRCPLUS)
|
||||||
@${ECHO_MSG} ""
|
CONFIGURE_ARGS+= --disable-ircplus
|
||||||
.if defined(WITH_TCP_WRAPPERS)
|
|
||||||
@${ECHO_MSG} "Enable TCP wrappers support"
|
|
||||||
@${ECHO_MSG} ""
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_IDENT)
|
.if defined(WITH_IDENT)
|
||||||
@${ECHO_MSG} "Enable ident support"
|
LIB_DEPENDS+= ident.0:${PORTSDIR}/security/libident
|
||||||
@${ECHO_MSG} ""
|
CONFIGURE_ARGS+= --with-ident
|
||||||
.endif
|
.endif
|
||||||
.if defined(WITHOUT_SYSLOG)
|
|
||||||
@${ECHO_MSG} "Disable syslog support"
|
.if defined(WITH_SNIFFER)
|
||||||
@${ECHO_MSG} ""
|
CONFIGURE_ARGS+= --enable-sniffer
|
||||||
.endif
|
.endif
|
||||||
.if defined(WITHOUT_ZLIB)
|
|
||||||
@${ECHO_MSG} "Disable zlib suppot"
|
.if defined(WITH_DEBUG)
|
||||||
@${ECHO_MSG} ""
|
CONFIGURE_ARGS+= --enable-debug
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
${MKDIR} ${DOCSDIR}
|
@${MKDIR} ${DOCSDIR}
|
||||||
.for i in README
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
||||||
.endfor
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
33
irc/ngircd/files/ngircd.in
Normal file
33
irc/ngircd/files/ngircd.in
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
# PROVIDE: ngircd
|
||||||
|
# REQUIRE: DAEMON
|
||||||
|
#
|
||||||
|
# Add the following lines to /etc/rc.conf to run ngircd:
|
||||||
|
#
|
||||||
|
# ngircd_enable (bool): Set it to "YES" to enable ngircd.
|
||||||
|
# Default is "NO".
|
||||||
|
# ngircd_conf (file): Set local of config file.
|
||||||
|
# Default is "%%PREFIX%%/etc/ngircd.conf".
|
||||||
|
# ngircd_flags (flags): Set extra flags here. More options in ngircd(1)
|
||||||
|
# Default is empty "".
|
||||||
|
#
|
||||||
|
|
||||||
|
. %%RC_SUBR%%
|
||||||
|
|
||||||
|
name="ngircd"
|
||||||
|
rcvar=`set_rcvar`
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
|
||||||
|
: ${ngircd_enable="NO"}
|
||||||
|
: ${ngircd_conf="%%PREFIX%%/etc/ngircd.conf"}
|
||||||
|
: ${ngircd_flags=""}
|
||||||
|
|
||||||
|
required_files="${ngircd_conf}"
|
||||||
|
command=%%PREFIX%%/sbin/ngircd
|
||||||
|
command_args="-f ${ngircd_conf} ${ngircd_flags}"
|
||||||
|
|
||||||
|
run_rc_command "$1"
|
Loading…
Reference in New Issue
Block a user