blob: 6c79adad18247864d7e63e1db39a6acddb8e94d6 (
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: cmospwd
# Date created: 28 Jul 2005
# Whom: Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#
PORTNAME= cmospwd
PORTVERSION= 4.8
CATEGORIES= sysutils
MASTER_SITES= http://www.cgsecurity.org/ \
http://critical.ch/distfiles/
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= A BIOS password recovery tool
USE_BZIP2= yes
PLIST_FILES= bin/cmospwd
PORTDOCS= cmospwd.txt
ONLY_FOR_ARCHS= i386 amd64
.include <bsd.port.pre.mk>
post-patch:
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -e 's|<stdint\.h>|<unistd.h>|' \
${WRKSRC}/src/cmospwd.c
.endif
.if !defined(NOPORTDOCS)
@${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} ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
|