- Support staging

- Add LICENSE
- Rename generic patches

Approved by:	portmgr (blanket approval)
This commit is contained in:
Jason E. Hale 2014-06-23 23:00:51 +00:00
parent 56c6383aef
commit 3195e5bf2f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359017
7 changed files with 18 additions and 12 deletions

View file

@ -10,11 +10,11 @@ DISTNAME= ${PORTNAME}
MAINTAINER= e@ik.nu
COMMENT= Game of skill
MAN6= trojka.6
LICENSE= TROJKA
LICENSE_NAME= Trojka Copyright
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
SUB_FILES= pkg-message
NO_STAGE= yes
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View file

@ -17,11 +17,11 @@
install:
- cp trojka /usr/games
+ install -c -d -m 0755 $(SCOREDIR)
+ install -c -m 2755 -g games -s trojka $(PREFIX)/bin
+ install -c -m 0644 COPYRIGHT README $(SCOREDIR)
+ install -c -m 0664 -g games /dev/null $(SCOREFILE)
+ install -c -m 0444 trojka.6.out $(PREFIX)/man/man6/trojka.6
+ install -c -d -m 0755 $(DESTDIR)$(SCOREDIR)
+ install -c -s trojka $(DESTDIR)$(PREFIX)/bin
+ install -c -m 0644 README $(DESTDIR)$(SCOREDIR)
+ install -c -m 0664 /dev/null $(DESTDIR)$(SCOREFILE)
+ install -c -m 0444 trojka.6.out $(DESTDIR)$(PREFIX)/man/man6/trojka.6
+
+trojka.6.out: trojka.6
+ sed "s|%%PREFIX%%|$(PREFIX)|" trojka.6 > trojka.6.out

View file

@ -3,5 +3,5 @@ You now have suid binary (2755):
%%PREFIX%%/bin/trojka
Scores will not be writed if you don't set suid.
Scores will not be saved if you don't set suid.
============================================================

View file

@ -1,5 +1,11 @@
@mode 2755
@group games
bin/trojka
%%DATADIR%%/COPYRIGHT
@group
@mode
man/man6/trojka.6.gz
%%DATADIR%%/README
@group games
%%DATADIR%%/trojka.scores
@group
@dirrm %%DATADIR%%