Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2013 17:46:53 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332157 - head/games/cosmo
Message-ID:  <201310301746.r9UHkrYF078161@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Wed Oct 30 17:46:53 2013
New Revision: 332157
URL: http://svnweb.freebsd.org/changeset/ports/332157

Log:
  - Add stage support

Modified:
  head/games/cosmo/Makefile
  head/games/cosmo/pkg-plist

Modified: head/games/cosmo/Makefile
==============================================================================
--- head/games/cosmo/Makefile	Wed Oct 30 17:21:10 2013	(r332156)
+++ head/games/cosmo/Makefile	Wed Oct 30 17:46:53 2013	(r332157)
@@ -26,12 +26,12 @@ USES=		imake:notall
 USE_XORG=	x11 xext
 NO_INSTALL_MANPAGES=	yes
 
-NO_STAGE=	yes
-post-install:
-	${INSTALL_DATA} ${WRKSRC}/cosmorc ${PREFIX}/lib/X11/cosmo
+do-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/cosmo
+	${INSTALL_PROGRAM} ${WRKSRC}/cosmo ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/cosmorc ${STAGEDIR}${PREFIX}/lib/X11/cosmo
+	${ECHO} > ${STAGEDIR}${PREFIX}/lib/X11/cosmo/best.dat
 	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/moon.tif.gz \
-		${PREFIX}/lib/X11/cosmo
-	${CHOWN} root:games ${PREFIX}/bin/cosmo
-	${CHMOD} g+s ${PREFIX}/bin/cosmo
+		${STAGEDIR}${PREFIX}/lib/X11/cosmo
 
 .include <bsd.port.mk>

Modified: head/games/cosmo/pkg-plist
==============================================================================
--- head/games/cosmo/pkg-plist	Wed Oct 30 17:21:10 2013	(r332156)
+++ head/games/cosmo/pkg-plist	Wed Oct 30 17:46:53 2013	(r332157)
@@ -1,5 +1,13 @@
+@group games
+@mode 2555
 bin/cosmo
-lib/X11/cosmo/cosmorc
+@mode
+@mode 664
 lib/X11/cosmo/best.dat
+@mode
+@group
+lib/X11/cosmo/cosmorc
 lib/X11/cosmo/moon.tif.gz
+@mode 711
 @dirrm lib/X11/cosmo
+@mode



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