m0e_lnx  committed 592de44

Fixing NetworkManager Slackbuild and adding supporing data files

  • Participants
  • Parent commits 75889a2
  • Branches veclinux-7.1

Comments (0)

Files changed (4)

File var/vabs/NetworkManager/src/55NetworkManager

+# If we are running NetworkManager, tell it we are going to sleep.
+# TODO: Make NetworkManager smarter about how to handle sleep/resume
+#       If we are asleep for less time than it takes for TCP to reset a
+#       connection, and we are assigned the same IP on resume, we should
+#       not break established connections.  Apple can do this, and it is
+#       rather nifty.
+	# Tell NetworkManager to shut down networking
+        printf "Having NetworkManager put all interaces to sleep..."
+	dbus_send --system                         \
+		--dest=org.freedesktop.NetworkManager  \
+		/org/freedesktop/NetworkManager        \
+		org.freedesktop.NetworkManager.sleep && \
+	    echo Done. || echo Failed.
+	# Wake up NetworkManager and make it do a new connection
+	printf "Having NetworkManager wake interfaces back up..."
+        dbus_send --system                        \
+		--dest=org.freedesktop.NetworkManager \
+		/org/freedesktop/NetworkManager       \
+		org.freedesktop.NetworkManager.wake && \
+	    echo Done. || echo Failed.
+case "$1" in
+	hibernate|suspend)
+		suspend_nm
+		;;
+	thaw|resume)
+		resume_nm
+		;;
+	*) exit $NA
+		;;

File var/vabs/NetworkManager/src/NetworkManager.SlackBuild

 VERSION=${VERSION:-""}      #Enter package Version!
 VER=$(echo $VERSION|sed 's/-/_/') #this fixes - in version
 VL_PACKAGER=${VL_PACKAGER:-"hata_ph"}   #Enter your Name!
-LINK=${LINK:-""}  #Enter URL for package here!
+#Enter URL for package here!

File var/vabs/NetworkManager/src/

+# /etc/NetworkManager/NetworkManager.conf
+# See NetworkManager.conf(5) for more information on this file

File var/vabs/NetworkManager/src/slack-desc

+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+              |-----handy-ruler------------------------------------------------------|
+NetworkManager: NetworkManager (Networking that Just Works)
+NetworkManager: NetworkManager attempts to keep an active network connection 
+NetworkManager: available at all times.  The point of NetworkManager is to make 
+NetworkManager: networking configuration and setup as painless and automatic as 
+NetworkManager: possible.  NetworkManager is intended to replace default route, 
+NetworkManager: replace other routes, set IP addresses, and in general configure 
+NetworkManager: networking as NM sees fit (with the possibility of manual override 
+NetworkManager: as necessary).