svn commit: r305685 - head/irc/sirc
Bryan Drewery
bdrewery at FreeBSD.org
Wed Oct 10 21:22:48 UTC 2012
Author: bdrewery
Date: Wed Oct 10 21:22:47 2012
New Revision: 305685
URL: http://svn.freebsd.org/changeset/ports/305685
Log:
- Add new mirror
- Convert to new options framework
- Remove use of bsd.port.pre.mk
Feature safe: yes
Modified:
head/irc/sirc/Makefile
Modified: head/irc/sirc/Makefile
==============================================================================
--- head/irc/sirc/Makefile Wed Oct 10 21:13:06 2012 (r305684)
+++ head/irc/sirc/Makefile Wed Oct 10 21:22:47 2012 (r305685)
@@ -4,8 +4,10 @@ PORTNAME= sirc
PORTVERSION= 2.211
PORTREVISION= 1
CATEGORIES= irc ipv6
-#MASTER_SITES= http://www.iagora.com/~espel/sirc/ \
-# http://www.iagora.com/~espel/sirc/scripts/:s \
+MASTER_SITES= LOCAL/bdrewery/${PORTNAME} \
+ LOCAL/bdrewery/${PORTNAME}/scripts:s \
+ http://www.iagora.com/~espel/sirc/ \
+ http://www.iagora.com/~espel/sirc/scripts/:s \
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
DIST_SUBDIR= sirc
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
@@ -15,9 +17,11 @@ COMMENT= Small (150k), fast, perl-based
USE_PERL5= yes
-OPTIONS= IPV6 "Support for IPv6 transport" on \
- SIRC_SCRIPTS "Additional scripts for the client" on \
- SOCKS "Support for IRC'ing through a SOCKS proxy" off
+OPTIONS_DEFINE= IPV6 SIRC_SCRIPTS SOCKS
+OPTIONS_DEFAULT=IPV6 SIRC_SCRIPTS
+IPV6_DESC= Support for IPv6 transport
+SIRC_SCRIPTS_DESC= Additional scripts for the clien
+SOCKS_DESC= Support for IRCing through a SOCKS proxy
SUB_FILES= sirc
@@ -25,16 +29,16 @@ MAN1= ssfe.1 sirc.1
PORTDOCS= ChangeLog PROGRAMMING README
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if !defined(WITHOUT_IPV6)
+.if ${PORT_OPTIONS:MIPV6}
RUN_DEPENDS= p5-IO-Socket-INET6>0:${PORTSDIR}/net/p5-IO-Socket-INET6
EXTRA_PATCHES= ${PATCHDIR}/dsirc-ipv6
.else
EXTRA_PATCHES= ${PATCHDIR}/dsirc-minimal
.endif
-.if !defined(WITHOUT_SIRC_SCRIPTS)
+.if ${PORT_OPTIONS:MSIRC_SCRIPTS}
DISTFILES+= adcc.pl:s akickban.pl:s avoice.pl:s country.pl:s finger.pl:s \
ftp.pl:s howl.pl:s lastlog.pl:s nocolor.pl:s patattack.pl:s \
prefix.pl:s quiet.pl:s quit.pl:s thx.pl:s www.pl:s yiff.pl:s
@@ -43,7 +47,7 @@ PLIST_SUB+= SCRIPTS=""
PLIST_SUB+= SCRIPTS="@comment "
.endif
-.if defined(WITH_SOCKS)
+.if ${PORT_OPTIONS:MSOCKS}
PKGMESSAGE= ${FILESDIR}/pkg-message-socks
PLIST_SUB+= SOCKS=""
.else
@@ -69,29 +73,29 @@ do-install:
${INSTALL_SCRIPT} ${WRKDIR}/sirc ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/ssfe.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/sirc.1 ${PREFIX}/man/man1
-.if !defined(WITHOUT_SIRC_SCRIPTS)
+.if ${PORT_OPTIONS:MSIRC_SCRIPTS}
.for file in adcc.pl akickban.pl avoice.pl country.pl finger.pl ftp.pl \
howl.pl lastlog.pl nocolor.pl patattack.pl prefix.pl quiet.pl \
quit.pl thx.pl www.pl yiff.pl
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${file} ${SIRCLIBDIR}
.endfor
.endif
-.if defined(WITH_SOCKS)
+.if ${PORT_OPTIONS:MSOCKS}
${INSTALL_DATA} ${WRKSRC}/socks.pl ${SIRCLIBDIR}
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
-.if defined(WITH_SOCKS)
+.if ${PORT_OPTIONS:MSOCKS}
${INSTALL_DATA} ${WRKSRC}/README.socks ${DOCSDIR}
.endif
.endif
post-install:
-.if defined(WITH_SOCKS)
+.if ${PORT_OPTIONS:MSOCKS}
@${CAT} ${PKGMESSAGE}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
More information about the svn-ports-all
mailing list