svn commit: r368106 - in head/games/ladder: . files

Antoine Brodin antoine at FreeBSD.org
Sat Sep 13 14:57:19 UTC 2014


Author: antoine
Date: Sat Sep 13 14:57:18 2014
New Revision: 368106
URL: http://svnweb.freebsd.org/changeset/ports/368106
QAT: https://qat.redports.org/buildarchive/r368106/

Log:
  Allow staging as a regular user

Modified:
  head/games/ladder/Makefile
  head/games/ladder/files/patch-Makefile
  head/games/ladder/pkg-plist

Modified: head/games/ladder/Makefile
==============================================================================
--- head/games/ladder/Makefile	Sat Sep 13 14:48:18 2014	(r368105)
+++ head/games/ladder/Makefile	Sat Sep 13 14:57:18 2014	(r368106)
@@ -3,20 +3,18 @@
 
 PORTNAME=	ladder
 PORTVERSION=	1.00
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	games
 MASTER_SITES=	http://www.srv.net/~kth/ \
 		ftp://ftp.42.org/pub/unix/games/
-DISTFILES=	ladder.tar
+DISTNAME=	${PORTNAME}
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	The old "ladder" game
 
 RESTRICTED=	possible copyright problems ?
 
+USES=		tar
 NO_WRKSUBDIR=	true
-EXTRACT_CMD=		${TAR}
-EXTRACT_BEFORE_ARGS=	-xf
-EXTRACT_AFTER_ARGS=	# empty
 
 .include <bsd.port.mk>

Modified: head/games/ladder/files/patch-Makefile
==============================================================================
--- head/games/ladder/files/patch-Makefile	Sat Sep 13 14:48:18 2014	(r368105)
+++ head/games/ladder/files/patch-Makefile	Sat Sep 13 14:57:18 2014	(r368106)
@@ -27,7 +27,7 @@
 +all: $(TARGET)
 +
 +install:
-+	install -c -s -o root -g games -m 2555 ladder $(DESTDIR)${PREFIX}/bin
++	$(BSD_INSTALL_PROGRAM) ladder $(DESTDIR)${PREFIX}/bin
 +
  # ladder.c:	ladder.m4
  

Modified: head/games/ladder/pkg-plist
==============================================================================
--- head/games/ladder/pkg-plist	Sat Sep 13 14:48:18 2014	(r368105)
+++ head/games/ladder/pkg-plist	Sat Sep 13 14:57:18 2014	(r368106)
@@ -1,2 +1,2 @@
-bin/ladder
- at unexec if [ -f /var/games/ladder.scores ] ; then rm /var/games/ladder.scores; fi
+@(,games,2555) bin/ladder
+ at rmtry /var/games/ladder.scores


More information about the svn-ports-head mailing list