]> git.proxmox.com Git - debcargo-conf.git/commitdiff
Add the dotenv binary to the path as dotenv-rust
authorJustin Geibel <jtgeibel@gmail.com>
Wed, 16 Oct 2019 23:46:14 +0000 (19:46 -0400)
committerJustin Geibel <jtgeibel@gmail.com>
Wed, 16 Oct 2019 23:46:14 +0000 (19:46 -0400)
This follows the rename logic used in `src/fd-find/debian/rules`.

src/dotenv/debian/rules

index c425a7d23bb1317a7d8bc62b3e8feee41f7f8d7d..14c55686674977a53812bbcb8109ead4c4eb9907 100755 (executable)
@@ -5,6 +5,15 @@ include /usr/share/dpkg/pkg-info.mk
 %:
        dh $@ --buildsystem cargo
 
+override_dh_install:
+# dotenv is already used by another packages. Install dotenv into /usr/lib/cargo/bin/
+# and create a symlink to have dotenv-rust in the path
+       mkdir -p debian/dotenv/usr/lib/cargo/bin
+       mv debian/dotenv/usr/bin/dotenv debian/dotenv/usr/lib/cargo/bin/
+       cd debian/dotenv/usr/bin/ && ln -s ../lib/cargo/bin/dotenv dotenv-rust
+       dh_install
+       dh_missing
+
 override_dh_installman:
        help2man \
                --name dotenv \