Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Apr 2014 14:28:11 +0000 (UTC)
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350362 - in head/irc/ircd-ru: . files
Message-ID:  <201404061428.s36ESBxV023480@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rene
Date: Sun Apr  6 14:28:10 2014
New Revision: 350362
URL: http://svnweb.freebsd.org/changeset/ports/350362
QAT: https://qat.redports.org/buildarchive/r350362/

Log:
  - Stage support [1]
  - Style fixes [1]
  - Fix MASTER_SITES [1]
  - Add license [1]
  - Trim leading indefinite article from COMMENT
  - USE_BZIP2 -> USES=tar:bzip2
  - New LIB_DEPENDS syntax
  - Bump PORTREVISION
  
  PR:		ports/184338 [1]
  Submitted by:	maintainer
  Approved by:	portmgr (infrastructure blanket)

Modified:
  head/irc/ircd-ru/Makefile
  head/irc/ircd-ru/files/patch-paths.h.in
  head/irc/ircd-ru/pkg-plist

Modified: head/irc/ircd-ru/Makefile
==============================================================================
--- head/irc/ircd-ru/Makefile	Sun Apr  6 14:27:07 2014	(r350361)
+++ head/irc/ircd-ru/Makefile	Sun Apr  6 14:28:10 2014	(r350362)
@@ -3,27 +3,29 @@
 
 PORTNAME=	ircd-ru
 PORTVERSION=	1.0.7
-PORTREVISION=	6
-CATEGORIES=	irc russian
-MASTER_SITES=	http://link.wenet.su/
+PORTREVISION=	7
+CATEGORIES=	russian irc
+MASTER_SITES=	http://m1cro.tk/ports/distfiles/
 DISTNAME=	ircd-RU-${PORTVERSION}-03-rc-20090810
 
 MAINTAINER=	rum1cro@yandex.ru
-COMMENT=	An irc daemon with translation schemes and other useful features
+COMMENT=	IRC daemon with translation schemes and other useful features
 
-USE_BZIP2=	yes
+LICENSE=	GPLv1
+
+USES=		tar:bzip2
 GNU_CONFIGURE=	yes
-SUB_FILES=	pkg-message
 USE_RC_SUBR=	ircd
 WRKSRC=		${WRKDIR}/ircd-RU-${PORTVERSION}-03-rc
 
 USERS=		ircd
 GROUPS=		${USERS}
 
-VARDIR=		/var
+VARDIR=	/var
 PLIST_SUB=	VARDIR=${VARDIR}
 
-OPTIONS_DEFINE=	WENET HUB ENCRYPTION SYSLOGFILE DRONEMODULE AUTHMODULE DNSBL SELECT DOCS
+OPTIONS_DEFINE=	WENET HUB ENCRYPTION SYSLOGFILE DRONEMODULE AUTHMODULE \
+				DNSBL SELECT DOCS
 WENET_DESC=		irc.wenet.ru specific options
 HUB_DESC=		hub support
 ENCRYPTION_DESC=	RC4 crypt (server to server connection)
@@ -33,7 +35,6 @@ AUTHMODULE_DESC=	authmodule support
 DNSBL_DESC=		DNSBL support
 SELECT_DESC=		enable select I/O
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 # irc.wenet.ru specific options
@@ -49,7 +50,7 @@ CONFIGURE_ARGS+=--enable-hub
 # enable RC4 crypt (server to server connection)
 .if ${PORT_OPTIONS:MENCRYPTION}
 CONFIGURE_ARGS+=--enable-encryption
-LIB_DEPENDS+=	gmp.10:${PORTSDIR}/math/gmp
+LIB_DEPENDS+=	libgmp.so:${PORTSDIR}/math/gmp
 .endif
 
 # log to file instead of syslog
@@ -79,8 +80,16 @@ CONFIGURE_ARGS+=--enable-select
 
 post-patch:
 .if ! ${PORT_OPTIONS:MDOCS}
-	@${REINPLACE_CMD} -Ee '/(dir_HPATH)|opers.txt/d' ${WRKSRC}/tools/install_ircd.in
+	@${REINPLACE_CMD} -Ee '/(dir_HPATH)|opers.txt/d' \
+		${STAGEDIR}${WRKSRC}/tools/install_ircd.in
 .endif
+	#FIXME rene DESTDIR support is broken upstream
+	@${REINPLACE_CMD} -e 's|-d $$dir_LPATH|-d ${STAGEDIR}$$dir_LPATH|g' \
+		-e 's|-d $$dir_PPATH|-d ${STAGEDIR}$$dir_PPATH|g' \
+		-e 's|-d $$dir_EPATH|-d ${STAGEDIR}$$dir_EPATH|g' \
+		-e 's|-d $$dir_MCPATH|-d ${STAGEDIR}$$dir_MCPATH|g' \
+		-e 's|STAGE|${STAGEDIR}|g' \
+		${WRKSRC}/tools/install_ircd.in
 
 pre-build:
 	@${ECHO_MSG} ""
@@ -89,7 +98,7 @@ pre-build:
 	@${ECHO_MSG} ""
 
 post-install:
-	@${CHOWN} -R ircd:ircd ${VARDIR}/log/ircd-ru
-	@${CAT} ${PKGMESSAGE}
+	@${MKDIR} ${STAGEDIR}${VARDIR}/log/ircd-ru
+	@${MKDIR} ${STAGEDIR}${VARDIR}/run/ircd-ru
 
 .include <bsd.port.mk>

Modified: head/irc/ircd-ru/files/patch-paths.h.in
==============================================================================
--- head/irc/ircd-ru/files/patch-paths.h.in	Sun Apr  6 14:27:07 2014	(r350361)
+++ head/irc/ircd-ru/files/patch-paths.h.in	Sun Apr  6 14:28:10 2014	(r350362)
@@ -1,8 +1,8 @@
 --- include/paths.h.in.orig	Sun Aug 10 21:29:06 2003
 +++ include/paths.h.in	Sun Aug 10 21:30:46 2003
 @@ -55,26 +55,26 @@
- 
- 
+
+
  #define DPATH		"@prefix@"
 -#define SPATH		"bin/ircd@BIN_SUF@"
 +#define SPATH		"sbin/ircd@BIN_SUF@"
@@ -11,7 +11,7 @@
 -#define MDIR		"modules"
 +#define CPDIR		"share/ircd-ru/codepages"
 +#define MDIR		"share/ircd-ru/modules"
- 
+
 -#define CPATH		"etc/ircd.conf"
 -#define KPATH   	"etc/kline.conf"
 -#define MPATH		"etc/ircd.motd"
@@ -26,19 +26,19 @@
 +#define LPATH		"/var/log/ircd-ru/ircd.log"
 +#define PPATH		"/var/run/ircd-ru/ircd.pid"
 +#define HPATH		"share/doc/ircd-ru/opers.txt"
- 
+
 -#define EPATH		".ircd.entropy"
 -#define MCPATH		".maxclients"
 +#define EPATH		"/var/run/ircd-ru/.ircd.entropy"
 +#define MCPATH		"/var/run/ircd-ru/.maxclients"
- 
- 
+
+
 -#define FNAME_USERLOG	"var/log/users"	
 -#define FNAME_OPERLOG	"var/log/opers"
 -#define FNAME_SYSLOG	"var/log/syslog"
 +#define FNAME_USERLOG	"/var/log/ircd-ru/users"
 +#define FNAME_OPERLOG	"/var/log/ircd-ru/opers"
 +#define FNAME_SYSLOG	"/var/log/ircd-ru/syslog"
- 
- 
+
+
  #endif /* !__PATHS_H__ */

Modified: head/irc/ircd-ru/pkg-plist
==============================================================================
--- head/irc/ircd-ru/pkg-plist	Sun Apr  6 14:27:07 2014	(r350361)
+++ head/irc/ircd-ru/pkg-plist	Sun Apr  6 14:28:10 2014	(r350362)
@@ -1,32 +1,35 @@
-sbin/ircd
-bin/ircdpasswd
-%%ETCDIR%%/ircd.conf-dist
-%%ETCDIR%%/ircd.motd-dist
-%%ETCDIR%%/ircd.smotd-dist
-@unexec [ -s %D/%%ETCDIR%%/kline.conf ] || rm -f %D/%%ETCDIR%%/kline.conf
-@exec [ -f %D/%%ETCDIR%%/kline.conf ] || touch %D/%%ETCDIR%%/kline.conf
-%%ETCDIR%%/ru_RU.CP1251/ircd.motd-dist
-%%ETCDIR%%/ru_RU.CP1251/ircd.smotd-dist
-%%ETCDIR%%/ru_RU.KOI8-R/ircd.conf-dist
-%%PORTDOCS%%%%DOCSDIR%%/README.Ilines
-%%PORTDOCS%%%%DOCSDIR%%/opers.txt
-%%PORTDOCS%%%%DOCSDIR%%/ru_RU.KOI8-R/FAQ
-%%PORTDOCS%%%%DOCSDIR%%/ru_RU.KOI8-R/README
 %%DATADIR%%/codepages/cp1251.cp
 %%DATADIR%%/codepages/cp866.cp
 %%DATADIR%%/codepages/iso8859-5.cp
 %%DATADIR%%/codepages/koi8-f.cp
 %%DATADIR%%/codepages/koi8-r.cp
 %%DATADIR%%/codepages/translit.cp
-@dirrm %%ETCDIR%%/ru_RU.CP1251
-@dirrm %%ETCDIR%%/ru_RU.KOI8-R
-@dirrm %%DATADIR%%/codepages
-@dirrm %%DATADIR%%/modules
-@dirrm %%DATADIR%%
+%%PORTDOCS%%%%DOCSDIR%%/README.Ilines
+%%PORTDOCS%%%%DOCSDIR%%/opers.txt
+%%PORTDOCS%%%%DOCSDIR%%/ru_RU.KOI8-R/FAQ
+%%PORTDOCS%%%%DOCSDIR%%/ru_RU.KOI8-R/README
+@dirrmtry %%DATADIR%%
+@dirrmtry %%DATADIR%%/codepages
+@dirrmtry %%DATADIR%%/modules
 %%PORTDOCS%%@dirrm %%DOCSDIR%%/ru_RU.KOI8-R
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
-@exec mkdir -m 755 %%VARDIR%%/log/ircd-ru
-@exec chown ircd:ircd %%VARDIR%%/log/ircd-ru
-@unexec rmdir %%VARDIR%%/log/ircd-ru
-@unexec rmdir %%VARDIR%%/run/ircd-ru
-@dirrmtry %%ETCDIR%%
+@dirrmtry etc/ircd-ru
+@dirrmtry etc/ircd-ru/ru_RU.CP1251
+@dirrmtry etc/ircd-ru/ru_RU.KOI8-R
+@mode 755
+@owner ircd
+@group ircd
+%%VARDIR%%/log/ircd-ru
+%%VARDIR%%/run/ircd-ru
+@group
+@owner
+@mode
+bin/ircdpasswd
+etc/ircd-ru/ircd.conf-dist
+etc/ircd-ru/ircd.motd-dist
+etc/ircd-ru/ircd.smotd-dist
+etc/ircd-ru/kline.conf
+etc/ircd-ru/ru_RU.CP1251/ircd.motd-dist
+etc/ircd-ru/ru_RU.CP1251/ircd.smotd-dist
+etc/ircd-ru/ru_RU.KOI8-R/ircd.conf-dist
+sbin/ircd



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404061428.s36ESBxV023480>