aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/desktop-installer/Makefile
blob: 668b134adede6397917bdbc4745e212e50b3caf0 (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: Jason Bacon <jwbacon@tds.net>
# $FreeBSD$

PORTNAME=   desktop-installer
PORTVERSION=    0.4.5
CATEGORIES= sysutils
MASTER_SITES=   http://acadix.biz/Ports/distfiles/ \
        http://personalpages.tds.net/~jwbacon/Ports/distfiles/

MAINTAINER= jwbacon@tds.net
COMMENT=    Quickly configure a FreeBSD desktop system

RUN_DEPENDS=    auto-admin>=0.3.2:${PORTSDIR}/sysutils/auto-admin

NO_BUILD=   yes

MAN1=       ${PORTNAME}.1

NO_STAGE=   yes
do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin
    ${INSTALL_MAN} ${WRKSRC}/Doc/${PORTNAME}.man \
        ${PREFIX}/man/man1/${PORTNAME}.1
    ${MKDIR} ${DATADIR}
    ${CP} -r ${WRKSRC}/Data/* ${DATADIR}
    ${MKDIR} ${DATADIR}/Scripts
    ${INSTALL_SCRIPT} ${WRKSRC}/Scripts/* ${DATADIR}/Scripts

.include <bsd.port.pre.mk>
post-patch:
    ${REINPLACE_CMD} 's|/etc/mtree|$${PORTSDIR=/usr/ports}/Templates|' \
        ${WRKSRC}/${PORTNAME}
    ${REINPLACE_CMD} \
        's|DATADIR=Data|DATADIR=${PREFIX}/share/desktop-installer|g' \
        ${WRKSRC}/desktop-installer

.include <bsd.port.post.mk>