On Wed, Nov 16, 2016 at 6:34 PM, Dan Luedtke <m...@danrl.com> wrote:
> Hmm, could it be missing a line like
>
> $(INSTALL_DIR) $(1)/lib/netifd/proto/
>
> In the Makefile? Not sure why we would need to create it, shouldn't it be 
> there?
>
> Kalin, could you try again with the installdir line?
>
Currently the Makefile had this in:

define Package/wireguard-tools/install
    $(INSTALL_DIR) $(1)/usr/bin/
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tools/wg $(1)/usr/bin/
    $(INSTALL_BIN) ./files/wireguard.sh $(1)/lib/netifd/proto/
endef

I patched it:
--- a/srv/OpenWRT/openwrt/feeds/packages/net/wireguard/Makefile
2016-11-16 18:45:57.733060093 +0900
+++ b/srv/OpenWRT/openwrt/feeds/packages/net/wireguard/Makefile
2016-11-16 18:46:07.716948224 +0900
@@ -83,6 +83,7 @@
 define Package/wireguard-tools/install
     $(INSTALL_DIR) $(1)/usr/bin/
     $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tools/wg $(1)/usr/bin/
+    $(INSTALL_DIR) $(1)/lib/netifd/proto/
     $(INSTALL_BIN) ./files/wireguard.sh $(1)/lib/netifd/proto/
 endef

And it seems to work now. I guess this looks as expected:
./build_dir/target-mips_34kc_musl-1.1.15/WireGuard-experimental-0.0.20161110/ipkg-ar71xx/wireguard-tools/
├── CONTROL
│   ├── control
│   ├── postinst
│   └── prerm
├── lib
│   └── netifd
│       └── proto
│           └── wireguard.sh
└── usr
    └── bin
        └── wg

(still compiling the rest)

Kalin.
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/wireguard

Reply via email to