From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Jason@zx2c4.com Received: from frisell.zx2c4.com (frisell.zx2c4.com [192.95.5.64]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 8b7e8fe3 for ; Tue, 6 Dec 2016 18:09:30 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id c6abdad4 for ; Tue, 6 Dec 2016 18:09:30 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 99ae46c0 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Tue, 6 Dec 2016 18:09:30 +0000 (UTC) Received: by mail-wj0-f181.google.com with SMTP id v7so331902524wjy.2 for ; Tue, 06 Dec 2016 10:14:49 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20161206103551.038a3d3e@leda> References: <20161203123044.25848-1-list@eworm.de> <20161203124233.27891-1-list@eworm.de> <20161206103551.038a3d3e@leda> From: "Jason A. Donenfeld" Date: Tue, 6 Dec 2016 19:14:47 +0100 Message-ID: Subject: Re: [PATCH v2 1/1] add dkms configuration file dkms.conf To: Christian Hesse Content-Type: text/plain; charset=UTF-8 Cc: Christian Hesse , WireGuard mailing list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Dec 6, 2016 at 10:35 AM, Christian Hesse wrote: > "Jason A. Donenfeld" on Sat, 2016/12/03 23:21: > > I like the general idea here of including dkim in WireGuard now, > > 'dkim' is mail security... We have dkms. ;) Lol! > For Arch Linux we install dkms sources to /usr/src/$pkgname-$pkgver, so for > wireguard we have: /usr/src/wireguard-0.0.20161129/ > To have something like this would be great: > make DESTDIR="$pkgdir/" DKMSDIR="/usr/src/$pkgname-$pkgver" dkms How does this look to you: https://git.zx2c4.com/WireGuard/commit/?id=b70677fb8af28cbaec810146144858ad07a879ed You can simply run: make DESTDIR="$pkgdir/" DKMSDIR="/usr/src/$pkgname-$pkgver" dkms-install You can also adjust SRCDIR or PREFIX, but I imagine you'll want to keep these as is. All variables are also inherited from the environment, so if the package manager sets these globally, things are even easier. What do you think of that?