Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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