mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-06-23 17:39:35 +02:00
refs #1876 build number is now part of the long version number
This commit is contained in:
21
VERSION
21
VERSION
@@ -1,15 +1,24 @@
|
|||||||
#-*- mode: shell-script; tab-width: 4; -*-
|
#-*- mode: shell-script; tab-width: 4; -*-
|
||||||
|
|
||||||
FWB_MAJOR_VERSION=4
|
FWB_MAJOR_VERSION=4
|
||||||
FWB_MINOR_VERSION=1
|
FWB_MINOR_VERSION=2
|
||||||
FWB_MICRO_VERSION=4
|
FWB_MICRO_VERSION=0
|
||||||
|
|
||||||
|
# build number is like "nano" version number. Complete version is
|
||||||
|
# composed like this:
|
||||||
|
# $FWB_MAJOR_VERSION.$FWB_MINOR_VERSION.$FWB_MICRO_VERSION.$BUILD_NUM
|
||||||
|
#
|
||||||
|
# I am incrementing build number during development cycle
|
||||||
|
#
|
||||||
|
BUILD_NUM="3425"
|
||||||
|
|
||||||
# VERSION must be a string rather than $var because of the build scripts
|
# VERSION must be a string rather than $var because of the build scripts
|
||||||
VERSION="4.1.4"
|
# VERSION="4.2.0"
|
||||||
SHORTVERSION="414"
|
# SHORTVERSION="420"
|
||||||
|
|
||||||
|
VERSION="$FWB_MAJOR_VERSION.$FWB_MINOR_VERSION.$FWB_MICRO_VERSION.$BUILD_NUM"
|
||||||
|
SHORTVERSION="${FWB_MAJOR_VERSION}${FWB_MINOR_VERSION}${FWB_MICRO_VERSION}"
|
||||||
|
|
||||||
# RELEASE="1"
|
|
||||||
RELEASE="b@BUILD_NUM@"
|
|
||||||
|
|
||||||
BETA="no"
|
BETA="no"
|
||||||
|
|
||||||
|
|||||||
@@ -18,14 +18,6 @@ dnl all version numbers are defined in the file VERSION
|
|||||||
dnl
|
dnl
|
||||||
. ./VERSION
|
. ./VERSION
|
||||||
|
|
||||||
# RELEASE number (== build number) is taken from the file build_num if
|
|
||||||
# it exists If the file is not there, we construct it from git branch
|
|
||||||
# and commit
|
|
||||||
test -f build_num && {
|
|
||||||
. build_num
|
|
||||||
} || {
|
|
||||||
BUILD_NUM="999999"
|
|
||||||
}
|
|
||||||
RELEASE_NUM=$BUILD_NUM
|
RELEASE_NUM=$BUILD_NUM
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED(BUILD_NUM, "$BUILD_NUM")
|
AC_DEFINE_UNQUOTED(BUILD_NUM, "$BUILD_NUM")
|
||||||
|
|||||||
@@ -1,3 +1,21 @@
|
|||||||
|
2010-12-29 vadim <vadim@netcitadel.com>
|
||||||
|
|
||||||
|
* VERSION (VERSION): started 4.2.0
|
||||||
|
|
||||||
|
This version is the first one to merge libfwbuilder and fwbuilder
|
||||||
|
packages. Libfwbuilder is now in the src/libfwbuilder subtree inside
|
||||||
|
fwbuilder code tree.
|
||||||
|
|
||||||
|
RPM .spec files and DEB .control files are now located in the packaging
|
||||||
|
directory inside fwbuilder code tree.
|
||||||
|
|
||||||
|
Changes in the versioning format: I am going to use build number
|
||||||
|
as a "nano" version number, composing complete version as
|
||||||
|
"4.2.0.3425". The "-N" suffix in rpm and deb package names will
|
||||||
|
be used for package release number and most of the time will be
|
||||||
|
"-1". This suffix should reflect minor differences in the package
|
||||||
|
that do not affect code at all.
|
||||||
|
|
||||||
2010-12-16 Vadim Kurland <vadim@netcitadel.com>
|
2010-12-16 Vadim Kurland <vadim@netcitadel.com>
|
||||||
|
|
||||||
* ActionsDialog.cpp (fillInterfaces): fixed #1872: "vlan interface
|
* ActionsDialog.cpp (fillInterfaces): fixed #1872: "vlan interface
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
|
|
||||||
%define name fwbuilder
|
%define name fwbuilder
|
||||||
%define version 4.1.4
|
%define version 4.2.0.3425
|
||||||
%define release 999999
|
%define release 1
|
||||||
|
|
||||||
%if "%_vendor" == "MandrakeSoft"
|
%if "%_vendor" == "MandrakeSoft"
|
||||||
%define guigroup System/Configuration/Networking
|
%define guigroup System/Configuration/Networking
|
||||||
@@ -27,11 +27,9 @@ Packager: Vadim Kurland <vadim@fwbuilder.org>
|
|||||||
|
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
Requires: libfwbuilder = @REQUIRED_LIBFWBUILDER_VERSION@
|
|
||||||
BuildRequires: libfwbuilder-devel = @REQUIRED_LIBFWBUILDER_VERSION@
|
|
||||||
BuildRequires: libxml2-devel, libxslt-devel, openssl-devel
|
BuildRequires: libxml2-devel, libxslt-devel, openssl-devel
|
||||||
|
|
||||||
Obsoletes: fwbuilder-ipt, fwbuilder-pf, fwbuilder-ipf, fwbuilder-ipfw, fwbuilder-pix, fwbuilder-iosacl, fwbuilder-cisco
|
Obsoletes: fwbuilder-ipt, fwbuilder-pf, fwbuilder-ipf, fwbuilder-ipfw, fwbuilder-pix, fwbuilder-iosacl, fwbuilder-cisco, libfwbuilder, libfwbuilder-devel
|
||||||
|
|
||||||
Docdir: /usr/share/doc
|
Docdir: /usr/share/doc
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
%define name fwbuilder
|
%define name fwbuilder
|
||||||
%define version @VERSION@
|
%define version @VERSION@
|
||||||
%define release @RELEASE_NUM@
|
%define release 1
|
||||||
|
|
||||||
%if "%_vendor" == "MandrakeSoft"
|
%if "%_vendor" == "MandrakeSoft"
|
||||||
%define guigroup System/Configuration/Networking
|
%define guigroup System/Configuration/Networking
|
||||||
@@ -27,11 +27,9 @@ Packager: Vadim Kurland <vadim@fwbuilder.org>
|
|||||||
|
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
Requires: libfwbuilder = @REQUIRED_LIBFWBUILDER_VERSION@
|
|
||||||
BuildRequires: libfwbuilder-devel = @REQUIRED_LIBFWBUILDER_VERSION@
|
|
||||||
BuildRequires: libxml2-devel, libxslt-devel, openssl-devel
|
BuildRequires: libxml2-devel, libxslt-devel, openssl-devel
|
||||||
|
|
||||||
Obsoletes: fwbuilder-ipt, fwbuilder-pf, fwbuilder-ipf, fwbuilder-ipfw, fwbuilder-pix, fwbuilder-iosacl, fwbuilder-cisco
|
Obsoletes: fwbuilder-ipt, fwbuilder-pf, fwbuilder-ipf, fwbuilder-ipfw, fwbuilder-pix, fwbuilder-iosacl, fwbuilder-cisco, libfwbuilder, libfwbuilder-devel
|
||||||
|
|
||||||
Docdir: /usr/share/doc
|
Docdir: /usr/share/doc
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
Package: fwbuilder
|
Package: fwbuilder
|
||||||
Conflicts: fwbuilder (<=4.1.1-1), fwbuilder-common, fwbuilder-bsd, fwbuilder-linux, fwbuilder-doc
|
Conflicts: fwbuilder (<=4.1.1-1), fwbuilder-common, fwbuilder-bsd, fwbuilder-linux, fwbuilder-doc, libfwbuilder
|
||||||
Replaces: fwbuilder (<=4.1.1-1), fwbuilder-common, fwbuilder-bsd, fwbuilder-linux, fwbuilder-doc
|
Replaces: fwbuilder (<=4.1.1-1), fwbuilder-common, fwbuilder-bsd, fwbuilder-linux, fwbuilder-doc, libfwbuilder
|
||||||
Priority: extra
|
Priority: extra
|
||||||
Section: checkinstall
|
Section: checkinstall
|
||||||
Maintainer: vadim@fwbuilder.org
|
Maintainer: vadim@fwbuilder.org
|
||||||
Version: 4.1.4-999999
|
Version: 4.2.0.3425-1
|
||||||
Depends: libfwbuilder, libqt4-gui (>= 4.3.0), libxml2, libxslt1.1, libsnmp | libsnmp15
|
Depends: libqt4-gui (>= 4.3.0), libxml2, libxslt1.1, libsnmp | libsnmp15
|
||||||
Description: Firewall Builder GUI and policy compilers
|
Description: Firewall Builder GUI and policy compilers
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
Package: fwbuilder
|
Package: fwbuilder
|
||||||
Conflicts: fwbuilder (<=4.1.1-1), fwbuilder-common, fwbuilder-bsd, fwbuilder-linux, fwbuilder-doc
|
Conflicts: fwbuilder (<=4.1.1-1), fwbuilder-common, fwbuilder-bsd, fwbuilder-linux, fwbuilder-doc, libfwbuilder
|
||||||
Replaces: fwbuilder (<=4.1.1-1), fwbuilder-common, fwbuilder-bsd, fwbuilder-linux, fwbuilder-doc
|
Replaces: fwbuilder (<=4.1.1-1), fwbuilder-common, fwbuilder-bsd, fwbuilder-linux, fwbuilder-doc, libfwbuilder
|
||||||
Priority: extra
|
Priority: extra
|
||||||
Section: checkinstall
|
Section: checkinstall
|
||||||
Maintainer: vadim@fwbuilder.org
|
Maintainer: vadim@fwbuilder.org
|
||||||
Version: @VERSION@-@RELEASE_NUM@
|
Version: @VERSION@-1
|
||||||
Depends: libfwbuilder, libqt4-gui (>= 4.3.0), libxml2, libxslt1.1, libsnmp | libsnmp15
|
Depends: libqt4-gui (>= 4.3.0), libxml2, libxslt1.1, libsnmp | libsnmp15
|
||||||
Description: Firewall Builder GUI and policy compilers
|
Description: Firewall Builder GUI and policy compilers
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
%define name fwbuilder
|
%define name fwbuilder
|
||||||
%define version 4.1.4
|
%define version 4.2.0.3425
|
||||||
%define release 999999
|
%define release 1
|
||||||
|
|
||||||
%if "%_vendor" == "MandrakeSoft"
|
%if "%_vendor" == "MandrakeSoft"
|
||||||
%define guigroup System/Configuration/Networking
|
%define guigroup System/Configuration/Networking
|
||||||
@@ -24,8 +24,6 @@ Packager: Vadim Kurland <vadim@fwbuilder.org>
|
|||||||
|
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
Requires: libfwbuilder = @REQUIRED_LIBFWBUILDER_VERSION@-%{release}
|
|
||||||
BuildRequires: libfwbuilder-devel = @REQUIRED_LIBFWBUILDER_VERSION@-%{release}
|
|
||||||
BuildRequires: libxml2-devel, libxslt-devel, openssl-devel
|
BuildRequires: libxml2-devel, libxslt-devel, openssl-devel
|
||||||
%if "%_vendor" == "suse"
|
%if "%_vendor" == "suse"
|
||||||
BuildRequires: qt-devel
|
BuildRequires: qt-devel
|
||||||
@@ -33,7 +31,7 @@ BuildRequires: qt-devel
|
|||||||
BuildRequires: qt4-devel
|
BuildRequires: qt4-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Obsoletes: fwbuilder-ipt, fwbuilder-pf, fwbuilder-ipf, fwbuilder-ipfw, fwbuilder-pix, fwbuilder-iosacl, fwbuilder-cisco
|
Obsoletes: fwbuilder-ipt, fwbuilder-pf, fwbuilder-ipf, fwbuilder-ipfw, fwbuilder-pix, fwbuilder-iosacl, fwbuilder-cisco, libfwbuilder, libfwbuilder-devel
|
||||||
|
|
||||||
Docdir: /usr/share/doc
|
Docdir: /usr/share/doc
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
%define name fwbuilder
|
%define name fwbuilder
|
||||||
%define version @VERSION@
|
%define version @VERSION@
|
||||||
%define release @RELEASE_NUM@
|
%define release 1
|
||||||
|
|
||||||
%if "%_vendor" == "MandrakeSoft"
|
%if "%_vendor" == "MandrakeSoft"
|
||||||
%define guigroup System/Configuration/Networking
|
%define guigroup System/Configuration/Networking
|
||||||
@@ -24,8 +24,6 @@ Packager: Vadim Kurland <vadim@fwbuilder.org>
|
|||||||
|
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
Requires: libfwbuilder = @REQUIRED_LIBFWBUILDER_VERSION@-%{release}
|
|
||||||
BuildRequires: libfwbuilder-devel = @REQUIRED_LIBFWBUILDER_VERSION@-%{release}
|
|
||||||
BuildRequires: libxml2-devel, libxslt-devel, openssl-devel
|
BuildRequires: libxml2-devel, libxslt-devel, openssl-devel
|
||||||
%if "%_vendor" == "suse"
|
%if "%_vendor" == "suse"
|
||||||
BuildRequires: qt-devel
|
BuildRequires: qt-devel
|
||||||
@@ -33,7 +31,7 @@ BuildRequires: qt-devel
|
|||||||
BuildRequires: qt4-devel
|
BuildRequires: qt4-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Obsoletes: fwbuilder-ipt, fwbuilder-pf, fwbuilder-ipf, fwbuilder-ipfw, fwbuilder-pix, fwbuilder-iosacl, fwbuilder-cisco
|
Obsoletes: fwbuilder-ipt, fwbuilder-pf, fwbuilder-ipf, fwbuilder-ipfw, fwbuilder-pix, fwbuilder-iosacl, fwbuilder-cisco, libfwbuilder, libfwbuilder-devel
|
||||||
|
|
||||||
Docdir: /usr/share/doc
|
Docdir: /usr/share/doc
|
||||||
|
|
||||||
|
|||||||
@@ -26,14 +26,9 @@ std::string tempfname;
|
|||||||
std::string argv0;
|
std::string argv0;
|
||||||
std::string ee;
|
std::string ee;
|
||||||
|
|
||||||
#define Str(x) #x
|
|
||||||
#define Xstr(x) Str(x)
|
|
||||||
|
|
||||||
QString build_num = Xstr(BUILD_NUM);
|
|
||||||
QString user_name;
|
QString user_name;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if defined(Q_OS_WIN32) || defined(Q_OS_MACX)
|
#if defined(Q_OS_WIN32) || defined(Q_OS_MACX)
|
||||||
extern void init_win();
|
extern void init_win();
|
||||||
void init(char * const*)
|
void init(char * const*)
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ using namespace std;
|
|||||||
using namespace libfwbuilder;
|
using namespace libfwbuilder;
|
||||||
using namespace fwcompiler;
|
using namespace fwcompiler;
|
||||||
|
|
||||||
extern QString build_num;
|
|
||||||
extern QString user_name;
|
extern QString user_name;
|
||||||
|
|
||||||
|
|
||||||
@@ -106,7 +105,6 @@ void CompilerDriver::assembleFwScriptInternal(Cluster *cluster,
|
|||||||
script_skeleton->setVariable("firewall_dir", firewall_dir.c_str());
|
script_skeleton->setVariable("firewall_dir", firewall_dir.c_str());
|
||||||
|
|
||||||
top_comment->setVariable("version", VERSION);
|
top_comment->setVariable("version", VERSION);
|
||||||
top_comment->setVariable("build", build_num);
|
|
||||||
|
|
||||||
top_comment->setVariable("timestamp", timestr);
|
top_comment->setVariable("timestamp", timestr);
|
||||||
top_comment->setVariable("tz", tzname[stm->tm_isdst]);
|
top_comment->setVariable("tz", tzname[stm->tm_isdst]);
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ void usage()
|
|||||||
{
|
{
|
||||||
cout << "Firewall Builder: general purpose object tree editing tool"
|
cout << "Firewall Builder: general purpose object tree editing tool"
|
||||||
<< endl;
|
<< endl;
|
||||||
cout << "Version " << VERSION << "-" << build_num.toStdString() << endl;
|
cout << "Version " << VERSION << endl;
|
||||||
cout << endl;
|
cout << endl;
|
||||||
cout << "Usage: fwbedit command [options]" << endl;
|
cout << "Usage: fwbedit command [options]" << endl;
|
||||||
cout << endl;
|
cout << endl;
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ void usage(const char *name)
|
|||||||
{
|
{
|
||||||
cout << "Firewall Builder: policy compiler for Cisco IOS ACL" << endl;
|
cout << "Firewall Builder: policy compiler for Cisco IOS ACL" << endl;
|
||||||
cout << "Copyright 2007-2009 NetCitadel, LLC" << endl;
|
cout << "Copyright 2007-2009 NetCitadel, LLC" << endl;
|
||||||
cout << "Version " << VERSION << "-" << build_num.toStdString() << endl;
|
cout << "Version " << VERSION << endl;
|
||||||
cout << "Usage: " << name << " [-tvV] [-f filename.xml] [-d destdir] [-o output.fw] firewall_object_name" << endl;
|
cout << "Usage: " << name << " [-tvV] [-f filename.xml] [-d destdir] [-o output.fw] firewall_object_name" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ class UpgradePredicate: public XMLTools::UpgradePredicate
|
|||||||
void usage(const char *name)
|
void usage(const char *name)
|
||||||
{
|
{
|
||||||
cout << "Firewall Builder: policy compiler for ipfilter" << endl;
|
cout << "Firewall Builder: policy compiler for ipfilter" << endl;
|
||||||
cout << "Version " << VERSION << "-" << build_num.toStdString() << endl;
|
cout << "Version " << VERSION << endl;
|
||||||
cout << "Usage: " << name
|
cout << "Usage: " << name
|
||||||
<< " [-x] [-v] [-V] [-f filename.xml] [-o output.fw] [-d destdir] [-m] firewall_object_name" << endl;
|
<< " [-x] [-v] [-V] [-f filename.xml] [-o output.fw] [-d destdir] [-m] firewall_object_name" << endl;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ class UpgradePredicate: public XMLTools::UpgradePredicate
|
|||||||
void usage(const char *name)
|
void usage(const char *name)
|
||||||
{
|
{
|
||||||
cout << "Firewall Builder: policy compiler for ipfw" << endl;
|
cout << "Firewall Builder: policy compiler for ipfw" << endl;
|
||||||
cout << "Version " << VERSION << "-" << build_num.toStdString() << endl;
|
cout << "Version " << VERSION << endl;
|
||||||
cout << "Usage: " << name << " [-x] [-v] [-V] [-f filename.xml] [-o output.fw] [-d destdir] [-m] firewall_object_name" << endl;
|
cout << "Usage: " << name << " [-x] [-v] [-V] [-f filename.xml] [-o output.fw] [-d destdir] [-m] firewall_object_name" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ void usage(const char *name)
|
|||||||
{
|
{
|
||||||
cout << "Firewall Builder: policy compiler for "
|
cout << "Firewall Builder: policy compiler for "
|
||||||
"Linux 2.4.x and 2.6.x iptables" << endl;
|
"Linux 2.4.x and 2.6.x iptables" << endl;
|
||||||
cout << "Version " << VERSION << "-" << build_num.toStdString() << endl;
|
cout << "Version " << VERSION << endl;
|
||||||
cout << "Usage: " << name
|
cout << "Usage: " << name
|
||||||
<< " [-x level] [-v] [-V] [-q] [-f filename.xml] [-d destdir] "
|
<< " [-x level] [-v] [-V] [-q] [-f filename.xml] [-d destdir] "
|
||||||
"[-m] [-4|-6] firewall_object_name" << endl;
|
"[-m] [-4|-6] firewall_object_name" << endl;
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ using namespace std;
|
|||||||
using namespace libfwbuilder;
|
using namespace libfwbuilder;
|
||||||
using namespace fwcompiler;
|
using namespace fwcompiler;
|
||||||
|
|
||||||
extern QString build_num;
|
|
||||||
extern QString user_name;
|
extern QString user_name;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -674,7 +673,6 @@ QString CompilerDriver_ipt::run(const std::string &cluster_id,
|
|||||||
Configlet top_comment(fw, "linux24", "top_comment");
|
Configlet top_comment(fw, "linux24", "top_comment");
|
||||||
|
|
||||||
top_comment.setVariable("version", VERSION);
|
top_comment.setVariable("version", VERSION);
|
||||||
top_comment.setVariable("build", build_num);
|
|
||||||
top_comment.setVariable("timestamp", timestr);
|
top_comment.setVariable("timestamp", timestr);
|
||||||
top_comment.setVariable("tz", tzname[stm->tm_isdst]);
|
top_comment.setVariable("tz", tzname[stm->tm_isdst]);
|
||||||
top_comment.setVariable("user", user_name);
|
top_comment.setVariable("user", user_name);
|
||||||
|
|||||||
@@ -37,10 +37,8 @@ FWBAboutDialog::FWBAboutDialog(QWidget *parent): QDialog(parent)
|
|||||||
m_aboutDialog->setupUi(this);
|
m_aboutDialog->setupUi(this);
|
||||||
m_aboutDialog->titleLbl->setText(
|
m_aboutDialog->titleLbl->setText(
|
||||||
QString("Firewall Builder v%1").arg(VERSION) );
|
QString("Firewall Builder v%1").arg(VERSION) );
|
||||||
m_aboutDialog->revLbl->setText(tr("Build: %1").arg(build_num));
|
m_aboutDialog->revLbl->setText("");
|
||||||
m_aboutDialog->apiLbl->setText(
|
m_aboutDialog->apiLbl->setText("");
|
||||||
tr("Using Firewall Builder API %1").arg(
|
|
||||||
libfwbuilder::Constants::getLibraryVersion().c_str() ) );
|
|
||||||
|
|
||||||
ABOUT_DLG_BLANKS;
|
ABOUT_DLG_BLANKS;
|
||||||
|
|
||||||
|
|||||||
@@ -118,8 +118,8 @@ bool HttpGet::get(const QUrl &_url)
|
|||||||
if (getRegistrationStatus()==2) reg = "r";
|
if (getRegistrationStatus()==2) reg = "r";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QString agent = QString("fwbuilder/%1 (%2; %3; b:%4; s:%5; %6)")
|
QString agent = QString("fwbuilder/%1 (%2; %3; b:999999; s:%5; %6)")
|
||||||
.arg(VERSION).arg(os).arg(locale).arg(build_num).arg(sig).arg(reg);
|
.arg(VERSION).arg(os).arg(locale).arg(sig).arg(reg);
|
||||||
|
|
||||||
hdr.setValue("User-Agent", agent);
|
hdr.setValue("User-Agent", agent);
|
||||||
request_id = http.request(hdr, NULL, &strm);
|
request_id = http.request(hdr, NULL, &strm);
|
||||||
|
|||||||
@@ -92,16 +92,10 @@ debugDialog::debugDialog(QWidget *parent) : QDialog(parent)
|
|||||||
.arg(QLocale::system().name()) );
|
.arg(QLocale::system().name()) );
|
||||||
m_dialog->debugText->append( "\n" );
|
m_dialog->debugText->append( "\n" );
|
||||||
m_dialog->debugText->append( QString("Versions:") );
|
m_dialog->debugText->append( QString("Versions:") );
|
||||||
m_dialog->debugText->append( QString(" Firewall Builder %1")
|
m_dialog->debugText->append( QString(" Firewall Builder %1").arg(VERSION));
|
||||||
.arg(VERSION) );
|
|
||||||
m_dialog->debugText->append( QString(" Build %2").arg(build_num));
|
|
||||||
m_dialog->debugText->append( QString(" Using libfwbuilder %1")
|
|
||||||
.arg( libfwbuilder::Constants::getLibraryVersion().c_str() ) );
|
|
||||||
|
|
||||||
m_dialog->debugText->append( QString(" Data format version %1")
|
m_dialog->debugText->append( QString(" Data format version %1")
|
||||||
.arg(libfwbuilder::Constants::getDataFormatVersion().c_str() ) );
|
.arg(libfwbuilder::Constants::getDataFormatVersion().c_str() ) );
|
||||||
|
|
||||||
|
|
||||||
m_dialog->debugText->append( QString(" Built with QT %1").arg(QT_VERSION_STR));
|
m_dialog->debugText->append( QString(" Built with QT %1").arg(QT_VERSION_STR));
|
||||||
m_dialog->debugText->append( QString(" Using QT %1").arg( qVersion() ) );
|
m_dialog->debugText->append( QString(" Using QT %1").arg( qVersion() ) );
|
||||||
m_dialog->debugText->append( QString(" Built with libxml2 %1")
|
m_dialog->debugText->append( QString(" Built with libxml2 %1")
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ extern std::string tempfname;
|
|||||||
extern std::string argv0;
|
extern std::string argv0;
|
||||||
extern std::string ee;
|
extern std::string ee;
|
||||||
extern int fwbdebug;
|
extern int fwbdebug;
|
||||||
extern QString build_num;
|
|
||||||
extern QString user_name;
|
extern QString user_name;
|
||||||
extern int sig;
|
extern int sig;
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class UpgradePredicate: public XMLTools::UpgradePredicate
|
|||||||
void usage(const char *name)
|
void usage(const char *name)
|
||||||
{
|
{
|
||||||
cout << "Firewall Builder: policy compiler for OpenBSD PF" << endl;
|
cout << "Firewall Builder: policy compiler for OpenBSD PF" << endl;
|
||||||
cout << "Version " << VERSION << "-" << build_num.toStdString() << endl;
|
cout << "Version " << VERSION << endl;
|
||||||
cout << "Usage: " << name << " [-x] [-v] [-V] [-f filename.xml] [-o output.fw] [-d destdir] [-m] [-4|-6] firewall_object_name" << endl;
|
cout << "Usage: " << name << " [-x] [-v] [-V] [-f filename.xml] [-o output.fw] [-d destdir] [-m] [-4|-6] firewall_object_name" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -78,8 +78,6 @@ using namespace std;
|
|||||||
using namespace libfwbuilder;
|
using namespace libfwbuilder;
|
||||||
using namespace fwcompiler;
|
using namespace fwcompiler;
|
||||||
|
|
||||||
extern QString build_num;
|
|
||||||
|
|
||||||
|
|
||||||
QString CompilerDriver_ipf::composeActivationCommand(libfwbuilder::Firewall *fw,
|
QString CompilerDriver_ipf::composeActivationCommand(libfwbuilder::Firewall *fw,
|
||||||
bool filter,
|
bool filter,
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ void usage(const char *name)
|
|||||||
{
|
{
|
||||||
cout << "Firewall Builder: policy compiler for Cisco PIX firewall (with support for FWSM)" << endl;
|
cout << "Firewall Builder: policy compiler for Cisco PIX firewall (with support for FWSM)" << endl;
|
||||||
cout << "Copyright 2002-2009 NetCitadel, LLC" << endl;
|
cout << "Copyright 2002-2009 NetCitadel, LLC" << endl;
|
||||||
cout << "Version " << VERSION << "-" << build_num.toStdString() << endl;
|
cout << "Version " << VERSION << endl;
|
||||||
cout << "Usage: " << name << " [-tvV] [-f filename.xml] [-d destdir] [-o output.fw] firewall_object_name" << endl;
|
cout << "Usage: " << name << " [-tvV] [-f filename.xml] [-d destdir] [-o output.fw] firewall_object_name" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ void usage(const char *name)
|
|||||||
{
|
{
|
||||||
cout << "Firewall Builder: policy compiler for HP ProCurve ACL" << endl;
|
cout << "Firewall Builder: policy compiler for HP ProCurve ACL" << endl;
|
||||||
cout << "Copyright 2010 NetCitadel, LLC" << endl;
|
cout << "Copyright 2010 NetCitadel, LLC" << endl;
|
||||||
cout << "Version " << VERSION << "-" << build_num.toStdString() << endl;
|
cout << "Version " << VERSION << endl;
|
||||||
cout << "Usage: " << name << " [-tvV] [-f filename.xml] [-d destdir] [-o output.fw] firewall_object_name" << endl;
|
cout << "Usage: " << name << " [-tvV] [-f filename.xml] [-d destdir] [-o output.fw] firewall_object_name" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
#include <cppunit/CompilerOutputter.h>
|
#include <cppunit/CompilerOutputter.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
//int build_num = 0;
|
|
||||||
//std::string respath;
|
//std::string respath;
|
||||||
//QString user_name;
|
//QString user_name;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user