Date: Wednesday, September 14, 2022 @ 16:27:07
  Author: foutrelis
Revision: 456109

upgpkg: expect 5.45.4-4: rename mkpasswd script (FS#75880)

Avoids file conflict with mkpasswd from the whois package.

Modified:
  expect/trunk/PKGBUILD

----------+
 PKGBUILD |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-09-14 12:59:06 UTC (rev 456108)
+++ PKGBUILD    2022-09-14 16:27:07 UTC (rev 456109)
@@ -3,7 +3,7 @@
 
 pkgname=expect
 pkgver=5.45.4
-pkgrel=3
+pkgrel=4
 pkgdesc='A tool for automating interactive applications'
 arch=(x86_64)
 url='https://www.nist.gov/el/msid/expect.cfm'
@@ -21,7 +21,7 @@
 
 build() {
   cd expect${pkgver}
-  ./configure --prefix=/usr --mandir=/usr/share/man 
+  ./configure --prefix=/usr --mandir=/usr/share/man
   make
 }
 
@@ -34,4 +34,8 @@
   cd expect${pkgver}
   make DESTDIR="$pkgdir" install
   install -Dm644 README "$pkgdir/usr/share/licenses/$pkgname/README"
+
+  # avoid file conflict with the more powerful mkpasswd from the whois package
+  mv -v "$pkgdir"/usr/bin/mkpasswd{,-expect}
+  mv -v "$pkgdir"/usr/share/man/man1/mkpasswd{,-expect}.1
 }

Reply via email to