Annotation of /branches/R11-stable/extras/networkmanager-openvpn/networkmanager-openvpn-0.9.8.4-r2.smage2
Parent Directory | Revision Log
Revision 21811 -
(hide annotations)
(download)
Mon Jul 21 09:52:52 2014 UTC (9 years, 9 months ago) by niro
File size: 1201 byte(s)
Mon Jul 21 09:52:52 2014 UTC (9 years, 9 months ago) by niro
File size: 1201 byte(s)
-release branches/R11-stable
1 | niro | 21572 | # $Id$ |
2 | |||
3 | PNAME="networkmanager-openvpn" | ||
4 | PVER="0.9.8.4" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCAT="net-misc" | ||
8 | |||
9 | DESCRIPTION="NetworkManager plugin to support OpenVPN" | ||
10 | HOMEPAGE="http://projects.gnome.org/NetworkManager/" | ||
11 | |||
12 | DEPEND=">= net-misc/networkmanager-${PVER} | ||
13 | >= x11-libs/gtk3+-3.12 | ||
14 | >= gnome-base/libgnome-keyring-3.12 | ||
15 | >= net-vpn/openvpn-2.3" | ||
16 | |||
17 | SDEPEND=">= dev-util/pkgconfig-0.25 | ||
18 | >= dev-util/intltool-0.50" | ||
19 | |||
20 | SRCFILE="NetworkManager-openvpn-${PVER}.tar.xz" | ||
21 | SRCDIR="${BUILDDIR}/NetworkManager-openvpn-${PVER}" | ||
22 | |||
23 | sminclude gnome2 systemd | ||
24 | |||
25 | SRC_URI=( | ||
26 | gnome://NetworkManager-openvpn/${PVER%.*}/${SRCFILE} | ||
27 | gnome://NetworkManager-openvpn/${PVER%.*.*}/${SRCFILE} | ||
28 | mirror://${PNAME}/${SRCFILE} | ||
29 | ) | ||
30 | |||
31 | # use devel mode uneven numbers are stable versions too | ||
32 | UP2DATE="updatecmd_gnome NetworkManager-openvpn --devel" | ||
33 | |||
34 | src_compile() | ||
35 | { | ||
36 | cd ${SRCDIR} | ||
37 | |||
38 | mconfigure \ | ||
39 | --libexecdir=/usr/$(mlibdir)/networkmanager \ | ||
40 | --localstatedir=/var \ | ||
41 | --enable-more-warnings=yes \ | ||
42 | --with-gtkver=3 \ | ||
43 | --with-gnome \ | ||
44 | || die | ||
45 | |||
46 | mmake || die | ||
47 | } | ||
48 | |||
49 | postinstall() | ||
50 | { | ||
51 | # reload dbus to load the nm config | ||
52 | mreloadunit dbus.service /usr/bin/dbus-daemon | ||
53 | } | ||
54 | |||
55 | postremove() | ||
56 | { | ||
57 | # reload dbus to unload the nm config | ||
58 | mreloadunit dbus.service /usr/bin/dbus-daemon | ||
59 | } |