aboutsummaryrefslogtreecommitdiffstats
path: root/security/secpanel/Makefile
blob: 6ad93fdc47fa76fc4fd79e0a76b4c64e9b065f3c (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
# Created by: Pete Fritchman <petef@databits.net>
# $FreeBSD$

PORTNAME=   secpanel
PORTVERSION=    0.6.1
PORTREVISION=   2
PORTEPOCH=  1
CATEGORIES= security tcl tk
MASTER_SITES=   SF/${PORTNAME} \
        SF/nemysisfreebsdp/:icons
DISTFILES=  ${PORTNAME}-${PORTVERSION}.tgz \
        ${PORTNAME}.png:icons
DIST_SUBDIR=    ${PORTNAME}
EXTRACT_ONLY=   ${PORTNAME}-${PORTVERSION}.tgz

MAINTAINER= nemysis@gmx.ch
COMMENT=    GUI for managing and running ssh and related utilities

LICENSE=    GPLv2

RUN_DEPENDS=    ssh-askpass:${PORTSDIR}/security/openssh-askpass

WRKSRC=     ${WRKDIR}/usr/local
NO_BUILD=   yes

USE_TK_WRAPPER= yes

DESKTOP_ENTRIES="SecPanel" "${COMMENT}" "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
        "${PORTNAME}" "" "false"

post-patch:
    @${REINPLACE_CMD} \
        -e 's|\[file dirname \[info script\]\]/../lib/secpanel|${DATADIR}|' \
            ${WRKSRC}/bin/secpanel

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/bin/secpanel ${PREFIX}/bin
    @(cd ${WRKSRC}/lib/secpanel && ${COPYTREE_SHARE} \* ${DATADIR})
    @${CHMOD} u+rw ${DATADIR}/default.config

    ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps

.include <bsd.port.mk>