]> git.pld-linux.org Git - packages/whois.git/blob - whois-mkpwdhash.patch
- enhanced mkpwdhash patch to cover also bash completion; package bash completions
[packages/whois.git] / whois-mkpwdhash.patch
1 --- whois-5.5.18/Makefile.orig  2023-07-22 17:56:56.000000000 +0200
2 +++ whois-5.5.18/Makefile       2023-10-05 21:31:00.451699851 +0200
3 @@ -137,15 +137,15 @@ install-whois: whois
4  install-mkpasswd: mkpasswd
5         $(INSTALL) -d $(BASEDIR)$(prefix)/bin/
6         $(INSTALL) -d $(BASEDIR)$(prefix)/share/man/man1/
7 -       $(INSTALL) -m 0755 mkpasswd $(BASEDIR)$(prefix)/bin/
8 -       $(INSTALL) -m 0644 mkpasswd.1 $(BASEDIR)$(prefix)/share/man/man1/
9 +       $(INSTALL) -m 0755 mkpasswd $(BASEDIR)$(prefix)/bin/mkpwdhash
10 +       $(INSTALL) -m 0644 mkpasswd.1 $(BASEDIR)$(prefix)/share/man/man1/mkpwdhash.1
11  
12  install-pos:
13         cd po && $(MAKE) install
14  
15  install-bashcomp:
16         $(INSTALL) -d $(BASEDIR)$(BASHCOMPDIR)
17 -       $(INSTALL) -m 0644 mkpasswd.bash $(BASEDIR)$(BASHCOMPDIR)/mkpasswd
18 +       $(INSTALL) -m 0644 mkpasswd.bash $(BASEDIR)$(BASHCOMPDIR)/mkpwdhash
19         $(INSTALL) -m 0644 whois.bash $(BASEDIR)$(BASHCOMPDIR)/whois
20  
21  distclean: clean
22 diff -ur whois-5.3.0.orig/mkpasswd.1 whois-5.3.0/mkpasswd.1
23 --- whois-5.3.0.orig/mkpasswd.1 2013-03-30 01:31:39.000000000 +0000
24 +++ whois-5.3.0/mkpasswd.1      2018-04-16 16:51:17.853233430 +0000
25 @@ -1,12 +1,12 @@
26  .TH MKPASSWD 1 "2019-12-30" "Marco d'Itri" "Debian GNU/Linux"
27  .SH NAME
28 -mkpasswd \- Overfeatured front end to crypt(3)
29 +mkpwdhash \- Overfeatured front end to crypt(3)
30  .SH SYNOPSIS
31 -.B mkpasswd
32 +.B mkpwdhash
33  .I PASSWORD
34  .RI [ SALT ]
35  .SH DESCRIPTION
36 -.B mkpasswd
37 +.B mkpwdhash
38  encrypts the given password with the
39  .BR crypt (3)
40  libc function, using the given salt.
41 @@ -86,7 +86,7 @@ This programs suffers of a bad case of f
42  .IR crypt_gensalt (3),
43  .IR getpass (3).
44  .SH AUTHOR
45 -.B mkpasswd
46 +.B mkpwdhash
47  and this man page were written by Marco d'Itri
48  .RI < md@linux.it >
49  and are licensed under the terms of the GNU General Public License,
50
51 --- whois-5.5.18/mkpasswd.bash.orig     2023-02-28 01:11:47.000000000 +0100
52 +++ whois-5.5.18/mkpasswd.bash  2023-10-05 21:30:19.288589517 +0200
53 @@ -1,4 +1,4 @@
54 -_mkpasswd() {
55 +_mkpwdhash() {
56  
57         case $3 in
58         --help | --version | --salt | --rounds | --password-fd | -[hVSRP])
59 @@ -30,4 +30,4 @@ _mkpasswd() {
60                 return 0
61         fi
62  
63 -} && complete -F _mkpasswd mkpasswd
64 +} && complete -F _mkpwdhash mkpwdhash
This page took 0.037743 seconds and 4 git commands to generate.