aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorcpiazza <cpiazza@FreeBSD.org>1999-10-02 02:42:07 +0800
committercpiazza <cpiazza@FreeBSD.org>1999-10-02 02:42:07 +0800
commit83e771868150d620e0109724acfd0f03311ce5d5 (patch)
tree9265a58df1a6bb3b5d973082a77ebd24e3b2d726 /games
parent347b537f781bc93b0ef40cc5c47a99d84c34fd7e (diff)
downloadfreebsd-ports-gnome-83e771868150d620e0109724acfd0f03311ce5d5.tar.gz
freebsd-ports-gnome-83e771868150d620e0109724acfd0f03311ce5d5.tar.zst
freebsd-ports-gnome-83e771868150d620e0109724acfd0f03311ce5d5.zip
Install in share/*, not /etc/*.
Obtained from: OpenBSD
Diffstat (limited to 'games')
-rw-r--r--games/xbattle/Makefile17
-rw-r--r--games/xbattle/files/patch-aa6
-rw-r--r--games/xbattle/pkg-plist36
3 files changed, 34 insertions, 25 deletions
diff --git a/games/xbattle/Makefile b/games/xbattle/Makefile
index d07a72c723ba..56845fe78dcf 100644
--- a/games/xbattle/Makefile
+++ b/games/xbattle/Makefile
@@ -16,14 +16,23 @@ USE_IMAKE= yes
MAN1= xbattle.1
post-install:
- $(MKDIR) $(PREFIX)/etc/xbattle
- $(CP) -R $(WRKSRC)/xbos $(PREFIX)/etc/xbattle/
- $(CP) -R $(WRKSRC)/xbts $(PREFIX)/etc/xbattle/
- $(CP) -R $(WRKSRC)/xbas $(PREFIX)/etc/xbattle/
+ $(MKDIR) $(PREFIX)/share/xbattle
+ $(CP) -R $(WRKSRC)/xbos $(PREFIX)/share/xbattle/
+ $(CP) -R $(WRKSRC)/xbts $(PREFIX)/share/xbattle/
+ $(CP) -R $(WRKSRC)/xbas $(PREFIX)/share/xbattle/
+ @${CHMOD} 755 ${PREFIX}/share/xbattle
+ @${CHMOD} 755 ${PREFIX}/share/xbattle/xbas
+ @${CHMOD} 644 ${PREFIX}/share/xbattle/xbas/*
+ @${CHMOD} 755 ${PREFIX}/share/xbattle/xbos
+ @${CHMOD} 644 ${PREFIX}/share/xbattle/xbos/*
+ @${CHMOD} 755 ${PREFIX}/share/xbattle/xbts
+ @${CHMOD} 644 ${PREFIX}/share/xbattle/xbts/*
.if !defined(NOPORTDOCS)
$(MKDIR) $(PREFIX)/share/doc/xbattle
$(CP) $(WRKSRC)/tutorial* $(PREFIX)/share/doc/xbattle/
$(CP) $(WRKSRC)/README $(PREFIX)/share/doc/xbattle/
+ @${CHMOD} 755 $(PREFIX)/share/doc/xbattle
+ @${CHMOD} 644 $(PREFIX)/share/doc/xbattle/*
.endif
.include <bsd.port.mk>
diff --git a/games/xbattle/files/patch-aa b/games/xbattle/files/patch-aa
index 0d54e72294da..ca814000e918 100644
--- a/games/xbattle/files/patch-aa
+++ b/games/xbattle/files/patch-aa
@@ -15,9 +15,9 @@
#endif
#endif
-! DEFINES = -DDEFAULT_XBO_DIR=\"$(PREFIX)/etc/xbattle/xbos\" \
-! -DDEFAULT_XBT_DIR=\"$(PREFIX)/etc/xbattle/xbts\" \
-! -DDEFAULT_XBA_DIR=\"$(PREFIX)/etc/xbattle/xbas\"
+! DEFINES = -DDEFAULT_XBO_DIR=\"$(PREFIX)/share/xbattle/xbos\" \
+! -DDEFAULT_XBT_DIR=\"$(PREFIX)/share/xbattle/xbts\" \
+! -DDEFAULT_XBA_DIR=\"$(PREFIX)/share/xbattle/xbas\"
LOCAL_LIBRARIES = $(XLIB)
SYS_LIBRARIES = -lm
SRCS = command.c \
diff --git a/games/xbattle/pkg-plist b/games/xbattle/pkg-plist
index 5b445af09787..b9dd67771910 100644
--- a/games/xbattle/pkg-plist
+++ b/games/xbattle/pkg-plist
@@ -1,23 +1,23 @@
bin/xbattle
-etc/xbattle/xbas/simple.xba
-etc/xbattle/xbos/atlas.xbo
-etc/xbattle/xbos/default.xbo
-etc/xbattle/xbos/demo.xbo
-etc/xbattle/xbos/desert.xbo
-etc/xbattle/xbos/io.xbo
-etc/xbattle/xbos/skirmish.xbo
-etc/xbattle/xbos/space.xbo
-etc/xbattle/xbos/tribal.xbo
-etc/xbattle/xbos/tropical.xbo
-etc/xbattle/xbos/tropical2.xbo
-etc/xbattle/xbos/tundra.xbo
-etc/xbattle/xbts/castle.xbt
-etc/xbattle/xbts/natural.xbt
+share/xbattle/xbas/simple.xba
+share/xbattle/xbos/atlas.xbo
+share/xbattle/xbos/default.xbo
+share/xbattle/xbos/demo.xbo
+share/xbattle/xbos/desert.xbo
+share/xbattle/xbos/io.xbo
+share/xbattle/xbos/skirmish.xbo
+share/xbattle/xbos/space.xbo
+share/xbattle/xbos/tribal.xbo
+share/xbattle/xbos/tropical.xbo
+share/xbattle/xbos/tropical2.xbo
+share/xbattle/xbos/tundra.xbo
+share/xbattle/xbts/castle.xbt
+share/xbattle/xbts/natural.xbt
share/doc/xbattle/README
share/doc/xbattle/tutorial1
share/doc/xbattle/tutorial2
-@dirrm etc/xbattle/xbas
-@dirrm etc/xbattle/xbos
-@dirrm etc/xbattle/xbts
-@dirrm etc/xbattle
@dirrm share/doc/xbattle
+@dirrm share/xbattle/xbas
+@dirrm share/xbattle/xbos
+@dirrm share/xbattle/xbts
+@dirrm share/xbattle