Skip to content

Commit 1a9fc9d

Browse files
committed
Fixes #26: rename debian package to step-cli.
Add step as an alternative for step-cli.
1 parent 11acc42 commit 1a9fc9d

File tree

8 files changed

+27
-7
lines changed

8 files changed

+27
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ uninstall:
158158

159159
debian:
160160
$Q mkdir -p $(RELEASE); \
161-
OUTPUT=../step_*.deb; \
161+
OUTPUT=../step-cli_*.deb; \
162162
rm $$OUTPUT; \
163163
dpkg-buildpackage -b -rfakeroot -us -uc && cp $$OUTPUT $(RELEASE)/
164164

debian/changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
step (0.0.1) UNRELEASED; urgency=medium
1+
step-cli (0.0.1) UNRELEASED; urgency=medium
22

33
* Initial release
44

debian/control

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Source: step
1+
Source: step-cli
22
Section: utils
33
Priority: optional
44
Maintainer: Smallstep Labs, Inc. <[email protected]>
@@ -8,7 +8,7 @@ Homepage: https://github.com/smallstep/cli
88
Vcs-Browser: https://github.com/smallstep/cli.git
99
Vcs-Git: https://github.com/smallstep/cli.git
1010

11-
Package: step
11+
Package: step-cli
1212
Architecture: any
1313
Depends: ${misc:Depends}
1414
Description: Zero trust swiss army knife
@@ -17,4 +17,4 @@ Description: Zero trust swiss army knife
1717
technologies like authenticated encryption (X.509, TLS), single sign-on
1818
(OAuth OIDC, SAML), multi-factor authentication (OATH OTP, FIDO U2F),
1919
encryption mechanisms (JSON Web Encryption, NaCl), and verifiable claims
20-
(JWT, SAML assertions)
20+
(JWT, SAML assertions)

debian/rules

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#!/usr/bin/make -f
22

3-
%:
3+
override_dh_install-arch:
4+
dh_install --arch
5+
# Rename step to step-cli.
6+
mv debian/step-cli/usr/bin/step debian/step-cli/usr/bin/step-cli
7+
8+
build:
49
make bootstrap
10+
dh build
11+
12+
%:
513
dh $@ --with bash-completion

debian/step-cli.bash-completion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
autocomplete/bash_autocomplete step-cli

debian/step-cli.postinst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
if [ "$1" = "configure" ]; then
4+
update-alternatives \
5+
--install /usr/bin/step step /usr/bin/step-cli 50 \
6+
--slave /usr/share/bash-completion/completions/step step.bash-completion /usr/share/bash-completion/completions/step-cli
7+
fi

debian/step-cli.prerm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
if [ "$1" = "remove" ]; then
4+
update-alternatives --remove step /usr/bin/step-cli
5+
fi

debian/step.bash-completion

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)