aboutsummaryrefslogtreecommitdiffstats
path: root/security/hotssh/Makefile
blob: ab37d78e9466f1dac4b279405f3be9f5a77673f0 (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
48
49
# Created by: Ashish Shukla <wahjava@gmail.com>
# $FreeBSD$

PORTNAME=   hotssh
PORTVERSION=    0.2.7
PORTREVISION=   5
CATEGORIES= security gnome
MASTER_SITES=   GNOME
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}

MAINTAINER= ashish@FreeBSD.org
COMMENT=    HotSSH is an interface to Secure Shell, for GNOME and OpenSSH

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  ${LOCALBASE}/libdata/pkgconfig/dbus-python.pc:${PORTSDIR}/devel/py-dbus \
        ${LOCALBASE}/libdata/pkgconfig/pygobject-2.0.pc:${PORTSDIR}/devel/py-gobject \
        ${LOCALBASE}/libdata/pkgconfig/dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib \
        ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
        ${PYTHON_SITELIBDIR}/gtk-2.0/vtemodule.so:${PORTSDIR}/x11-toolkits/py-vte
RUN_DEPENDS=    ${LOCALBASE}/libdata/pkgconfig/dbus-python.pc:${PORTSDIR}/devel/py-dbus \
        ${LOCALBASE}/libdata/pkgconfig/pygobject-2.0.pc:${PORTSDIR}/devel/py-gobject \
        ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
        ${PYTHON_SITELIBDIR}/gtk-2.0/vtemodule.so:${PORTSDIR}/x11-toolkits/py-vte

USE_GNOME=  pygtk2 gnomedocutils libxslt glib20
USES=       gettext python tar:bzip2
INSTALLS_ICONS= yes

B64DECODE?= /usr/bin/b64decode
BSPATCH?=   /usr/bin/bspatch

post-extract:
    @${GREP} -Rl '^#!/usr/bin/python$$' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} -e 's|^#!/usr/bin/python$$|#!/usr/bin/env python|g'
    @${MV} ${WRKSRC}/waf ${WRKSRC}/waf.beforepatch
    @cd ${WRKSRC} && ${B64DECODE} -o waf.diff ${FILESDIR}/waf.diff && ${BSPATCH} waf.beforepatch waf waf.diff && ${CHMOD} 755 waf
    @${GREP} -Rl '%%LOCALBASE%%' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g"

do-configure:
    @cd ${WRKSRC} && ./waf configure --prefix=${PREFIX}

do-build:
    @cd ${WRKSRC} && ./waf

do-install:
    @cd ${WRKSRC} && ./waf install --destdir=${STAGEDIR}

.include <bsd.port.mk>