aboutsummaryrefslogtreecommitdiffstats
path: root/misc/dphys-config/Makefile
blob: 7cc6f01de88f490d96ce512e8ce712bcc7220a0a (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:    dphys-config
# Date created:             12 Oct 2006
# Whom:                 <gurkan@linuks.mine.nu>
#
# $FreeBSD$
#

PORTNAME=   dphys-config
PORTVERSION=    20061020
CATEGORIES= misc
MASTER_SITES=   ${MASTER_SITE_DEBIAN_POOL}
DISTNAME=   ${PORTNAME}_${PORTVERSION}.orig

MAINTAINER= gurkan@linuks.mine.nu
COMMENT=    Tool to distribute config files

RUN_DEPENDS=    wget:${PORTSDIR}/ftp/wget

NO_BUILD=   yes

MAN1=       dphys-config.1

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

post-patch:
    @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/${PORTNAME}

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
    ${MKDIR} ${EXAMPLESDIR}/site.example/local/sbin
.for f in dphys-config.example cron.d.example init.d.example
    ${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}
.endfor
    ${INSTALL_DATA} ${WRKSRC}/site.example/${PORTNAME}* \
        ${EXAMPLESDIR}/site.example/
    ${INSTALL_DATA} ${WRKSRC}/site.example/local/sbin/${PORTNAME}-* \
        ${EXAMPLESDIR}/site.example/local/sbin/
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.example ${PREFIX}/etc/${PORTNAME}.sample
.if !exists(${PREFIX}/etc/${PORTNAME})
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.example ${PREFIX}/etc/${PORTNAME}
.endif

.include <bsd.port.mk>