void-packages/srcpkgs/netctl/template

29 lines
929 B
Plaintext

# Template file for 'netctl'
pkgname=netctl
version=1.1
revision=3
short_desc="Profile based systemd network management"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
homepage="http://projects.archlinux.org/netctl.git/"
license="GPL"
distfiles="ftp://ftp.archlinux.org/other/packages/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=54a4891250f53190758b4c67ca397b963e1b7cc460e85cbe6677d541f1b8894d
makedepends="pkg-config iproute2 openresolv dhcpcd wpa_supplicant dialog systemd-devel"
do_install() {
make PREFIX=/usr DESTDIR=$DESTDIR install
vinstall contrib/bash-completion 644 usr/share/bash-completion/completions/netctl
vinstall contrib/zsh-completion 644 usr/share/zsh/site-functions/_netctl
}
netctl_package() {
depends="iproute2 openresolv dhcpcd wpa_supplicant dialog systemd"
noarch="yes"
make_dirs="
/etc/netctl/interfaces 0750 root root
/etc/netctl/hooks 0750 root root"
pkg_install() {
vmove all
}
}