mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Only depends of openssh-portable if not exists on system
- Reorganize Makefile - Use PLIST_FILES and PORTDOCS - Remove dependency of perl. Use REINPLACE_CMD - Bump PORTREVISION PR: 93593 Reported by: Andrew Pantyukhin <infofarmer@gmail.com>
This commit is contained in:
parent
f03bedcae2
commit
3ba3556c89
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156495
2 changed files with 17 additions and 15 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= ssh-gui
|
PORTNAME= ssh-gui
|
||||||
PORTVERSION= 0.7.1
|
PORTVERSION= 0.7.1
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= security
|
CATEGORIES= security
|
||||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||||
|
@ -15,26 +15,31 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= A front-end for ssh which can open multiple xterms
|
COMMENT= A front-end for ssh which can open multiple xterms
|
||||||
|
|
||||||
RUN_DEPENDS= ssh:${PORTSDIR}/security/openssh
|
|
||||||
|
|
||||||
USE_GNOME= gtk12
|
USE_GNOME= gtk12
|
||||||
USE_PERL5_BUILD=yes
|
|
||||||
ALL_TARGET= ssh-gui
|
ALL_TARGET= ssh-gui
|
||||||
|
|
||||||
DOC_FILES= README
|
PLIST_FILES= bin/ssh-gui
|
||||||
|
PORTDOCS= README
|
||||||
|
|
||||||
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
.if !exists(/usr/bin/ssh) && !exists(${LOCALBASE}/bin/ssh)
|
||||||
|
RUN_DEPENDS+= ssh:${PORTSDIR}/security/openssh-portable
|
||||||
|
.endif
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${PERL} -pi.orig -e "s|^CC=.+$$||;s|(CFLAGS)=-Wall|\1\+=|; \
|
@${REINPLACE_CMD} -E -e "s|(CC)=.*|\1=${CC}|" -e "s|(CFLAGS)=-Wall|\1\+=|" \
|
||||||
s|glib-config|${GLIB_CONFIG}|;s|gtk-config|${GTK_CONFIG}|" \
|
-e "s|glib-config|${GLIB_CONFIG}|" -e "s|gtk-config|${GTK_CONFIG}|" \
|
||||||
${BUILD_WRKSRC}/Makefile
|
${BUILD_WRKSRC}/Makefile
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
|
||||||
|
|
||||||
|
post-install:
|
||||||
.ifndef(NOPORTDOCS)
|
.ifndef(NOPORTDOCS)
|
||||||
@${MKDIR} ${DOCSDIR}
|
@${MKDIR} ${DOCSDIR}
|
||||||
.for doc in ${DOC_FILES}
|
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
|
||||||
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
|
||||||
.endfor
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
bin/ssh-gui
|
|
||||||
%%PORTDOCS%%share/doc/ssh-gui/README
|
|
||||||
%%PORTDOCS%%@dirrm share/doc/ssh-gui
|
|
Loading…
Add table
Reference in a new issue