Index: net-mgmt/networkmgr/Makefile =================================================================== --- /dev/null +++ net-mgmt/networkmgr/Makefile @@ -0,0 +1,23 @@ +# Created by: Eric Turgeon +# $FreeBSD$ + +PORTNAME= networkmgr +PORTVERSION= 2.2 +CATEGORIES= net-mgmt +MASTER_SITES= http://github.com/GhostBSD/${PORTNAME}/archive/ + +MAINTAINER= ericturgeon.bsd@gmail.com +COMMENT= FreeBSD/GhostBSD network conection manager + +LICENSE= BSD + +RUN_DEPENDS= doas:security/doas + +USE_GITHUB= yes +GH_ACCOUNT= GhostBSD + +USES= python:2 +USE_PYTHON= distutils +USE_GNOME= pygtk2 + +.include Index: net-mgmt/networkmgr/distinfo =================================================================== --- /dev/null +++ net-mgmt/networkmgr/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1485637875 +SHA256 (GhostBSD-networkmgr-2.2_GH0.tar.gz) = 7af236cd96941199f0e42973bd35146de9ac4be045448081b0b890f92f2a68ab +SIZE (GhostBSD-networkmgr-2.2_GH0.tar.gz) = 21782 Index: net-mgmt/networkmgr/pkg-descr =================================================================== --- /dev/null +++ net-mgmt/networkmgr/pkg-descr @@ -0,0 +1,4 @@ +NetworkMgr is an open source, Network Manager based on the look of the Linux +Network Manager user interface. It use ifconfig and netif if make all work. + +WWW: https://github.com/GhostBSD/networkmgr Index: net-mgmt/networkmgr/pkg-install =================================================================== --- /dev/null +++ net-mgmt/networkmgr/pkg-install @@ -0,0 +1,42 @@ +#!/bin/sh +doas_settings() +{ + if [ ! -e ${PKG_PREFIX}/etc/doas.conf ] ; then + touch ${PKG_PREFIX}/etc/doas.conf + fi + grep -q 'permit nopass keepenv :wheel cmd netcardmgr' ${PKG_PREFIX}/etc/doas.conf 2>/dev/null + if [ $? -ne 0 ] ; then + echo 'permit nopass keepenv :wheel cmd netcardmgr' >> ${PKG_PREFIX}/etc/doas.conf + fi + grep -q 'permit nopass keepenv :wheel cmd detect-nics' ${PKG_PREFIX}/etc/doas.conf 2>/dev/null + if [ $? -ne 0 ] ; then + echo 'permit nopass keepenv :wheel cmd detect-nics' >> ${PKG_PREFIX}/etc/doas.conf + fi + grep -q 'permit nopass keepenv :wheel cmd detect-wifi' ${PKG_PREFIX}/etc/doas.conf 2>/dev/null + if [ $? -ne 0 ] ; then + echo 'permit nopass keepenv :wheel cmd detect-wifi' >> ${PKG_PREFIX}/etc/doas.conf + fi + grep -q 'permit nopass keepenv :wheel cmd ifconfig' ${PKG_PREFIX}/etc/doas.conf 2>/dev/null + if [ $? -ne 0 ] ; then + echo 'permit nopass keepenv :wheel cmd ifconfig' >> ${PKG_PREFIX}/etc/doas.conf + fi + grep -q 'permit nopass keepenv :wheel cmd service' ${PKG_PREFIX}/etc/doas.conf 2>/dev/null + if [ $? -ne 0 ] ; then + echo 'permit nopass keepenv :wheel cmd service' >> ${PKG_PREFIX}/etc/doas.conf + fi + grep -q 'permit nopass keepenv :wheel cmd wpa_supplicant' ${PKG_PREFIX}/etc/doas.conf 2>/dev/null + if [ $? -ne 0 ] ; then + echo 'permit nopass keepenv :wheel cmd wpa_supplicant' >> ${PKG_PREFIX}/etc/doas.conf + fi +} + +case "$2" in + POST-INSTALL) + # backup old files from FreeBSD base system + doas_settings + ;; + *) + ;; +esac + +exit 0 Index: net-mgmt/networkmgr/pkg-plist =================================================================== --- /dev/null +++ net-mgmt/networkmgr/pkg-plist @@ -0,0 +1,40 @@ +bin/netcardmgr +bin/networkmgr +etc/xdg/autostart/networkmgr.desktop +%%DATADIR%%/authentication.py +%%DATADIR%%/icons/nm-adhoc.png +%%DATADIR%%/icons/nm-device-wired-autoip.png +%%DATADIR%%/icons/nm-device-wired.png +%%DATADIR%%/icons/nm-device-wireless.png +%%DATADIR%%/icons/nm-device-wwan.png +%%DATADIR%%/icons/nm-mb-roam.png +%%DATADIR%%/icons/nm-no-connection.png +%%DATADIR%%/icons/nm-secure-lock.png +%%DATADIR%%/icons/nm-signal-0-secure.png +%%DATADIR%%/icons/nm-signal-0.png +%%DATADIR%%/icons/nm-signal-00-secure.png +%%DATADIR%%/icons/nm-signal-00.png +%%DATADIR%%/icons/nm-signal-100-secure.png +%%DATADIR%%/icons/nm-signal-100.png +%%DATADIR%%/icons/nm-signal-25-secure.png +%%DATADIR%%/icons/nm-signal-25.png +%%DATADIR%%/icons/nm-signal-50-secure.png +%%DATADIR%%/icons/nm-signal-50.png +%%DATADIR%%/icons/nm-signal-75-secure.png +%%DATADIR%%/icons/nm-signal-75.png +%%DATADIR%%/icons/nm-tech-3g.png +%%DATADIR%%/icons/nm-tech-cdma-1x.png +%%DATADIR%%/icons/nm-tech-edge.png +%%DATADIR%%/icons/nm-tech-evdo.png +%%DATADIR%%/icons/nm-tech-gprs.png +%%DATADIR%%/icons/nm-tech-hspa.png +%%DATADIR%%/icons/nm-tech-umts.png +%%DATADIR%%/icons/nm-vpn-active-lock.png +%%DATADIR%%/icons/nm-vpn-connecting12.png +%%DATADIR%%/icons/nm-vpn-connecting13.png +%%DATADIR%%/icons/nm-vpn-connecting14.png +%%DATADIR%%/icons/nm-vpn-lock.png +%%DATADIR%%/icons/nm-vpn-standalone-lock.png +%%DATADIR%%/icons/nm-wwan-tower.png +%%DATADIR%%/net_api.py +%%DATADIR%%/trayicon.py