- version update to 5.0.51

- startup script with rc.subr
- new mirrors

PR:		ports/80402
Submitted by:	maintainer
This commit is contained in:
Volker Stolz 2005-05-11 15:25:35 +00:00
parent ec7ccb9857
commit 79d7a95997
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=135060
5 changed files with 38 additions and 35 deletions

View File

@ -8,11 +8,17 @@
PORTNAME= ircservices
PORTVERSION= 5.0.${PATCHLEVEL}
CATEGORIES= irc
MASTER_SITES= ftp://ftp.esper.net/ircservices/
MASTER_SITES= ftp://ftp.esper.net/ircservices/ \
http://www.ircservices.esper.net/download/ \
ftp://ftp.freenet.de/pub/ftp.ircservices.za.net/pub/ircservices/ \
ftp://ftp.ircd.com.br/ircservices/ \
http://www.irc.gr/ircservices/ \
http://ircservices.swissirc.ch/
DISTNAME= ${PORTNAME}-5.0.0
PATCH_SITES= ${MASTER_SITES}
PATCHLEVEL= 50
PATCHLEVEL= 51
PATCHFILES!= /usr/bin/jot -s " " -w ${DISTNAME:C/[0-9]*$//}%d.diff.gz \
${PATCHLEVEL} 1 ${PATCHLEVEL}
PATCH_DIST_STRIP= -p1
@ -23,24 +29,16 @@ COMMENT= A system of IRC services for IRC networks
USE_PERL5_BUILD=yes
HAS_CONFIGURE= yes
USE_GMAKE= yes
USE_RC_SUBR= ircservices.sh
USE_GCC= 3.2+
NOT_FOR_ARCHS= sparc64
DIST_SUBDIR= ${PORTNAME}
CONFIGURE_ARGS= -prefix ${PREFIX} -cflags "${CFLAGS}" -cc "${CC}"
CONFIGURE_ARGS= -prefix ${PREFIX} -cflags "${CFLAGS} -fPIC" -cc "${CC}"
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
BROKEN= "Does not build on !i386"
.endif
.if ${OSVERSION} < 500039
USE_GCC= 3.2+
.endif
post-install:
@${ECHO_CMD} "Installing ${PREFIX}/etc/rc.d/ircservices.sh.sample startup file."
@${INSTALL_SCRIPT} ${FILESDIR}/ircservices.sh \
${PREFIX}/etc/rc.d/ircservices.sh.sample
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}

View File

@ -100,3 +100,5 @@ MD5 (ircservices/ircservices-5.0.49.diff.gz) = 1645eb889074dd8d2d37fa5d957235d2
SIZE (ircservices/ircservices-5.0.49.diff.gz) = 48004
MD5 (ircservices/ircservices-5.0.50.diff.gz) = b3137b27b89fa0db99bcc4bab5fd376f
SIZE (ircservices/ircservices-5.0.50.diff.gz) = 18847
MD5 (ircservices/ircservices-5.0.51.diff.gz) = 118701b5c92c3fe13447c40ffbec52e0
SIZE (ircservices/ircservices-5.0.51.diff.gz) = 8368

View File

@ -1,20 +0,0 @@
#!/bin/sh
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
echo "$0: Cannot determine the PREFIX" >&2
exit 1
fi
case "$1" in
start)
[ -x ${PREFIX}/sbin/ircservices ] && ${PREFIX}/sbin/ircservices > /dev/null && echo -n ' ircservices'
;;
stop)
killall ircservices && echo -n ' ircservices'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0

View File

@ -0,0 +1,24 @@
#!/bin/sh
#
# PROVIDE: ircservices
# REQUIRE: NETWORKING
# KEYWORD: FreeBSD
#
# Add the following line to /etc/rc.conf to enable ircservices:
#
# ircservices_enable="YES"
#
ircservices_enable="NO"
. %%RC_SUBR%%
name=ircservices
rcvar=`set_rcvar`
prefix=%%PREFIX%%
command="${prefix}/sbin/ircservices"
ircservices_pidfile="${prefix}/lib/services/ircservices.pid"
load_rc_config ${name}
run_rc_command "$1"

View File

@ -1,4 +1,3 @@
etc/rc.d/ircservices.sh.sample
lib/services/convert-db
lib/services/example-ircservices.conf
lib/services/example-modules.conf