From 026415282092718512e5e9613ec59b9b14d7de6b Mon Sep 17 00:00:00 2001 From: Davisson Paulino <davisson@coop.c3local> Date: Fri, 2 Mar 2018 12:05:44 -0300 Subject: [PATCH] Fixed le-lab annoucement and added conflicts with le-conf --- package/debian/changelog | 12 +++++++++--- package/debian/control | 5 +++-- package/family-shield | 16 ++++++++-------- 3 files changed, 20 insertions(+), 13 deletions(-) diff --git a/package/debian/changelog b/package/debian/changelog index 5860d69..d6c4f5f 100644 --- a/package/debian/changelog +++ b/package/debian/changelog @@ -1,12 +1,19 @@ +le-parental-control (0.0.4) testing; urgency=medium + + * Added conflicts + * Fixed le-lab annoucement + + -- Davisson Paulino <dhpaulino@gmail.com> Fri, 02 Mar 2018 12:04:51 -0300 + le-parental-control (0.0.3) testing; urgency=medium - * Update Manual page + * Update Manual page -- Rafael Sanfelice Castilho <rsc15@inf.ufpr.br> Fri, 02 Mar 2018 11:24:31 -0300 le-parental-control (0.0.2) testing; urgency=medium - * Fix enabling family-shield bug + * Fix enabling family-shield bug -- Andre Luis da Silva Machado <contato@c3sl.ufpr.br> Thu, 01 Mar 2018 11:20:02 -0200 @@ -15,4 +22,3 @@ le-parental-control (0.0.1) testing; urgency=medium * Separate family-shield and le-conf -- Andre Luis da Silva Machado <contato@c3sl.ufpr.br> Fri, 09 Feb 2018 11:48:02 -0200 - diff --git a/package/debian/control b/package/debian/control index 46cb1a5..b74154c 100644 --- a/package/debian/control +++ b/package/debian/control @@ -2,7 +2,7 @@ Source: le-parental-control Section: admin Priority: extra Maintainer: Andre Luis da Silva Machado <contato@c3sl.ufpr.br> -Uploaders: Rafael Sanfelice Castilho <rsc15@inf.ufpr.br> +Uploaders: Davisson Paulino <dhpaulino@gmail.com>, Rafael Sanfelice Castilho <rsc15@inf.ufpr.br> Build-Depends: debhelper (>=9) Standards-Version: 3.9.7 Vcs-Git: https://gitlab.c3sl.ufpr.br/le6/le-parental-control.git @@ -10,6 +10,7 @@ Vcs-Git: https://gitlab.c3sl.ufpr.br/le6/le-parental-control.git Package: le-parental-control Architecture: all Depends: ${misc:Depends} -Recommends: le-help, le-conf +Conflicts: le-conf (<< 0.0.29) +Recommends: le-help, le-conf(>=0.0.29) Description: Configure Family Shield Performs all configuration for Family Shield. diff --git a/package/family-shield b/package/family-shield index 1888d4b..00a855c 100755 --- a/package/family-shield +++ b/package/family-shield @@ -76,16 +76,16 @@ function disable_family() { # To make sure that we can advertise the same command later function advertise_enable() { # Try to remove the disable family-shield service from network - dbus-send --system --dest=br.ufpr.c3sl.lelab /br/ufpr/c3sl/lelab br.ufpr.c3sl.lelab.Action.remove_local_service string:'disableFamilyShield' + le-lab -s remove disableFamilyShield # Advertise enable service - dbus-send --system --dest=br.ufpr.c3sl.lelab /br/ufpr/c3sl/lelab br.ufpr.c3sl.lelab.Action.advertise_local_service string:'enableFamilyShield' + le-lab -s advertise enableFamilyShield } function advertise_disable() { # Try to remove the enable family-shield service from network - dbus-send --system --dest=br.ufpr.c3sl.lelab /br/ufpr/c3sl/lelab br.ufpr.c3sl.lelab.Action.remove_local_service string:'enableFamilyShield' + le-lab -s remove enableFamilyShield # Advertise enable service - dbus-send --system --dest=br.ufpr.c3sl.lelab /br/ufpr/c3sl/lelab br.ufpr.c3sl.lelab.Action.advertise_local_service string:'disableFamilyShield' + le-lab -s advertise disableFamilyShield } function check_services() { @@ -93,7 +93,7 @@ function check_services() { if test "$serviceActive"; then echo "Family Shield is on local network" else - echo "No Family Shield service active on local network" + echo "No Family Shield service active on local network" fi } @@ -118,7 +118,7 @@ do ;; --help|-h) echo "Usage: family-shield [OPTION]" - echo + echo echo " -h, --help display this help." echo " -e, --enable enable Family Shield." echo " -d, --disable disable Family Shield." @@ -127,7 +127,7 @@ do exit 1 ;; "") - echo "family-shield: missing operand" + echo "family-shield: missing operand" echo "Try 'family-shield --help' for more information." exit 1 ;; @@ -136,7 +136,7 @@ do echo "Try 'family-shield --help' for more information." exit 1 ;; - esac + esac done if test $STATUS; then -- GitLab