Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jun 2014 16:27:14 +0000 (UTC)
From:      Stefan Esser <se@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r356148 - head/security/xinetd
Message-ID:  <201406011627.s51GRE6C052322@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: se
Date: Sun Jun  1 16:27:14 2014
New Revision: 356148
URL: http://svnweb.freebsd.org/changeset/ports/356148
QAT: https://qat.redports.org/buildarchive/r356148/

Log:
  Add stage support and introduce port options for IPV6 and LIBWRAP.
  
  Reviewed by:	sem (maintainer), antoine
  Approved by:	antoine (mentor)

Modified:
  head/security/xinetd/Makefile
  head/security/xinetd/pkg-plist

Modified: head/security/xinetd/Makefile
==============================================================================
--- head/security/xinetd/Makefile	Sun Jun  1 16:22:35 2014	(r356147)
+++ head/security/xinetd/Makefile	Sun Jun  1 16:27:14 2014	(r356148)
@@ -5,29 +5,35 @@ PORTNAME=	xinetd
 PORTVERSION=	2.3.15
 PORTREVISION=	1
 CATEGORIES=	security ipv6
-MASTER_SITES=	http://www.xinetd.org/
+MASTER_SITES=	GENTOO/distfiles
 
 MAINTAINER=	sem@FreeBSD.org
 COMMENT=	Replacement for inetd with better control and logging
 
-LICENSE=	BSD
-
-USES=		gmake
 GNU_CONFIGURE=	yes
 USE_RC_SUBR=	xinetd
 ALL_TARGET=	build
-CONFIGURE_ARGS+=	--with-loadavg --with-libwrap --with-ipv6
+CONFIGURE_ARGS+=	--with-loadavg
+
+USES=		shebangfix perl5
+USE_PERL5=	run
+SHEBANG_FILES=	${WRKSRC}/xinetd/xconv.pl
+
+OPTIONS_DEFINE=	IPV6 LIBWRAP
+OPTIONS_DEFAULT=	LIBWRAP
 
-MAN5=		xinetd.conf.5
-MAN8=		xconv.8 xinetd.8 xinetd.log.8
+IPV6_CONFIGURE_WITH=	ipv6
+LIBWRAP_CONFIGURE_WITH=	libwrap
 
-NO_STAGE=	yes
 post-patch:
-	${FIND} ${WRKSRC}/libs/src -name Makefile.in | ${XARGS} \
-		${REINPLACE_CMD} -e 's!\@INSTALL\@!/bin/cp!; s!-m 640!!'
 	@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/xinetd/xconfig.h
 
-post-install:
-	@${STRIP_CMD} ${PREFIX}/sbin/xinetd
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/xinetd/xinetd ${STAGEDIR}${PREFIX}/sbin/xinetd
+	${INSTALL_SCRIPT} ${WRKSRC}/xinetd/xconv.pl ${STAGEDIR}${PREFIX}/bin/xconv
+	${INSTALL_MAN} ${WRKSRC}/xinetd/xinetd.conf.man ${STAGEDIR}${PREFIX}/man/man5/xinetd.conf.5
+	${INSTALL_MAN} ${WRKSRC}/xinetd/xconv.pl.8 ${STAGEDIR}${PREFIX}/man/man8/xconv.8
+	${INSTALL_MAN} ${WRKSRC}/xinetd/xinetd.man ${STAGEDIR}${PREFIX}/man/man8/xinetd.8
+	${INSTALL_MAN} ${WRKSRC}/xinetd/xinetd.log.man ${STAGEDIR}${PREFIX}/man/man8/xinetd.log.8
 
 .include <bsd.port.mk>

Modified: head/security/xinetd/pkg-plist
==============================================================================
--- head/security/xinetd/pkg-plist	Sun Jun  1 16:22:35 2014	(r356147)
+++ head/security/xinetd/pkg-plist	Sun Jun  1 16:27:14 2014	(r356148)
@@ -1,2 +1,6 @@
 bin/xconv
 sbin/xinetd
+man/man5/xinetd.conf.5.gz
+man/man8/xconv.8.gz
+man/man8/xinetd.8.gz
+man/man8/xinetd.log.8.gz



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