Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #1

Open
wants to merge 179 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
4a12587
adding AddressRangeIPv6
bluelineXY Feb 22, 2018
b59b760
adding fix for crash if you create some new objects type out of the m…
bluelineXY Feb 22, 2018
c9d4a0e
add AddressRangeIPv6 description to resources file
bluelineXY Apr 4, 2018
3893264
set address type to AF_INET6 - thx to Michal
bluelineXY Apr 4, 2018
cbd2436
add AddressRangeIPv6 to new objects - thx to Michal
bluelineXY Apr 4, 2018
3d1050b
add AddressRagenIpv6 to list_object - thx to Michal
bluelineXY Apr 4, 2018
7d31097
Update interface pattern for VLANs with predictable device naming
mattinx Apr 26, 2018
192c59e
chore: New build script for travis using docker
sirius Apr 29, 2018
41a0057
chore: Added build script for mxe-w32, travis
sirius Apr 30, 2018
1684bcf
fix: Make mxe-w32 build
sirius Apr 30, 2018
131e0a2
Merge pull request #57 from mattinx/master
sirius Apr 30, 2018
f7f1310
Merge pull request #51 from bluelineXY/master
sirius May 2, 2018
276f9ef
fix: Deprecated C++ exception specification
sirius May 2, 2018
cbcc919
Revert "fix: Deprecated C++ exception specification"
sirius May 10, 2018
5187dac
Revert "Merge pull request #51 from bluelineXY/master"
sirius May 10, 2018
102d68c
adding fix for crash if you create some new objects type out of the m…
bluelineXY Feb 22, 2018
e498daa
feat: Add support for IPv6 in AddressRange
sirius May 9, 2018
7a42aa2
fix: Crash when creating a new service group
sirius May 10, 2018
c1a8e1c
fix: Don't confuse SSH and shell error
sirius May 10, 2018
2dff28a
fix: Remove HttpGet class and usage
sirius May 13, 2018
e41ab25
fix: Remove Qt4 support
sirius May 13, 2018
e0ba889
fix: Find distro at runtime
sirius May 13, 2018
30abb47
fix: Define rcs binaries
sirius May 13, 2018
24c59d4
fix: Define Manifest marker
sirius May 13, 2018
e59591f
fix: Define vnsprintf
sirius May 13, 2018
6281444
fix: Use geopt.h
sirius May 13, 2018
39f6181
fix: Use signal.h
sirius May 13, 2018
72c2db7
fix: Define terminal includes
sirius May 13, 2018
123dcee
feat: Add qbs build files
sirius Sep 12, 2018
fc77645
fix: Define FREEXMLBUFF
sirius Sep 12, 2018
2714593
fix: Remove unneeded checks
sirius Sep 12, 2018
91cd514
fix: pflib constants
sirius Sep 12, 2018
ea85cab
feat: Remove unneeded header includes
sirius Sep 12, 2018
defc5c7
feat: Remove automake and qmake files
sirius Sep 12, 2018
7824066
feat: Apply modernize-use-nullptr
sirius Sep 12, 2018
80c9296
chore: Update travis and build files
sirius Sep 12, 2018
946831a
fix: qbs: use correct version string
sirius Sep 12, 2018
c042834
fix: travis: update build scripts for Ubuntu
sirius Sep 12, 2018
bc16221
fix: travis: correct Ubuntu 16.04 script
sirius Sep 12, 2018
667241a
chore: disable Ubuntu 16.04 for now
sirius Sep 12, 2018
b4e9abb
refactor: Add more compiler flags
sirius Oct 4, 2018
0cf32a2
refactor: Remove malloc and free
sirius Oct 4, 2018
a33f73b
refactor: Initialize variables
sirius Oct 4, 2018
2bc73bc
refactor: Fix libxml2 parentheses warnings
sirius Oct 4, 2018
e208ca6
refactor: Remove unused files
sirius Oct 4, 2018
1dba7aa
refactor: Add cast operators for XMLTools
sirius Oct 4, 2018
a8f3864
refactor: NULL -> nullptr
sirius Oct 4, 2018
65a2009
refactor: Disable unused variables in production code
sirius Oct 4, 2018
e1409f0
refactor: Adhere to the ODR rule
sirius Oct 4, 2018
896238c
refactor: Disable -Wshift-negative-value
sirius Oct 4, 2018
c30dc1c
refactor: Use back compat fallthrough comment
sirius Oct 4, 2018
9a50941
feat: Use QCommandLineParser instead of getopt
sirius Oct 4, 2018
bf349a1
feat: Use C++11 threads
sirius Oct 4, 2018
f43700d
refactor: Move -Wno-overloaded-virtual to build system
sirius Oct 4, 2018
d2a2806
feat: MSVC 64bit support
sirius Oct 4, 2018
ece29b5
chore: Windows doesn't like file names containing colons
sirius Oct 4, 2018
8371c53
chore: Properly read environment variables
sirius Oct 4, 2018
6afe1fc
refactor: Use -Wno-overloaded-virtual
sirius Oct 4, 2018
2d46b39
fix: Report errors from buildscripts
sirius Oct 4, 2018
95e1703
fix: Use toolchainType for setting properties
sirius Oct 4, 2018
d14cbb4
Set a white text color if the background is dark
karora Dec 23, 2018
c74c7d1
Fix missing semicolon
karora Dec 23, 2018
615d3d3
When a dark palette is in effect lighten row for highlight
karora Dec 24, 2018
7c2228b
Choose dark green background when initialising the User tree and dark…
karora Dec 24, 2018
b8ced0c
Use dark background for Standard library if dark theme active
karora Dec 24, 2018
2470c3d
For dark theme also rewrite Standard library color to dark blue
karora Dec 24, 2018
5b2d0e2
chore: Add support for CMake
sirius Feb 19, 2019
16f6de6
doc: Update build instructions
sirius Feb 20, 2019
c572b9d
chore: Update debuild scripts to use cmake
sirius Feb 21, 2019
30e01bd
fix: Initialize variable to nullptr
sirius Feb 21, 2019
27a9ae6
fix: Handle nullptr when adding object
sirius Feb 21, 2019
fe8be2e
fix: Remove colliding header guards
sirius May 20, 2019
4a478cc
find required libxslt
rezso May 30, 2019
773b3dc
Merge pull request #87 from rezso/patch-1
sirius May 31, 2019
03ed123
chore: Add support for mxe w32 and cmake
sirius Jun 9, 2019
780ef56
Revert "set detailed folder name"
sirius Jun 10, 2019
cc0f448
Revert "can now add subfolders need to implement saving & loading fun…
sirius Jun 10, 2019
19d5968
Revert "preliminary version -can now add subfolders to subfolders"
sirius Jun 10, 2019
4d871e4
Merge branch 'revert-recursive-subfolder'
sirius Jun 10, 2019
d83f586
fix: Deny adding a subfolder directly to a library
sirius Jun 10, 2019
df4068f
feat: Allow renaming of subfolders
sirius Jun 21, 2019
bb3a67b
fix: Stop using deprecated Qt methods
sirius Jul 22, 2019
0c43726
fix: Use QCoreApplication for terminal application
sirius Jul 22, 2019
4771015
fix: Support macOS target in cmake
sirius Jul 22, 2019
2502183
chore: Update cmake for mxe-w32
sirius Jul 22, 2019
751eb46
fix: Add required C++11 explicit copy constructor
sirius Jul 22, 2019
598e2fa
refactor: Reduce cmake global defines
sirius Jul 27, 2019
fabab75
chore: Remove deprecated build scripts
sirius Jul 27, 2019
ac89370
chore: Remove QBS </3
sirius Jul 27, 2019
2c79c3c
fix: Use new QSettings/registry keys
sirius Jul 28, 2019
30384dc
chore: Update travis build scripts
sirius Jul 29, 2019
722f7db
chore: Update travis build scripts
sirius Jul 29, 2019
a8802a3
chore: Update mxe docker image
sirius Jul 29, 2019
1c807a3
fix: Use firewallbuilder.org for QSettings/registry keys
sirius Nov 22, 2019
6b986a1
chore: Lock Qt version on macOS
sirius Dec 2, 2019
ded1340
refactor: Stop using deprecated methods (Qt 5.14)
sirius Feb 23, 2020
93510d5
feat: Add FWB_RES_DIR env variable
sirius Feb 23, 2020
638a117
test: Add unit tests to CMake
sirius Feb 23, 2020
6560166
test: Upgrade .fwb-files for unit tests
sirius Feb 23, 2020
79d6d5c
Remove QMake files
sirius Feb 23, 2020
e3c16d5
chore: Remove unused class
sirius Feb 23, 2020
6099d39
fix: Avoid duplicate naming for ui file elements
sirius Feb 23, 2020
a27b4d3
fix: -Wwrite-strings
sirius Feb 23, 2020
79cae62
test: Remove CppUnit, use QtTest only
sirius Mar 19, 2020
7381414
test: Fix RuleSetViewContextMenuTest
sirius Mar 19, 2020
c20b274
test: Fix compilerLibTest
sirius Mar 19, 2020
30ef5fe
test: Remove FWWindowTest
sirius Mar 19, 2020
8ed9222
test: Update fwb-files for tests
sirius Mar 19, 2020
0436ebd
test: Fix instDialogCompileTest
sirius Mar 19, 2020
b9f20a2
test: Fix instDialogInstallTest
sirius Mar 19, 2020
78228a4
chore: Update build script for Travis CI
sirius Mar 19, 2020
589c87b
chore: Add unpacked reference files for test
sirius Mar 19, 2020
f2ef62b
chore: Fix missing reference files for test
sirius Mar 19, 2020
8411ea9
chore: Optionally link net-snmp
sirius Mar 19, 2020
e1f21b8
test: Disable on MinGW and Apple - for now
sirius Mar 19, 2020
843434a
test: Disable tests on Ubuntu 16.04
sirius Mar 19, 2020
f8bc8ae
fix: Add CMake keyword
sirius Mar 19, 2020
28e9aa5
test: Make testing verbose
sirius Mar 20, 2020
6126403
chore: Enable ccache for travis/Linux
sirius Mar 23, 2020
0729f37
chore: Mount ccache directory in Docker
sirius Mar 23, 2020
be1306c
error: Name of the VLAN interface 'bond0.101' does not match any supp…
gaima8 Apr 22, 2020
3b12f51
Merge pull request #102 from gaima8/vlanbond0.101
sirius Apr 22, 2020
9f4d4d7
test: Add test for be1306c
sirius Apr 22, 2020
20ba0bc
test: Switch test macro
sirius Apr 24, 2020
ac9e629
test: FWException is not a subclass of std::exception
sirius Apr 24, 2020
966b53c
fix: Encode IPv6 in sqare brackets for DNAT
sirius Apr 24, 2020
0f34c2d
Building using MXE on UB 18.04 fails without ws2_32 being linked
ams-tschoening May 1, 2020
6523b93
Merge pull request #103 from ams-tschoening/link_ws2_32
sirius May 1, 2020
1238a76
test: Let compilation finish
sirius May 1, 2020
6d731ba
fix: Set cluster master without sigsev
sirius May 2, 2020
a5e14a9
chore: Update build status url
sirius May 2, 2020
bc40683
fix: Deprecated QString::SkipEmptyParts
sirius Oct 5, 2020
085bc8a
fix: Deprecated QString::endl
sirius Oct 7, 2020
10f74bf
fix: Deprecated QString::endl
sirius Oct 7, 2020
ea9f1e7
fix: Deprecated QFlags = 0
sirius Oct 7, 2020
0b9307b
fix: Remove deprecated qsrand()
sirius Oct 7, 2020
c86153e
fix: Deprecated Qt cmake macro
sirius Oct 7, 2020
239d047
fix: CMake variable capitalization
sirius Oct 7, 2020
17b6279
fix: Remove redundant command line option
sirius Oct 7, 2020
cbfcb38
feat: Allow entering IPv6 into AddressRangeDialog
sirius Oct 8, 2020
f3a865f
chore: Add Ubuntu 20.04 image for Travis
sirius Oct 8, 2020
8d879e4
chore: Configure GitHub actions
sirius Oct 10, 2020
f1808d4
chore: Remove travis configuration
sirius Oct 10, 2020
dfe97a2
chore: Update build status badge
sirius Oct 10, 2020
0b8b3bb
chore: Change build status badge links
sirius Oct 10, 2020
1ff9a82
chore: Add w32-mxe Qt 5.15 build
sirius Oct 10, 2020
710739e
"noexec" is an unsupported option and prevents opening files by doubl…
ams-tschoening Oct 26, 2020
6d0824e
Quote paths, like is done for "UninstallString" already.
ams-tschoening Oct 26, 2020
0d7af43
Use all start menu entries by default.
ams-tschoening Oct 26, 2020
2d010ee
Use CMAKE_INSTALL_MANDIR
julianaito Dec 22, 2020
2563623
Use ${CMAKE_DL_LIBS} for portability
julianaito Dec 22, 2020
15b4d66
OpenBSD: requires <sys/stat.h> for stat(2)
julianaito Dec 22, 2020
6aa6f74
Merge pull request #116 from julianaito/obsd_statdoth
sirius Dec 29, 2020
4bd8789
Merge pull request #117 from julianaito/libdl
sirius Dec 29, 2020
320548e
Merge pull request #118 from julianaito/mandir
sirius Dec 29, 2020
a5b8af0
Merge pull request #115 from ams-tschoening/windows_prob_startmenu
sirius Dec 29, 2020
3359246
refactor: Use C++17 standard
sirius Dec 30, 2020
2bb27d5
fix: Deprecated QProcess::pid()
sirius Dec 30, 2020
5db87b8
fix: Deprecated QPrinter methods
sirius Dec 30, 2020
416a468
fix: clazy qstring-ref
sirius Dec 30, 2020
ad53357
Merge pull request #114 from ams-tschoening/windows_prob_noexec
sirius Dec 30, 2020
33fc3aa
Revert "refactor: Use C++17 standard"
sirius Dec 30, 2020
234035b
Merge pull request #79 from karora/dark_theme_is_usable
sirius Jan 3, 2021
a292223
feat: Add well-known IPv6 addresses
sirius Jan 3, 2021
0a20416
Release v6.0.0-rc1
sirius Jan 3, 2021
35493a6
fix: Set netmask and fix tests
sirius Jan 3, 2021
ea25d1e
test: Allow disable tests with -DBUILD_TESTING=OFF
sirius Jan 3, 2021
4fb7572
fix: Add braces to if keyword
sirius Jan 11, 2022
b6648fd
chore: Update CMakeLists.txt for Qt6
sirius Jul 22, 2023
f76af19
fix: Add support for Qt6
sirius Jul 22, 2023
003d5c2
test: Qt6: Add workaround for buggy QAction
sirius Jul 22, 2023
a940362
fix: Adjust invalid regex. Escape '-' as that one is not representing…
sirius Jul 22, 2023
0421a0c
fix: Remove deprecated (C++11) std::{binary,unary}_function
sirius Jul 22, 2023
7396594
fix: Add missing include for QObject::tr()
sirius Jul 22, 2023
9d1cf61
fix: Ignore unused parameter
sirius Jul 22, 2023
61993d3
fix: Remove deprecated function call. xmlInitMemory(): alias for xmlI…
sirius Jul 22, 2023
184f866
fix: Remove unused code
sirius Jul 22, 2023
e748729
Update docker images and build matrix
sirius Jul 22, 2023
8013c00
Disable builds with Qt < 5.15
sirius Jul 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
70 changes: 70 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Linux

on: [push]

jobs:
debug-unit_tests:
runs-on: ubuntu-latest
strategy:
matrix:
config:
- {
id: 'ubuntu-22.04-qt6',
name: "Ubuntu 22.04",
docker_image: "fwbuilder/ubuntu:22.04",
unit_tests: true,
qt6: true,
}
- {
id: 'ubuntu-22.04-qt5',
name: "Ubuntu 22.04",
docker_image: "fwbuilder/ubuntu:22.04",
unit_tests: true,
qt6: false,
}
# - {
# id: 'ubuntu-20.04',
# name: "Ubuntu 20.04",
# docker_image: "fwbuilder/ubuntu:20.04",
# unit_tests: true,
# qt6: false,
# }
# - {
# id: 'ubuntu-18.04',
# name: "Ubuntu 18.04",
# docker_image: "fwbuilder/ubuntu:18.04",
# unit_tests: true,
# qt6: false,
# }
container:
image: ${{ matrix.config.docker_image }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compilation cache
uses: actions/cache@v2
with:
path: ~/.ccache
key: ${{ matrix.config.id }}-ccache-${{ github.sha }}
restore-keys: |
${{ matrix.config.id }}-ccache
- name: Configure (Qt6)
if: ${{ matrix.config.qt6 == true }}
run: |
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DUseQt6=ON
- name: Configure (Qt5)
if: ${{ matrix.config.qt6 == false }}
run: |
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
- name: Build
run: |
cd build
make -j$(nproc)
make install
- name: Run unit tests
if: ${{ matrix.config.unit_tests == true }}
run: |
cd build
QT_QPA_PLATFORM=vnc ctest --verbose
33 changes: 33 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: macOS

on: [push]

jobs:
release-build:
runs-on: macos-10.15
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: |
brew install qt net-snmp ccache
brew upgrade openssl cmake
- name: Compilation cache
uses: actions/cache@v2
with:
path: ~/.ccache
key: ${{ runner.os }}-ccache-${{ github.sha }}
restore-keys: |
${{ runner.os }}-ccache
- name: Configure
run: |
export PATH="/usr/local/opt/qt/bin:/usr/local/opt/net-snmp/bin:$PATH"
export OPENSSL_ROOT_DIR="/usr/local/opt/openssl" ;
mkdir -p build && cd build
cmake ..
- name: Build
run: |
export PATH="/usr/local/opt/qt/bin:/usr/local/opt/net-snmp/bin:$PATH"
export OPENSSL_ROOT_DIR="/usr/local/opt/openssl" ;
cd build
make -j$(sysctl -n hw.ncpu) install
37 changes: 37 additions & 0 deletions .github/workflows/w32-mxe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: w32-mxe

on: [push]

jobs:
release-build:
runs-on: ubuntu-latest
strategy:
matrix:
config:
- {
id: "mxe-qt-5.15",
name: "MXE Qt 5.15",
docker_image: "fwbuilder/mxe:qt-5.15"
}
container:
image: ${{ matrix.config.docker_image }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compilation cache
uses: actions/cache@v2
with:
path: ~/.ccache
key: ${{ matrix.config.id }}-ccache-${{ github.sha }}
restore-keys: |
${{ matrix.config.id }}-ccache
- name: Configure
run: |
export PATH=$PATH:/opt/mxe/usr/bin
mkdir -p build && cd build
i686-w64-mingw32.shared-cmake ..
- name: Build
run: |
export PATH=$PATH:/opt/mxe/usr/bin
cd build
make -j$(nproc)
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ ltmain.sh
configure
libtool
qmake.inc
config.h
.obj
.moc
.ui
qtdbus_test
fwbedit
qrc_MainRes.cpp
fwb_iosacl
fwb_nxosacl
Expand All @@ -49,11 +47,15 @@ src/unit_tests/*/*Test
src/unit_tests/*/*Tests
src/unit_tests/*/*.output
src/unit_tests/generatedScriptTests*/generatedScriptTests*
src/unit_tests/generatedScriptTestsSecuwall/ref.*
src/unit_tests/generatedScriptTestsSecuwall/secuwall-1/
src/unit_tests/generatedScriptTestsSecuwall/secuwall-2/
*.pro.user
src/libfwbuilder/etc/fwbuilder.dtd
src/res/objects_init.xml
src/res/templates.xml
VERSION.h
default/
debug/
release/
*.qbs.user
build/
CMakeLists.txt.user
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

125 changes: 125 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
cmake_minimum_required(VERSION 3.5)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9"
CACHE STRING "Minimum macOS deployment version"
)

find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
endif()

project(firewallbuilder LANGUAGES CXX C)

### Version variables and include file

include(VERSION)
configure_file("${CMAKE_SOURCE_DIR}/src/version.h.in" "${CMAKE_BINARY_DIR}/src/version.h" @ONLY)
include_directories(${CMAKE_BINARY_DIR}/src)

### Build type

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING
"Choose the type of build, options are: Debug or Release."
FORCE)
endif()
include( CTest )

### Dependencies

option(UseQt6 "Use Qt6" OFF)
if (UseQt6)
find_package(Qt6 COMPONENTS Widgets Network PrintSupport REQUIRED)
else()
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Network REQUIRED)
find_package(Qt5PrintSupport REQUIRED)
endif()

find_package(LibXml2 REQUIRED)
find_package(LibXslt REQUIRED)

find_package(NetSNMP)
if(NETSNMP_FOUND)
add_definitions(-DHAVE_LIBSNMP -DNET_SNMP -DHAVE_SNPRINT_OBJID)
endif()

### Compiler options

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CXX_DEFAULT_FLAGS # clang/GCC warnings
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>:-Wall;-Wextra;-Werror;-Wno-overloaded-virtual>
# MSVC warnings
$<$<CXX_COMPILER_ID:MSVC>:/WX;/W4>)

add_definitions(-D__STDC_FORMAT_MACROS)

if(WIN32)
#add_definitions(-DIN_LIBXML) # Enable for static build
add_definitions(-DWIN32_LEAN_AND_MEAN)
endif()

### Install

if(APPLE)
set(APP_ICON_FILE fwbuilder-macosx.icns)
set(APP_ICON "${PROJECT_SOURCE_DIR}/src/gui/${APP_ICON_FILE}")
set(APPLICATION_NAME fwbuilder)
set(MACOSX_BUNDLE_ICON_FILE ${APP_ICON_FILE})
set(MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_GENERATION})
set(MACOSX_BUNDLE_VERSION ${VERSION})
set(MACOSX_BUNDLE_LONG_VERSION_STRING ${VERSION})
set_source_files_properties(${APP_ICON} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)

set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install")
set(FWB_INSTALL_DATADIR ${APPLICATION_NAME}.app/Contents/Resources)
set(FWB_INSTALL_DOCDIR ${FWB_INSTALL_DATADIR}/doc)
set(FWB_INSTALL_BINDIR ${APPLICATION_NAME}.app/Contents/MacOS)
elseif(WIN32)
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR})
set(FWB_INSTALL_DATADIR release/resources)
set(FWB_INSTALL_DOCDIR release/doc)
set(FWB_INSTALL_BINDIR release)
else()
include(GNUInstallDirs)
set(FWB_INSTALL_DATADIR ${CMAKE_INSTALL_DATADIR}/fwbuilder-${PROJECT_VERSION})
set(FWB_INSTALL_DOCDIR ${CMAKE_INSTALL_DATADIR}/doc/fwbuilder-${PROJECT_VERSION})
set(FWB_INSTALL_BINDIR ${CMAKE_INSTALL_BINDIR})
endif()

### Sources

add_subdirectory(src/libfwbuilder/src/fwcompiler)
add_subdirectory(src/libfwbuilder/src/fwbuilder)
add_subdirectory(src/common)
add_subdirectory(src/antlr)
add_subdirectory(src/compiler_lib)
add_subdirectory(src/cisco_lib)
add_subdirectory(src/juniper_lib)
add_subdirectory(src/pflib)
add_subdirectory(src/iptlib)
add_subdirectory(src/ipt)
add_subdirectory(src/pf)
add_subdirectory(src/ipf)
add_subdirectory(src/ipfw)
add_subdirectory(src/iosacl)
add_subdirectory(src/nxosacl)
add_subdirectory(src/junosacl)
add_subdirectory(src/pix)
add_subdirectory(src/procurve_acl)
add_subdirectory(src/libgui)
add_subdirectory(src/import)
add_subdirectory(src/parsers)
add_subdirectory(src/gui)
add_subdirectory(src/fwbedit)
add_subdirectory(src/libfwbuilder/etc)
add_subdirectory(src/libfwbuilder/migration)
add_subdirectory(src/res)
add_subdirectory(doc)
add_subdirectory(src/unit_tests)

### Packaging
add_subdirectory(packaging)
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[![Build Status](https://travis-ci.org/fwbuilder/fwbuilder.svg?branch=master)](https://travis-ci.org/fwbuilder/fwbuilder)
[![Linux](https://github.com/fwbuilder/fwbuilder/workflows/Linux/badge.svg)](https://github.com/fwbuilder/fwbuilder/actions?query=workflow%3ALinux)
[![macOS](https://github.com/fwbuilder/fwbuilder/workflows/macOS/badge.svg)](https://github.com/fwbuilder/fwbuilder/actions?query=workflow%3AmacOS)
[![w32-mxe](https://github.com/fwbuilder/fwbuilder/workflows/w32-mxe/badge.svg)](https://github.com/fwbuilder/fwbuilder/actions?query=workflow%3Aw32-mxe)

fwbuilder
=========
Expand All @@ -12,23 +14,22 @@ Installation instructions

Ubuntu
---------

The instructions are inspired by the well-meaning but out of date instructions available from the fwbuilder.org website: http://www.fwbuilder.org/4.0/docs/users_guide5/compile_from_source.shtml

run the following apt-get install command to install the compile requirements:

```
sudo apt-get install git automake autoconf libtool libxml2-dev libxslt-dev libsnmp-dev qt5-default qttools5-dev-tools
sudo apt install git cmake libxml2-dev libxslt-dev libsnmp-dev qt5-default qttools5-dev-tools
git clone https://github.com/fwbuilder/fwbuilder.git
cd fwbuilder
./autogen.sh
mkdir build
cd build
cmake ../fwbuilder
make
sudo make install
```
Then, if you are lucky, you should be able to type
Note: default destination is /usr/local. This is configurable:
```
fwbuilder &
cmake ../fwbuilder -DCMAKE_INSTALL_PREFIX=/usr
```
At the prompt and get it to run. There is also a GUI icon you can use to start the program.


Create deb package
---------
```
debuild -us -uc --lintian-opts --profile debian
```
Loading