Magellan Linux

Annotation of /trunk/extras/networkmanager-openvpn/networkmanager-openvpn-1.8.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31353 - (hide annotations) (download)
Thu Jun 21 15:29:10 2018 UTC (5 years, 10 months ago) by niro
File size: 1461 byte(s)
auto added: ver bump to 1.8.4-r1
1 niro 31353 # $Id$
2    
3     PNAME="networkmanager-openvpn"
4     PVER="1.8.4"
5     PBUILD="r1"
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-1.10
13     >= net-libs/libnm-gtk-1.10
14     >= net-libs/libnma-1.8
15     >= x11-libs/gtk3+-3.22
16     >= gnome-base/libgnome-keyring-3.12
17     >= app-crypt/libsecret-0.18
18     >= net-vpn/openvpn-2.4"
19    
20     SDEPEND=">= dev-util/pkgconfig-0.25
21     >= dev-util/intltool-0.50"
22    
23     SRCFILE="NetworkManager-openvpn-${PVER}.tar.xz"
24     SRCDIR="${BUILDDIR}/NetworkManager-openvpn-${PVER}"
25    
26     sminclude gnome2 gtk2 systemd
27    
28     SRC_URI=(
29     gnome://NetworkManager-openvpn/${PVER%.*}/${SRCFILE}
30     gnome://NetworkManager-openvpn/${PVER%.*.*}/${SRCFILE}
31     mirror://${PNAME}/${SRCFILE}
32     )
33    
34     # use devel mode, odd numbers are stable versions too
35     UP2DATE="updatecmd_gnome NetworkManager-openvpn --devel"
36    
37     pkg_setup()
38     {
39     preinstall
40     }
41    
42     src_compile()
43     {
44     cd ${SRCDIR}
45    
46     mconfigure \
47     --libexecdir=/usr/$(mlibdir)/networkmanager \
48     --localstatedir=/var \
49     --enable-more-warnings=yes \
50     --with-gtkver=3 \
51     --with-gnome \
52     || die
53    
54     mmake || die
55     }
56    
57     preinstall()
58     {
59     mgroupadd nm-openvpn
60     museradd -o "-g nm-openvpn -d / -s /sbin/nologin" nm-openvpn
61     }
62    
63     postinstall()
64     {
65     # reload dbus to load the nm config
66     mreloadunit dbus.service /usr/bin/dbus-daemon
67    
68     gtk2_update_icon_cache
69     }
70    
71     postremove()
72     {
73     # reload dbus to unload the nm config
74     mreloadunit dbus.service /usr/bin/dbus-daemon
75    
76     gtk2_update_icon_cache
77     }