pax_global_header 0000666 0000000 0000000 00000000064 11374232552 0014516 g ustar 00root root 0000000 0000000 52 comment=228b99d9c30cd57c951153d18672710ba70fb30d
nuapplet-2.3.0/ 0000775 0000000 0000000 00000000000 11374232552 0013350 5 ustar 00root root 0000000 0000000 nuapplet-2.3.0/CMakeLists.txt 0000664 0000000 0000000 00000006530 11374232552 0016114 0 ustar 00root root 0000000 0000000 PROJECT(nuapplet2)
SET(PROJECT_VERSION_MAJOR "2")
SET(PROJECT_VERSION_MINOR "3")
SET(PROJECT_VERSION_PATCH "0")
SET(PROJECT_VERSION_STR "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
cmake_minimum_required(VERSION 2.6)
# apt-get install libqt4-dev
INCLUDE (CheckIncludeFile)
INCLUDE (CheckIncludeFiles)
INCLUDE (CheckLibraryExists)
INCLUDE (CheckSymbolExists)
INCLUDE (FindPkgConfig)
INCLUDE(FindQt4)
INCLUDE(FindNuclient.cmake)
IF (NOT QT4_FOUND)
MESSAGE(FATAL_ERROR "Qt4 development files not found. Please install libqt4-dev")
ENDIF (NOT QT4_FOUND)
IF (NOT LIBNUCLIENT_FOUND)
MESSAGE(FATAL_ERROR "Libnuclient development files not found. Please install libnuclient-dev")
ENDIF (NOT LIBNUCLIENT_FOUND)
INCLUDE(${QT_USE_FILE})
ADD_DEFINITIONS(-DPROJECT_VERSION_STR="${PROJECT_VERSION_STR}")
ADD_DEFINITIONS(${QT_DEFINITIONS})
ADD_DEFINITIONS(-DTRANSLATION_DIR="${CMAKE_INSTALL_PREFIX}/share/qt4/translations/" -DDATA_DIR="${CMAKE_INSTALL_PREFIX}/share/nuapplet2/" ${LIBNUCLIENT_DEFINITIONS})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${QT_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR})
LINK_DIRECTORIES(${QT_LIBRARY_DIR} ${LIBNUSSL_LIBDIR} ${LIBNUCLIENT_LIBDIR})
IF(APPLE)
ADD_DEFINITIONS(-DFREEBSD)
ENDIF(APPLE)
INCLUDE_DIRECTORIES(${LIBNUSSL_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${LIBNUCLIENT_INCLUDE_DIRS})
SET(GUI_SRCS
src/auth_dlg.cpp
src/editbox.cpp
src/logs.cpp
src/preferences.cpp
src/systray.cpp
src/thread_session.cpp
)
SET(GUI_HDRS
src/auth_dlg.h
src/editbox.h
src/logs.h
src/preferences.h
src/systray.h
src/thread_session.h
)
SET(GUI_UIS
ui/logs.ui
ui/prefs.ui
)
# there's a typo in cmake documentation: QT4_ADD_RESOURCES (with an S)
QT4_ADD_RESOURCES(GUI_SRCS application.qrc)
# for this to work, $name.cpp file must include $name.moc
QT4_AUTOMOC( ${GUI_SRCS} )
QT4_WRAP_UI(GUI_UIS_H ${GUI_UIS})
ADD_EXECUTABLE(nuapplet2
src/main.cpp
${GUI_SRCS}
${GUI_HDRS}
${GUI_UIS_H}
)
#QT4_GENERATE_MOC(${CMAKE_CURRENT_SOURCE_DIR}/mainwindow.h ${CMAKE_CURRENT_BINARY_DIR}/moc_mainwindow.cpp)
##QT4_AUTOMOC(${GUI_HDRS)
TARGET_LINK_LIBRARIES(nuapplet2 ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${LIBNUSSL_LDFLAGS} ${LIBNUCLIENT_LDFLAGS})
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/nuapplet2 DESTINATION bin)
INSTALL(FILES nuapplet2.desktop DESTINATION share/applications)
INSTALL(FILES images/nuapplet2-running.png DESTINATION share/pixmaps)
INSTALL(FILES lang/nuapplet2_fr_FR.qm DESTINATION share/qt4/translations)
SET(ts_files "lang/nuapplet2_fr_FR.ts")
ADD_CUSTOM_TARGET(lupdate
COMMAND
"lupdate"
"src/*.cpp"
"src/*.h"
"ui/*.ui"
-ts "${ts_files}"
WORKING_DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}
COMMENT
"Runs lupdate command"
)
ADD_CUSTOM_TARGET(lrelease
COMMAND
"lrelease"
"${ts_files}"
WORKING_DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}
COMMENT
"Runs lrelease command"
)
## Packaging infos
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "NuApplet")
SET(CPACK_PACKAGE_VENDOR "EdenWall")
#SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ReadMe.txt")
#SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt")
SET(CPACK_PACKAGE_VERSION_MAJOR "$PROJECT_VERSION_MAJOR")
SET(CPACK_PACKAGE_VERSION_MINOR "$PROJECT_VERSION_MINOR")
SET(CPACK_PACKAGE_VERSION_PATCH "$PROJECT_VERSION_PATCH")
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}")
INCLUDE(CPack)
nuapplet-2.3.0/Changelog 0000664 0000000 0000000 00000000331 11374232552 0015157 0 ustar 00root root 0000000 0000000 2.2 - 10/12/07
- MacOs support
- Main loop rewrite
- Graphism
2.1 - 12/11/07
- Build language file during compilation
- Add support for command line arguments
- Fix a dependency in the packaging
2.0 Initial release
nuapplet-2.3.0/FindGnuTls.cmake 0000664 0000000 0000000 00000001062 11374232552 0016366 0 ustar 00root root 0000000 0000000 ## libnetfilter_conntrack
INCLUDE(UsePkgConfig)
PKGCONFIG("gnutls" GNUTLS_INCLUDE_DIR GNUTLS_LINK_DIR
GNUTLS_LINK_FLAGS GNUTLS_CFLAGS)
IF(GNUTLS_LINK_FLAGS)
MESSAGE(STATUS "gnutls library found")
INCLUDE_DIRECTORIES(${GNUTLS_INCLUDE_DIR})
SET(LIBS ${LIBS} ${GNUTLS_LINK_FLAGS})
SET(CFLAGS ${CFLAGS} ${GNUTLS_CFLAGS})
SET(LIBS_DIR ${LIBS_DIR} ${GNUTLS_LINK_DIR})
SET(GNUTLS_FOUND TRUE)
ELSE(GNUTLS_LINK_FLAGS)
MESSAGE(FATAL_ERROR "Can't find gnutls library developpement files!")
ENDIF(GNUTLS_LINK_FLAGS)
nuapplet-2.3.0/FindNuclient.cmake 0000664 0000000 0000000 00000005411 11374232552 0016735 0 ustar 00root root 0000000 0000000 # export PKG_CONFIG_PATH to $prefix/lib/pkgconfig if needed
pkg_search_module(LIBNUSSL "libnussl")
IF (LIBNUSSL_FOUND)
MESSAGE (STATUS "Found libnussl ${LIBNUSSL_VERSION}")
SET (CMAKE_REQUIRED_INCLUDES "${LIBNUSSL_INCLUDE_DIRS};${CMAKE_REQUIRED_INCLUDES}")
CHECK_INCLUDE_FILES("sys/socket.h;nussl.h" HAVE_NUSSL_H)
SET (HAVE_NUSSL 1 CACHE INTERNAL "libnussl detected")
ELSE (LIBNUSSL_FOUND)
MESSAGE(FATAL_ERROR "Could not find libnussl")
ENDIF (LIBNUSSL_FOUND)
# export PKG_CONFIG_PATH to $prefix/lib/pkgconfig if needed
pkg_search_module(LIBNUCLIENT "libnuclient")
IF (LIBNUCLIENT_FOUND)
MESSAGE (STATUS "Found libnuclient ${LIBNUCLIENT_VERSION}")
SET (CMAKE_REQUIRED_INCLUDES "${LIBNUSSL_INCLUDE_DIRS};${CMAKE_REQUIRED_INCLUDES}")
CHECK_INCLUDE_FILES("sys/socket.h;nussl.h;nuclient.h" HAVE_NUCLIENT_H)
SET (HAVE_NUSSL 1 CACHE INTERNAL "libnussl detected")
ELSE (LIBNUCLIENT_FOUND)
MESSAGE(FATAL_ERROR "Could not find libnuclient")
ENDIF (LIBNUCLIENT_FOUND)
# Define nuauth default port
SET(LIBNUCLIENT_DEFINITIONS "${LIBNUCLIENT_DEFINITIONS} -DDEFAULT_NUAUTH_PORT=\"4129\"")
SET(CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES};${LIBNUSSL_LIBRARIES};${LIBNUCLIENT_LIBRARIES}")
# Had some defines depending on libnuclient's version
# We cannot use CHECK_SYMBOL_EXISTS here since the symbol is not defined in header
# (but is present in lib)
CHECK_LIBRARY_EXISTS("nussl" load_sys_config "" HAVE_DEFAULT_NUAUTH_IP)
#CHECK_SYMBOL_EXISTS (load_sys_config "sys/socket.h;nussl.h;nuclient.h" HAVE_DEFAULT_NUAUTH_IP)
IF(HAVE_DEFAULT_NUAUTH_IP)
SET(LIBNUCLIENT_DEFINITIONS "${LIBNUCLIENT_DEFINITIONS} -DHAVE_DEFAULT_NUAUTH_IP")
MESSAGE(STATUS "HAVE_DEFAULT_NUAUTH_IP")
ENDIF(HAVE_DEFAULT_NUAUTH_IP)
#CHECK_LIBRARY_EXISTS(${NUCLIENT_LIBRARY} nu_client_default_hostname "" HAVE_DEFAULT_HOSTNAME_FUNC)
CHECK_SYMBOL_EXISTS (nu_client_default_hostname "sys/socket.h;nussl.h;nuclient.h" HAVE_DEFAULT_HOSTNAME_FUNC)
IF(HAVE_DEFAULT_HOSTNAME_FUNC)
SET(LIBNUCLIENT_DEFINITIONS "${LIBNUCLIENT_DEFINITIONS} -DHAVE_DEFAULT_HOSTNAME_FUNC")
MESSAGE(STATUS "HAVE_DEFAULT_HOSTNAME_FUNC")
ENDIF(HAVE_DEFAULT_HOSTNAME_FUNC)
#CHECK_LIBRARY_EXISTS("nussl" nu_client_default_tls_ca "" HAVE_DEFAULT_TLS_FUNC)
CHECK_SYMBOL_EXISTS (nu_client_default_tls_ca "sys/socket.h;nussl.h;nuclient.h" HAVE_DEFAULT_TLS_FUNC)
IF(HAVE_DEFAULT_TLS_FUNC)
SET(LIBNUCLIENT_DEFINITIONS "${LIBNUCLIENT_DEFINITIONS} -DHAVE_DEFAULT_TLS_FUNC")
MESSAGE(STATUS "HAVE_DEFAULT_TLS_FUNC")
ENDIF(HAVE_DEFAULT_TLS_FUNC)
# Uses libnuclient new API (with NuSSL)
#CHECK_LIBRARY_EXISTS("nussl" nu_client_set_pkcs12 "" HAVE_NUFW24)
CHECK_SYMBOL_EXISTS (nu_client_set_pkcs12 "sys/socket.h;nussl.h;nuclient.h" HAVE_NUFW24)
IF(HAVE_NUFW24)
SET(LIBNUCLIENT_DEFINITIONS "${LIBNUCLIENT_DEFINITIONS} -DHAVE_NUFW24")
MESSAGE(STATUS "HAVE_NUFW24")
ENDIF(HAVE_NUFW24)
nuapplet-2.3.0/Makefile 0000664 0000000 0000000 00000001145 11374232552 0015011 0 ustar 00root root 0000000 0000000 CMAKE_OPTIONS = -DCMAKE_BUILD_TYPE=Debug -DCMAKE_VERBOSE_MAKEFILE=0
CMAKE_RELEASE_OPTIONS = -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=0 -DCMAKE_INSTALL_PREFIX=/usr
all: build/Makefile lrelease
make -C build all
build/Makefile:
[ -d build ] || mkdir build; \
cd build && cmake $(CMAKE_OPTIONS) ..
release:
[ -d release ] || mkdir release; \
cd release && cmake $(CMAKE_RELEASE_OPTIONS) .. && make lrelease && make
lupdate: build/Makefile
make -C build lupdate
lrelease: build/Makefile
make -C build lrelease
clean:
rm -rf build
rm -rf release
.PHONY: all clean lupdate lrelease release
nuapplet-2.3.0/application.qrc 0000664 0000000 0000000 00000000534 11374232552 0016364 0 ustar 00root root 0000000 0000000
images/nuapplet2-running.png
images/nuapplet2-stopped.png
images/nuapplet2-trying.png
images/bouclier.png
images/edenwall.png
lang/nuapplet2_fr_FR.qm
nuapplet-2.3.0/debian/ 0000775 0000000 0000000 00000000000 11374232552 0014572 5 ustar 00root root 0000000 0000000 nuapplet-2.3.0/debian/changelog 0000664 0000000 0000000 00000001571 11374232552 0016450 0 ustar 00root root 0000000 0000000 nuapplet (2.2-3) unstable; urgency=medium
* Add pkg-config to build deps (Closes: #477020)
* Urgency=medium because of bug severity
-- Pierre Chifflier Sun, 27 Apr 2008 17:46:46 +0200
nuapplet (2.2-2) unstable; urgency=low
* Fix FTBFS (Closes: #477020)
-- Pierre Chifflier Sun, 20 Apr 2008 18:19:18 +0200
nuapplet (2.2-1) unstable; urgency=low
* New upstream release
* Bump Standards-Version (no changes)
* Add Homepage header
-- Pierre Chifflier Mon, 10 Dec 2007 11:14:58 +0100
nuapplet (2.0-2) unstable; urgency=low
* Add missing build-dep on cmake (Closes: #449197)
-- Pierre Chifflier Mon, 05 Nov 2007 15:32:02 +0100
nuapplet (2.0-1) unstable; urgency=low
* Initial release (Closes: #448135)
-- Pierre Chifflier Fri, 26 Oct 2007 09:45:11 +0200
nuapplet-2.3.0/debian/compat 0000664 0000000 0000000 00000000002 11374232552 0015770 0 ustar 00root root 0000000 0000000 5
nuapplet-2.3.0/debian/control 0000664 0000000 0000000 00000001162 11374232552 0016175 0 ustar 00root root 0000000 0000000 Source: nuapplet
Section: net
Priority: extra
Maintainer: Pierre Chifflier
Build-Depends: debhelper (>= 5),
libnuclient-dev (>= 2.2.0),
libqt4-dev (>= 4.2.1),
cmake,
pkg-config
Standards-Version: 3.7.3
Homepage: http://software.inl.fr/trac/trac.cgi/wiki/EdenWall/NuApplet2
Package: nuapplet
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Graphical client for NuFW
NuApplet2 is a systray application for the authenticating firewall NuFW,
written in Qt.
.
It is compliant with FreeDesktop and can be used with several desktop
environments.
nuapplet-2.3.0/debian/copyright 0000664 0000000 0000000 00000002274 11374232552 0016532 0 ustar 00root root 0000000 0000000 This package was debianized by Pierre Chifflier on
Fri, 26 Oct 2007 09:45:11 +0200.
It was downloaded from http://software.inl.fr/trac/trac.cgi/wiki/EdenWall/NuApplet2
Upstream Author: Laurent Deffert
Copyright (C) 2007 INL
License:
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 dated June, 1991.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this package; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02110-1301, USA.
On Debian GNU/Linux systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL'.
The Debian packaging is (C) 2007, Pierre Chifflier and
is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
nuapplet-2.3.0/debian/dirs 0000664 0000000 0000000 00000000010 11374232552 0015445 0 ustar 00root root 0000000 0000000 usr/bin
nuapplet-2.3.0/debian/docs 0000664 0000000 0000000 00000000017 11374232552 0015443 0 ustar 00root root 0000000 0000000 CMakeLists.txt
nuapplet-2.3.0/debian/nuapplet.manpages 0000664 0000000 0000000 00000000023 11374232552 0020132 0 ustar 00root root 0000000 0000000 debian/nuapplet2.1
nuapplet-2.3.0/debian/nuapplet2.1 0000664 0000000 0000000 00000002325 11374232552 0016570 0 ustar 00root root 0000000 0000000 .\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH NUAPPLET 1 "octobre 26, 2007"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
nuapplet \- Graphical client for NuFW
.SH SYNOPSIS
.B nuapplet
.SH DESCRIPTION
.B nuapplet
is a systray application for the authenticating firewall NuFW
written in Qt.
It is compliant with FreeDesktop and can be used with several desktop
environments.
.PP
.SH SEE ALSO
.BR nufw (1),
.BR nuauth (1),
.BR http://software.inl.fr/trac/trac.cgi/wiki/EdenWall/NuApplet2
.br
.SH AUTHOR
nuapplet was written by INL.
.PP
This manual page was written by Pierre Chifflier ,
for the Debian project (but may be used by others).
nuapplet-2.3.0/debian/rules 0000775 0000000 0000000 00000003247 11374232552 0015660 0 ustar 00root root 0000000 0000000 #!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
build: build-stamp
build-stamp: configure-stamp
dh_testdir
# Add here commands to compile the package.
$(MAKE) release
#docbook-to-man debian/nuapplet.sgml > nuapplet.1
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
$(MAKE) clean
rm -f lang/nuapplet2_fr_FR.qm
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/nuapplet.
cd release && $(MAKE) DESTDIR=$(CURDIR)/debian/nuapplet install
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
# dh_install
dh_installmenu
# dh_installdebconf
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
nuapplet-2.3.0/images/ 0000775 0000000 0000000 00000000000 11374232552 0014615 5 ustar 00root root 0000000 0000000 nuapplet-2.3.0/images/bouclier.png 0000664 0000000 0000000 00000035205 11374232552 0017134 0 ustar 00root root 0000000 0000000 PNG
IHDR >a bKGD pHYs q q{b tIME$0 IDATxw|TUwJ&Lz'R
"`W\(.ׂeź}ݵk[W{+"tiJzd=?nɝL2(^7sd|)9ϑ !6I.7I I2ǀ@t5g_w8"28jYz'/_ks߁3 C>lVࣱٸq>_{/B4#L-,h>Dnu!ȀO?WplVN@7`70x\
E FVޏkW_,~>^v0Oӵ]2xR7 <7Q Iwp=z*VArH @9*eӦ?-HyysKk V !
/f GglQr0$U2a x/
BxM|w,_`vB гnrSg23S9\rT8cAC ѫTWdi!חv˝ B %P >369㌉\}'AG` £UU!_nd|M n |9]# $Ӏ3c^%gҒ;v$]4矃cBfm0Vh6(i,!s|,֭
R'{8P?; T=YU