git: 923f262b8c23 - main - lang/expect: Sanitize MANPREFIX
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 22 Jan 2024 20:27:26 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=923f262b8c23f06d2d984136395c4a1e6a1c6bbb commit 923f262b8c23f06d2d984136395c4a1e6a1c6bbb Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2024-01-22 19:15:21 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2024-01-22 20:26:41 +0000 lang/expect: Sanitize MANPREFIX Approved by: portmgr (blanket) --- lang/expect/Makefile | 3 +-- lang/expect/files/patch-Makefile.in | 22 +++++++++++++++++++--- lang/expect/files/pkg-message.in | 2 +- lang/expect/pkg-plist | 26 +++++++++++++------------- 4 files changed, 34 insertions(+), 19 deletions(-) diff --git a/lang/expect/Makefile b/lang/expect/Makefile index e6252722f3fb..dd6dbaf630e1 100644 --- a/lang/expect/Makefile +++ b/lang/expect/Makefile @@ -1,6 +1,6 @@ PORTNAME= expect PORTVERSION= 5.45.4 -PORTREVISION= 4 +PORTREVISION= 5 PORTEPOCH= 1 CATEGORIES= lang tcl tk MASTER_SITES= SF/${PORTNAME}/Expect/${PORTVERSION} @@ -19,7 +19,6 @@ USE_LDCONFIG= ${LOCALBASE}/lib/${DISTNAME} WRKSRC= ${WRKDIR}/${DISTNAME} PLIST_SUB+= PORTVERSION=${PORTVERSION} SUB_FILES+= pkg-message -SUB_LIST+= MANPREFIX=${MANPREFIX} TEST_TARGET= test MAKE_ENV+= STRIPPROG=${STRIP_CMD} diff --git a/lang/expect/files/patch-Makefile.in b/lang/expect/files/patch-Makefile.in index fee7a43dda1c..ddf7408a8d6a 100644 --- a/lang/expect/files/patch-Makefile.in +++ b/lang/expect/files/patch-Makefile.in @@ -9,12 +9,28 @@ rm -f $$i ; \ else true; fi ; \ done -@@ -259,7 +259,7 @@ install-doc: doc - $(INSTALL_DATA) $(srcdir)/libexpect.man $(DESTDIR)$(mandir)/man3/libexpect.3 +@@ -254,12 +254,12 @@ install-doc: doc + @mkdir -p $(DESTDIR)$(mandir)/man3 + @echo "Installing documentation in $(DESTDIR)$(mandir)" + # install Expect man page +- $(INSTALL_DATA) $(srcdir)/expect.man $(DESTDIR)$(mandir)/man1/expect.1 ++ $(INSTALL_DATA) $(srcdir)/expect.man $(DESTDIR)$(prefix)/share/man/man1/expect.1 + # install man page for Expect library +- $(INSTALL_DATA) $(srcdir)/libexpect.man $(DESTDIR)$(mandir)/man3/libexpect.3 ++ $(INSTALL_DATA) $(srcdir)/libexpect.man $(DESTDIR)$(prefix)/share/man/man3/libexpect.3 -for i in $(SCRIPT_MANPAGE_LIST) ; do \ if [ -f $(srcdir)/example/$$i.man ] ; then \ - $(INSTALL_DATA) $(srcdir)/example/$$i.man $(DESTDIR)$(mandir)/man1/$$i.1 ; \ -+ $(INSTALL_DATA) $(srcdir)/example/$$i.man $(DESTDIR)$(mandir)/man1/expect_$$i.1 ; \ ++ $(INSTALL_DATA) $(srcdir)/example/$$i.man $(DESTDIR)$(prefix)/share/man/man1/expect_$$i.1 ; \ else true; fi ; \ done +@@ -502,7 +502,7 @@ expect-$(VERSION).tar.gz: expect-$(VERSION).tar + # variable in configure.in + #======================================================================== + +-clean: ++clean: + -test -z "$(BINARIES)" || rm -f $(BINARIES) + -rm -f *.$(OBJEXT) core *.core + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) diff --git a/lang/expect/files/pkg-message.in b/lang/expect/files/pkg-message.in index d422ddaf1a67..bce62bf49b85 100644 --- a/lang/expect/files/pkg-message.in +++ b/lang/expect/files/pkg-message.in @@ -3,7 +3,7 @@ message: <<EOM To avoid conflicts, example scripts and man pages have been renamed by prefixing them with "expect_". -They are in %%PREFIX%%/bin and %%MANPREFIX%%/man/man1, respectively. +They are in %%PREFIX%%/bin and %%PREFIX%%/share/man/man1, respectively. EOM } ] diff --git a/lang/expect/pkg-plist b/lang/expect/pkg-plist index 2da1d396cd18..63ecdff321b2 100644 --- a/lang/expect/pkg-plist +++ b/lang/expect/pkg-plist @@ -28,16 +28,16 @@ lib/expect%%PORTVERSION%%/libexpect%%PORTVERSION%%.so lib/expect%%PORTVERSION%%/pkgIndex.tcl lib/libexpect.so lib/libexpect.so.1 -man/man1/expect.1.gz -man/man1/expect_autoexpect.1.gz -man/man1/expect_cryptdir.1.gz -man/man1/expect_decryptdir.1.gz -man/man1/expect_dislocate.1.gz -man/man1/expect_kibitz.1.gz -man/man1/expect_mkpasswd.1.gz -man/man1/expect_multixterm.1.gz -man/man1/expect_passmass.1.gz -man/man1/expect_tknewsbiff.1.gz -man/man1/expect_unbuffer.1.gz -man/man1/expect_xkibitz.1.gz -man/man3/libexpect.3.gz +share/man/man1/expect.1.gz +share/man/man1/expect_autoexpect.1.gz +share/man/man1/expect_cryptdir.1.gz +share/man/man1/expect_decryptdir.1.gz +share/man/man1/expect_dislocate.1.gz +share/man/man1/expect_kibitz.1.gz +share/man/man1/expect_mkpasswd.1.gz +share/man/man1/expect_multixterm.1.gz +share/man/man1/expect_passmass.1.gz +share/man/man1/expect_tknewsbiff.1.gz +share/man/man1/expect_unbuffer.1.gz +share/man/man1/expect_xkibitz.1.gz +share/man/man3/libexpect.3.gz