aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/sshmenu/Makefile
blob: 3da3caa0cc6b7182ad1d231f7524623530bc79ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:    sshmenu
# Date created:     2010-10-03
# Whom:         Steve Wills <swills@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   sshmenu
PORTVERSION=    3.18
CATEGORIES= deskutils
MASTER_SITES=   SF/${PORTNAME}

MAINTAINER= swills@FreeBSD.org
COMMENT=    GNOME panel applet for managing ssh connections

RUN_DEPENDS=    ${RUBY_SITEARCHLIBDIR}/panelapplet2.so:${PORTSDIR}/x11-toolkits/ruby-panelapplet \
        ${RUBY_SITEARCHLIBDIR}/gconf2.so:${PORTSDIR}/devel/ruby-gconf2 \
        ${RUBY_SITEARCHLIBDIR}/gtk2.so:${PORTSDIR}/x11-toolkits/ruby-gtk2

LICENSE=    BSD
LICENSE_FILE=   ${WRKSRC}/License.txt
USE_RUBY=   yes
NO_BUILD=   yes
INSTALLS_ICONS= yes

MAN1=       sshmenu.1

.include <bsd.port.pre.mk>

post-extract:
    ${REINPLACE_CMD} -e 's|#!/usr/bin/ruby|#!${RUBY_WITHOUT_SUFFIX}|' ${WRKSRC}/bin/sshmenu
    ${REINPLACE_CMD} -e 's|#!/usr/bin/ruby|#!${RUBY_WITHOUT_SUFFIX}|' ${WRKSRC}/bin/sshmenu-gnome
    ${REINPLACE_CMD} -e 's|#!/usr/bin/ruby|#!${RUBY_WITHOUT_SUFFIX}|' ${WRKSRC}/sshmenu-applet
    ${REINPLACE_CMD} -e 's|/usr/lib/gnome-panel|${LOCALBASE}/libexec|' ${WRKSRC}/sshmenu-applet.server
    ${REINPLACE_CMD} -e 's|/usr/bin/ssh-askpass|${LOCALBASE}/bin/ssh-askpass|' ${WRKSRC}/lib/sshmenu.rb

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/lib/sshmenu.rb ${RUBY_SITELIBDIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/lib/gnome-sshmenu.rb ${RUBY_SITELIBDIR}
    ${INSTALL} ${WRKSRC}/sshmenu-applet.server ${PREFIX}/libdata/bonobo/servers
    ${INSTALL} ${WRKSRC}/sshmenu-applet ${PREFIX}/libexec
    ${INSTALL_MAN} ${WRKSRC}/sshmenu.1 ${MAN1PREFIX}/man/man1
    ${INSTALL} ${WRKSRC}/gnome-sshmenu-applet.png ${PREFIX}/share/icons/gnome/48x48/apps
    ${INSTALL} ${WRKSRC}/bin/sshmenu ${PREFIX}/bin
    ${INSTALL} ${WRKSRC}/bin/sshmenu-gnome ${PREFIX}/bin

.include <bsd.port.post.mk>