Hi,
Fix for the following error:
===> Installing wesnoth-1.10.4p1 from /usr/ports/packages/amd64/all/
wesnoth-1.10.4p1|**************************************************************************************************************************************|100%
/bin/sh: /etc/rc.d/bin/update-desktop-database: not found
system(/bin/sh, -c, /etc/rc.d/bin/update-desktop-database) failed: exit(127)
wesnoth-1.10.4p1: ok
The following new rcscripts were installed: /etc/rc.d/wesnothd
See rc.d(8) for details.
And make pkg/PLIST more "update-plist friendly".
While here, "SEPARATE_BUILD" is bogus.
Ok?
Index: Makefile
===================================================================
RCS file: /cvs/ports/games/wesnoth/Makefile,v
retrieving revision 1.48
diff -u -p -r1.48 Makefile
--- Makefile 20 Nov 2012 15:08:00 -0000 1.48
+++ Makefile 26 Nov 2012 13:03:16 -0000
@@ -3,7 +3,7 @@
COMMENT= fantasy turn-based strategy game
DISTNAME= wesnoth-1.10.4
-REVISION= 1
+REVISION= 2
CATEGORIES= games x11
@@ -51,7 +51,6 @@ CONFIGURE_ARGS+=-DFIFO_DIR=/var/wesnothd
-DMANDIR=${PREFIX}/man
USE_LIBTOOL= Yes
-SEPARATE_BUILD= flavored
FLAVORS= lite
FLAVOR?=
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/games/wesnoth/pkg/PLIST,v
retrieving revision 1.28
diff -u -p -r1.28 PLIST
--- pkg/PLIST 20 Nov 2012 15:08:00 -0000 1.28
+++ pkg/PLIST 26 Nov 2012 13:03:23 -0000
@@ -1,7 +1,7 @@
@comment $OpenBSD: PLIST,v 1.28 2012/11/20 15:08:00 pascal Exp $
+@pkgpath games/wesnoth,tinygui
@newgroup _wesnothd:708
@newuser _wesnothd:708:_wesnothd:daemon:Wesnoth
Server:/var/wesnothd:/sbin/nologin
-@pkgpath games/wesnoth,tinygui
!%%lite%%
@bin bin/campaignd
@bin bin/wesnoth
@@ -13390,13 +13390,13 @@ share/wesnoth/translations/zh_TW/LC_MESS
share/wesnoth/translations/zh_TW/LC_MESSAGES/wesnoth-units.mo
share/wesnoth/translations/zh_TW/LC_MESSAGES/wesnoth-utbs.mo
share/wesnoth/translations/zh_TW/LC_MESSAGES/wesnoth.mo
+@exec %D/bin/update-desktop-database
+@unexec-delete %D/bin/update-desktop-database
+@mode 770
@owner _wesnothd
@group _wesnothd
-@mode 770
@sample /var/wesnothd/
+@mode
@owner
@group
-@mode
@rcscript ${RCDIR}/wesnothd
-@exec %D/bin/update-desktop-database
-@unexec-delete %D/bin/update-desktop-database