mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] networkmanager-openvpn: new package
@ 2016-05-17 15:39 Ladislav Michl
  0 siblings, 0 replies; only message in thread
From: Ladislav Michl @ 2016-05-17 15:39 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>

---
diff --git a/rules/networkmanager-openvpn.in b/rules/networkmanager-openvpn.in
new file mode 100644
index 0000000..df35dab
--- /dev/null
+++ b/rules/networkmanager-openvpn.in
@@ -0,0 +1,7 @@
+## SECTION=networkmanager_plugins
+
+config NETWORKMANAGER_OPENVPN
+	tristate
+	select OPENVPN
+	select GLIB
+	prompt "openvpn"
diff --git a/rules/networkmanager-openvpn.make b/rules/networkmanager-openvpn.make
new file mode 100644
index 0000000..69a42d1
--- /dev/null
+++ b/rules/networkmanager-openvpn.make
@@ -0,0 +1,67 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Ladislav Michl <ladis@linux-mips.org>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_NETWORKMANAGER_OPENVPN) += networkmanager-openvpn
+
+#
+# Paths and names
+#
+NETWORKMANAGER_OPENVPN_VERSION	:= 1.2.0
+NETWORKMANAGER_OPENVPN_MD5	:= 6a8c03288cd0b4b849a7b883689c04f3
+NETWORKMANAGER_OPENVPN		:= NetworkManager-openvpn-$(NETWORKMANAGER_OPENVPN_VERSION)
+NETWORKMANAGER_OPENVPN_SUFFIX	:= tar.xz
+NETWORKMANAGER_OPENVPN_URL	:= http://ftp.gnome.org/pub/GNOME/sources/NetworkManager-openvpn/1.2/$(NETWORKMANAGER_OPENVPN).$(NETWORKMANAGER_OPENVPN_SUFFIX)
+NETWORKMANAGER_OPENVPN_SOURCE	:= $(SRCDIR)/$(NETWORKMANAGER_OPENVPN).$(NETWORKMANAGER_OPENVPN_SUFFIX)
+NETWORKMANAGER_OPENVPN_DIR	:= $(BUILDDIR)/$(NETWORKMANAGER_OPENVPN)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+NETWORKMANAGER_OPENVPN_CONF_TOOL := autoconf
+NETWORKMANAGER_OPENVPN_CONF_OPT := \
+	$(CROSS_AUTOCONF_USR) \
+	--disable-static \
+	--enable-shared \
+	--disable-nls \
+	--enable-more-warnings \
+	--without-libnm-glib \
+	--without-gnome \
+	--without-tests
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/networkmanager-openvpn.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, networkmanager-openvpn)
+	@$(call install_fixup, networkmanager-openvpn,PRIORITY,optional)
+	@$(call install_fixup, networkmanager-openvpn,SECTION,base)
+	@$(call install_fixup, networkmanager-openvpn,AUTHOR,"Ladislav Michl <ladis@linux-mips.org>")
+	@$(call install_fixup, networkmanager-openvpn,DESCRIPTION, "networkmanager-openvpn")
+
+	@$(call install_copy, networkmanager-openvpn, 0, 0, 0644, -, /etc/dbus-1/system.d/nm-openvpn-service.conf)
+	@$(call install_copy, networkmanager-openvpn, 0, 0, 0644, -, /usr/lib/NetworkManager/VPN/nm-openvpn-service.name)
+
+	@$(call install_tree, networkmanager-openvpn, 0, 0, -, /usr/libexec/)
+
+	@$(call install_finish, networkmanager-openvpn)
+
+	@$(call touch)
+
+# vim: syntax=make
diff --git a/rules/networkmanager.in b/rules/networkmanager.in
index e1c9b8c..13091dc 100644
--- a/rules/networkmanager.in
+++ b/rules/networkmanager.in
@@ -82,4 +82,8 @@ config NETWORKMANAGER_EXAMPLES
 	bool
 	prompt "install examples for Network Manager"
 
+menu "plugins"
+source "generated/networkmanager_plugins.in"
+endmenu
+
 endif
-- 
2.1.4


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-17 15:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-17 15:39 [ptxdist] [PATCH] networkmanager-openvpn: new package Ladislav Michl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox