diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-06-08 09:24:08 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-06-08 09:24:08 +0800 |
commit | 13c8ccb40a5a50905db363343e01f023e08ce567 (patch) | |
tree | 84ba434ae5ba78421409306491fdc4eb5b97d22b /games | |
parent | 7df51489a6e32361e94feb839dbcf0e428ac3f05 (diff) | |
download | freebsd-ports-gnome-13c8ccb40a5a50905db363343e01f023e08ce567.tar.gz freebsd-ports-gnome-13c8ccb40a5a50905db363343e01f023e08ce567.tar.zst freebsd-ports-gnome-13c8ccb40a5a50905db363343e01f023e08ce567.zip |
- Modernize plist
Diffstat (limited to 'games')
-rw-r--r-- | games/xpat2/Makefile | 4 | ||||
-rw-r--r-- | games/xpat2/files/patch-loadsave.c | 1 | ||||
-rw-r--r-- | games/xpat2/pkg-plist | 37 |
3 files changed, 7 insertions, 35 deletions
diff --git a/games/xpat2/Makefile b/games/xpat2/Makefile index 11154e2e0df8..ac200cc02bb6 100644 --- a/games/xpat2/Makefile +++ b/games/xpat2/Makefile @@ -33,4 +33,8 @@ post-patch: @${REINPLACE_CMD} -e \ 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/xpat2.man +post-install: + @${MKDIR} ${STAGEDIR}/var/games + ${TOUCH} ${STAGEDIR}/var/games/xpat.log.sample + .include <bsd.port.mk> diff --git a/games/xpat2/files/patch-loadsave.c b/games/xpat2/files/patch-loadsave.c index 86a039d0ef67..407866aa9123 100644 --- a/games/xpat2/files/patch-loadsave.c +++ b/games/xpat2/files/patch-loadsave.c @@ -1,3 +1,4 @@ +XXX: this breaks writing to /var/log/xpat2.log --- loadsave.c.orig +++ loadsave.c @@ -42,13 +42,18 @@ diff --git a/games/xpat2/pkg-plist b/games/xpat2/pkg-plist index deb8d399b3ad..3a997924099b 100644 --- a/games/xpat2/pkg-plist +++ b/games/xpat2/pkg-plist @@ -1,8 +1,4 @@ -@group games -@mode 2555 -bin/xpat2 -@mode -@group +@(,games,2555) bin/xpat2 man/man6/xpat2.6.gz lib/X11/app-defaults/XPat lib/X11/de_DE/app-defaults/XPat @@ -156,33 +152,4 @@ lib/X11/russian/app-defaults/XPat %%DATADIR%%/de_DE %%DATADIR%%/fr_FR %%DATADIR%%/it_IT - -@dirrm %%DATADIR%%/russian -@dirrm %%DATADIR%%/italian -@dirrm %%DATADIR%%/german -@dirrm %%DATADIR%%/french -@dirrm %%DATADIR%%/fallback -@dirrm %%DATADIR%%/default -@dirrm %%DATADIR%%/audio -@dirrm %%DATADIR%%/PySol-small -@dirrm %%DATADIR%%/PySol-medium -@dirrm %%DATADIR%%/PySol-large -@dirrm %%DATADIR%% -@dirrm lib/X11/russian/app-defaults -@dirrm lib/X11/russian -@dirrm lib/X11/italian/app-defaults -@dirrm lib/X11/italian -@dirrm lib/X11/it_IT/app-defaults -@dirrm lib/X11/it_IT -@dirrm lib/X11/german/app-defaults -@dirrm lib/X11/german -@dirrm lib/X11/french/app-defaults -@dirrm lib/X11/french -@dirrm lib/X11/fr_FR/app-defaults -@dirrm lib/X11/fr_FR -@dirrm lib/X11/de_DE/app-defaults -@dirrm lib/X11/de_DE -@unexec if [ ! -s /var/games/xpat.log ]; then rm -f /var/games/xpat.log; fi -@exec if [ -d /var/games ]; then touch /var/games/xpat.log; fi -@exec if [ -e /var/games/xpat.log ]; then chgrp games /var/games/xpat.log; fi -@exec if [ -e /var/games/xpat.log ]; then chmod 664 /var/games/xpat.log; fi +@sample(,games,664) /var/games/xpat.log.sample |