summaryrefslogtreecommitdiff
path: root/community/fwbuilder
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-04-19 00:01:30 +0000
committerroot <root@rshg054.dnsready.net>2012-04-19 00:01:30 +0000
commitfe675be3a5f22b4397ea55959bb3c47b4c1b8288 (patch)
tree2d8d385678576c75dc561c6fc2c194df7aad2b9b /community/fwbuilder
parent637c1cfdcd258a870ad5367cbf47a8a2799039c7 (diff)
Thu Apr 19 00:01:30 UTC 2012
Diffstat (limited to 'community/fwbuilder')
-rw-r--r--community/fwbuilder/PKGBUILD31
-rw-r--r--community/fwbuilder/fwbuilder-gcc47.patch13
-rw-r--r--community/fwbuilder/fwbuilder.install12
3 files changed, 56 insertions, 0 deletions
diff --git a/community/fwbuilder/PKGBUILD b/community/fwbuilder/PKGBUILD
new file mode 100644
index 000000000..ae559607c
--- /dev/null
+++ b/community/fwbuilder/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id
+# Maintainer: Kevin Piche <kevin@archlinux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
+pkgname=fwbuilder
+pkgver=5.1.0.3599
+pkgrel=1
+pkgdesc="Object-oriented GUI and set of compilers for various firewall platforms"
+url="http://www.fwbuilder.org/"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('libxslt' 'net-snmp' 'qt')
+conflicts=('libfwbuilder')
+install=fwbuilder.install
+source=("http://sourceforge.net/projects/fwbuilder/files/Current_Packages/${pkgver%.*}/fwbuilder-${pkgver}.tar.gz"
+ 'fwbuilder-gcc47.patch')
+sha256sums=('452514a1ec0be1416bfca93603e6c89deb91d1a3a19671c64b5a8868a3743daf'
+ 'd7c602d5b99c6e40403c0b02e34abf15de83802257ca5ce80ad53d486b692f27')
+
+build() {
+ cd "${srcdir}/fwbuilder-${pkgver}"
+ patch -p1 -i "$srcdir/fwbuilder-gcc47.patch"
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/fwbuilder-${pkgver}"
+ make INSTALL_ROOT="${pkgdir}" install
+}
diff --git a/community/fwbuilder/fwbuilder-gcc47.patch b/community/fwbuilder/fwbuilder-gcc47.patch
new file mode 100644
index 000000000..59cd64a6f
--- /dev/null
+++ b/community/fwbuilder/fwbuilder-gcc47.patch
@@ -0,0 +1,13 @@
+Only in fwbuilder-5.0.1.3592: patches
+Only in fwbuilder-5.0.1.3592: .pc
+diff -upr fwbuilder-5.0.1.3592/src/libfwbuilder/src/fwbuilder/ThreadTools.h /var/tmp/build-root/home/abuild/rpmbuild/BUILD/fwbuilder-5.0.1.3592/src/libfwbuilder/src/fwbuilder/ThreadTools.h
+--- fwbuilder-5.0.1.3592/src/libfwbuilder/src/fwbuilder/ThreadTools.h 2011-12-08 02:02:07.000000000 +0100
++++ /var/tmp/build-root/home/abuild/rpmbuild/BUILD/fwbuilder-5.0.1.3592/src/libfwbuilder/src/fwbuilder/ThreadTools.h 2012-03-17 22:29:16.317275376 +0100
+@@ -31,6 +31,7 @@
+
+ #include <time.h> //for time_t definition
+ #include <pthread.h>
++#include <unistd.h>
+
+ #include <string>
+ #include <queue>
diff --git a/community/fwbuilder/fwbuilder.install b/community/fwbuilder/fwbuilder.install
new file mode 100644
index 000000000..45f0c2242
--- /dev/null
+++ b/community/fwbuilder/fwbuilder.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+