1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Update to 1.8.9

- Stage
- Cleanup rc script
- Take [1]

Approved by:	maintainer [1]
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2014-06-19 13:03:29 +00:00
parent 34caa2cddb
commit 4f623e0f14
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358404
4 changed files with 32 additions and 37 deletions

View File

@ -2,21 +2,20 @@
# $FreeBSD$
PORTNAME= anope
PORTVERSION= 1.8.8
PORTVERSION= 1.8.9
CATEGORIES= irc
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/Anope%20${PORTVERSION}
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-legacy/Anope%20${PORTVERSION}
MAINTAINER= dhn@FreeBSD.org
MAINTAINER= mat@FreeBSD.org
COMMENT= Set of IRC services for IRC networks
USES= perl5 gmake
USES= perl5 gmake desthack
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir="${LOCALBASE}/lib" \
--includedir="${LOCALBASE}/include" \
--with-bindir=${PREFIX}/libexec/anope \
--with-datadir=${DATADIR} \
--with-rungroup=ircdru
--with-bindir=\$${${DESTDIRNAME}}${PREFIX}/libexec/anope \
--with-datadir=\$${${DESTDIRNAME}}${DATADIR}
PORTDOCS= BUGS COPYING DEFCON EVENTS \
FAQ INSTALL IRCD MODULES MYSQL \
@ -27,7 +26,9 @@ USE_RC_SUBR= anope
OPTIONS_DEFINE= MYSQL
OPTIONS_DEFAULT= MYSQL
NO_STAGE= yes
MYSQL_USE= mysql=yes
MYSQL_CONFIGURE_WITH= mysql
.include <bsd.port.pre.mk>
# XXX Add here other arch which needs -fPIC :-)
@ -35,24 +36,16 @@ NO_STAGE= yes
CFLAGS+= -fPIC
.endif
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
.else
CONFIGURE_ARGS+= --without-mysql
.endif
post-patch:
@${REINPLACE_CMD} -e 's|ja_utf8|ja|g' ${WRKSRC}/lang/Makefile
${MV} ${WRKSRC}/lang/ja_utf8.l ${WRKSRC}/lang/ja.l
pre-install:
@${MKDIR} ${PREFIX}/libexec/anope
@${MKDIR} ${DATADIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/anope
@${MKDIR} ${STAGEDIR}${DATADIR}
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/docs/,} ${DOCSDIR}/
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/docs/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
SHA256 (anope-1.8.8.tar.gz) = 20bfc2db4be7475b6065d3eac0c904f69a6925d30ced22098341e5a2bbb62a77
SIZE (anope-1.8.8.tar.gz) = 1665488
SHA256 (anope-1.8.9.tar.gz) = 484ff70260ccd36fa153f121fb49adb8c74d77e0508e616b1a85440c2c8370cf
SIZE (anope-1.8.9.tar.gz) = 1646505

View File

@ -1,29 +1,31 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: anope
# REQUIRE: LOGIN mysql
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable anope:
#anope_enable="YES"
# anope_enable=YES
#
# Also, to prevent running anope as root You may use
# anope_user="nobody"
# and
# anope_chroot="%%PREFIX%%/share/anope"
# anope_chdir="%%PREFIX%%/share/anope"
#
. /etc/rc.subr
name="anope"
name=anope
rcvar=anope_enable
command=%%PREFIX%%/libexec/anope/services
# set defaults
load_rc_config $name
: ${anope_enable="NO"}
command=%%PREFIX%%/libexec/anope/services
anope_enable=${anope_enable:-"NO"}
run_rc_command "$1"

View File

@ -176,11 +176,11 @@ libexec/anope/tools/epona2anope
%%DATADIR%%/modules/viagra.so
%%DATADIR%%/mydbgen
%%DATADIR%%/tables.sql
@dirrm %%DATADIR%%/modules/runtime
@dirrm %%DATADIR%%/modules
@dirrm %%DATADIR%%/logs
@dirrm %%DATADIR%%/languages
@dirrm %%DATADIR%%/backups
@dirrm %%DATADIR%%
@dirrm libexec/anope/tools
@dirrm libexec/anope
@dirrmtry libexec/anope/tools
@dirrmtry libexec/anope
@dirrmtry %%DATADIR%%/backups
@dirrmtry %%DATADIR%%/languages
@dirrmtry %%DATADIR%%/logs
@dirrmtry %%DATADIR%%/modules/runtime
@dirrmtry %%DATADIR%%/modules
@dirrmtry %%DATADIR%%