aboutsummaryrefslogtreecommitdiffstats
path: root/security/pwman/Makefile
blob: 7ba43522f6926fbc083df07aa366d44384ebcda1 (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
# Created by: Anders Nordby <anders@FreeBSD.org>
# $FreeBSD$

PORTNAME=   pwman
PORTVERSION=    0.4.4
CATEGORIES= security
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Console password management application based on gpg(me)

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

RUN_DEPENDS=    gpgv:security/gnupg1

USES=       ncurses
USE_GNOME=  libxml2
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= curses_loc=${NCURSESBASE}

PORTDOCS=   AUTHORS ChangeLog README TODO
PLIST_FILES=    bin/convert_pwdb bin/pwdb2csv bin/pwman man/man1/pwman.1.gz

CFLAGS+=    -Wno-error=return-type

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e \
        's|/usr/bin|${LOCALBASE}/bin|' ${WRKSRC}/src/options.c

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>