blob: 3d57c16b6e3182a7dd95ac06ea7b8fb7c9289cde (
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
|
# New ports collection makefile for: nipper
# Date created: 3 May 2007
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= nipper
PORTVERSION= 0.11.10
PORTEPOCH= 1
CATEGORIES= net-mgmt
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/Nipper%20${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Netdev config analyzer
PLIST_FILES= bin/${PORTNAME} etc/nipper.conf.sample
PORTDOCS= Changelog Readme TODO Features.txt Options.txt Quickstart.txt \
XML.txt
MAN1= ${PORTNAME}.1
MAN5= ${PORTNAME}.conf.5
post-extract:
@${MV} ${WRKSRC}/docs/* ${WRKSRC}/
post-patch:
@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|'\
${WRKSRC}/common/* ${WRKSRC}/man/*
do-build:
@cd ${WRKSRC}/ && ${CC} ${CFLAGS} -o ${PORTNAME} ${PORTNAME}.c
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
@${INSTALL_DATA} ${WRKSRC}/nipper.conf ${PREFIX}/etc/nipper.conf.sample
@${INSTALL_MAN} ${WRKSRC}/man/nipper.1 ${MAN1PREFIX}/man/man1/
@${INSTALL_MAN} ${WRKSRC}/man/nipper.conf.5 ${MAN5PREFIX}/man/man5/
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}/
@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
.include <bsd.port.mk>
|