# $Id$ PNAME="networkmanager" PVER="0.9.8.10" PBUILD="r1" PCAT="net-misc" DESCRIPTION="Network configuration and management in an easy way." HOMEPAGE="http://projects.gnome.org/NetworkManager/" # hardcoded ppp version PPP_PVER=2.4.6 DEPEND=">= sys-apps/dbus-1.8 >= dev-libs/glib2-2.40 >= dev-libs/dbus-glib-0.102 >= dev-libs/libnl3-3.2.24 >= dev-libs/nss-3.16 >= sys-fs/udev-211 >= sys-apps/polkit-0.112 >= net-libs/libsoup-2.46 >= net-libs/libproxy-networkmanager-0.4 >= net-misc/modemmanager-1.0 >= net-wlan/wireless-tools-30_pre9 >= net-wlan/wpa-supplicant-2.2 >= net-misc/dhcpcd-6.4 == net-dialup/ppp-${PPP_PVER} >= sys-apps/iproute2-3.12 >= net-misc/iptables-1.4.21 >= sys-libs/libelf-0.159 >= sys-libs/libuuid-2.24" SDEPEND=">= dev-util/pkgconfig-0.25 >= dev-util/intltool-0.50 >= dev-libs/gobject-introspection-1.40 >= net-wlan/bluez-5.20 >= net-dns/avahi-0.6.31" SRCFILE="NetworkManager-${PVER}.tar.xz" SRCDIR="${BUILDDIR}/NetworkManager-${PVER}" sminclude gnome2 mtools dbus udev systemd SRC_URI=( gnome://NetworkManager/${PVER%.*}/${SRCFILE} gnome://NetworkManager/${PVER%.*.*}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/nm-system-settings.conf mirror://${PNAME}/networkmanager.conf.tmpfile mirror://${PNAME}/${PNAME}-0.9.6.0-hostname.patch ) # use devel mode uneven numbers are stable versions too UP2DATE="updatecmd_gnome NetworkManager --devel" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # do not change the hostname on magellan mpatch ${PNAME}-0.9.6.0-hostname.patch || die } src_compile() { cd ${SRCDIR} mconfigure \ --libexecdir=/usr/$(mlibdir)/${PNAME} \ --localstatedir=/var \ --enable-more-warnings=yes \ --disable-gtk-doc \ --with-distro=magellan \ --with-dbus-sys-dir=$(mget-dbus-config-dir) \ --with-udev-dir=$(mget-udev-dir) \ --with-systemdsystemunitdir=$(mget-systemd-unit-dir) \ --with-pppd-plugin-dir=/usr/$(mlibdir)/pppd/${PPP_PVER} \ --with-iptables=/sbin/iptables \ --with-dhcpcd=yes \ --with-dhclient=no \ --with-crypto=nss \ --enable-wimax=no \ --enable-polkit=yes \ --enable-introspection \ --without-docs \ --without-resolvconf \ --with-session-tracking=systemd \ --enable-modify-system \ --with-modem-manager-1 \ || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # needed directories mkeepdir /etc/NetworkManager/dispatcher.d || die mkeepdir /var/lib/NetworkManager || die mkeepdir /usr/$(mlibdir)/NetworkManager || die # add keyfile plugin support mkeepdir /etc/NetworkManager/system-connections || die minstallfile -s nm-system-settings.conf /etc/NetworkManager/NetworkManager.conf || die # run directory for systemd minstalltmp networkmanager.conf.tmpfile networkmanager.conf || die minstalldocs AUTHORS ChangeLog NEWS README TODO || die } postinstall() { # reload dbus to load the nm config mreloadunit dbus.service /usr/bin/dbus-daemon echo echo "For bluetooth support you may want install 'net-wlan/bluez' and" echo "to make use of bonjour capabilities install 'net-dns/avahi'" echo } postremove() { # reload dbus to unload the nm config mreloadunit dbus.service /usr/bin/dbus-daemon }