net-misc/wireguard: add debug USE flag
authorJason A. Donenfeld <zx2c4@gentoo.org>
Mon, 25 Jul 2016 23:16:20 +0000 (01:16 +0200)
committerJason A. Donenfeld <zx2c4@gentoo.org>
Mon, 25 Jul 2016 23:16:36 +0000 (01:16 +0200)
Package-Manager: portage-2.3.0

net-misc/wireguard/wireguard-0.0.20160722.ebuild
net-misc/wireguard/wireguard-9999.ebuild

index ecbf8d17d3864fca81ee63b3d307ba0b9e64071d..108e0dc06f410da92b3044c4b269619dee677fcb 100644 (file)
@@ -21,7 +21,7 @@ fi
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE=""
+IUSE="debug"
 
 DEPEND="net-libs/libmnl"
 RDEPEND="${DEPEND}"
@@ -43,6 +43,7 @@ src_prepare() {
 }
 
 src_compile() {
+       use debug && BUILD_PARAMS="CONFIG_WIREGUARD_DEBUG=y"
        linux-mod_src_compile
        emake RUNSTATEDIR="${EPREFIX}/run" -C src/tools
 }
index ecbf8d17d3864fca81ee63b3d307ba0b9e64071d..108e0dc06f410da92b3044c4b269619dee677fcb 100644 (file)
@@ -21,7 +21,7 @@ fi
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE=""
+IUSE="debug"
 
 DEPEND="net-libs/libmnl"
 RDEPEND="${DEPEND}"
@@ -43,6 +43,7 @@ src_prepare() {
 }
 
 src_compile() {
+       use debug && BUILD_PARAMS="CONFIG_WIREGUARD_DEBUG=y"
        linux-mod_src_compile
        emake RUNSTATEDIR="${EPREFIX}/run" -C src/tools
 }