Skip to content

Commit

Permalink
Updated for publishing into AppCenter
Browse files Browse the repository at this point in the history
  • Loading branch information
babluboy committed May 27, 2017
1 parent 38f80de commit 34c3bf1
Show file tree
Hide file tree
Showing 205 changed files with 939 additions and 60 deletions.
16 changes: 4 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ set (RELEASE_NAME "nutty v0.9")
set (VERSION "0.9")
set (VERSION_INFO "Nutty - A Network Information Utility")

add_subdirectory (po)

# Some definitions
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")

Expand All @@ -29,16 +31,6 @@ set (SOURCE_LIST
src/constants.vala
)

# custom command to update pot template files
set (_pot_file po/${PROJECT_NAME}.pot)
add_custom_command (OUTPUT ${_pot_file}
COMMAND xgettext --language=C --keyword=_ --escape --sort-output -o po/nutty.pot src/nutty.vala
DEPENDS ${SOURCE_LIST}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Extract translatable messages to ${_pot_file}")

add_custom_target (pot_file ALL DEPENDS ${_pot_file})

# we're about to use pkgconfig to make sure dependencies are installed so let's find pkgconfig first
find_package(PkgConfig)

Expand All @@ -58,7 +50,7 @@ find_package(Vala REQUIRED)
# make sure we use vala
include(ValaVersion)
# make sure it's the desired version of vala
ensure_vala_version("0.16" MINIMUM)
ensure_vala_version("0.26" MINIMUM)

# files we want to compile
include(ValaPrecompile)
Expand Down Expand Up @@ -126,4 +118,4 @@ install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/icons/16/nutty-device-available.
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/icons/16/nutty-application-default-icon.svg DESTINATION share/icons/hicolor/16x16/status)

# install our .desktop file so the Applications menu will see it
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/nutty.desktop DESTINATION ${DATADIR}/applications/)
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/com.github.babluboy.nutty.desktop DESTINATION ${DATADIR}/applications/)
43 changes: 43 additions & 0 deletions data/com.github.babluboy.nutty.appdata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2017 Siddhartha Das <bablu.boy@gmail.com> -->
<component type="desktop">
<id>com.github.babluboy.nutty.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_group>nutty</project_group>
<project_license>GPL-3.0+</project_license>
<name>Nutty</name>
<summary>A simple utility for network information</summary>
<description>
<p>Nutty provides an intuitive user interface for some commonly used network related command line tools</p>
<p>A key feature is the ability to turn on notification when a device enters the user's network</p>
<p>Key features for Nutty are:</p>
<ul>
​ <li>My Info: Provides basic and detailed information for the device network card</li>
​ <li>Usage: Provides network data usage in two views - historical usage and current usage</li>
<li>Speed: Check Upload and Download speeds and get route times to a host</li>
<li>Ports: Provides information on active ports and application using them on the local device</li>
<li>Devices: Monitors and provides information on the other devices connected on the network</li>
​ </ul>
</description>
<screenshots>
<screenshot type="default">
<caption>Nutty Device Monitoring</caption>
<image>https://raw.githubusercontent.com/babluboy/nutty/master/screenshots/Nutty_Device_Alert.png</image>
</screenshot>
</screenshots>
<provides>
<binary>nutty</binary>
</provides>
<releases>
<release version="0.9" date="2017-05-27">
​<description>
​ <p>Initial release on Appcenter</p>
​</description>
​</release>
​ </releases>
<developer_name>Siddhartha Das</developer_name>
<url type="homepage">https://github.com/babluboy/nutty#nutty</url>
<url type="bugtracker">https://github.com/babluboy/nutty/issues</url>
<url type="help">https://github.com/babluboy/nutty/wiki</url>
<update_contact>bablu.boy_AT_gmail.com</update_contact>
</component>
16 changes: 16 additions & 0 deletions data/com.github.babluboy.nutty.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Desktop Entry]
Name=Nutty
GenericName=Network Utility
Comment=Displays network information
Categories=Utility;
Exec=nutty
Icon=nutty
Terminal=false
Type=Application
X-GNOME-Gettext-Domain=nutty
X-GNOME-Keywords=Nutty;Network;Utility;Traceroute;Ports;Devices
Actions=AboutDialog;

[Desktop Action AboutDialog]
Exec=nutty --about
Name=About Nutty
25 changes: 6 additions & 19 deletions debian/control
Original file line number Diff line number Diff line change
@@ -1,30 +1,17 @@
Source: nutty
Section: x11
Priority: extra
Source: com.github.babluboy.nutty
Section: utils
Priority: optional
Maintainer: Siddhartha Das <bablu.boy@gmail.com>
Build-Depends: cmake (>= 2.8),
debhelper (>= 9),
libgee-0.8-dev,
libgtk-3-dev (>= 3.14),
valac (>= 0.26),
libgranite-dev (>= 0.3.0)
Standards-Version: 3.9.5
Homepage: https://launchpad.net/nutty

Package: nutty
Standards-Version: 3.9.6
Package: com.github.babluboy.nutty
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}, net-tools, nmap, traceroute, vnstat, nethogs, curl, wireless-tools
Description: Nutty - Network Utility
Nutty is a network utility with the following features:
1) Get Basic Information on Network Cards
2) Get Data Usage information
3) Find the hop times on route to an URL or IP
4) Check the ports in use
5) Find and monitor devices on the network
Nutty depends on the following packages:
1) traceroute
2) netstat (found in net-tools)
3) nmap
4) vnstat
5) nethogs
6) net-tools and wireless-tools
A network utility with a user interface for common command line tools
4 changes: 4 additions & 0 deletions po/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include (Translations)
add_translations_directory (${GETTEXT_PACKAGE})
add_translations_catalog (${GETTEXT_PACKAGE}
../src)
4 changes: 4 additions & 0 deletions po/aa.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/ab.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/ae.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/af.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/ak.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/an.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/as.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/ast.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/av.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/ay.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/az.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/ba.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
5 changes: 5 additions & 0 deletions po/be.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
5 changes: 5 additions & 0 deletions po/bg.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
4 changes: 4 additions & 0 deletions po/bh.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/bi.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/bm.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/bn.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/bo.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/br.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/bs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/ce.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/ch.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/ckb.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/co.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/cr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
5 changes: 5 additions & 0 deletions po/cs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
4 changes: 4 additions & 0 deletions po/cu.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/cv.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/cy.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/da.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
5 changes: 5 additions & 0 deletions po/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
4 changes: 4 additions & 0 deletions po/dv.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/dz.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/ee.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/el.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/en_AU.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/en_CA.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/en_GB.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
5 changes: 5 additions & 0 deletions po/eo.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
5 changes: 5 additions & 0 deletions po/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
5 changes: 5 additions & 0 deletions po/et.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
4 changes: 4 additions & 0 deletions po/eu.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/fa.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
4 changes: 4 additions & 0 deletions po/ff.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
5 changes: 5 additions & 0 deletions po/fi.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
Loading

0 comments on commit 34c3bf1

Please sign in to comment.