Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2013 09:20:54 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337660 - head/shells/v7sh
Message-ID:  <201312270920.rBR9KsJi051206@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Dec 27 09:20:54 2013
New Revision: 337660
URL: http://svnweb.freebsd.org/changeset/ports/337660

Log:
  Support stage

Modified:
  head/shells/v7sh/Makefile
  head/shells/v7sh/pkg-plist

Modified: head/shells/v7sh/Makefile
==============================================================================
--- head/shells/v7sh/Makefile	Fri Dec 27 09:15:03 2013	(r337659)
+++ head/shells/v7sh/Makefile	Fri Dec 27 09:20:54 2013	(r337660)
@@ -17,34 +17,23 @@ DISTFILES=	args.c:s blok.c:s brkincr.h:s
 DIST_SUBDIR=	${PORTNAME}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	An implementation of the UNIX 7th Edition shell
+COMMENT=	Implementation of the UNIX 7th Edition shell
 
+USES=		uidfix
 EXTRACT_CMD=	${CP}
 EXTRACT_BEFORE_ARGS=
 EXTRACT_AFTER_ARGS=	${WRKDIR}
 
 NO_WRKSUBDIR=	yes
-MAN1=		${PORTNAME}.1
-MANCOMPRESSED=	yes
 
 OPTIONS_DEFINE=	SYSIII RENO ULTRIX
 OPTIONS_DEFAULT=	SYSIII RENO ULTRIX
 SYSIII_DESC=	System III enhancements
 RENO_DESC=	4.3BSD-Reno enhancements
 ULTRIX_DESC=	Ultrix 3.1 enhancements
-
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MSYSIII}
-CFLAGS+=	-DSYSIII
-.endif
-.if ${PORT_OPTIONS:MRENO}
-CFLAGS+=	-DRENO
-.endif
-.if ${PORT_OPTIONS:MULTRIX}
-CFLAGS+=	-DULTRIX
-.endif
+SYSIII_CFLAGS=	-DSYSIII
+RENO_CFLAGS=	-DRENO
+ULTRIX_CFLAGS=	-DULTRIX
 
 post-extract:
 	@${MV} ${WRKSRC}/sh.1 ${WRKSRC}/${PORTNAME}.1
@@ -52,11 +41,4 @@ post-extract:
 	@${CP} ${FILESDIR}/test.c ${WRKSRC}		# sysIII
 	@${CP} ${FILESDIR}/pathnames.h ${WRKSRC}	# 43reno
 
-post-install:
-	@${ECHO_MSG} "updating /etc/shells"
-	@${CP} /etc/shells /etc/shells.bak
-	@(${GREP} -v ${PREFIX}/bin/${PORTNAME} /etc/shells.bak; \
-	 ${ECHO_CMD} ${PREFIX}/bin/${PORTNAME}) > /etc/shells
-	@${RM} /etc/shells.bak
-
 .include <bsd.port.mk>

Modified: head/shells/v7sh/pkg-plist
==============================================================================
--- head/shells/v7sh/pkg-plist	Fri Dec 27 09:15:03 2013	(r337659)
+++ head/shells/v7sh/pkg-plist	Fri Dec 27 09:20:54 2013	(r337660)
@@ -1,3 +1,4 @@
 bin/v7sh
+man/man1/v7sh.1.gz
 @exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
 @unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells



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