aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-09-13 22:57:18 +0800
committerantoine <antoine@FreeBSD.org>2014-09-13 22:57:18 +0800
commitf76b277cadb95564a94ecec0af2a17920ce5adca (patch)
tree620dc5df71317c1e396fddfd771c324687e29b3c /games
parent6011cda823b504f568d49019ee04025c73f19076 (diff)
downloadfreebsd-ports-gnome-f76b277cadb95564a94ecec0af2a17920ce5adca.tar.gz
freebsd-ports-gnome-f76b277cadb95564a94ecec0af2a17920ce5adca.tar.zst
freebsd-ports-gnome-f76b277cadb95564a94ecec0af2a17920ce5adca.zip
Allow staging as a regular user
Diffstat (limited to 'games')
-rw-r--r--games/ladder/Makefile8
-rw-r--r--games/ladder/files/patch-Makefile2
-rw-r--r--games/ladder/pkg-plist4
3 files changed, 6 insertions, 8 deletions
diff --git a/games/ladder/Makefile b/games/ladder/Makefile
index 72aaa5eef6f1..9b077f3f6bd2 100644
--- a/games/ladder/Makefile
+++ b/games/ladder/Makefile
@@ -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@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>
diff --git a/games/ladder/files/patch-Makefile b/games/ladder/files/patch-Makefile
index 0b36462f2a23..1bf75aeadb5d 100644
--- a/games/ladder/files/patch-Makefile
+++ b/games/ladder/files/patch-Makefile
@@ -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
diff --git a/games/ladder/pkg-plist b/games/ladder/pkg-plist
index a4f559d9c44b..765d903bba9f 100644
--- a/games/ladder/pkg-plist
+++ b/games/ladder/pkg-plist
@@ -1,2 +1,2 @@
-bin/ladder
-@unexec if [ -f /var/games/ladder.scores ] ; then rm /var/games/ladder.scores; fi
+@(,games,2555) bin/ladder
+@rmtry /var/games/ladder.scores