aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/cmospwd/Makefile
blob: c9a80dc6995846f743b6c35063e2dbd23b205dde (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
# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$

PORTNAME=   cmospwd
PORTVERSION=    5.1
CATEGORIES= sysutils
MASTER_SITES=   http://www.cgsecurity.org/ \
        CRITICAL

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    BIOS password recovery tool

LICENSE=    GPLv2

USE_BZIP2=  yes

PLIST_FILES=    bin/cmospwd
PORTDOCS=   cmospwd.txt

ONLY_FOR_ARCHS= i386 amd64

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

post-patch:
.if ${PORT_OPTIONS:MDOCS}
    @${REINPLACE_CMD} -e "s/`${ECHO_CMD} -e '\r'`*$$//" \
        ${WRKSRC}/cmospwd.txt
.endif

do-build:
    ${CC} ${CFLAGS} ${WRKSRC}/src/${PORTNAME}.c -o ${WRKSRC}/${PORTNAME}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>