[arch-commits] Commit in flightgear/repos/community-i686 (4 files)

Sergej Pupykin spupykin at archlinux.org
Mon Jan 30 12:35:53 UTC 2017


    Date: Monday, January 30, 2017 @ 12:35:52
  Author: spupykin
Revision: 209485

archrelease: copy trunk to community-i686

Added:
  flightgear/repos/community-i686/PKGBUILD
    (from rev 209484, flightgear/trunk/PKGBUILD)
  flightgear/repos/community-i686/sec-fix.patch
    (from rev 209484, flightgear/trunk/sec-fix.patch)
Deleted:
  flightgear/repos/community-i686/PKGBUILD
  flightgear/repos/community-i686/sec-fix.patch

---------------+
 PKGBUILD      |  101 ++++++++++++++++++++++++++++----------------------------
 sec-fix.patch |   84 +++++++++++++++++++++++-----------------------
 2 files changed, 93 insertions(+), 92 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-01-30 12:35:39 UTC (rev 209484)
+++ PKGBUILD	2017-01-30 12:35:52 UTC (rev 209485)
@@ -1,50 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer: William Rea <sillywilly at gmail.com>
-# Contributor: Hans Janssen <hans at janserv.xs4all.nl>
-
-pkgname=flightgear
-pkgver=2016.4.4
-_pkgver=${pkgver%.*}
-pkgrel=1
-pkgdesc="An open-source, multi-platform flight simulator"
-arch=(i686 x86_64)
-depends=('libxmu' 'libxi' 'zlib' 'openscenegraph' 'subversion' 'libxrandr' 'glu' 'openal')
-makedepends=('boost' 'cmake' 'mesa' 'sharutils' 'simgear' 'qt5-base')
-optdepends=('qt5-base: fgfs --launcher')
-license=("GPL")
-url="http://www.flightgear.org/"
-options=('!makeflags')
-source=("http://downloads.sourceforge.net/project/flightgear/release-${_pkgver}/${pkgname}-${pkgver}.tar.bz2"
-	sec-fix.patch)
-sha256sums=('d51992cbe40f1812f9821ab27b838d52e04c10551772d57fc2e815f4444dfafc'
-            'c45d9596ee8269594ee600e3fe1de10422f202c2ce4b3fb733062ce92f37b11b')
-
-prepare() {
-  cd "$srcdir"/flightgear-$pkgver
-#  patch -p1 -i $srcdir/sec-fix.patch
-}
-
-build() {
-  cd "$srcdir"/flightgear-$pkgver
-  cmake \
-	-DCMAKE_INSTALL_PREFIX=/usr \
-	-DCMAKE_INSTALL_LIBDIR=lib \
-	-DFG_DATA_DIR:STRING="/usr/share/flightgear/data" .
-  uudecode -o package/flightgear.png package/flightgear.png.uue
-  make
-  sed -i 's|Exec=.*|Exec=fgfs --fg-root=/usr/share/flightgear/data|' package/flightgear.desktop
-}
-
-package() {
-  depends=(${depends[@]} 'flightgear-data')
-
-  cd "$srcdir"/flightgear-$pkgver
-  make DESTDIR="$pkgdir" install
-
-  install -Dm0644 package/flightgear.desktop "$pkgdir"/usr/share/applications/flightgear.desktop
-  install -Dm0644 package/flightgear.ico "$pkgdir"/usr/share/icons/flightgear.ico
-  install -Dm0644 package/flightgear.png "$pkgdir"/usr/share/icons/flightgear.png
-  install -Dm0644 scripts/completion/fg-completion.bash "$pkgdir"/usr/share/bash-completion/completions/fgfs
-  ln -sf flightgear "$pkgdir"/usr/share/FlightGear
-}

Copied: flightgear/repos/community-i686/PKGBUILD (from rev 209484, flightgear/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-01-30 12:35:52 UTC (rev 209485)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: William Rea <sillywilly at gmail.com>
+# Contributor: Hans Janssen <hans at janserv.xs4all.nl>
+
+pkgname=flightgear
+pkgver=2016.4.4
+_pkgver=${pkgver%.*}
+pkgrel=2
+pkgdesc="An open-source, multi-platform flight simulator"
+arch=(i686 x86_64)
+depends=('libxmu' 'libxi' 'zlib' 'openscenegraph' 'subversion' 'libxrandr' 'glu' 'openal')
+makedepends=('boost' 'cmake' 'mesa' 'sharutils' 'simgear' 'qt5-base')
+optdepends=('qt5-base: fgfs --launcher')
+license=("GPL")
+url="http://www.flightgear.org/"
+options=('!makeflags')
+source=("http://downloads.sourceforge.net/project/flightgear/release-${_pkgver}/${pkgname}-${pkgver}.tar.bz2"
+	sec-fix.patch)
+sha256sums=('d51992cbe40f1812f9821ab27b838d52e04c10551772d57fc2e815f4444dfafc'
+            'c45d9596ee8269594ee600e3fe1de10422f202c2ce4b3fb733062ce92f37b11b')
+
+prepare() {
+  cd "$srcdir"/flightgear-$pkgver
+#  patch -p1 -i $srcdir/sec-fix.patch
+}
+
+build() {
+  cd "$srcdir"/flightgear-$pkgver
+  cmake \
+	-DCMAKE_INSTALL_PREFIX=/usr \
+	-DCMAKE_INSTALL_LIBDIR=lib \
+	-DFG_DATA_DIR:STRING="/usr/share/flightgear/data" .
+  uudecode -o package/flightgear.png package/flightgear.png.uue
+  make
+  sed -i 's|Exec=.*|Exec=fgfs --fg-root=/usr/share/flightgear/data|' package/flightgear.desktop
+}
+
+package() {
+  depends=(${depends[@]} 'flightgear-data')
+
+  cd "$srcdir"/flightgear-$pkgver
+  make DESTDIR="$pkgdir" install
+
+  install -Dm0644 package/flightgear.desktop "$pkgdir"/usr/share/applications/flightgear.desktop
+  install -Dm0644 package/flightgear.ico "$pkgdir"/usr/share/icons/flightgear.ico
+  install -Dm0644 package/flightgear.png "$pkgdir"/usr/share/icons/flightgear.png
+  install -Dm0644 scripts/completion/fg-completion.bash "$pkgdir"/usr/share/bash-completion/completions/fgfs
+  install -Dm0644 scripts/completion/fg-completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_fgfs
+  ln -sf flightgear "$pkgdir"/usr/share/FlightGear
+}

Deleted: sec-fix.patch
===================================================================
--- sec-fix.patch	2017-01-30 12:35:39 UTC (rev 209484)
+++ sec-fix.patch	2017-01-30 12:35:52 UTC (rev 209485)
@@ -1,42 +0,0 @@
---- a/src/Autopilot/route_mgr.cxx
-+++ b/src/Autopilot/route_mgr.cxx
-@@ -44,6 +44,7 @@
- #include <simgear/timing/sg_time.hxx>
- #include <simgear/sg_inlines.h>
- 
-+#include <Main/globals.hxx>
- #include "Main/fg_props.hxx"
- #include "Navaids/positioned.hxx"
- #include <Navaids/waypoint.hxx>
-@@ -54,6 +55,8 @@
- #include "Airports/runways.hxx"
- #include <GUI/new_gui.hxx>
- #include <GUI/dialog.hxx>
-+#include <Main/util.hxx>        // fgValidatePath()
-+#include <GUI/MessageBox.hxx>
- 
- #define RM "/autopilot/route-manager/"
- 
-@@ -709,7 +712,21 @@
-       mgr->loadRoute(path);
-     } else if (!strcmp(s, "@SAVE")) {
-       SGPath path(mgr->_pathNode->getStringValue());
--      mgr->saveRoute(path);
-+      SGPath authorizedPath = fgValidatePath(path, true /* write */);
-+
-+      if (!authorizedPath.isNull()) {
-+        mgr->saveRoute(authorizedPath);
-+      } else {
-+        std::string msg =
-+          "The route manager was asked to write the flightplan to '" +
-+          path.utf8Str() + "', but this path is not authorized for writing. " +
-+          "Please choose another location, for instance in the $FG_HOME/Export "
-+          "folder (" + (globals->get_fg_home() / "Export").utf8Str() + ").";
-+
-+        SG_LOG(SG_AUTOPILOT, SG_ALERT, msg);
-+        modalMessageBox("FlightGear", "Unable to write to the specified file",
-+                        msg);
-+      }
-     } else if (!strcmp(s, "@NEXT")) {
-       mgr->jumpToIndex(mgr->currentIndex() + 1);
-     } else if (!strcmp(s, "@PREVIOUS")) {

Copied: flightgear/repos/community-i686/sec-fix.patch (from rev 209484, flightgear/trunk/sec-fix.patch)
===================================================================
--- sec-fix.patch	                        (rev 0)
+++ sec-fix.patch	2017-01-30 12:35:52 UTC (rev 209485)
@@ -0,0 +1,42 @@
+--- a/src/Autopilot/route_mgr.cxx
++++ b/src/Autopilot/route_mgr.cxx
+@@ -44,6 +44,7 @@
+ #include <simgear/timing/sg_time.hxx>
+ #include <simgear/sg_inlines.h>
+ 
++#include <Main/globals.hxx>
+ #include "Main/fg_props.hxx"
+ #include "Navaids/positioned.hxx"
+ #include <Navaids/waypoint.hxx>
+@@ -54,6 +55,8 @@
+ #include "Airports/runways.hxx"
+ #include <GUI/new_gui.hxx>
+ #include <GUI/dialog.hxx>
++#include <Main/util.hxx>        // fgValidatePath()
++#include <GUI/MessageBox.hxx>
+ 
+ #define RM "/autopilot/route-manager/"
+ 
+@@ -709,7 +712,21 @@
+       mgr->loadRoute(path);
+     } else if (!strcmp(s, "@SAVE")) {
+       SGPath path(mgr->_pathNode->getStringValue());
+-      mgr->saveRoute(path);
++      SGPath authorizedPath = fgValidatePath(path, true /* write */);
++
++      if (!authorizedPath.isNull()) {
++        mgr->saveRoute(authorizedPath);
++      } else {
++        std::string msg =
++          "The route manager was asked to write the flightplan to '" +
++          path.utf8Str() + "', but this path is not authorized for writing. " +
++          "Please choose another location, for instance in the $FG_HOME/Export "
++          "folder (" + (globals->get_fg_home() / "Export").utf8Str() + ").";
++
++        SG_LOG(SG_AUTOPILOT, SG_ALERT, msg);
++        modalMessageBox("FlightGear", "Unable to write to the specified file",
++                        msg);
++      }
+     } else if (!strcmp(s, "@NEXT")) {
+       mgr->jumpToIndex(mgr->currentIndex() + 1);
+     } else if (!strcmp(s, "@PREVIOUS")) {



More information about the arch-commits mailing list