aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhale <jhale@FreeBSD.org>2014-08-02 23:08:03 +0800
committerjhale <jhale@FreeBSD.org>2014-08-02 23:08:03 +0800
commit9f94fb400a11f3dccd3dfa97a85366cd78a55011 (patch)
tree2d9ed325b46dbb4de1609930de51c15a5f36264d
parent1c89fe23b856f8d545fc6e99f90f38abfe0a8841 (diff)
downloadfreebsd-ports-gnome-9f94fb400a11f3dccd3dfa97a85366cd78a55011.tar.gz
freebsd-ports-gnome-9f94fb400a11f3dccd3dfa97a85366cd78a55011.tar.zst
freebsd-ports-gnome-9f94fb400a11f3dccd3dfa97a85366cd78a55011.zip
- Support staging
- Add LICENSE (MIT)
-rw-r--r--games/enygma/Makefile4
-rw-r--r--games/enygma/files/patch-Makefile.in18
-rw-r--r--games/enygma/pkg-plist12
3 files changed, 20 insertions, 14 deletions
diff --git a/games/enygma/Makefile b/games/enygma/Makefile
index c943274e1982..82097a91fb24 100644
--- a/games/enygma/Makefile
+++ b/games/enygma/Makefile
@@ -11,7 +11,9 @@ DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Text-based puzzle game
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENCE
+
GNU_CONFIGURE= yes
-NO_STAGE= yes
.include <bsd.port.mk>
diff --git a/games/enygma/files/patch-Makefile.in b/games/enygma/files/patch-Makefile.in
index 9240278639e8..1dd626939c3a 100644
--- a/games/enygma/files/patch-Makefile.in
+++ b/games/enygma/files/patch-Makefile.in
@@ -1,5 +1,5 @@
---- Makefile.in.orig Sun Feb 29 15:42:32 2004
-+++ Makefile.in Mon Sep 15 01:39:29 2008
+--- ./Makefile.in.orig 2004-02-29 09:42:32.000000000 -0500
++++ ./Makefile.in 2014-08-02 10:45:11.000000000 -0400
@@ -9,10 +9,12 @@
datadir = @datadir@
localstatedir = @localstatedir@
@@ -15,7 +15,7 @@
@CURSES@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-@@ -32,15 +34,15 @@
+@@ -32,15 +34,13 @@
$(CC) $(LDFLAGS) -o enigma $(ENIGMA) $(LIBS)
install: enigma
@@ -23,18 +23,16 @@
- -chown root.games $(bindir)/enigma && chmod 2755 $(bindir)/enigma
- #$(INSTALL_DATA) $(srcdir)/enigma.1 $(mandir)/man1/enigma.1
- mkdir -p $(datadir)/enigma
-+ $(INSTALL_PROGRAM) enigma $(bindir)/$(PACKAGE_NAME)
-+ -chown root:games $(bindir)/$(PACKAGE_NAME) && chmod 2755 $(bindir)/$(PACKAGE_NAME)
-+ #$(INSTALL_DATA) $(srcdir)/enigma.1 $(mandir)/man1/$(PACKAGE_NAME).1
-+ mkdir -p $(datadir)/$(PACKAGE_NAME)
++ $(INSTALL_PROGRAM) enigma $(DESTDIR)$(bindir)/$(PACKAGE_NAME)
++ #$(INSTALL_DATA) $(srcdir)/enigma.1 $(DESTDIR)$(mandir)/man1/$(PACKAGE_NAME).1
++ mkdir -p $(DESTDIR)$(datadir)/$(PACKAGE_NAME)
for i in $(srcdir)/levels/*.set $(srcdir)/levels/*.level; do \
- $(INSTALL_DATA) $$i $(datadir)/enigma; \
-+ $(INSTALL_DATA) $$i $(datadir)/$(PACKAGE_NAME); \
++ $(INSTALL_DATA) $$i $(DESTDIR)$(datadir)/$(PACKAGE_NAME); \
done
- mkdir -p $(localstatedir)/enigma
- -chown root.games $(localstatedir)/enigma && chmod 2770 $(localstatedir)/enigma
-+ mkdir -p $(localstatedir)/$(PACKAGE_NAME)
-+ -chown root:games $(localstatedir)/$(PACKAGE_NAME) && chmod 2770 $(localstatedir)/$(PACKAGE_NAME)
++ mkdir -p $(DESTDIR)$(localstatedir)/$(PACKAGE_NAME)
clean:
rm -f *.o enigma
diff --git a/games/enygma/pkg-plist b/games/enygma/pkg-plist
index 01182f18759e..7da708e88db6 100644
--- a/games/enygma/pkg-plist
+++ b/games/enygma/pkg-plist
@@ -1,4 +1,8 @@
+@mode 2755
+@group games
bin/enygma
+@group
+@mode
%%DATADIR%%/original.set
%%DATADIR%%/original01.level
%%DATADIR%%/original02.level
@@ -13,8 +17,10 @@ bin/enygma
%%DATADIR%%/original11.level
%%DATADIR%%/original12.level
@dirrm %%DATADIR%%
-@exec mkdir -p %D/var/enygma
-@exec chgrp games %D/var/enygma
-@exec chmod 2770 %D/var/enygma
+@mode 2770
+@group games
+@exec install -d -g games -m 2770 %D/var/enygma
@dirrm var/enygma
+@group
+@mode
@dirrmtry var