svn commit: r350747 - head/irc/ezbounce

Bryan Drewery bdrewery at FreeBSD.org
Thu Apr 10 00:03:35 UTC 2014


Author: bdrewery
Date: Thu Apr 10 00:03:34 2014
New Revision: 350747
URL: http://svnweb.freebsd.org/changeset/ports/350747
QAT: https://qat.redports.org/buildarchive/r350747/

Log:
  - Take maintainership
  - Stage
  - Add OPTION for SSL
  - Remove bsd.port.pre.mk
  - Enable SSL by default
  - Allow disabling BOOST dependency

Modified:
  head/irc/ezbounce/Makefile
  head/irc/ezbounce/pkg-plist

Modified: head/irc/ezbounce/Makefile
==============================================================================
--- head/irc/ezbounce/Makefile	Thu Apr 10 00:03:24 2014	(r350746)
+++ head/irc/ezbounce/Makefile	Thu Apr 10 00:03:34 2014	(r350747)
@@ -3,13 +3,22 @@
 
 PORTNAME=	ezbounce
 PORTVERSION=	1.99.15
+PORTREVISION=	1
 CATEGORIES=	irc
 MASTER_SITES=	http://www.linuxftw.com/ezbounce/files/
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	bdrewery at FreeBSD.org
 COMMENT=	A highly configurable IRC Proxy
 
-BUILD_DEPENDS=	${LOCALBASE}/include/boost/function.hpp:${PORTSDIR}/devel/boost-libs
+OPTIONS_DEFINE=	DOCS SSL COMPRESS
+OPTIONS_DEFAULT=SSL COMPRESS
+OPTIONS_SUB=	yes
+
+SSL_USE=		OPENSSL=YES
+SSL_CONFIGURE_WITH=	ssl
+COMPRESS_BUILD_DEPENDS=	${LOCALBASE}/include/boost/function.hpp:${PORTSDIR}/devel/boost-libs
+COMPRESS_CONFIGURE_WITH=boost
+COMPRESS_DESC=		Chat log compression (requires boost)
 
 GNU_CONFIGURE=	yes
 USES=		gmake
@@ -17,25 +26,7 @@ USE_GCC=	any
 
 SUB_FILES=	pkg-message
 
-MAN1=		ezbounce.1
-
-.if defined(WITH_SSL)
-USE_OPENSSL=	YES
-CONFIGURE_ARGS+=	--with-ssl
-PLIST_SUB+=	SSL=""
-.else
-PLIST_SUB+=	SSL="@comment "
-.endif
-
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
-
-pre-everything::
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "You may use the following build options:"
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "	WITH_SSL=yes      Enable SSL support"
-	@${ECHO_MSG} ""
+.include <bsd.port.options.mk>
 
 post-patch:
 	@${SED} -e "s:/path/to:${PREFIX}/sbin:" ${WRKSRC}/sample.conf > \
@@ -43,22 +34,15 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|=-O2|="$$CXXFLAGS"|g' ${WRKSRC}/configure
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/ezbounce ${PREFIX}/sbin
-	${INSTALL_SCRIPT} ${WRKSRC}/ezb.conf.default ${PREFIX}/etc
-	${INSTALL_MAN}	${WRKSRC}/docs/ezbounce.1 ${PREFIX}/man/man1
-
-	@if [ ! -f ${PREFIX}/etc/ezb.conf ]; then \
-		${INSTALL_DATA} \
-		${WRKSRC}/ezb.conf.default ${PREFIX}/etc/ezb.conf; \
-	fi
-
+	${INSTALL_PROGRAM} ${WRKSRC}/ezbounce ${STAGEDIR}${PREFIX}/sbin
+	${INSTALL_SCRIPT} ${WRKSRC}/ezb.conf.default ${STAGEDIR}${PREFIX}/etc
+	${INSTALL_MAN}	${WRKSRC}/docs/ezbounce.1 ${STAGEDIR}${PREFIX}/man/man1
 .if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/docs/worklog ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/CHANGES ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/TODO ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/docs/worklog ${STAGEDIR}${DOCSDIR}
 .endif
-	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/irc/ezbounce/pkg-plist
==============================================================================
--- head/irc/ezbounce/pkg-plist	Thu Apr 10 00:03:24 2014	(r350746)
+++ head/irc/ezbounce/pkg-plist	Thu Apr 10 00:03:34 2014	(r350747)
@@ -2,6 +2,7 @@
 etc/ezb.conf.default
 @exec if [ ! -f %D/etc/ezb.conf ] ; then cp -p %D/%F %B/ezb.conf; fi
 sbin/ezbounce
+man/man1/ezbounce.1.gz
 %%PORTDOCS%%%%DOCSDIR%%/CHANGES
 %%PORTDOCS%%%%DOCSDIR%%/README
 %%PORTDOCS%%%%DOCSDIR%%/TODO


More information about the svn-ports-head mailing list