diff options
Diffstat (limited to 'net-misc/connman')
-rw-r--r-- | net-misc/connman/Manifest | 18 | ||||
-rw-r--r-- | net-misc/connman/connman-1.29.ebuild | 70 | ||||
-rw-r--r-- | net-misc/connman/connman-1.33-r1.ebuild | 83 | ||||
-rw-r--r-- | net-misc/connman/connman-1.34.ebuild | 90 | ||||
-rw-r--r-- | net-misc/connman/connman-1.35.ebuild | 90 | ||||
-rw-r--r-- | net-misc/connman/files/connman-1.16-execinfo-assumptions.patch | 54 | ||||
-rw-r--r-- | net-misc/connman/files/connman-1.31-xtables.patch | 54 | ||||
-rw-r--r-- | net-misc/connman/files/connman-1.33-polkit-configure-check-fix.patch | 15 | ||||
-rw-r--r-- | net-misc/connman/files/connman-1.33-resolv-conf-overwrite.patch | 6 | ||||
-rw-r--r-- | net-misc/connman/files/connman.confd | 15 | ||||
-rw-r--r-- | net-misc/connman/files/connman.initd2 | 22 | ||||
-rw-r--r-- | net-misc/connman/files/connman.service | 11 | ||||
-rw-r--r-- | net-misc/connman/metadata.xml | 21 |
13 files changed, 549 insertions, 0 deletions
diff --git a/net-misc/connman/Manifest b/net-misc/connman/Manifest new file mode 100644 index 000000000000..b8546449e95a --- /dev/null +++ b/net-misc/connman/Manifest @@ -0,0 +1,18 @@ +AUX connman-1.16-execinfo-assumptions.patch 1391 SHA256 12c9a6073dddceb5d2088be95143f5f0624f992aab8737d63839c1bc506f0d7d SHA512 5fb6e36e36147d9bda1e78b7d9c9bbc169965578b45295e65dd8d4922a7ef13a2854d4b14fb9db9d005ce6d59e8334b0e51b01f472227c4c1f1dbfbcc2004d7d WHIRLPOOL 9a3ae8f19100b1a4ccf39cd69ed1138ded9cd31c8d1e57764a1451a2e099e66a95cbc8b456406761b9504e2ac7c18190ed4bef12a0724990d87fd86fca2a5658 +AUX connman-1.31-xtables.patch 1367 SHA256 bcd01d1051bb7979a3a9f098bdbb027b3bd243f2e24a404bb57f1d62742c4108 SHA512 681615666a535fe0a60f1472768f63ecfadd974e2a39d38b1e229be00449d0acd24902fb674f6b6567bb0915c5b59adc0d76d5b886d50d59c776b239ecbb7c4d WHIRLPOOL 7b97159120f0bae83b5791a63c84bf1ce4b04a36f732f405af4dd57c5a0a70168226802cedc57c2f9f57e9e24f0fcf6d8b3e625dd5b055adad6cb20bbd6e6c17 +AUX connman-1.33-polkit-configure-check-fix.patch 665 SHA256 fb8397d2819948bbf2d72b231e7e74464c42fb9b4fa3face544a174ce4be7d59 SHA512 630ac9d147046f084a960795de87183c5c446006df7a6a74c02416e972a3bd55390e1ab9c3f0ea4449324d0fb7c271ebd6b64727ede834128ca8515853a9e905 WHIRLPOOL 179d83d01ccfedfcbfbdd6f8e425627fb865b4d4b2bfd1813af0950152bb922860fcb3b79047cf126d506eca36abc165d8df4dceb9ddd3e7ac719a6393283910 +AUX connman-1.33-resolv-conf-overwrite.patch 354 SHA256 97685a61de4081369a6422ba2cfe3a03dee3d2a8c4237c9016ea7ba35ba8d8dc SHA512 1998d0d2923f8dca3706c7c75ad87ffa2570a785ed3e5ec1c85cc539bbfb7ea9173dae5320c3f95fbeee9c9c72870607b8eb4b3fd2c36a1962ad8925d72e24e2 WHIRLPOOL 2429f8333d6f72197de3cfd7e6b752e5726d43c0bff84c264f82948724c1c3e28a978f133f126add5bd1cc6540588672413d00ecd01d6aa58ebebb80301cc49e +AUX connman.confd 728 SHA256 767a160c1b3392f0a12d3908a937548a2f604a9a121e744c309ee6f478420b02 SHA512 820511a1fa04ff2c07a26dd3c74c846e3a710e6d6b44c4adaa782f55c9818afd3b935ed30bf2dc287e54e924128c2c1d02b6c4c89b5b5b7d07a7f590d9963969 WHIRLPOOL 06098d2fcc27c1bf7dcf73167273cea5e83cc6a4bd5b4ce369974b7295fef6a8c268ea1f548b958c35a569c9c0634cb8ba1c1bc6386d02d02abb76ac396d385a +AUX connman.initd2 483 SHA256 4c018df1b53b142a2e26c456b0bf6cc7039fb3851bc5f567e59654117930a78b SHA512 a9999849f1e9b7c8c44db5aebbc5d2e615ff191da582333c3a575f594b99a6324469525a2937a98ccc444fcb42cf0131b2067263451273c6e093b22cb746306b WHIRLPOOL fa9f958e2cbf88a8659c89f16131c4ff81d9020c679856904c155227fe917e97adf116b40b2597020e3da74a28d0511eaa623fb8c8222d4fcdce1f7f3d55807d +AUX connman.service 198 SHA256 746a4cb3d4a7083b3165dd69285df4a3f85ec5fd4556d805428b1c13dcd8f0d2 SHA512 a769961922c40b5ed3e5a09d08262b20b84aa27fc278678063b348431ba2976de9f2ebcd9f9b0afa6241540d255ba4cdf7120b75184510d41444b7dd3209b825 WHIRLPOOL 6c91e3fe0045eec718328c5eed31d6109485c41c46ebadf392ecad3c41e97d19e5430b3eaead45844e2364cb3fa9aad2aa904b2b345657f0531c4fc51ea294aa +DIST connman-1.29.tar.xz 653324 SHA256 2a5a69693566f7fd59b2e677fa89356ada6d709998aa665caef8707b1e7a8594 SHA512 19f623dd23c6312f29bbd570dcb22d31154ffcd16ee66ed2280df3d9d844301f18538418363222d99eabdc33da0021488ed66ba2e4f88df30646004b724538ee WHIRLPOOL 9439cadeb20b72c922b1426da213f8567fe7b0da45f9a4abf270c38687a9d9161a8ee14250623344864d612e130e6f28926918468aaf4346a9e5ff41e6ad22bb +DIST connman-1.33.tar.xz 669800 SHA256 bc8946036fa70124d663136f9f6b6238d897ca482782df907b07a428b09df5a0 SHA512 5670124d2e17ffde4bd5fb878198843b712a31f5840e8523e8247373c8547619e32a4d6dda9cf993eebd5c65bdd256cfc570708a79da1d10f969662b5b750566 WHIRLPOOL eda8176d0d6137b0b94581c9ace23367d7af5722b7d7ea53e173e9466b555f26c9a18a05a07c1533ab11e3197e4303c6c77685a214c3dec2de926d7924f019f2 +DIST connman-1.34.tar.xz 684992 SHA256 a9a0808c729c1f348fc36d8cecb52d19b72bc34cb411c502608cb0e0190fc71e SHA512 732669648936630ae5895cba8bcccc69757ab594bc31ee8e4925b0e402d190939891fac61136f3f086ce708b8d576136f0947914c0cc07427c170cbf9b85a308 WHIRLPOOL bf349ff1f8709e2325d0c316cef922358115c1e9b340b27866d19e03dad98a563f20405ef8290610960b8a33b6de6fbdc717bf958322553fa02da0fba76b3a3a +DIST connman-1.35.tar.xz 686092 SHA256 66d7deb98371545c6e417239a9b3b3e3201c1529d08eedf40afbc859842cf2aa SHA512 2234b4d18b038f9a33939035cddebd31c74ce962e5616c2c30b2912476612ef3f7d5b9edca64bf6e69fa358252ed432124e036ac3516b291b86695cb9a96c6a8 WHIRLPOOL 6fcb9f78d10cda7e5e143eb5b626c4395671a20b6a00b213757c311702c4386122f08ac3df31fdd13c6137be087b35a9dd213cb360f928725acd7ce3166f6d41 +EBUILD connman-1.29.ebuild 2013 SHA256 ad17727b0ae8e64e5ab1c3b8b0c703478d66e59e706a044bafbeb8ca910634de SHA512 e77846ca1759957f4d898fd76b06f126d6181c85384eed8f6ffee4d9e6845eb43f831a0db1ea349b387392e60e43dda8c364f87b1f98c5ca84652e2fa858e35b WHIRLPOOL ec43b983ec1783efb5550f9a79638d40ca367456d7b7d6e153a8cc6611151ed3a21439353a62b3d85a889faf31add4694c1e7e69931c7947e9e6823514fec64e +EBUILD connman-1.33-r1.ebuild 2280 SHA256 a7885ad550fdac86e3d541e7498b168b63fc1c756830475b2b81c1137637a0ac SHA512 8c396fa66e67a4519d2fe067e43f11cff3cb751e7f610e6ccb2cc75836cf74784fde1f8ae291b4b2189e92c941885b3c67e55556807eb1c9fdf619c9bc247ce0 WHIRLPOOL 30b138b15c18ea13dc31a5ab652560c3a78a2197ddeec140d7314e267ab1536de596845f530965e88031b437f858fbfe8814d4f36b4c27641a4cf8e0c4ab8fb1 +EBUILD connman-1.34.ebuild 2490 SHA256 42e3495aaf082a1a2854ee1a2a170c2906b22d88676398b3497581b1ca3c6d83 SHA512 51b456ca18a681392a9ffdc44ca31d1838cfe597e43ecef28b5202f69415465ee29a70d26a6ead153acaf7028b3da18049ab7d2c465b21fffd443c8b07afe302 WHIRLPOOL bf5bde68411fb8add701602e00196fb9d9e226243b82eaf93ba406d0720b710781c779537dc9dc9f338406561cd4c08d71742392656c889b372450c4175ba351 +EBUILD connman-1.35.ebuild 2490 SHA256 42e3495aaf082a1a2854ee1a2a170c2906b22d88676398b3497581b1ca3c6d83 SHA512 51b456ca18a681392a9ffdc44ca31d1838cfe597e43ecef28b5202f69415465ee29a70d26a6ead153acaf7028b3da18049ab7d2c465b21fffd443c8b07afe302 WHIRLPOOL bf5bde68411fb8add701602e00196fb9d9e226243b82eaf93ba406d0720b710781c779537dc9dc9f338406561cd4c08d71742392656c889b372450c4175ba351 +MISC ChangeLog 8119 SHA256 381c030744556e3d11ecd4ecf2042c63b5641be71fbe19112779e585c0bccb8e SHA512 a10468b98027b1e847ea2ea665a2f56415279bb3dcfd6cc04f33bd19a342d5e586ce28da1963a1dd6af3845a5e4a0bad84e3723ef6533a71a1e4e79634d89545 WHIRLPOOL d763544ef27f8741d1138834dca76ee9d48fb312eb643637b34eff96d236bea7f3368555fd18822c23e631ab56f536bee66fa8b6c552539a669fb14ed8276f5f +MISC ChangeLog-2015 17832 SHA256 679dbb203e1a94d59ea486874f1a91031a972c5d68ecc8e126eb111aa05133ca SHA512 1de0542901b13ac1d4c8bd36d89477e42a7bfc7222fb503b3adbb7a16317b923616f6a674b9c478cba735c16ffadbc4f540a2fdcbd58cb9cd4875f138cee16f4 WHIRLPOOL b73fbce83f9883ddc90e4346b44a7adce8410182ae7b2074ca0b54c4019c28c45c04ddfe1be724995d301221ea19a4d3fb4c26ce9162c5fb8828a02a21202bf9 +MISC metadata.xml 1087 SHA256 386df42a5334cd2f73807ba47bb6c72c81dc56d05f9834d8022e884d97eec679 SHA512 8f02d9cf4194c9e24edaa9a0427d63db483bbf559ea119a043a70a759f583aec42203bedd12c91364e1c24850e9cb6b1831054294c3837a0c3a50cb75dc1de42 WHIRLPOOL 53aa8b09358eff213671e99fb00d331ee253a710a58dd81902bbe7960daac50c2bcef77b22ccb371c7fe7f1e1a5b80c0e5092254475048b39be90c08b5c8e5f5 diff --git a/net-misc/connman/connman-1.29.ebuild b/net-misc/connman/connman-1.29.ebuild new file mode 100644 index 000000000000..329ac55f1db8 --- /dev/null +++ b/net-misc/connman/connman-1.29.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +inherit base systemd + +DESCRIPTION="Provides a daemon for managing internet connections" +HOMEPAGE="https://01.org/connman" +SRC_URI="mirror://kernel/linux/network/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ppc ppc64 x86" +IUSE="bluetooth debug doc examples +ethernet l2tp ofono openvpn openconnect pptp policykit tools vpnc +wifi wispr" + +RDEPEND=">=dev-libs/glib-2.16 + >=sys-apps/dbus-1.2.24 + >=net-firewall/iptables-1.4.8 + bluetooth? ( net-wireless/bluez ) + l2tp? ( net-dialup/xl2tpd ) + ofono? ( net-misc/ofono ) + openconnect? ( net-vpn/openconnect ) + openvpn? ( net-vpn/openvpn ) + policykit? ( sys-auth/polkit ) + pptp? ( net-dialup/pptpclient ) + vpnc? ( net-vpn/vpnc ) + wifi? ( >=net-wireless/wpa_supplicant-2.0[dbus] ) + wispr? ( net-libs/gnutls )" + +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6.39" + +PATCHES=( "${FILESDIR}/${PN}-1.16-execinfo-assumptions.patch" ) + +src_configure() { + econf \ + --localstatedir=/var \ + --enable-client \ + --enable-datafiles \ + --enable-loopback=builtin \ + $(use_enable examples test) \ + $(use_enable ethernet ethernet builtin) \ + $(use_enable wifi wifi builtin) \ + $(use_enable bluetooth bluetooth builtin) \ + $(use_enable l2tp l2tp builtin) \ + $(use_enable ofono ofono builtin) \ + $(use_enable openconnect openconnect builtin) \ + $(use_enable openvpn openvpn builtin) \ + $(use_enable policykit polkit builtin) \ + $(use_enable pptp pptp builtin) \ + $(use_enable vpnc vpnc builtin) \ + $(use_enable wispr wispr builtin) \ + $(use_enable debug) \ + $(use_enable tools) \ + --disable-iospm \ + --disable-hh2serial-gps +} + +src_install() { + emake DESTDIR="${D}" install + dobin client/connmanctl || die "client installation failed" + + if use doc; then + dodoc doc/*.txt + fi + keepdir /var/lib/${PN} + newinitd "${FILESDIR}"/${PN}.initd2 ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + systemd_dounit "${FILESDIR}"/connman.service +} diff --git a/net-misc/connman/connman-1.33-r1.ebuild b/net-misc/connman/connman-1.33-r1.ebuild new file mode 100644 index 000000000000..b3c1d52bbc4c --- /dev/null +++ b/net-misc/connman/connman-1.33-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +inherit autotools systemd + +DESCRIPTION="Provides a daemon for managing internet connections" +HOMEPAGE="https://01.org/connman" +SRC_URI="mirror://kernel/linux/network/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="bluetooth debug doc examples +ethernet l2tp ofono openvpn openconnect pptp policykit tools vpnc +wifi wispr networkmanager" + +RDEPEND=">=dev-libs/glib-2.16 + >=sys-apps/dbus-1.2.24 + >=net-firewall/iptables-1.4.8 + bluetooth? ( net-wireless/bluez ) + l2tp? ( net-dialup/xl2tpd ) + ofono? ( net-misc/ofono ) + openconnect? ( net-vpn/openconnect ) + openvpn? ( net-vpn/openvpn ) + policykit? ( sys-auth/polkit ) + pptp? ( net-dialup/pptpclient ) + vpnc? ( net-vpn/vpnc ) + wifi? ( >=net-wireless/wpa_supplicant-2.0[dbus] ) + wispr? ( net-libs/gnutls )" + +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6.39 + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-1.31-xtables.patch" + "${FILESDIR}/${PN}-1.33-polkit-configure-check-fix.patch" + "${FILESDIR}/${PN}-1.33-resolv-conf-overwrite.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --localstatedir=/var \ + --with-systemdunitdir=$(systemd_get_systemunitdir) \ + --with-tmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d \ + --enable-client \ + --enable-datafiles \ + --enable-loopback=builtin \ + $(use_enable examples test) \ + $(use_enable ethernet ethernet builtin) \ + $(use_enable wifi wifi builtin) \ + $(use_enable bluetooth bluetooth builtin) \ + $(use_enable l2tp l2tp builtin) \ + $(use_enable ofono ofono builtin) \ + $(use_enable openconnect openconnect builtin) \ + $(use_enable openvpn openvpn builtin) \ + $(use_enable policykit polkit builtin) \ + $(use_enable pptp pptp builtin) \ + $(use_enable vpnc vpnc builtin) \ + $(use_enable wispr wispr builtin) \ + $(use_enable debug) \ + $(use_enable tools) \ + $(use_enable networkmanager nmcompat) \ + --disable-iospm \ + --disable-hh2serial-gps +} + +src_install() { + default + dobin client/connmanctl + + if use doc; then + dodoc doc/*.txt + fi + keepdir /usr/lib/${PN}/scripts + keepdir /var/lib/${PN} + newinitd "${FILESDIR}"/${PN}.initd2 ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/net-misc/connman/connman-1.34.ebuild b/net-misc/connman/connman-1.34.ebuild new file mode 100644 index 000000000000..12b9cd9901a4 --- /dev/null +++ b/net-misc/connman/connman-1.34.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +inherit autotools systemd + +DESCRIPTION="Provides a daemon for managing internet connections" +HOMEPAGE="https://01.org/connman" +SRC_URI="mirror://kernel/linux/network/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" + +IUSE="${IUSE} bluetooth debug doc examples +ethernet iptables l2tp nftables" +IUSE="${IUSE} ofono openvpn openconnect pptp policykit tools vpnc +wifi wispr networkmanager" + +REQUIRED_USE="|| ( iptables nftables )" +RDEPEND=">=dev-libs/glib-2.16 + >=sys-apps/dbus-1.2.24 + iptables? ( >=net-firewall/iptables-1.4.8 ) + bluetooth? ( net-wireless/bluez ) + l2tp? ( net-dialup/xl2tpd ) + nftables? ( + >=net-libs/libnftnl-1.0.4 + >=net-libs/libmnl-1.0.0 ) + ofono? ( net-misc/ofono ) + openconnect? ( net-vpn/openconnect ) + openvpn? ( net-vpn/openvpn ) + policykit? ( sys-auth/polkit ) + pptp? ( net-dialup/pptpclient ) + vpnc? ( net-vpn/vpnc ) + wifi? ( >=net-wireless/wpa_supplicant-2.0[dbus] ) + wispr? ( net-libs/gnutls )" + +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6.39 + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-1.33-polkit-configure-check-fix.patch" + "${FILESDIR}/${PN}-1.33-resolv-conf-overwrite.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --localstatedir=/var \ + --with-systemdunitdir=$(systemd_get_systemunitdir) \ + --with-tmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d \ + --enable-client \ + --enable-datafiles \ + --enable-loopback=builtin \ + $(use_enable examples test) \ + $(use_enable ethernet ethernet builtin) \ + $(use_enable wifi wifi builtin) \ + $(use_enable bluetooth bluetooth builtin) \ + $(use_enable l2tp l2tp builtin) \ + $(use_enable ofono ofono builtin) \ + $(use_enable openconnect openconnect builtin) \ + $(use_enable openvpn openvpn builtin) \ + $(use_enable policykit polkit builtin) \ + $(use_enable pptp pptp builtin) \ + $(use_enable vpnc vpnc builtin) \ + $(use_enable wispr wispr builtin) \ + $(use_enable debug) \ + $(use_enable tools) \ + $(use_enable networkmanager nmcompat) \ + --with-firewall=$(usex iptables "iptables" "nftables" ) \ + --disable-iospm \ + --disable-iwd \ + --disable-hh2serial-gps +} + +src_install() { + default + dobin client/connmanctl + + if use doc; then + dodoc doc/*.txt + fi + keepdir /usr/lib/${PN}/scripts + keepdir /var/lib/${PN} + newinitd "${FILESDIR}"/${PN}.initd2 ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/net-misc/connman/connman-1.35.ebuild b/net-misc/connman/connman-1.35.ebuild new file mode 100644 index 000000000000..12b9cd9901a4 --- /dev/null +++ b/net-misc/connman/connman-1.35.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +inherit autotools systemd + +DESCRIPTION="Provides a daemon for managing internet connections" +HOMEPAGE="https://01.org/connman" +SRC_URI="mirror://kernel/linux/network/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" + +IUSE="${IUSE} bluetooth debug doc examples +ethernet iptables l2tp nftables" +IUSE="${IUSE} ofono openvpn openconnect pptp policykit tools vpnc +wifi wispr networkmanager" + +REQUIRED_USE="|| ( iptables nftables )" +RDEPEND=">=dev-libs/glib-2.16 + >=sys-apps/dbus-1.2.24 + iptables? ( >=net-firewall/iptables-1.4.8 ) + bluetooth? ( net-wireless/bluez ) + l2tp? ( net-dialup/xl2tpd ) + nftables? ( + >=net-libs/libnftnl-1.0.4 + >=net-libs/libmnl-1.0.0 ) + ofono? ( net-misc/ofono ) + openconnect? ( net-vpn/openconnect ) + openvpn? ( net-vpn/openvpn ) + policykit? ( sys-auth/polkit ) + pptp? ( net-dialup/pptpclient ) + vpnc? ( net-vpn/vpnc ) + wifi? ( >=net-wireless/wpa_supplicant-2.0[dbus] ) + wispr? ( net-libs/gnutls )" + +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6.39 + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-1.33-polkit-configure-check-fix.patch" + "${FILESDIR}/${PN}-1.33-resolv-conf-overwrite.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --localstatedir=/var \ + --with-systemdunitdir=$(systemd_get_systemunitdir) \ + --with-tmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d \ + --enable-client \ + --enable-datafiles \ + --enable-loopback=builtin \ + $(use_enable examples test) \ + $(use_enable ethernet ethernet builtin) \ + $(use_enable wifi wifi builtin) \ + $(use_enable bluetooth bluetooth builtin) \ + $(use_enable l2tp l2tp builtin) \ + $(use_enable ofono ofono builtin) \ + $(use_enable openconnect openconnect builtin) \ + $(use_enable openvpn openvpn builtin) \ + $(use_enable policykit polkit builtin) \ + $(use_enable pptp pptp builtin) \ + $(use_enable vpnc vpnc builtin) \ + $(use_enable wispr wispr builtin) \ + $(use_enable debug) \ + $(use_enable tools) \ + $(use_enable networkmanager nmcompat) \ + --with-firewall=$(usex iptables "iptables" "nftables" ) \ + --disable-iospm \ + --disable-iwd \ + --disable-hh2serial-gps +} + +src_install() { + default + dobin client/connmanctl + + if use doc; then + dodoc doc/*.txt + fi + keepdir /usr/lib/${PN}/scripts + keepdir /var/lib/${PN} + newinitd "${FILESDIR}"/${PN}.initd2 ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/net-misc/connman/files/connman-1.16-execinfo-assumptions.patch b/net-misc/connman/files/connman-1.16-execinfo-assumptions.patch new file mode 100644 index 000000000000..5404414fc0ea --- /dev/null +++ b/net-misc/connman/files/connman-1.16-execinfo-assumptions.patch @@ -0,0 +1,54 @@ +diff -uNr a/config.h.in b/config.h.in +--- a/config.h.in 2013-07-02 17:41:03.715261748 +0000 ++++ b/config.h.in 2013-07-02 17:41:21.707260667 +0000 +@@ -3,6 +3,9 @@ + /* Define to 1 if you have the <dlfcn.h> header file. */ + #undef HAVE_DLFCN_H + ++/* Define to 1 if you have the <execinfo.h> header file. */ ++#undef HAVE_EXECINFO_H ++ + /* Define to 1 if you have the <inttypes.h> header file. */ + #undef HAVE_INTTYPES_H + +diff -uNr a/configure.ac b/configure.ac +--- a/configure.ac 2013-07-02 17:41:03.715261748 +0000 ++++ b/configure.ac 2013-07-02 17:41:21.719260666 +0000 +@@ -181,6 +181,8 @@ + AC_CHECK_FUNC(signalfd, dummy=yes, + AC_MSG_ERROR(signalfd support is required)) + ++AC_CHECK_HEADERS([execinfo.h], [], []) ++ + AC_CHECK_LIB(dl, dlopen, dummy=yes, + AC_MSG_ERROR(dynamic linking loader is required)) + +diff -uNr a/src/log.c b/src/log.c +--- a/src/log.c 2013-07-02 17:41:03.727261747 +0000 ++++ b/src/log.c 2013-07-02 17:42:12.717257603 +0000 +@@ -30,7 +30,9 @@ + #include <stdlib.h> + #include <string.h> + #include <syslog.h> ++#ifdef HAVE_EXECINFO_H + #include <execinfo.h> ++#endif + #include <dlfcn.h> + + #include "connman.h" +@@ -112,6 +114,7 @@ + + static void print_backtrace(unsigned int offset) + { ++#ifdef HAVE_EXECINFO_H + void *frames[99]; + size_t n_ptrs; + unsigned int i; +@@ -210,6 +213,7 @@ + + close(outfd[1]); + close(infd[0]); ++#endif + } + + static void signal_handler(int signo) diff --git a/net-misc/connman/files/connman-1.31-xtables.patch b/net-misc/connman/files/connman-1.31-xtables.patch new file mode 100644 index 000000000000..84f4445e8da1 --- /dev/null +++ b/net-misc/connman/files/connman-1.31-xtables.patch @@ -0,0 +1,54 @@ +--- connman-1.31/src/iptables.c.old 2016-03-22 20:12:47.829460752 -0700 ++++ connman-1.31/src/iptables.c 2016-03-22 21:33:36.835384724 -0700 +@@ -28,11 +28,11 @@ + #include <stdio.h> + #include <string.h> + #include <unistd.h> + #include <sys/errno.h> + #include <sys/socket.h> +-#include <xtables.h> ++#include "connman_xtables.h" + #include <inttypes.h> + + #include <linux/netfilter_ipv4/ip_tables.h> + + #include "connman.h" +--- connman-1.31/src/firewall.c.old 2016-03-22 21:29:01.959472262 -0700 ++++ connman-1.31/src/firewall.c 2016-03-22 21:33:53.048144181 -0700 +@@ -23,11 +23,11 @@ + #include <config.h> + #endif + + #include <errno.h> + +-#include <xtables.h> ++#include "connman_xtables.h" + #include <linux/netfilter_ipv4/ip_tables.h> + + #include "connman.h" + + #define CHAIN_PREFIX "connman-" +--- /dev/null 2016-03-18 06:21:16.372989086 -0700 ++++ connman-1.31/include/connman_xtables.h 2016-03-22 21:32:21.349504786 -0700 +@@ -0,0 +1,21 @@ ++#ifndef CONNMAN_XTABLES_H ++#define CONNMAN_XTABLES_H ++ ++#include <linux/version.h> ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0) || \ ++ LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) ++#include <xtables.h> ++#else ++#ifdef __USE_MISC ++#define GENTOO_USE_MISC __USE_MISC ++#undef __USE_MISC ++#endif ++ ++#include <xtables.h> ++ ++#ifdef GENTOO_USE_MISC ++#define __USE_MISC GENTOO_USE_MISC ++#undef GENTOO_USE_MISC ++#endif ++#endif ++#endif diff --git a/net-misc/connman/files/connman-1.33-polkit-configure-check-fix.patch b/net-misc/connman/files/connman-1.33-polkit-configure-check-fix.patch new file mode 100644 index 000000000000..57ef5e8ccbac --- /dev/null +++ b/net-misc/connman/files/connman-1.33-polkit-configure-check-fix.patch @@ -0,0 +1,15 @@ +--- connman-1.33/configure.ac.old 2016-10-09 11:26:43.137856416 -0700 ++++ connman-1.33/configure.ac 2016-10-09 11:26:52.819722799 -0700 +@@ -281,11 +281,11 @@ AM_CONDITIONAL(NMCOMPAT, test "${enable_ + + AC_ARG_ENABLE(polkit, AC_HELP_STRING([--enable-polkit], + [enable PolicyKit support]), + [enable_polkit=${enableval}], [enable_polkit="no"]) + if (test "${enable_polkit}" != "no"); then +- POLKIT_DATADIR="`$PKG_CONFIG --variable=actiondir polkit`" ++ POLKIT_DATADIR="`$PKG_CONFIG --variable=actiondir polkit-gobject-1`" + POLKIT_DATADIR="" + if (test -z "${POLKIT_DATADIR}"); then + POLKIT_DATADIR="${datadir}/polkit-1/actions" + fi + AC_SUBST(POLKIT_DATADIR) diff --git a/net-misc/connman/files/connman-1.33-resolv-conf-overwrite.patch b/net-misc/connman/files/connman-1.33-resolv-conf-overwrite.patch new file mode 100644 index 000000000000..49bb8ba3c5a1 --- /dev/null +++ b/net-misc/connman/files/connman-1.33-resolv-conf-overwrite.patch @@ -0,0 +1,6 @@ +--- connman-1.33/scripts/connman_resolvconf.conf.in.old 2016-10-09 11:27:20.425341843 -0700 ++++ connman-1.33/scripts/connman_resolvconf.conf.in 2016-10-09 11:27:10.662476565 -0700 +@@ -1,2 +1,2 @@ + d @runstatedir@/connman - - - - +-L+ /etc/resolv.conf - - - - @runstatedir@/connman/resolv.conf ++L /etc/resolv.conf - - - - @runstatedir@/connman/resolv.conf diff --git a/net-misc/connman/files/connman.confd b/net-misc/connman/files/connman.confd new file mode 100644 index 000000000000..6d0c399e544c --- /dev/null +++ b/net-misc/connman/files/connman.confd @@ -0,0 +1,15 @@ +# conf.d file for connman +# +# Please check connmand --help for more information. +# Useful options are: +# -c, --compat: enable NetworkManager compatibility mode. +# -W, --wifi=NAME: select wpa_supplicant wifi driver to use. +# This is useful if your wpa_supplicant is < 0.7 +# since connmand by default gives wpa_supplicant a +# comma separated list of values and < 0.7 does not +# understand or accept it. +# -i, --device=DEV: force use of given interface name. +# -I, --nodevice=DEV: force ignore of given interface name. +# -p, --plugin=NAME: specify plugins to load. +# -P, --noplugin=NAME: specify plugins not to load. +CONNMAN_OPTS="" diff --git a/net-misc/connman/files/connman.initd2 b/net-misc/connman/files/connman.initd2 new file mode 100644 index 000000000000..428245d7f6e2 --- /dev/null +++ b/net-misc/connman/files/connman.initd2 @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Purpose License v2 + +depend() { + need dbus + provide net +} + +start() { + ebegin "Starting Connection Manager" + start-stop-daemon --start --quiet --exec /usr/sbin/connmand -- ${CONNMAN_OPTS} + eend $? +} + +stop() { + ebegin "Stopping Connection Manager" + start-stop-daemon --stop --quiet --exec /usr/sbin/connmand + eend $? +} + +# vim: set ft=gentoo-init-d ts=3 sw=3 et: diff --git a/net-misc/connman/files/connman.service b/net-misc/connman/files/connman.service new file mode 100644 index 000000000000..ece38a716e96 --- /dev/null +++ b/net-misc/connman/files/connman.service @@ -0,0 +1,11 @@ +[Unit] +Description=Network Connection Manager Daemon + +[Service] +Type=dbus +BusName=net.connman +ExecStart=/usr/sbin/connmand --nodaemon + +[Install] +WantedBy=multi-user.target +Alias=net.connman.service diff --git a/net-misc/connman/metadata.xml b/net-misc/connman/metadata.xml new file mode 100644 index 000000000000..a4bbe92fa34b --- /dev/null +++ b/net-misc/connman/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>dlan@gentoo.org</email> + <name>Yixun Lan</name> + </maintainer> + <use> + <flag name="ethernet">Enable ethernet support.</flag> + <flag name="l2tp">Use <pkg>net-dialup/xl2tpd</pkg> for L2TP VPN support.</flag> + <flag name="iptables">Use <pkg>net-firewall/iptables</pkg> as firewall.</flag> + <flag name="nftables">Use <pkg>net-firewall/nftables</pkg> as firewall.</flag> + <flag name="ofono">Use <pkg>net-misc/ofono</pkg> for telephony support.</flag> + <flag name="openconnect">Use <pkg>net-vpn/openconnect</pkg> for VPN support.</flag> + <flag name="openvpn">Use <pkg>net-vpn/openvpn</pkg> for openvpn support.</flag> + <flag name="pptp">Use <pkg>net-dialup/pptpclient</pkg> for PPTP VPN support.</flag> + <flag name="tools">Enable testing tools.</flag> + <flag name="vpnc">Use <pkg>net-vpn/vpnc</pkg> for cisco VPN support.</flag> + <flag name="wispr">Enable support for WISPr hotspot logins.</flag> + </use> +</pkgmetadata> |