debian/0000755000000000000000000000000011662042763007175 5ustar debian/gip.docs0000644000000000000000000000003411437263153010621 0ustar README debian/README.source debian/rules0000755000000000000000000000036311662034633010254 0ustar #!/usr/bin/make -f # -*- makefile -*- CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif %: dh $@ override_dh_auto_install: ./build.sh --install --prefix $(CURDIR)/debian/gip/usr debian/source/0000755000000000000000000000000011437263153010473 5ustar debian/source/format0000644000000000000000000000001411437263153011701 0ustar 3.0 (quilt) debian/README.source0000644000000000000000000000022511437263153011351 0ustar This package uses the quilt patch management solution. For more information about how to use it, please refer to: /usr/share/doc/quilt/README.source debian/gip.dirs0000644000000000000000000000000511437263152010627 0ustar usr/ debian/gip.menu0000644000000000000000000000015211437263153010636 0ustar ?package(gip):needs="X11" section="Applications/Network/Monitoring"\ title="Gip" command="/usr/bin/gip" debian/copyright0000644000000000000000000000214011437263153011123 0ustar This package was debianized by Khalid El Fathi on Mon, 25 Oct 2004 22:27:20 +0200. It was downloaded from http://code.google.com/p/gip/ Upstream Author: Samuel Abels Copyright: Copyright (c) 2004-2009, Samuel Abels 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; either version 2 of the License, or (at your option) any later version. 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 systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/control0000644000000000000000000000176011662036653010605 0ustar Source: gip Section: gnome Priority: optional Maintainer: Ignace Mouzannar Build-Depends: debhelper (>= 7.0.50~), intltool, libgtkmm-2.4-dev Standards-Version: 3.9.2 DM-Upload-Allowed: yes Vcs-Svn: svn://svn.debian.org/collab-maint/ext-maint/gip/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/collab-maint/ext-maint/gip/trunk/ Homepage: http://code.google.com/p/gip/ Package: gip Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: IP calculator for GNOME desktop environment Gip provides system administrators with tools for IP address based calculations. For example, an administrator who needs to find out which IP prefix length equals the IP netmask 255.255.240.0, just types in the mask and gets the prefix length presented. But many more advanced calculations can be made. Gip can convert an address range into a list of prefix lengths. It can also split subnets using a given IP netmask or IP prefix length. Many more calculations are possible. debian/changelog0000644000000000000000000001067411662042741011053 0ustar gip (1.7.0-1-3) unstable; urgency=low * debian/patches: - 50-installer-build_files-sh.diff: Fix placement of libs in linking stages for GCC 4.6. Thank you Daniel T Chen for providing this patch. (Closes: 641844) (LP: #771081) - 60-binary-hex-network-update.diff: Adds update signals to binary and hex "network" fields when user updates "Network mask" or "Prefix length". (LP: #704348) * debian/control: - Removed dependency on quilt. - Bumped Standards-Version to 3.9.2. - Added DM-Upload-Allowed field. * debian/watch: - Updated to use googlecode.debian.net redirector. -- Ignace Mouzannar Sun, 20 Nov 2011 01:06:59 +0100 gip (1.7.0-1-2) unstable; urgency=low * debian/control: - Bumped Standards-Version to 3.9.1. - Added Vcs-Svn and Vcs-Browser as the package has been added on collab-maint/ext-main. * debian/patches: - Added 40-init_lock_events.diff: to initialize the lock_events variable to FALSE as it was not initialized. (Closes: #576416) Thank you Frank Dean for providing the patch. - 20-build-sh.diff: updated the patch to correct linking paths (LP: #565187) * Converted the package to "3.0 (quilt)" source format. -- Ignace Mouzannar Wed, 01 Sep 2010 00:58:07 +0200 gip (1.7.0-1-1) unstable; urgency=low * New maintainer. (Closes: #547045) * New upstream release. * Menu entry has been added in "Applications->Accessories". (Closes: #474969) * debian/rules: - Simplified the rules file using dh7 features. * debian/control: - Updated project homepage. - Updated debhelper dependency to (>= 7.0.50~). - Added dependency on quilt (>= 0.46-7). * debian/copyright: - Linked to GPL-2. * debian/compat: - Updated debhelper compatibility to 7. * debian/patches/: - Added 10-gen-sh.diff: to remove the timestamps modification of the po/gip.pot file. - Added 20-build-sh.diff: to correct installation path in the build.sh file, and remove uselessly linked libraries. - Added 30-gip-desktop.diff: to correct the path in the .desktop file, and remove the "Encoding" key. * Added a debian/watch file. * Added a debian/gip.dirs file. * Standards-Version bumped to 3.8.3. -- Ignace Mouzannar Tue, 06 Oct 2009 11:35:57 +0200 gip (1.6.1.1-1.1) unstable; urgency=low * Non-maintainer upload. * Fix double-build FTBFS by calling “./clean.sh” instead of “-$(MAKE) clean” (Closes: #442574). * Remove unneeded “clean” script. * Bump debhelper compatibility from 4 to 5, no changes needed. * Bump Standards-Version from 3.7.2 to 3.7.3, no changes needed. * Move the Homepage from the description to a source field. * Menu transition: Move the menu section from “Apps/Net” to “Applications/Network/Monitoring”. -- Cyril Brulebois Tue, 26 Feb 2008 23:40:07 +0100 gip (1.6.1.1-1) unstable; urgency=low * New upstream release. * debian/control: Updated to Standards-Version 3.7.2. * debian/copyright: Updated address of Free Software Foundation. * Added patch "[INTL:sv] Swedish PO-template translation", thanks to Daniel Nylander ; forwarded patch upstream (Closes: bug#343478). -- Khalid El Fathi Wed, 12 Jul 2006 16:04:12 +0200 gip (1.6.0.1-1) unstable; urgency=low * New upstream release. * Updated to Standards-Version 3.6.2. * New dependencies after C++ ABI transition (Closes: bug#324756). -- Khalid El Fathi Wed, 13 Jul 2005 14:46:49 +0200 gip (1.4.0.1-2) unstable; urgency=low * Added patch "[INTL:de] German PO file corrections", thanks to Jens Seidel; forwarded patch upstream (Closes: bug#314086). -- Khalid El Fathi Wed, 15 Jun 2005 15:04:47 +0200 gip (1.4.0.1-1) unstable; urgency=low * New upstream release. * No new features, it's only compiles with gtkmm-2.4 now. -- Khalid El Fathi Fri, 6 May 2005 22:18:37 +0200 gip (1.2.1.1-1) unstable; urgency=low * New upstream release (Closes: bug#303694). -- Khalid El Fathi Fri, 8 Apr 2005 14:45:03 +0200 gip (1.2.0.1-1) unstable; urgency=low * Initial Release (Closes: bug#265394). * Adjusted the build.sh to fix INST_* problems. -- Khalid El Fathi Mon, 25 Oct 2004 22:27:20 +0200 debian/gip.manpages0000644000000000000000000000001511437263153011463 0ustar debian/gip.1 debian/watch0000644000000000000000000000007711662041575010232 0ustar version=3 http://googlecode.debian.net/p/gip/gip-(.*)\.tar\.gz debian/patches/0000755000000000000000000000000011662042760010621 5ustar debian/patches/series0000644000000000000000000000022011662033234012024 0ustar 10-gen-sh.diff 20-build-sh.diff 30-gip-desktop.diff 40-init_lock_events.diff 50-installer-build_files-sh.diff 60-binary-hex-network-update.diff debian/patches/60-binary-hex-network-update.diff0000644000000000000000000000300011662042757016712 0ustar Description: Adds update signals to binary and hex "network" fields when user updates "Network mask" or "Prefix length". Author: Ignace Mouzannar Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gip/+bug/704348 Last-Update: 2011-11-19 --- a/src/dispatcher.cc +++ b/src/dispatcher.cc @@ -124,8 +124,10 @@ mainwindow->ipv4_analyzer.set_output_hosts_all(numhosts_all); mainwindow->ipv4_analyzer.set_output_network(ip & mask); mainwindow->ipv4_analyzer.set_output_broadcast(broadcast); + mainwindow->ipv4_analyzer.set_output_bin_network(ip & mask); mainwindow->ipv4_analyzer.set_output_bin_mask(mask); mainwindow->ipv4_analyzer.set_output_bin_broadcast(broadcast); + mainwindow->ipv4_analyzer.set_output_hex_network(ip & mask); mainwindow->ipv4_analyzer.set_output_hex_mask(mask); mainwindow->ipv4_analyzer.set_output_hex_broadcast(broadcast); mainwindow->unlock_signals(); @@ -156,8 +158,10 @@ mainwindow->ipv4_analyzer.set_output_hosts_all(numhosts_all); mainwindow->ipv4_analyzer.set_output_network(ip & mask); mainwindow->ipv4_analyzer.set_output_broadcast(broadcast); + mainwindow->ipv4_analyzer.set_output_bin_network(ip & mask); mainwindow->ipv4_analyzer.set_output_bin_mask(mask); mainwindow->ipv4_analyzer.set_output_bin_broadcast(broadcast); + mainwindow->ipv4_analyzer.set_output_hex_network(ip & mask); mainwindow->ipv4_analyzer.set_output_hex_mask(mask); mainwindow->ipv4_analyzer.set_output_hex_broadcast(broadcast); mainwindow->unlock_signals(); debian/patches/10-gen-sh.diff0000644000000000000000000000112011437300677013050 0ustar Description: Removes the timestamps modification of the po/gip.pot file Author: Ignace Mouzannar Last-Update: 2009-10-02 --- a/po/gen.sh +++ b/po/gen.sh @@ -6,11 +6,6 @@ # Ger a list of all files that are potentially holding translatable strings. FILES=`find ../src/ -name "*.cc" -o -name "*.c"` -# Re-generate (merge) the potfile. -touch gip.pot -xgettext -jC -k"_" -k"N_" --from-code ISO-8859-1 -o gip.pot $FILES \ - || exit 1 - # Generate .mo files from all .po files. find . -name "*.po" | while read POFILE; do MOFILE=`echo $POFILE | sed 's/\.po$/\.mo/'` debian/patches/20-build-sh.diff0000644000000000000000000000631711437304370013406 0ustar Description: - Corrects installation path in the build.sh file - Removes uselessly linked libraries in the LFLAGS variable, as none of their symbols are used. - Corrects linking paths (used to include the debian/gip/ build directory). (LP: #565187) Author: Ignace Mouzannar Last-Update: 2010-09-01 --- a/build.sh +++ b/build.sh @@ -153,21 +153,20 @@ INST_BINDIR="$INST_PREFIX/bin/" INST_LIBDIR="$INST_PREFIX/lib/$EXECUTABLE" INST_LOCALEDIR="$INST_PREFIX/share/locale" -INST_PIXMAPDIR="$INST_PREFIX/lib/$EXECUTABLE" -INST_DOCDIR="$INST_PREFIX/doc/$EXECUTABLE" -INST_GNOMEDOCDIR="$INST_PREFIX/share/gnome/help/$EXECUTABLE/C" +INST_PIXMAPDIR="$INST_PREFIX/share/$EXECUTABLE" +INST_DOCDIR="$INST_PREFIX/share/doc/$EXECUTABLE" INST_MIME_XML="$INST_PREFIX/share/mime/packages/" INST_MIME_KEY="$INST_PREFIX/share/mime-info/" INST_MENU_XDG="$INST_PREFIX/share/applications/" -INST_ICON=$INST_PREFIX/share/icons/hicolor -INST_ICON_LOWRES=$INST_ICON/32x32/apps -INST_ICON_HIGHRES=$INST_ICON/48x48/apps +INST_ICON="$INST_PREFIX/share/icons/hicolor" +INST_ICON_LOWRES="$INST_ICON/32x32/apps" +INST_ICON_HIGHRES="$INST_ICON/48x48/apps" # Preprocessor macros: -MACROS="PACKAGE_LIB_DIR=$INST_LIBDIR/\ -:PACKAGE_PIXMAPS_DIR=$INST_PIXMAPDIR/\ -:PACKAGE_LOCALE_DIR=$INST_LOCALEDIR/\ -:PACKAGE_DOC_DIR=$INST_DOCDIR/\ +MACROS="PACKAGE_LIB_DIR=`echo $INST_LIBDIR |sed \"s/.*debian\/$EXECUTABLE//\"`/\ +:PACKAGE_PIXMAPS_DIR=`echo $INST_PIXMAPDIR |sed \"s/.*debian\/$EXECUTABLE//\"`/\ +:PACKAGE_LOCALE_DIR=`echo $INST_LOCALEDIR |sed \"s/.*debian\/$EXECUTABLE//\"`/\ +:PACKAGE_DOC_DIR=`echo $INST_DOCDIR |sed \"s/.*debian\/$EXECUTABLE//\"`/\ :VERSION=$VERSION\ :SUBVERSION=$TAGVERSION\ :GETTEXTPACKAGE=$EXECUTABLE\ @@ -250,7 +249,8 @@ ############################################################################### # Compiler/Linker options. CFLAGS="-DHAVE_CONFIG_H -I. -I.. `pkg-config $REQUIRED_LIBS --cflags`" -LFLAGS=`pkg-config $REQUIRED_LIBS --libs` +#LFLAGS=`pkg-config $REQUIRED_LIBS --libs` +LFLAGS="-lgtkmm-2.4 -latkmm-1.6 -lgtk-x11-2.0 -lglibmm-2.4 -lglib-2.0 -lsigc-2.0" if [ "$PLUGINDIRS" != "" ]; then build_plugins_all $PLUGINDIRS || exit 1 @@ -288,8 +288,8 @@ echo Creating directories... CREATEDIRS="$INST_BINDIR $INST_LIBDIR $INST_PIXMAPDIR $INST_DOCDIR" -CREATEDIRS="$CREATEDIRS $INST_LOCALEDIR $INST_GNOMEDOCDIR" -CREATEDIRS="$CREATEDIRS $INST_MENU_XDG $INST_MIME_XML $INST_GNOMEDOCDIR" +CREATEDIRS="$CREATEDIRS $INST_LOCALEDIR" +CREATEDIRS="$CREATEDIRS $INST_MENU_XDG $INST_MIME_XML" CREATEDIRS="$CREATEDIRS $INST_ICON_LOWRES $INST_ICON_HIGHRES" make_installdirs.sh $CREATEDIRS || exit 1 @@ -311,14 +311,6 @@ cp $INST_IN_DOCDIR $INST_DOCDIR || exit 1 fi -echo Installing GNOME documentation in $INST_GNOMEDOCDIR... -if [ -d "$INST_GNOMEDOCDIR" -a -w "$INST_GNOMEDOCDIR" ]; then - cp -r "$INST_IN_GNOMEDOCDIR" "$INST_GNOMEDOCDIR" -else - echo "WARNING: GNOME documentation directory not found or it is not" >&2 - echo " writeable! Skipping GNOME documentation installation." >&2 -fi - echo Installing localisation files in $INST_LOCALEDIR... if [ "$INST_IN_LOCALEDIR" != "" ]; then install_locales.sh -p $INST_LOCALEDIR -d $EXECUTABLE $INST_IN_LOCALEDIR \ debian/patches/30-gip-desktop.diff0000644000000000000000000000134511437263153014125 0ustar Description: - Corrects path in .desktop file - Removes the "Encoding" key. Author: Ignace Mouzannar Last-Update: 2009-10-02 --- a/gip.desktop.in +++ b/gip.desktop.in @@ -1,15 +1,14 @@ [Desktop Entry] -Encoding=UTF-8 Name=%APP_NAME% IP Address Calculator Name[de]=%APP_NAME% IP-Adress-Rechner GenericName=IP Adress Calculator GenericName[de]=IP-Adress-Rechner Comment=Calculate IP addresses and networks Comment[de]=IP-Adressen und Netzbereiche berechnen -Exec=%INSTALL_BIN%%APP_SYSNAME% %U +Exec=/usr/bin/gip %U StartupNotify=true Terminal=false -Icon=%INSTALL_LIB%/calculator.png +Icon=/usr/share/gip/calculator.png Type=Application Categories=GNOME;GTK;Utility; MimeType=application/x-%APP_SYSNAME%; debian/patches/50-installer-build_files-sh.diff0000644000000000000000000000201711662033077016562 0ustar Description: Fix placement of libs in linking stages for GCC 4.6 Author: Daniel T Chen Reviewed-by: Daniel T Chen Origin: Ubuntu Forwarded: no Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gip/+bug/771081 Last-Updated: 2011-09-15 Index: gip-1.7.0-1/installer/build_files.sh =================================================================== --- gip-1.7.0-1.orig/installer/build_files.sh 2011-09-16 14:33:30.000000000 -0400 +++ gip-1.7.0-1/installer/build_files.sh 2011-09-16 14:34:33.000000000 -0400 @@ -122,14 +122,14 @@ if [ "$SHARED" = "" ]; then # Link as an executable. set -x - g++ $CFLAGS $LFLAGS -o $OUTFILE $OBJECTFILES + g++ $CFLAGS -o $OUTFILE $OBJECTFILES $LFLAGS ERR="$?" set +x else # Link as a shared library. SHAREDNAME=`echo $OUTFILE | sed 's/\..*//'` set -x - g++ -shared -Wl,-soname,$SHAREDNAME $CFLAGS $LFLAGS -o $OUTFILE $OBJECTFILES + g++ -shared -Wl,-soname,$SHAREDNAME $CFLAGS -o $OUTFILE $OBJECTFILES $LFLAGS ERR="$?" set +x fi debian/patches/40-init_lock_events.diff0000644000000000000000000000326211437300727015236 0ustar Description: Add initialization (to FALSE) of the lock_events variable Author: Frank Dean Last-Update: 04-04-2010 --- a/src/gui_ipv4_analyzer.cc +++ b/src/gui_ipv4_analyzer.cc @@ -28,7 +28,7 @@ /****************************************************************************** * Constructor/Destructor ******************************************************************************/ -GUIIPv4Analyzer::GUIIPv4Analyzer() +GUIIPv4Analyzer::GUIIPv4Analyzer() : lock_events(FALSE) { #ifdef _DEBUG_ printf("GUIIPv4Analyzer::GUIIPv4Analyzer(): Called.\n"); --- a/src/gui_ipv4_subnet_calculator.cc +++ b/src/gui_ipv4_subnet_calculator.cc @@ -30,7 +30,8 @@ ******************************************************************************/ GUIIPv4SubnetCalculator::GUIIPv4SubnetCalculator() : label_range(_("Address range:")), - label_dash("-") + label_dash("-"), + lock_events(FALSE) { resize(2, 4); set_border_width(6); --- a/src/gui_ipv4_subnet_splitter.cc +++ b/src/gui_ipv4_subnet_splitter.cc @@ -32,7 +32,8 @@ : label_range(_("Address range:"), 0, 0.5), label_dash("-"), label_pfxlen(_("Subnetted using prefixlength:"), 0, 0.5), - label_maxmatch(_("Showing a maximum of 1000 subnets."), 1, 0.5) + label_maxmatch(_("Showing a maximum of 1000 subnets."), 1, 0.5), + lock_events(FALSE) { resize(4, 4); set_border_width(6); --- a/po/gen.sh +++ b/po/gen.sh @@ -18,8 +18,7 @@ echo GETTEXT_PACKAGE=gip > ../configure.ac || exit 1 touch POTFILES.in || exit 1 intltool-update -m || exit 1 -if [ -e missing ]; then - mv missing POTFILES.in || exit 1 -fi + +rm -f missing rm ../configure.ac debian/compat0000644000000000000000000000000211437263153010371 0ustar 7 debian/gip.10000644000000000000000000000160011437263153010031 0ustar .TH GIP 1 "October 21, 2004" .SH NAME gip \- IP calculator for GNOME desktop environment. .SH SYNOPSIS .B gip .SH DESCRIPTION .PP \fBgip\fP provides system administrators with tools for IP address based calculations. For example, an administrator who needs to find out which IP prefix length equals the IP netmask 255.255.240.0, just types in the mask and gets the prefix length presented. But many more advanced calculations can be made. Gip can convert an address range into a list of prefix lengths. It can also split subnets using a given IP netmask or IP prefix length. Many more calculations are possible. .SH OPTIONS There are no options. .SH SEE ALSO .BR gipsc (1), .BR ipsc (1), .BR prips (1). .br .SH AUTHOR gip was written by Samuel Abels . .PP This manual page was written by Khalid El Fathi , for the Debian project (but may be used by others).