Magellan Linux

Annotation of /branches/R11-stable/extras/networkmanager/networkmanager-0.9.8.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17990 - (hide annotations) (download)
Thu Jun 27 06:41:21 2013 UTC (10 years, 11 months ago) by niro
File size: 3163 byte(s)
-release branches/R11-stable
1 niro 17439 # $Id$
2    
3     PNAME="networkmanager"
4     PVER="0.9.8.2"
5     PBUILD="r1"
6    
7     PCAT="net-misc"
8    
9     DESCRIPTION="Network configuration and management in an easy way."
10     HOMEPAGE="http://projects.gnome.org/NetworkManager/"
11    
12     # hardcoded ppp version
13     PPP_PVER=2.4.5
14    
15     DEPEND=">= sys-apps/dbus-1.6
16     >= dev-libs/glib2-2.36
17     >= dev-libs/dbus-glib-0.100
18     >= dev-libs/libnl3-3.2.22
19     >= dev-libs/nss-3.14
20     >= sys-fs/udev-204
21     >= sys-apps/polkit-0.111
22     >= net-libs/libsoup-2.42
23     >= net-libs/libproxy-networkmanager-0.4
24     >= net-misc/modemmanager-0.6
25     >= net-wlan/wireless-tools-30_pre9
26     >= net-wlan/wpa-supplicant-2.0
27     >= net-misc/dhcpcd-5.6
28     == net-dialup/ppp-${PPP_PVER}
29     >= sys-apps/iproute2-3.9
30     >= net-misc/iptables-1.4.19
31     >= sys-libs/libelf-0.155
32     >= sys-libs/libuuid-2.22"
33    
34     SDEPEND=">= dev-util/pkgconfig-0.25
35     >= dev-util/intltool-0.50
36     >= dev-libs/gobject-introspection-1.36
37     >= net-wlan/bluez-4.101
38     >= net-dns/avahi-0.6.31"
39    
40     SRCFILE="NetworkManager-${PVER}.tar.xz"
41     SRCDIR="${BUILDDIR}/NetworkManager-${PVER}"
42    
43     sminclude gnome2 mtools
44    
45     SRC_URI=(
46     gnome://NetworkManager/${PVER%.*}/${SRCFILE}
47     gnome://NetworkManager/${PVER%.*.*}/${SRCFILE}
48     mirror://${PNAME}/${SRCFILE}
49     mirror://${PNAME}/nm-system-settings.conf
50     mirror://${PNAME}/networkmanager.conf.tmpfile
51     mirror://${PNAME}/${PNAME}-0.9.6.0-hostname.patch
52     )
53    
54     # use devel mode uneven numbers are stable versions too
55     UP2DATE="updatecmd_gnome NetworkManager --devel"
56    
57     src_prepare()
58     {
59     munpack ${SRCFILE} || die
60     cd ${SRCDIR}
61    
62     # do not change the hostname on magellan
63     mpatch ${PNAME}-0.9.6.0-hostname.patch || die
64     }
65    
66     src_compile()
67     {
68     cd ${SRCDIR}
69    
70     mconfigure \
71     --libexecdir=/usr/$(mlibdir)/${PNAME} \
72     --localstatedir=/var \
73     --enable-more-warnings=yes \
74     --disable-gtk-doc \
75     --with-distro=magellan \
76     --with-dbus-sys-dir=/etc/dbus-1/system.d \
77     --with-udev-dir=/usr/lib/udev \
78     --with-systemdsystemunitdir=/usr/lib/systemd/system \
79     --with-pppd-plugin-dir=/usr/$(mlibdir)/pppd/${PPP_PVER} \
80     --with-iptables=/sbin/iptables \
81     --with-dhcpcd=yes \
82     --with-dhclient=no \
83     --with-crypto=nss \
84     --enable-wimax=no \
85     --enable-polkit=yes \
86     --enable-introspection \
87     --without-docs \
88     --without-resolvconf \
89     --with-session-tracking=systemd \
90     --enable-modify-system \
91     || die
92    
93     mmake || die
94     }
95    
96     src_install()
97     {
98     cd ${SRCDIR}
99    
100     mmake DESTDIR=${BINDIR} install || die
101    
102     # needed directories
103     mkeepdir /etc/NetworkManager/dispatcher.d || die
104     mkeepdir /var/lib/NetworkManager || die
105     mkeepdir /usr/$(mlibdir)/NetworkManager || die
106    
107     # add keyfile plugin support
108     mkeepdir /etc/NetworkManager/system-connections || die
109     minstallfile -s nm-system-settings.conf /etc/NetworkManager/NetworkManager.conf || die
110    
111     # run directory for systemd
112     minstalltmp networkmanager.conf.tmpfile networkmanager.conf || die
113    
114     minstalldocs AUTHORS ChangeLog NEWS README TODO || die
115     }
116    
117     postinstall()
118     {
119     # reload dbus to load the nm config
120     mreloadunit dbus.service /usr/bin/dbus-daemon
121    
122     echo
123     echo "For bluetooth support you may want install 'net-wlan/bluez' and"
124     echo "to make use of bonjour capabilities install 'net-dns/avahi'"
125     echo
126     }
127    
128     postremove()
129     {
130     # reload dbus to unload the nm config
131     mreloadunit dbus.service /usr/bin/dbus-daemon
132     }