95362ad151
Change-Id: I0f167eb2f1777679b15c81a37efa215d4259b387
45 lines
927 B
Bash
45 lines
927 B
Bash
# Copyright 2014 Denis Knauf
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
SUMMERY="Network control utility based on systemd"
|
|
HOMEPAGE="https://projects.archlinux.org/netctl.git/"
|
|
DOWNLOADS="https://projects.archlinux.org/netctl.git/snapshot/${PNV}.tar.gz"
|
|
SLOT="0"
|
|
LICENCES="GPL-3"
|
|
PLATFORMS="~amd64 ~x86"
|
|
MYOPTIONS=""
|
|
DEPENDENCIES="
|
|
build:
|
|
virtual/pkg-config
|
|
build+run:
|
|
app-shells/bash
|
|
sys-apps/systemd
|
|
run:
|
|
sys-apps/coreutils
|
|
sys-apps/iproute2
|
|
suggestion:
|
|
net-misc/bridge-utils
|
|
sys-apps/dialog
|
|
virtual/dhcp-client
|
|
"
|
|
|
|
src_prepare() {
|
|
default
|
|
LIBDIR=/usr/$(exhost --target)/lib
|
|
BINDIR=/usr/$(exhost --target)/bin
|
|
edo sed -e "s#/usr/lib#${LIBDIR}#" -i Makefile
|
|
edo sed -e "s#/usr/bin#${BINDIR}#" -i Makefile
|
|
}
|
|
|
|
src_compile() {
|
|
# nothing to do
|
|
true
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
keepdir /etc/netctl/interfaces
|
|
keepdir /etc/netctl/hooks
|
|
}
|