aboutsummaryrefslogtreecommitdiff
path: root/sysutils/desktop-installer/Makefile
blob: dce9c7e28cc32b3af77368e5e0982157047c9329 (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
# New ports collection makefile for:	desktop-installer
# Date created:		2009-12-29
# Whom:			Jason Bacon <jwbacon@tds.net>
#
# $FreeBSD$
#

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

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

RUN_DEPENDS=	auto-append-line:${PORTSDIR}/sysutils/auto-admin

NO_BUILD=	yes

MAN1=		${PORTNAME}.1 amd-setup.1

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin
	${INSTALL_SCRIPT} ${WRKSRC}/amd-setup ${PREFIX}/sbin
	${INSTALL_MAN} ${WRKSRC}/Doc/${PORTNAME}.man \
		${PREFIX}/man/man1/${PORTNAME}.1
	${INSTALL_MAN} ${WRKSRC}/Doc/amd-setup.man \
		${PREFIX}/man/man1/amd-setup.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>