aboutsummaryrefslogblamecommitdiffstats
path: root/community/networkmanager/APKBUILD
blob: eb291e8f695132a76db49ed4be2d56381ecccf7e (plain) (tree)
1
2
3
4
5
6
7
8

                                                           
                      
             
        

                                               
          


                                                   

                         
                

                     
                    

                                 











                        
                   
            


                
         

                                                                                                     


                      


                                      
         
                
 
                                         
 


                       
                  


         
                      

                               



                                           
                                   



                                                   
                                   

                                     

                                        
                                       
                                            


                                                
                                              





                                              
                                    
                               

                                             
                                            
            


           

                                      
 

                                                                                                 

                                                   
                                                                                                                   
                                                       
                              
                                                                                  


                                                                                                             

 
                                                                                                                                                                          
                                                                                                                                                     
                                                                                                                                                      
                                                                                                                                                      
                                                                                                                                                  

                                                                                                                                                                 
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=networkmanager
pkgver=1.10.6
pkgrel=1
pkgdesc="network management tool"
url="http://projects.gnome.org/NetworkManager/"
arch="all"
license="GPL-2.0-or-later"
depends="dhcpcd iptables dbus wpa_supplicant"
install="$pkgname.pre-install $pkgname.pre-upgrade"
depends_dev=
makedepends="$depends_dev
	curl-dev
	dbus-glib-dev
	eudev-dev
	libgudev-dev
	gobject-introspection-dev
	intltool
	libndp-dev
	libnl3-dev
	libsoup-dev
	libteam-dev
	linux-headers
	modemmanager-dev
	newt-dev
	nss-dev
	polkit-dev
	ppp-dev
	readline-dev
	util-linux-dev
	jansson-dev
	vala
	autoconf
	automake
	libtool
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-openrc"
source="https://download.gnome.org/sources/NetworkManager/${pkgver:0:4}/NetworkManager-$pkgver.tar.xz
	$pkgname.conf
	$pkgname.initd
	$pkgname.rules
	musl-basic.patch
	musl-network-support.patch
	musl-dlopen-configure-ac.patch
	"
options="!check"

builddir="$srcdir"/NetworkManager-$pkgver

prepare() {
	cd "$builddir"
	default_prepare
	autoreconf
}

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-concheck \
 		--enable-ifupdown \
		--enable-modify-system \
		--enable-polkit-agent \
		--with-config-dhcp-default=dhcpcd \
		--with-crypto=nss \
 		--with-dhcpcd=yes \
		--with-dhclient=yes \
		--with-modem-manager-1 \
		--with-nmtui=yes \
		--with-resolvconf=yes \
		--with-session-tracking=no \
		--with-systemdsystemunitdir=no \
		--with-systemd-journal=no \
		--with-systemd-logind=no \
		--with-suspend-resume=upower \
		--with-wext=yes \
		--disable-config-plugin-ibft \
		--disable-gtk-doc \
		--disable-introspection \
		--disable-more-warnings \
		--disable-tests \
		--without-valgrind \
		--disable-wimax
	# ourLDFLAGS confuses the gir-scanner
	unset LDFLAGS
	make libnm-core/nm-core-enum-types.h
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install

	install -m755 -D "$srcdir"/networkmanager.initd "$pkgdir"/etc/init.d/networkmanager
	install -m644 -D "$srcdir/$pkgname.conf" "$pkgdir"/etc/NetworkManager/NetworkManager.conf
	# allow plugdev users to modify connections
	install -m644 -D "$srcdir/$pkgname.rules" \
                "$pkgdir/usr/share/polkit-1/rules.d/01-org.freedesktop.NetworkManager.settings.modify.system.rules"
	mkdir -p "$pkgdir/usr/share/apk-tools/$pkgname"
	# post-install message
	mv "$pkgdir/usr/share/doc/NetworkManager" "$pkgdir/usr/share/doc/$pkgname"
        cat > $pkgdir/usr/share/doc/$pkgname/README.alpine <<EOF
To modify system network connections without the root password: add your user account to the 'plugdev' group.
EOF
}

sha512sums="8406ed561efff13b63dc218babdd2ad9e2816bcc829ba3ef2ce942bb5fa027640de28660381203016fa9cddb61412d3cd5102b7cbd29d0e284b5cb8d13dd8610  NetworkManager-1.10.6.tar.xz
a6e507260e2ceffad4cacb2b49a1d4f6b933e5ae8bc50c1bd56f828298c5dc8d9d17aa4be766faeacefbe3c6c0c748e4ef499a55bb5ee40f0f04bbf766fbbc82  networkmanager.conf
477c4cbb6e8c4805a61cdd9442c6a951c8f96173552d943a2f21938ba0facead455f247d65b2b79d1dcdd42abc6db8a8d06c49847bf028001c99ccfca1782bbd  networkmanager.initd
9820ed2ead0af689644842de57657bb10330a1eaff0e85b21ae9913f55e399e47d8b41b0a12956f30de80272b4424c6e55f33acbc88e156879003a260bf576f6  networkmanager.rules
e9be48c1beba27e6f618e97d63838783e097a671773564285127393863ffc893b79660fab23beb09c62b7381fb046b2b035dc587f8715c07f376112e30c6fa56  musl-basic.patch
1e0c519c101762c251225414e897139eee13d3556910bf9e4e86b58f0a9c298475d880be06420117960036da175fb05a5208c058a8eb4d8c424537703131ca58  musl-network-support.patch
9120208c258f0db6cf9057f21c3b384e7ddc4b6876228cfb20475e3b6f7292025f649a77cdecd170918bec0c86f576718d62bec9dd70ebdd1ab8d48ae65cfb53  musl-dlopen-configure-ac.patch"